/* Isekai Pools CSS with 20% Opacity (80% Transparent) */
/* Main Background */
body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background-image: url('assets/img/body.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ffffff;
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(37, 37, 37, 0.8);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Header Styles */
.site-header {
    background-color: rgba(23, 23, 23, 0.8);
    color: #fff;
    padding-bottom: 10px;
    border-bottom: 3px solid rgba(255, 215, 0, 0.5);
}

.top-bar {
    background-color: rgba(77, 77, 77, 0.8);
    padding: 5px 0;
    font-size: 0.8em;
}

.top-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.top-navigation ul li {
    display: inline-block;
    margin: 0 10px;
}

.top-navigation ul li a {
    color: #f0f0f0;
    text-decoration: none;
    text-shadow: 1px 1px 2px #000;
}

.top-navigation ul li a:hover {
    color: #ffd700;
}

.main-header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 40px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 80px;
    margin-right: 20px;
    border: 0px solid rgba(255, 215, 0, 0.5);
    border-radius: 0%;
    background-color: transparent;
}

.site-title {
    font-size: 2.5em;
    margin: 0;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 2px 2px 4px #000;
}

/* Navigation */
.main-navigation {
    background-color: rgba(35, 35, 35, 0.8);
    padding: 10px 0;
}

.main-navigation ul {
    list-style: none;
    padding: 0 20px;
    margin: 0;
    text-align: center;
}

.main-navigation ul li {
    display: inline-block;
    margin: 0 5px;
}

.main-navigation ul li a {
    color: #000;
    text-decoration: none;
    padding: 10px 15px;
    background-color: rgba(240, 230, 140, 0.8);
    border: 1px solid rgba(218, 165, 32, 0.8);
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
    text-shadow: none;
}

.main-navigation ul li a:hover {
    background-color: rgba(218, 165, 32, 0.8);
    color: #fff;
}

.main-navigation ul li a.live-draw-button {
    background-color: rgba(204, 0, 0, 0.8);
    color: #fff;
    border-color: rgba(128, 0, 0, 0.8);
}

.main-navigation ul li a.live-draw-button:hover {
    background-color: rgba(153, 0, 0, 0.8);
}

/* Main Content */
.site-main {
    padding: 20px;
}

.results-container {
    background-color: rgba(44, 44, 44, 0.1);
    /* 0.1 alpha = 90% transparan */
    color: #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* Hapus opacity jika ada */
}

.results-container h3 {
    margin-left: 1rem;
}

/* Jika ingin child elements tidak mewarisi transparansi, gunakan RGBA untuk elemen child */
.winning-results,
.historical-results,
.guarantee-banner,
.next-draw-notice {
    background-color: rgba(30, 30, 30, 0.9);
    /* Lebih solid untuk konten dalam */
}

.left-panel {
    flex: 1 1 400px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.right-panel {
    flex: 1.2 1 450px;
    min-width: 320px;
}

/* Winning Results */
.winning-results {
    text-align: center;
    flex-grow: 1;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0px;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
}

.results-logo {
    margin-top: 10px;
    height: 40px;
    margin-right: 0px;
    border: 0px solid rgba(255, 215, 0, 0.5);
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.8);
}

.winning-results h2 {
    font-size: 1.8em;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 4px #000;
}

.draw-info {
    font-size: 0.9em;
    color: #b0b0b0;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px #000;
}

.prize-tier {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
}

.prize-label {
    color: #cccccc;
    flex-basis: 40%;
    text-align: left;
    padding-left: 5%;
    text-shadow: 1px 1px 2px #000;
}

.prize-number {
    font-size: 1.6em;
    font-weight: 700;
    color: #ffd700;
    flex-basis: 50%;
    text-align: right;
    padding-right: 5%;
    text-shadow: 2px 2px 4px #000;
}

.prize-divider {
    border: 0;
    height: 1px;
    background-color: rgba(85, 85, 85, 0.5);
    margin: 10px 2%;
}

.additional-prizes {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding: 8px 0;
    text-align: left;
}

.prize-column {
    flex-basis: 45%;
}

.prize-column h3 {
    font-size: 1.2em;
    color: #ffd700;
    margin-bottom: 8px;
    text-align: center;
    text-shadow: 2px 2px 4px #000;
}

