body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a1d;
    color: #f8f9fa;
    line-height: 1.6;
}

:root {
    --primary-color: #00bcd4; /* Teal/Cyan for highlights */
    --secondary-color: #6c757d; /* Gray */
    --bg-dark-graphite: #212529; /* Main background */
    --bg-dark-custom: #1a1a1d; /* Slightly darker for contrast */
    --bg-dark-secondary: #2c3034; /* For accordion bodies, etc. */
    --text-light: #f8f9fa;
    --text-light-muted-custom: #adb5bd; /* Custom muted text color */
    --warning-dark: #3a2e00; /* Darker yellow for disclaimer background */
    --danger-color: #dc3545;
}

.bg-dark-graphite {
    background-color: var(--bg-dark-graphite) !important;
}

.bg-dark-custom {
    background-color: var(--bg-dark-custom) !important;
}

.bg-dark-secondary {
    background-color: var(--bg-dark-secondary) !important;
}

.text-light-muted-custom {
    color: var(--text-light-muted-custom) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #00a0b2;
    border-color: #00a0b2;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-light);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.4);
}

.btn {
    text-decoration: none !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
}

.display-3, .display-5 {
    background: linear-gradient(90deg, var(--primary-color), #80d4eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.top-banner {
    background-color: #ffc107; /* Bright yellow */
    color: #343a40;
    font-weight: 600;
    font-size: 0.9rem;
}

.navbar-brand .logo-img {
    height: 40px;
    width: auto;
}

.navbar-brand .site-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 600;
    margin-left: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .navbar-brand .site-name {
        font-size: 1.5rem;
    }
    .navbar-nav .nav-link {
        margin-left: 0;
        text-align: center;
        padding: 10px 0;
    }
    .navbar-collapse {
        background-color: var(--bg-dark-graphite);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 100px;
}

.hero-section .dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

.hero-section .container {
    z-index: 1;
}

.hero-section .badge {
    font-size: 1rem;
    padding: 0.75em 1.2em;
    border-radius: 50px;
    background-color: var(--primary-color) !important;
    color: #000;
}

.hero-section .fa-2x {
    font-size: 2.5rem;
}

.hero-section .text-success {
    color: #28a745 !important;
}

.hero-section .text-info {
    color: #17a2b8 !important;
}

.hero-section .text-warning {
    color: #ffc107 !important;
}

@media (max-width: 767.98px) {
    .hero-section {
        text-align: center;
    }
    .hero-section .d-flex.justify-content-md-start {
        justify-content: center !important;
    }
}

/* Accordion Styling */
.accordion-item {
    border: 1px solid var(--primary-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.2);
}

.accordion-button {
    color: var(--text-light) !important;
    background-color: var(--bg-dark-graphite) !important;
    font-weight: 600;
    border: none;
    padding: 1rem 1.25rem;
    transition: background-color 0.3s ease;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color) !important;
    background-color: var(--bg-dark-secondary) !important;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    color: var(--text-light-muted-custom);
    background-color: var(--bg-dark-secondary) !important;
    padding: 1.25rem;
}

/* How To Play List */
.list-group-item {
    border: 1px solid var(--primary-color);
    background-color: var(--bg-dark-custom);
    color: var(--text-light);
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.2);
}

.list-group-numbered .list-group-item::before {
    color: var(--primary-color);
    font-weight: bold;
    display: none;
}

/* Game Cards */
.game-card {
    border: 1px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.game-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 188, 212, 0.3);
}

