:root {
    --dark-green: #1A3A2C;
    --graphite: #2C2C2C;
    --yellow-orange: #FFD700;
    --yellow-orange-light: #FFE873;
    --warning-dark: #3A3A3A; /* A darker shade for the disclaimer block background */
    --text-light: #F8F9FA;
    --text-muted: #ADB5BD;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--graphite);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll due to potential overflows */
}

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

/* Custom Buttons */
.btn-yellow-orange-custom {
    background-color: var(--yellow-orange);
    color: var(--graphite);
    border: 1px solid var(--yellow-orange);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-yellow-orange-custom:hover {
    background-color: var(--yellow-orange-light);
    color: var(--graphite);
    border-color: var(--yellow-orange-light);
}

.btn-outline-light {
    border-color: var(--text-light);
    color: var(--text-light);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--text-light);
    color: var(--graphite);
    border-color: var(--text-light);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh; /* Full viewport height */
    background: url('pictures/uploads/header.webp') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}

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

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

.hero-section .logo-hero {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.7)); /* Subtle glow for logo */
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p.lead {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styling */
section {
    padding: 80px 0;
}

section:nth-of-type(odd) {
    background-color: var(--graphite);
}

section:nth-of-type(even) {
    background-color: var(--dark-green);
}

/* About Us Section */
#about-us img {
    border: 3px solid var(--yellow-orange);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Featured Games Section */
.game-card {
    border: 1px solid var(--dark-green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.game-card .game-thumbnail {
    border: 1px solid var(--yellow-orange);
    object-fit: cover;
    width: 100%;
    height: 200px; /* Fixed height for thumbnails */
}

.game-card h3 {
    font-size: 1.5rem;
}

.game-card ul li {
    margin-bottom: 5px;
}

/* Game Iframe Modal */
#gameIframeModal .modal-dialog {
    max-width: 90vw; /* Adjust width for larger screens */
    width: 100%;
}

#gameIframeModal .modal-content {
    background-color: var(--graphite);
    border: 2px solid var(--yellow-orange);
}

#gameIframeModal .modal-header {
    background-color: var(--dark-green);
    border-bottom: 1px solid var(--yellow-orange);
}

#gameIframeModal .modal-title {
    color: var(--yellow-orange);
}

#gameIframeModal .btn-close-white {
    filter: invert(1) brightness(1.5);
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
    height: 0;
    overflow: hidden;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Why Choose Us Section */
.feature-box {
    background-color: var(--dark-green);
    border: 1px solid var(--yellow-orange);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 215, 0, 0.3);
}

.feature-box i {
    color: var(--yellow-orange);
}

/* Community / Call to Action Section */
#community-cta .social-icons a {
    color: var(--text-light);
    transition: color 0.3s ease, transform 0.3s ease;
}

#community-cta .social-icons a:hover {
    color: var(--yellow-orange);
    transform: scale(1.1);
}

/* Important Disclaimer Block */
#important-disclaimer {
    background-color: var(--warning-dark);
    color: var(--text-light);
    border-top: 5px solid var(--yellow-orange);
    border-bottom: 5px solid var(--yellow-orange);
    padding: 60px 0;
}

#important-disclaimer .bi-exclamation-triangle-fill {
    color: var(--yellow-orange);
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.7));
}

#important-disclaimer h2, #important-disclaimer h3 {
    color: var(--yellow-orange);
}

/* Footer */
.footer {
    background-color: var(--dark-green);
    color: var(--text-light);
    padding-top: 40px;
    padding-bottom: 20px;
}

.footer .logo-footer {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--yellow-orange);
}

.footer-logos {
    gap: 20px; /* Spacing between logos */
}

.footer-partner-logo {
    max-width: 120px; /* Adjusted to fit within 100-150px range, allowing for more logos if needed */
    height: auto;
    filter: brightness(1.1); /* Keep colors vibrant, slight brightness for visibility */
}

.footer-partner-logo.no-link-logo {
    cursor: default;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1050; /* Above modals */
    display: none; /* Hidden by default */
    border-top: 3px solid var(--yellow-orange);
    background: #9C27B0;
}

h5#cookieCustomizationModalLabel {
    color: #f00;
}

.modal-body label.form-check-label {
    color: #000;
}

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

.cookie-banner a:hover {
    color: var(--yellow-orange-light);
}

/* Age Verification Modal */
#ageVerificationModal .modal-content {
    border: 2px solid var(--yellow-orange);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

