body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-blue);
    color: var(--white);
    line-height: 1.6;
    scroll-behavior: smooth;
}

:root {
    --dark-blue: #0A1931;
    --medium-blue: #183152;
    --light-blue: #4770A8;
    --primary-light: #6DD5ED; /* A lighter, brighter blue for accents */
    --white: #F0F4F8;
    --grey-text: #B0B7C0;
    --warning-red: #E74C3C;
}

/* Global Text Colors */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-light);
    font-weight: 700;
}

p {
    color: var(--white);
}

a {
    color: var(--primary-light);
    text-decoration: none;
}

a:hover {
    color: var(--light-blue);
    text-decoration: none;
}

/* Custom Buttons */
.btn-primary-custom {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--dark-blue);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary-custom:hover, .btn-primary-custom:focus {
    background-color: var(--light-blue);
    border-color: var(--light-blue);
    color: var(--white);
    box-shadow: 0 0 15px rgba(109, 213, 237, 0.5);
    text-decoration: none;
}

.btn-secondary-custom {
    background-color: var(--medium-blue);
    border-color: var(--medium-blue);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary-custom:hover, .btn-secondary-custom:focus {
    background-color: var(--light-blue);
    border-color: var(--light-blue);
    color: var(--white);
    box-shadow: 0 0 15px rgba(71, 112, 168, 0.5);
    text-decoration: none;
}

/* Navbar */
.navbar {
    background-color: rgba(10, 25, 49, 0.95);
    backdrop-filter: blur(5px);
    transition: background-color 0.3s ease;
}

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

.navbar-brand span {
    color: var(--white);
}

.navbar-nav .nav-link {
    color: var(--white);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-light);
}

.navbar-toggler {
    border-color: var(--light-blue);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28109, 213, 237, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(10, 25, 49, 0.7), rgba(10, 25, 49, 0.7)), url('uploads/pics/underwater-social-gaming-bg.jpg') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    padding-top: 80px; /* Adjust for fixed navbar */
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--grey-text);
}

/* Sections General */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    color: var(--primary-light);
    display: block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--light-blue);
    border-radius: 2px;
}

/* About Section */
.about-section {
    background-color: var(--medium-blue);
    color: var(--white);
}

.about-section p {
    color: var(--white);
}

/* Games Section */
.games-section {
    background-color: var(--dark-blue);
}

.game-card {
    background-color: var(--medium-blue);
    border: 1px solid var(--light-blue);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--light-blue);
    transition: transform 0.3s ease;
}

.game-card a.game-link:hover img {
    transform: scale(1.03);
}

.game-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

.game-card .card-text {
    color: var(--grey-text);
    font-size: 0.95rem;
    flex-grow: 1;
}

.game-card .play-game-btn {
    align-self: flex-start;
    margin-top: auto;
}
@media screen and (width < 768px) {
    .game-card .play-game-btn {
    align-self: center;
    }
}

/* Game Modal */
.game-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: 1060;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.game-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(10, 25, 49, 0.8);
    color: var(--primary-light);
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1070;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.game-modal-close-btn:hover {
    background-color: var(--primary-light);
    color: var(--dark-blue);
}

.game-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #000;
}

/* How to Play Section */
.how-to-play-section {
    background-color: var(--medium-blue);
}

.accordion-item {
    background-color: var(--dark-blue);
    border: 1px solid var(--light-blue);
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-button {
    background-color: var(--dark-blue);
    color: var(--primary-light);
    font-weight: 600;
    font-size: 1.15rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--light-blue);
    text-align: left;
    transition: background-color 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-blue);
    color: var(--dark-blue);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-light);
}

.accordion-button::after {
    filter: brightness(0) invert(1);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236DD5ED'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(0);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230A1931'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    background-color: var(--dark-blue);
    color: var(--grey-text);
    padding: 1.5rem;
    border-top: 1px solid var(--light-blue);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--dark-blue);
}

.testimonial-card {
    background-color: var(--medium-blue);
    border: 1px solid var(--light-blue);
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.testimonial-text {
    font-style: italic;
    color: var(--white);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 0;
}

.testimonial-date {
    color: var(--grey-text);
    font-size: 0.85rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--medium-blue);
}

.contact-form {
    background-color: var(--dark-blue);
    border: 1px solid var(--light-blue);
    border-radius: 10px;
}

.contact-form .form-label {
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    background-color: var(--medium-blue);
    border: 1px solid var(--light-blue);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.contact-form .form-control::placeholder {
    color: var(--grey-text);
    opacity: 0.7;
}

.contact-form .form-control:focus {
    background-color: var(--medium-blue);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(109, 213, 237, 0.25);
    color: var(--white);
}

.contact-form .form-control.is-invalid {
    border-color: var(--warning-red);
}

.contact-form .invalid-feedback {
    color: var(--warning-red);
}

/* Responsible Gaming Disclaimer */
.responsible-gaming-disclaimer {
    background-color: var(--dark-blue);
    padding: 5rem 0;
}

.disclaimer-box {
    background-color: var(--warning-red);
    border: 2px solid #a0342a;
    border-radius: 15px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 3rem;
}

.disclaimer-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.3));
    z-index: 0;
}

.disclaimer-box > * {
    position: relative;
    z-index: 1;
}