.game-card .card-img-top {
    width: 100%;
    height: 200px; /* Fixed height for uniformity */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .card-img-top {
    transform: scale(1.05);
}

.game-card .card-title {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.game-card .card-text {
    color: var(--text-light-muted-custom);
    font-size: 0.95rem;
}

.game-card .social-info .avatar {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

.game-card .play-game-btn {
    width: 100%;
    border-radius: 0.25rem;
}

.game-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Game Modal */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.game-modal.show {
    opacity: 1;
    visibility: visible;
}

.game-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-modal .btn-close-game {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #000;
    cursor: pointer;
    z-index: 10001;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.game-modal .btn-close-game:hover {
    background-color: #00a0b2;
    transform: rotate(90deg);
}

/* Leaderboards */
.leaderboard-table {
    background-color: var(--bg-dark-custom);
    border: 1px solid var(--primary-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.leaderboard-table thead th {
    background-color: var(--bg-dark-graphite);
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 700;
}

.leaderboard-table tbody tr {
    transition: background-color 0.3s ease;
}

.leaderboard-table tbody tr:hover {
    background-color: var(--bg-dark-secondary);
}

.leaderboard-table tbody td {
    color: var(--text-light);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-table .current-user-row {
    background-color: rgba(0, 188, 212, 0.2) !important;
    font-weight: 600;
    color: var(--primary-color) !important;
}

.leaderboard-table .current-user-row td {
    color: var(--primary-color) !important;
}

/* Achievements */
.achievement-card {
    border: 1px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 188, 212, 0.3);
}

.achievement-card .card-body {
    padding: 2rem 1.5rem;
}

.achievement-card .fa-3x {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.achievement-card .text-warning {
    color: #ffc107 !important;
}

.achievement-card .text-info {
    color: #17a2b8 !important;
}

.achievement-card .text-danger {
    color: #dc3545 !important;
}

.achievement-card .text-secondary {
    color: #6c757d !important;
}

.achievement-card .text-success {
    color: #28a745 !important;
}

.achievement-card .badge {
    font-size: 0.85rem;
    padding: 0.5em 1em;
    border-radius: 50px;
    margin-top: 1rem;
}

/* Contact Form */
.form-control {
    background-color: var(--bg-dark-graphite) !important;
    color: var(--text-light) !important;
    border: 1px solid var(--text-light-muted-custom) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control::placeholder {
    color: var(--text-light-muted-custom);
    opacity: 0.7;
}

.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 188, 212, 0.25) !important;
    background-color: var(--bg-dark-graphite) !important;
    color: var(--text-light) !important;
}

.form-label {
    color: var(--text-light);
    font-weight: 600;
}

.invalid-feedback {
    color: var(--danger-color);
}

/* Disclaimer Block */
.disclaimer-block {
    background-color: var(--warning-dark);
    padding: 3rem 0;
    border-top: 5px solid var(--danger-color);
    border-bottom: 5px solid var(--danger-color);
    margin-top: 50px;
    margin-bottom: 50px;
}

.disclaimer-content {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.disclaimer-content h3 {
    color: var(--danger-color);
    font-weight: 700;
    display: flex;
    align-items: center;
}

.disclaimer-content ul {
    list-style-type: disc;
    padding-left: 20px;
    color: var(--text-light);
}

.disclaimer-content ul li a {
    color: var(--text-light);
    text-decoration: underline;
}

.disclaimer-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .logo-img {
    height: 35px;
}

footer .site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

footer .text-light-muted-custom {
    color: var(--text-light-muted-custom) !important;
    transition: color 0.3s ease;
}

footer .text-light-muted-custom:hover {
    color: var(--primary-color) !important;
}

.footer-logos {
    gap: 15px;
}

.footer-logo {
    max-width: 120px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-logo-18plus {
    max-width: 50px;
}

@media (max-width: 767.98px) {
    footer .col-md-4 {
        text-align: center !important;
    }
    footer .navbar-brand {
        justify-content: center !important;
    }
    footer .list-unstyled {
        justify-content: center !important;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    .footer-logos {
        justify-content: center !important;
    }
}

/* Sticky Play Now Button */
.sticky-play-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9000;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
    text-decoration: none !important;
}

.sticky-play-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

/* Age Verification Modal */
.age-verification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.modal-content-custom {
    max-width: 500px;
    width: 90%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.5);
}

.modal-content-custom h2 {
    color: var(--primary-color);
}

.modal-content-custom p {
    color: var(--text-light);
}
/*
 * Base styles for the .termsCaveBox container.
 * Provides top margin and horizontal padding for content.
 */
.termsCaveBox {
    margin-top: 40px; /* Top margin for the container */
    padding-left: 20px; /* Left padding for content */
    padding-right: 20px; /* Right padding for content */
}

/*
 * Heading styles for h1-h5 within .termsCaveBox.
 * Font sizes are set to be distinct but not excessively large,
 * using 'rem' for better scalability and 'em' for vertical margins.
 */
.termsCaveBox h1 {
    font-size: 2.25rem; /* ~36px, moderately large for a main heading */
    line-height: 1.2; /* Tighter line height for headings */
    margin-top: 1.8em; /* Top margin relative to heading's font size */
    margin-bottom: 0.8em; /* Bottom margin relative to heading's font size */
    font-weight: 700; /* Bold font weight */
}

.termsCaveBox h2 {
    font-size: 1.875rem; /* ~30px */
    line-height: 1.2;
    margin-top: 1.6em;
    margin-bottom: 0.7em;
    font-weight: 600;
}

.termsCaveBox h3 {
    font-size: 1.5rem; /* ~24px */
    line-height: 1.2;
    margin-top: 1.4em;
    margin-bottom: 0.6em;
    font-weight: 600;
}

.termsCaveBox h4 {
    font-size: 1.25rem; /* ~20px */
    line-height: 1.3;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.termsCaveBox h5 {
    font-size: 1.125rem; /* ~18px */
    line-height: 1.4;
    margin-top: 1em;
    margin-bottom: 0.4em;
    font-weight: 600;
}

/*
 * Paragraph styles within .termsCaveBox.
 * Sets a standard readable font size, line height, and vertical spacing.
 */
.termsCaveBox p {
    font-size: 1rem; /* Base font size, typically 16px */
    line-height: 1.6; /* Optimal line height for readability */
    margin-top: 1em; /* Top margin for paragraphs */
    margin-bottom: 1em; /* Bottom margin for paragraphs */
}

/*
 * Unordered list styles within .termsCaveBox.
 * Provides vertical spacing and standard left padding for bullet points.
 */
.termsCaveBox ul {
    margin-top: 1em; /* Top margin for the list */
    margin-bottom: 1em; /* Bottom margin for the list */
    padding-left: 1.5em; /* Left padding for bullet points */
    list-style-type: disc; /* Default bullet style */
}

/*
 * List item styles within .termsCaveBox.
 * Adds vertical spacing between list items for better readability.
 */
.termsCaveBox li {
    margin-bottom: 0.5em; /* Spacing between list items */
    line-height: 1.5; /* Line height for list item text */
}
iframe {
    width: 100%;
    height: 100vh;
}