#ageVerificationModal .modal-header, #ageVerificationModal .modal-body {
    background-color: var(--graphite);
}

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

a.btn-play.game-thumbnail {
    height: auto;
    background: #FFEB3B;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    font-size: 20px;
    display: block;
    margin: 20px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
        padding: 1rem;
    }

    .hero-section .logo-hero {
        max-width: 180px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

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

    section {
        padding: 60px 0;
    }

    .game-card .game-thumbnail {
        height: 180px;
    }

    #important-disclaimer {
        padding: 40px 0;
    }

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

    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
    }
    .cookie-banner .mb-0.me-md-3 {
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 90vh;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p.lead {
        font-size: 1rem;
    }
    .footer-links a {
        display: block;
        margin: 5px 0;
    }
    .footer-links span {
        display: none;
    }
    .footer-logos {
        gap: 10px;
    }
    .footer-partner-logo {
        max-width: 90px;
    }
}
/* Styles for the main content wrapper */
.rightsCloudWrap {
    padding-top: 60px; /* Top padding for the content section */
    padding-bottom: 60px; /* Bottom padding for the content section */
    padding-left: 20px; /* Left padding for the content section */
    padding-right: 20px; /* Right padding for the content section */
    max-width: 960px; /* Max width for readability of long text */
    margin-left: auto; /* Center the wrapper */
    margin-right: auto; /* Center the wrapper */
    color: var(--text-light); /* Ensure text color is light for readability on dark backgrounds */
}

/* Heading 1 styles */
.rightsCloudWrap h1 {
    font-size: 2.2rem; /* Moderate font size for main section titles */
    margin-top: 1.5em; /* Space above the heading */
    margin-bottom: 0.8em; /* Space below the heading */
    line-height: 1.2; /* Line height for readability */
    color: var(--yellow-orange); /* Highlight headings with accent color */
}

/* Heading 2 styles */
.rightsCloudWrap h2 {
    font-size: 1.8rem; /* Slightly smaller than h1 */
    margin-top: 1.4em;
    margin-bottom: 0.7em;
    line-height: 1.3;
    color: var(--yellow-orange-light); /* Slightly lighter accent for sub-headings */
}

/* Heading 3 styles */
.rightsCloudWrap h3 {
    font-size: 1.5rem; /* Moderate size for sub-sub-headings */
    margin-top: 1.3em;
    margin-bottom: 0.6em;
    line-height: 1.4;
    color: var(--text-light); /* Default text color for less prominent headings */
}

/* Heading 4 styles */
.rightsCloudWrap h4 {
    font-size: 1.2rem; /* Smaller heading for minor divisions */
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    line-height: 1.5;
    color: var(--text-light);
}

/* Heading 5 styles */
.rightsCloudWrap h5 {
    font-size: 1rem; /* Smallest heading, often used for captions or minor titles */
    margin-top: 1.1em;
    margin-bottom: 0.4em;
    line-height: 1.6;
    color: var(--text-light);
}

/* Paragraph styles */
.rightsCloudWrap p {
    font-size: 1rem; /* Standard paragraph font size */
    margin-bottom: 1em; /* Space below each paragraph */
    line-height: 1.7; /* Generous line height for improved readability */
    color: var(--text-light);
}

/* Unordered list styles */
.rightsCloudWrap ul {
    list-style: disc; /* Default disc bullet for unordered lists */
    margin-top: 1em; /* Space above the list */
    margin-bottom: 1em; /* Space below the list */
    padding-left: 25px; /* Indentation for list items */
    color: var(--text-light);
}

/* List item styles */
.rightsCloudWrap li {
    font-size: 1rem; /* Standard font size for list items */
    margin-bottom: 0.5em; /* Space between list items */
    line-height: 1.7; /* Line height for readability */
    color: var(--text-light);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .rightsCloudWrap {
        padding-top: 40px;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .rightsCloudWrap h1 {
        font-size: 1.8rem;
    }

    .rightsCloudWrap h2 {
        font-size: 1.5rem;
    }

    .rightsCloudWrap h3 {
        font-size: 1.3rem;
    }

    .rightsCloudWrap h4 {
        font-size: 1.1rem;
    }

    .rightsCloudWrap h5,
    .rightsCloudWrap p,
    .rightsCloudWrap li {
        font-size: 0.95rem; /* Slightly smaller base font size on mobile */
    }

    .rightsCloudWrap ul {
        padding-left: 20px; /* Adjust list indentation */
    }
}
