/* General Styles */
:root {
    --primary-bg: #1A252F;
    --secondary-bg: #2C3E50;
    --accent-color: #E74C3C;
    --text-color: #ECF0F1;
    --light-text: #BDC3C7;
    --link-color: #3498DB;
    --border-color: #34495E;
    --warning-color: #F39C12;
    --error-color: #E74C3C;
    --success-color: #2ECC71;
    --dark-overlay: rgba(0, 0, 0, 0.8);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

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

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, .btn {
    cursor: pointer;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-decoration: none; 
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.btn-primary:hover {
    background-color: #C0392B;
}

.btn-secondary {
    background-color: var(--secondary-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #34495E;
}

/* Header Section */
.header-section {
    background-color: var(--secondary-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 40px;
    margin-right: 10px;
}

.site-name {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-color);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2em;
    color: var(--light-text);
}

/* About Platform Section */
.about-platform-section {
    padding: 80px 0;
    background-color: var(--primary-bg);
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 2;
    font-size: 1.1em;
    color: var(--light-text);
}

.about-image-container {
    flex: 1;
    min-width: 300px;
}

.about-image {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Game Selection Section */
.game-selection-section {
    padding: 80px 0;
    background-color: var(--secondary-bg);
}

.game-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card .game-link {
    display: block;
    color: inherit;
    text-decoration: none;
    flex-grow: 1;
}

.game-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.game-title {
    font-size: 1.5em;
    margin: 15px 10px 5px;
    color: var(--text-color);
}

.game-description {
    font-size: 0.95em;
    color: var(--light-text);
    padding: 0 15px 15px;
    flex-grow: 1;
}

.btn-play {
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    background-color: var(--accent-color);
    color: var(--text-color);
    font-size: 1.1em;
}

.btn-play:hover {
    background-color: #C0392B;
}

/* How to Play Section */
.how-to-play-section {
    padding: 80px 0;
    background-color: var(--primary-bg);
    text-align: center;
}

.responsible-play-list {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 30px auto 0;
    font-size: 1.1em;
    color: var(--light-text);
}

.responsible-play-list li {
    background-color: var(--secondary-bg);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: left;
}

/* Tournaments Section */
.tournaments-section {
    padding: 80px 0;
    background-color: var(--secondary-bg);
}

.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.leader-card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.leader-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--accent-color);
}

.leader-name {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.leader-score {
    font-size: 1em;
    color: var(--light-text);
}

/* Quests Section */
.quests-section {
    padding: 80px 0;
    background-color: var(--primary-bg);
}

.quest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.quest-card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quest-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.quest-description {
    font-size: 1em;
    color: var(--light-text);
}

/* Testimonials Social Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--secondary-bg);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2,  1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 20px;
    flex-grow: 1;
}

.player-info {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--link-color);
}

.player-name {
    font-weight: 600;
    color: var(--text-color);
}

/* FAQ Social Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--primary-bg);
}

.faq-items {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1em;
}

.faq-question h3 {
    margin: 0;
    flex-grow: 1;
}

.faq-question .expand-icon {
    font-size: 1.5em;
    transition: transform 0.1s ease;
}

.faq-question.active .expand-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px 20px;
    color: var(--light-text);
    display: none;
    font-size: 1em;
}

.faq-answer p {
    margin: 0;
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background-color: var(--secondary-bg);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--secondary-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--primary-bg);
    color: var(--text-color);
    font-size: 1em;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--light-text);
    opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--link-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}

.form-group textarea {
    resize: vertical;
}

.error-message {
    color: var(--error-color);
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    background-color: var(--accent-color);
    color: var(--text-color);
}

.btn-submit:hover {
    background-color: #C0392B;
}

/* Disclaimer Block */
.disclaimer-block {
    background-color: #202D3A; /* A slightly different dark shade */
    padding: 60px 0;
    border-top: 3px solid var(--warning-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.disclaimer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--secondary-bg);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    position: relative;
}

.disclaimer-icon {
    font-size: 3em;
    color: var(--warning-color);
    margin-bottom: 15px;
    display: block;
}

.disclaimer-content h3 {
    color: var(--warning-color);
    font-size: 1.8em;
    margin-bottom: 20px;
}

.disclaimer-content p {
    color: var(--light-text);
    margin-bottom: 15px;
    font-size: 1em;
}

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

.disclaimer-content a:hover {
    color: #5DADE2;
}

/* Footer Section */
.footer-section {
    background-color: var(--secondary-bg);
    padding: 40px 0 20px;
    text-align: center;
    color: var(--light-text);
}

.footer-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.footer-top .logo-container .site-logo {
    height: 35px;
}

.footer-top .logo-container .site-name {
    font-size: 1.5em;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-level {
    font-weight: 600;
    color: var(--text-color);
}

.achievements-cta {
    background-color: var(--link-color);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.achievements-cta:hover {
    background-color: #287BBF;
    text-decoration: none;
}

.footer-links {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--light-text);
    font-size: 0.95em;
}

.footer-links a:hover {
    color: var(--link-color);
    text-decoration: none;
}

.footer-organizations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.footer-organizations img {
    max-width: 120px;
    height: auto;
    object-fit: contain;
    margin: 0;
    padding: 0;
}

.footer-organizations .age-icon {
    font-size: 4.5em;
    color: var(--accent-color);
    width: auto;
    height: auto;
    display: block;
}

.copyright {
    font-size: 0.85em;
    color: var(--light-text);
    margin-top: 20px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-overlay);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--secondary-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    max-width: 500px;
    width: 90%;
    color: var(--text-color);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--light-text);
    font-size: 2em;
    cursor: pointer;
}

.close-button:hover {
    color: var(--accent-color);
}

/* Age Verification Modal Specifics */
.age-verification-modal .modal-content {
    text-align: center;
    padding: 40px;
}

.age-verification-modal h2 {
    color: var(--accent-color);
    font-size: 2em;
    margin-bottom: 15px;
}

.age-verification-modal p {
    font-size: 1.1em;
    margin-bottom: 25px;
}

.age-verification-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.age-verification-buttons .btn {
    min-width: 120px;
}

.warning-icon {
    font-size: 4em;
    color: var(--warning-color);
    margin-bottom: 20px;
}

/* Game Play Modal Specifics */
.game-play-modal {
    background-color: rgba(0, 0, 0, 0.95);
}

.game-play-modal .modal-content {
    max-width: 100vw;
    max-height: 100vh;
    width: 100%;
    height: 100%;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-play-modal .close-button {
    z-index: 1001;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 5px;
    color: var(--text-color);
}

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

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-bg);
    color: var(--text-color);
    padding: 15px 20px;
    text-align: center;
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.95em;
}

.cookie-banner a {
    color: var(--link-color);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
}

.cookie-banner .btn {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* Cookie Config Modal */
.cookie-category {
    margin-bottom: 15px;
    padding: 15px;
    background-color: var(--primary-bg);
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.cookie-category input[type="checkbox"] {
    margin-right: 10px;
}

.cookie-category label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1em;
}

.cookie-category p.cookie-description {
    font-size: 0.9em;
    color: var(--light-text);
    margin-top: 5px;
    margin-left: 25px;
}

.cookie-config-modal .btn-primary {
    margin-top: 20px;
    width: 100%;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8em;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text, .about-image-container {
        flex: none;
        width: 100%;
    }

    .game-selection-grid, .leaderboard-grid, .quest-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .testimonial-grid {
        grid-template-columns: repeat(1,  1fr);
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
    }

    .profile-info {
        flex-direction: column;
        gap: 10px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2em;
    }

    .hero-section {
        height: 450px;
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .game-selection-grid, .leaderboard-grid, .quest-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .header-section .site-name {
        font-size: 1.5em;
    }

    .footer-organizations img {
        max-width: 100px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .cookie-banner p {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.8em;
    }

    .hero-section {
        height: 350px;
    }

    .hero-content h1 {
        font-size: 1.8em;
    }

    .hero-content p {
        font-size: 0.9em;
    }

    .header-section .site-logo {
        height: 30px;
    }

    .header-section .site-name {
        font-size: 1.3em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .age-verification-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .game-card .btn-play {
        font-size: 1em;
    }

    .disclaimer-content {
        padding: 20px;
    }

    .disclaimer-content h3 {
        font-size: 1.5em;
    }

    .footer-organizations {
        gap: 15px;
    }
}
.termsCaveBox {
    /* General padding for the content box, top and sides */
    padding: 30px 20px;
}

.termsCaveBox h1 {
    /* Main heading style, moderate size */
    font-size: 28px;
    line-height: 1.2;
    margin-top: 2em; /* Space above the heading */
    margin-bottom: 0.8em; /* Space below the heading */
    font-weight: bold;
}

.termsCaveBox h2 {
    /* Secondary heading style */
    font-size: 24px;
    line-height: 1.3;
    margin-top: 1.8em;
    margin-bottom: 0.7em;
    font-weight: bold;
}

.termsCaveBox h3 {
    /* Tertiary heading style */
    font-size: 20px;
    line-height: 1.4;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    font-weight: bold;
}

.termsCaveBox h4 {
    /* Quaternary heading style */
    font-size: 18px;
    line-height: 1.5;
    margin-top: 1.4em;
    margin-bottom: 0.5em;
    font-weight: bold;
}

.termsCaveBox h5 {
    /* Fifth level heading style, similar to paragraph but bold */
    font-size: 16px;
    line-height: 1.5;
    margin-top: 1.2em;
    margin-bottom: 0.4em;
    font-weight: bold;
}

.termsCaveBox p {
    /* Basic paragraph styling for readability */
    font-size: 16px; /* Default paragraph font size */
    line-height: 1.6; /* Improved line spacing */
    margin-top: 0; /* No top margin by default */
    margin-bottom: 1em; /* Space between paragraphs */
}

.termsCaveBox ul {
    /* Unordered list styling */
    list-style-type: disc; /* Default disc bullets */
    margin-top: 1em; /* Space above the list */
    margin-bottom: 1em; /* Space below the list */
    padding-left: 25px; /* Indentation for bullet points */
}

.termsCaveBox li {
    /* List item styling */
    line-height: 1.6; /* Consistent line height with paragraphs */
    margin-bottom: 0.5em; /* Space between list items */
}