.disclaimer-title {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.disclaimer-title i {
    font-size: 2.5rem;
    margin-right: 10px;
}

.disclaimer-box p {
    color: var(--white);
    margin-bottom: 1rem;
}

.disclaimer-box strong {
    color: var(--white);
}

.disclaimer-box a {
    color: var(--white);
    text-decoration: underline;
}

.disclaimer-box a:hover {
    color: var(--primary-light);
}

.support-info {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.support-title {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.support-title i {
    font-size: 1.8rem;
}

.important-note {
    font-size: 1.1rem;
    font-weight: 600;
}

.final-note {
    font-style: italic;
    font-size: 0.95rem;
    margin-top: 1.5rem;
}

/* Footer Section */
.footer-section {
    background-color: var(--medium-blue);
    color: var(--white);
}

.footer-heading {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 1.2rem;
}

.footer-link {
    color: var(--grey-text);
    transition: color 0.3s ease;
    padding: 0.2rem 0;
    display: inline-block;
}

.footer-link:hover {
    color: var(--primary-light);
}

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

.footer-section .navbar-brand span {
    color: var(--white);
}

.footer-logos {
    gap: 1.5rem;
}

.footer-logo-img {
    max-width: 180px;
    height: auto;
    display: block;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
    max-height: 80px;
}

.footer-logo-img:hover {
    filter: brightness(1.1);
}

.footer-logo-img-18 {
    max-width: 50px;
    height: auto;
    display: block;
    object-fit: contain;
    filter: saturate(1.5);
}

/* Age Verification Modal Specifics */
#ageVerificationModal .modal-content {
    background-color: var(--medium-blue);
    border-radius: 15px;
    overflow: hidden;
}

#ageVerificationModal .modal-header {
    background-color: var(--dark-blue);
    border-bottom: none;
}

#ageVerificationModal .modal-title {
    color: var(--primary-light);
    font-weight: 700;
}

#ageVerificationModal .modal-body p {
    color: var(--white);
    font-size: 1.1rem;
}

/* Utility for blocking scroll */
body.modal-open {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .navbar-collapse {
        background-color: rgba(10, 25, 49, 0.98);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 10px;
    }
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    .footer-logos {
        justify-content: center;
    }
    .disclaimer-box {
        padding: 2rem;
    }
    .disclaimer-title {
        font-size: 1.75rem;
    }
    .support-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .game-card img {
        height: 180px;
    }
    .game-card .card-title {
        font-size: 1.3rem;
    }
    .game-card .card-text {
        font-size: 0.85rem;
    }
    .testimonial-card {
        padding: 1.5rem;
    }
    .testimonial-text {
        font-size: 0.9rem;
    }
    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }
    .disclaimer-title {
        font-size: 1.5rem;
    }
    .disclaimer-title i {
        font-size: 2rem;
    }
    .support-title {
        font-size: 1.1rem;
    }
    .footer-logos {
        gap: 0.75rem;
    }
    .footer-logo-img {
        max-width: 100px;
    }
    .footer-logo-img-18 {
        max-width: 40px;
    }
}
/* Container padding for the terms box */
.termsCaveBox {
    padding: 40px 20px; /* Top/bottom and left/right padding for the content area */
}

/* Heading styles within .termsCaveBox */
.termsCaveBox h1 {
    font-size: 2em; /* Not too large, relative to base font size */
    margin-top: 2em; /* Spacing above the heading */
    margin-bottom: 0.8em; /* Spacing below the heading */
    font-weight: bold; /* Ensure headings are bold */
    line-height: 1.2; /* Tighter line height for headings */
}

.termsCaveBox h2 {
    font-size: 1.6em; /* Slightly smaller than h1 */
    margin-top: 1.8em;
    margin-bottom: 0.7em;
    font-weight: bold;
    line-height: 1.3;
}

.termsCaveBox h3 {
    font-size: 1.3em; /* Moderate size */
    margin-top: 1.5em;
    margin-bottom: 0.6em;
    font-weight: bold;
    line-height: 1.4;
}

.termsCaveBox h4 {
    font-size: 1.1em; /* Slightly larger than body text */
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    font-weight: bold;
    line-height: 1.5;
}

.termsCaveBox h5 {
    font-size: 1em; /* Base font size, but bold */
    margin-top: 1em;
    margin-bottom: 0.4em;
    font-weight: bold;
    line-height: 1.5;
}

/* Paragraph styles within .termsCaveBox */
.termsCaveBox p {
    font-size: 1em; /* Standard paragraph font size */
    margin-top: 0; /* No top margin by default, let headings/lists define it */
    margin-bottom: 1em; /* Spacing between paragraphs */
    line-height: 1.6; /* Good readability for body text */
}

/* Unordered list styles within .termsCaveBox */
.termsCaveBox ul {
    list-style-type: disc; /* Default bullet style */
    margin-top: 1em; /* Spacing above the list */
    margin-bottom: 1em; /* Spacing below the list */
    padding-left: 1.5em; /* Indentation for bullet points */
}

/* List item styles within .termsCaveBox */
.termsCaveBox li {
    margin-bottom: 0.5em; /* Spacing between list items */
    line-height: 1.6; /* Ensure readability for list item text */
}