.prize-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prize-column ul li {
    font-size: 1em;
    color: #fff;
    padding: 4px 0;
    text-align: center;
    font-weight: 500;
    text-shadow: 1px 1px 2px #000;
}

.guarantee-banner {
    background-color: rgba(64, 64, 64, 0.8);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1em;
    text-shadow: 1px 1px 2px #000;
}

/* Right Panel */
.next-draw-notice {
    background-color: rgba(30, 30, 30, 0.8);
    color: #fff;
    padding: 10px 15px;
    text-align: center;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 0.9em;
    text-shadow: 1px 1px 2px #000;
}

.historical-results table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
    color: #d0d0d0;
    background-color: rgba(30, 30, 30, 0.8);
}

.historical-results th,
.historical-results td {
    border: 1px solid rgba(74, 74, 74, 0.5);
    padding: 6px 8px;
    text-align: center;
    vertical-align: middle;
    text-shadow: 1px 1px 2px #000;
}

.historical-results thead th {
    background-color: rgba(26, 26, 26, 0.8);
    color: #f0f0f0;
    font-weight: bold;
    padding: 8px;
}

.historical-results tbody tr:nth-child(even) {
    background-color: rgba(51, 51, 51, 0.8);
}

.historical-results tbody tr:nth-child(odd) {
    background-color: rgba(44, 44, 44, 0.8);
}

.historical-results td.prize-cell-historical {
    background-color: rgba(192, 149, 83, 0.8);
    color: #000000;
    font-weight: bold;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(67, 64, 64, 0.8);
    color: #f0f0f0;
    font-size: 0.9em;
    border-top: 3px solid rgba(255, 215, 0, 0.5);
    text-shadow: 1px 1px 2px #000;
}

/* Content Area Styles */
.content-area {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-area h1,
.content-area h2,
.content-area p {
    color: #ffffff;
    margin-bottom: 20px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.contact-info,
.contact-form {
    flex: 1 1 400px;
    background-color: #2C2C2C;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.contact-info h2,
.contact-form h2 {
    color: #ffd700;
    margin-top: 0;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 10px;
}

.contact-info p {
    color: #e0e0e0;
    margin: 15px 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 95%;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #1e1e1e;
    color: #fff;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: #ffd700;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #DAA520;
}

.error-message {
    background-color: #8B0000;
    color: #fff;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.success-message {
    background-color: #006400;
    color: #fff;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Full Width Panel */
.full-width-panel {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    background-color: rgba(30, 30, 30, 0.9);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-header-content {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .site-logo {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .site-title {
        font-size: 2em;
    }

    .main-navigation ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 10px;
    }

    .main-navigation ul li {
        margin: 5px;
        flex: 1 1 auto;
    }

    .main-navigation ul li a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
        font-size: 0.9em;
    }

    .results-container {
        flex-direction: column;
        padding: 15px;
    }

    .left-panel,
    .right-panel {
        flex-basis: auto;
        width: 100%;
        padding: 0;
    }

    .prize-tier,
    .additional-prizes {
        font-size: 1em;
    }

    .prize-number {
        font-size: 1.4em;
    }

    .prize-column h3 {
        font-size: 1.1em;
    }

    /* Table responsive styles */
    .historical-results {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .historical-results table {
        font-size: 0.8em;
        min-width: 600px;
        /* Minimum width to prevent column squishing */
        width: auto;
    }

    .historical-results th,
    .historical-results td {
        padding: 5px;
        white-space: nowrap;
        /* Prevent text wrapping */
    }

    /* Adjust column widths for day-specific tables */
    .full-width-panel .historical-results table {
        min-width: 700px;
        /* Wider for 7-column tables */
    }

    .full-width-panel .historical-results th:nth-child(1),
    .full-width-panel .historical-results td:nth-child(1) {
        width: 50px;
        /* No column */
    }

    .full-width-panel .historical-results th:nth-child(2),
    .full-width-panel .historical-results td:nth-child(2) {
        width: 80px;
        /* Day column */
    }

    .full-width-panel .historical-results th:nth-child(4),
    .full-width-panel .historical-results td:nth-child(4) {
        width: 80px;
        /* Draw column */
    }

    /* Prize columns */
    .full-width-panel .historical-results td.prize-cell-historical {
        min-width: 90px;
    }
}

/* Glass Effect (Uncomment if needed) */
/*
.results-container,
.site-header,
.site-footer {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
*/