body {
    font-family: 'Poppins', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: #333;
    background-color: #f0f8ff; /* Light blue background */
    scroll-behavior: smooth;
}

:root {
    --primary-color: #66b3ff; /* A pleasant light blue */
    --secondary-color: #87ceeb; /* Sky blue */
    --dark-blue: #003366;
    --light-grey: #e0e0e0;
    --text-color: #333;
    --white-color: #ffffff;
    --dark-bg-color: #002244;
    --warning-color: #dc3545;
    --disclaimer-bg: #ffe0b2; /* Light orange for warning */
    --disclaimer-border: #ff9800;
    --disclaimer-text: #333;
}

/* General Styles */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-blue);
}

h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 28px;
    font-weight: 600;
    text-decoration: none; /* Remove underline */
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    color: var(--white-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white-color);
    padding: 12px 28px;
    font-weight: 600;
    text-decoration: none; /* Remove underline */
}

.btn-secondary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    color: var(--white-color);
}

.icon-lg {
    font-size: 3rem;
    color: var(--primary-color);
}

.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
}

.rounded {
    border-radius: .25rem!important;
}

/* Navbar */
.navbar {
    background-color: var(--dark-bg-color);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar-brand {
    display: flex;
    align-items: center;
    color: var(--white-color);
    font-weight: 700;
    font-size: 1.8rem;
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--primary-color);
}

.navbar-brand .logo-img {
    height: 40px;
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: var(--white-color);
    font-weight: 600;
    margin-right: 15px;
    transition: color 0s; /* No animation */
}

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

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
}

.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%28255, 255, 255, 0.55%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(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('uploads/content/winter-hero-background.jpg') no-repeat center center/cover;
    min-height: 100vh;
    padding-top: 80px; /* Adjust for fixed navbar */
}

.hero-section h1 {
    color: var(--white-color);
}

.hero-section p {
    color: var(--light-grey);
}

.hero-game-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-game-card h5 {
    color: var(--white-color);
    font-weight: 400;
    margin-top: 10px;
}

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

.how-to-card {
    background-color: #f9f9f9;
    border: 1px solid var(--light-grey);
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Game Selection Section */
.game-selection-section {
    background-color: #e6f7ff; /* Lighter blue */
}

.game-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--white-color);
    display: flex;
    flex-direction: column;
}

.game-card .card-img-top {
    height: 200px; /* Fixed height for images */
    object-fit: cover;
    width: 100%;
}

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

.game-card .card-title {
    font-size: 1.4rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.game-card .card-text {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 15px;
}

.game-card .play-game-btn {
    width: 100%;
    text-decoration: none; /* Remove underline */
}

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

/* Leaderboards Section */
.leaderboards-section {
    background-color: var(--white-color);
}

.leaderboard-table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--light-grey);
    background-color: var(--white-color);
}

.leaderboard-table-container table {
    margin-bottom: 0;
}

.leaderboard-table-container thead th {
    background-color: var(--dark-blue);
    color: var(--white-color);
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 15px 10px;
}

.leaderboard-table-container tbody tr {
    background-color: var(--white-color);
}

.leaderboard-table-container tbody tr:nth-of-type(odd) {
    background-color: #f8f8f8;
}

.leaderboard-table-container tbody tr:hover {
    background-color: #eaf7ff; /* Light blue on hover */
}

.current-user-row {
    background-color: #d1ecf1 !important; /* Highlight current user */
    font-weight: 600;
    color: var(--dark-blue);
    position: sticky;
    top: 50px; /* Adjust if header is taller */
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
@media screen and (width < 441px) {
    .current-user-row {
        top: 77px; /* Adjust if header is taller */
    }
}

/* FAQ Social Section */
.faq-social-section {
    background-color: #e6f7ff;
}

.accordion-item {
    border: 1px solid var(--light-grey);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header button {
    background-color: var(--white-color);
    color: var(--dark-blue);
    font-weight: 600;
    padding: 15px 20px;
    font-size: 1.1rem;
    text-decoration: none; /* Remove underline */
}

.accordion-header button:hover {
    background-color: #f0f8ff;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: #f0f8ff;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

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

.accordion-body {
    background-color: var(--white-color);
    padding: 20px;
    color: var(--text-color);
}

/* Testimonials Social Section */
.testimonials-social-section {
    background-color: var(--white-color);
}

.testimonial-card {
    border: 1px solid var(--light-grey);
    border-radius: 10px;
    background-color: #f9f9f9;
    padding: 20px;
    height: 100%; /* Ensure equal height */
}

.avatar-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-card .card-title {
    color: var(--dark-blue);
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.star-rating i {
    color: #ffc107; /* Gold stars */
    font-size: 1.1rem;
}

.testimonial-card .card-text {
    font-style: italic;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Contact Form Section */
.contact-form-section {
    background-color: #e6f7ff;
}

.contact-form-section .card {
    border: none;
    border-radius: 10px;
}

.contact-form-section .form-label {
    font-weight: 600;
    color: var(--dark-blue);
}

.contact-form-section .form-control {
    border-radius: 5px;
    border: 1px solid var(--light-grey);
}

.contact-form-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(102, 179, 255, 0.25);
}

/* Disclaimer Block */
.disclaimer-section {
    background-color: #f0f8ff;
    /* padding-bottom: 0 !important; */
}

.disclaimer-content {
    background-color: var(--disclaimer-bg);
    border: 2px solid var(--disclaimer-border);
    border-radius: 10px;
    padding: 30px;
    color: var(--disclaimer-text);
    text-align: center;
}

.disclaimer-title {
    color: var(--warning-color);
    font-weight: 700;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.disclaimer-title i {
    font-size: 2.2rem;
    color: var(--warning-color);
}

.disclaimer-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--disclaimer-text);
}

.disclaimer-content a {
    color: var(--dark-blue);
    font-weight: 600;
    text-decoration: underline;
}

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

/* Footer */
.footer-section {
    background-color: var(--dark-bg-color);
    color: var(--white-color);
    padding-top: 40px;
    padding-bottom: 20px;
    font-size: 0.9rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    color: var(--white-color);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}

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

.footer-brand .logo-img {
    height: 35px;
    margin-right: 10px;
}

.footer-heading {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-link {
    color: var(--light-grey);
    text-decoration: none;
    transition: color 0s;
}

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

.footer-logos {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
}

.footer-org-logo {
    max-width: 120px;
    height: auto;
    filter: brightness(0.9) contrast(1.1); /* Slight adjustment for better visibility on dark background */
    display: block;
}

.footer-age-icon {
    max-width: 60px;
    height: auto;
    display: block;
}

/* 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: 1050;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0s; /* No animation */
}

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

.game-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--dark-blue);
    cursor: pointer;
    z-index: 1060;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-decoration: none; /* Remove underline */
}

.close-modal-btn:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

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

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

.age-verification-content {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    text-align: center;
}

.age-verification-content h3 {
    color: var(--dark-blue);
    font-size: 1.8rem;
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-section {
        min-height: 80vh;
    }

    .navbar-brand .logo-text {
        font-size: 1.5rem;
    }

    .navbar-brand .logo-img {
        height: 30px;
    }

    .navbar-nav .nav-link {
        margin-right: 0;
        text-align: center;
    }

    .hero-game-card {
        padding: 10px;
    }

    .hero-game-card h5 {
        font-size: 1rem;
    }

    .game-card .card-img-top {
        height: 180px;
    }

    .footer-logos {
        /* flex-direction: column; */
        gap: 15px;
    }

    .footer-org-logo, .footer-age-icon {
        max-width: 100px;
    }

    .disclaimer-content {
        padding: 20px;
    }

    .disclaimer-title {
        font-size: 1.5rem;
    }

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

    .disclaimer-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-section p {
        font-size: 0.9rem;
    }

    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-game-card {
        padding: 8px;
    }

    .hero-game-card h5 {
        font-size: 0.9rem;
    }

    .game-card .card-img-top {
        height: 150px;
    }

    .game-card .card-title {
        font-size: 1.2rem;
    }

    .game-card .card-text {
        font-size: 0.85rem;
    }

    .testimonial-card .card-title {
        font-size: 1.1rem;
    }

    .testimonial-card .card-text {
        font-size: 0.85rem;
    }

    .age-verification-content {
        padding: 30px 20px;
    }

    .age-verification-content h3 {
        font-size: 1.5rem;
    }
}
/* Container styles for .rightsCloudWrap */
.rightsCloudWrap {
    margin-top: 40px; /* Top margin for the container */
    margin-left: auto; /* Center the container horizontally */
    margin-right: auto; /* Center the container horizontally */
    max-width: 1200px; /* Limit the maximum width of the content area */
    padding-left: 20px; /* Internal padding for content on the left */
    padding-right: 20px; /* Internal padding for content on the right */
}

/* Heading 1 styles */
.rightsCloudWrap h1 {
    font-size: 2.2em; /* Moderate font size for H1 */
    line-height: 1.2; /* Good line height for readability */
    margin-top: 1.5em; /* Space above H1 */
    margin-bottom: 0.8em; /* Space below H1 */
    font-weight: 700; /* Bold font weight */
    color: #333; /* Darker text color */
}

/* Heading 2 styles */
.rightsCloudWrap h2 {
    font-size: 1.8em; /* Moderate font size for H2 */
    line-height: 1.3;
    margin-top: 1.4em;
    margin-bottom: 0.7em;
    font-weight: 600;
    color: #333;
}

/* Heading 3 styles */
.rightsCloudWrap h3 {
    font-size: 1.5em; /* Moderate font size for H3 */
    line-height: 1.4;
    margin-top: 1.3em;
    margin-bottom: 0.6em;
    font-weight: 600;
    color: #333;
}

/* Heading 4 styles */
.rightsCloudWrap h4 {
    font-size: 1.2em; /* Moderate font size for H4 */
    line-height: 1.5;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    font-weight: 500;
    color: #333;
}

/* Heading 5 styles */
.rightsCloudWrap h5 {
    font-size: 1.1em; /* Moderate font size for H5 */
    line-height: 1.6;
    margin-top: 1.1em;
    margin-bottom: 0.4em;
    font-weight: 500;
    color: #333;
}

/* Paragraph styles */
.rightsCloudWrap p {
    font-size: 1em; /* Standard paragraph font size */
    line-height: 1.7; /* Generous line height for readability */
    margin-top: 0; /* No top margin if preceded by another block element */
    margin-bottom: 1em; /* Space below paragraphs */
    color: #555; /* Slightly lighter text color for body */
}

/* Unordered list styles */
.rightsCloudWrap ul {
    list-style: disc; /* Default disc bullets */
    margin-top: 1em; /* Space above the list */
    margin-bottom: 1em; /* Space below the list */
    padding-left: 25px; /* Indent for bullet points */
    color: #555;
}

/* List item styles */
.rightsCloudWrap li {
    font-size: 1em; /* Standard list item font size */
    line-height: 1.7; /* Generous line height for readability */
    margin-bottom: 0.5em; /* Space between list items */
}

/* Remove bottom margin for the last list item to avoid excessive space */
.rightsCloudWrap li:last-child {
    margin-bottom: 0;
}
