body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000000;
    color: #ffffff;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.halloween-font {
    font-family: 'Creepster', cursive;
    color: #ffaa00; /* Lighter orange for headings */
}

h1, h2, h3, h4, h5, h6 {
    color: #ffaa00;
}

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

.age-verification-modal.hidden {
    opacity: 0;
    visibility: hidden;
}

.age-verification-content {
    background-color: #1a002a; /* Dark purple */
    border: 3px solid #ffaa00;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.5);
    animation: pulseBorder 2s infinite alternate;
}

.age-verification-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffaa00;
}

.age-verification-content p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.age-verification-content .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
}

.age-verification-content .btn-primary {
    background-color: #ff6600;
    border-color: #ff6600;
}

.age-verification-content .btn-primary:hover {
    background-color: #e65c00;
    border-color: #e65c00;
}

.age-verification-content .btn-secondary {
    background-color: #660099;
    border-color: #660099;
}

.age-verification-content .btn-secondary:hover {
    background-color: #52007a;
    border-color: #52007a;
}

/* Navbar */
.navbar {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 170, 0, 0.2);
}

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

.navbar-brand .site-title {
    font-size: 2.2rem;
    color: #ffaa00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.navbar-toggler {
    border-color: #ffaa00;
}

.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, 170, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    color: #ffffff;
    font-weight: 600;
    margin: 0 10px;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffaa00;
    transform: translateY(-2px);
}

/* General Section Styling */
section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.bg-dark-purple {
    background-color: #1a002a;
}

.bg-orange-gradient {
    background: linear-gradient(135deg, #ff6600 0%, #cc3300 100%);
}

.btn-primary {
    background-color: #ff6600;
    border-color: #ff6600;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #e65c00;
    border-color: #e65c00;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 15px rgba(255, 102, 0, 0.4);
}

.btn-secondary {
    background-color: #660099;
    border-color: #660099;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #52007a;
    border-color: #52007a;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 15px rgba(102, 0, 153, 0.4);
}

/* Hero Section */
.hero-section {
    background-color: #000000;
    min-height: 100vh;
    padding-top: 100px;
}

.hero-background-img {
    filter: brightness(0.4) saturate(1.2);
    z-index: 0;
    animation: fade-in 2s ease-out forwards;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
}

.hero-content {
    z-index: 2;
}

.hero-section h1 {
    font-size: 4.5rem;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
}

.hero-section p.lead {
    font-size: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #e0e0e0;
}

.game-cards-preview {
    margin-top: 5rem;
}

.game-card-preview {
    background-color: rgba(26, 0, 42, 0.7);
    border: 2px solid #660099;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    max-width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    box-shadow: 0 0 20px rgba(102, 0, 153, 0.5);
}

.game-card-preview:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.6);
}

.game-card-preview img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 1px solid #ffaa00;
}

.game-card-preview h4 {
    font-size: 1.3rem;
    margin-top: 10px;
    color: #ffaa00;
}

/* Game Selection Section */
#game-selection h2 {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.game-card {
    background-color: #000000;
    border: 2px solid #660099;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 0 25px rgba(255, 102, 0, 0.6);
    border-color: #ffaa00;
}

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

.game-card .game-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid #ffaa00;
}

.game-card h3 {
    color: #ffaa00;
    font-size: 1.8rem;
    margin-top: 10px;
}

.game-card p.game-description {
    color: #e0e0e0;
    flex-grow: 1;
}

.game-card .play-game-btn {
    margin-top: auto; /* Push button to bottom */
}

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

.game-modal.active {
    display: flex;
    opacity: 1;
}

.game-modal-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #ff6600;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

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

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

/* How to Play Section */
#how-to-play h2 {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.accordion-item {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #ffaa00;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:last-of-type {
    margin-bottom: 0;
}

.accordion-button {
    background-color: #660099;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 15px 20px;
    border: none;
    text-decoration: none;
}

.accordion-button:not(.collapsed) {
    background-color: #ff6600;
    color: #ffffff;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

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

.accordion-body {
    background-color: #1a002a;
    color: #e0e0e0;
    padding: 20px;
    border-top: 1px solid #ffaa00;
}

/* Leaderboards Section */
#leaderboards h2 {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.leaderboard-list {
    background-color: #000000;
    border: 2px solid #660099;
    padding: 30px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(102, 0, 153, 0.5);
}

.leaderboard-item {
    background-color: rgba(26, 0, 42, 0.7);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #ffaa00;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leaderboard-item:hover {
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.4);
}

.leaderboard-item:last-child {
    margin-bottom: 0;
}

.leaderboard-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffaa00;
    width: 40px;
    text-align: center;
}

.leaderboard-avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 2px solid #ffaa00;
}

.leaderboard-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.leaderboard-score {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff6600;
}

.badge {
    padding: 0.5em 0.8em;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-legend {
    background-color: #ffaa00;
    color: #000000;
}

.badge-pro {
    background-color: #660099;
    color: #ffffff;
}

.badge-rising {
    background-color: #cc3300;
    color: #ffffff;
}

/* Player Testimonials Section */
#testimonials h2 {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.testimonials-slider-container {
    max-width: 900px;
    margin: 0 auto;
}

.testimonials-slider {
    display: flex;
    overflow: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    position: relative;
    border-radius: 10px;
    border: 2px solid #ffaa00;
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.5);
}

.testimonial-card {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 25px;
    box-sizing: border-box;
    transition: opacity 0.5s ease;
}

.testimonial-card blockquote {
    font-style: italic;
    color: #e0e0e0;
    line-height: 1.6;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #ff6600;
}

.testimonial-name {
    font-weight: 700;
    color: #ffaa00;
    font-size: 1.1rem;
}

.trust-badge {
    color: #00cc00;
    font-size: 0.9rem;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 102, 0, 0.8);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 10;
    text-decoration: none;
}

.slider-nav:hover {
    background-color: #cc3300;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: #ff6600;
    transform: scale(1.2);
}

/* FAQ & Contact Form Section */
#faq-contact h2 {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.contact-form-container {
    background-color: #000000;
    border: 2px solid #ffaa00;
    padding: 30px;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.5);
}

.contact-form-container p {
    color: #e0e0e0;
}

.form-label {
    color: #ffaa00;
    font-weight: 600;
}

.form-control {
    background-color: #1a002a;
    border: 1px solid #660099;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
}

.form-control:focus {
    background-color: #1a002a;
    color: #ffffff;
    border-color: #ffaa00;
    box-shadow: 0 0 0 0.25rem rgba(255, 170, 0, 0.25);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
}

/* Disclaimer Section */
.disclaimer-section {
    background-color: #0d0d0d; /* Slightly different dark background */
    border-top: 5px solid #ff6600;
    border-bottom: 5px solid #ff6600;
    padding: 60px 0;
}

.disclaimer-content {
    background-color: #1a002a;
    border: 2px solid #ffaa00;
    padding: 30px;
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.5);
}

.disclaimer-content h3 {
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.disclaimer-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e0e0e0;
}

.disclaimer-content ul {
    padding-left: 0;
}

.disclaimer-content li a {
    font-weight: 600;
}

/* Footer */
footer {
    background-color: #000000;
    border-top: 1px solid rgba(255, 170, 0, 0.2);
    color: #cccccc;
}

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

.footer-brand .site-title {
    font-size: 1.8rem;
    color: #ffaa00;
}

.footer-links .list-inline-item {
    margin: 0 15px;
}

.footer-links a {
    color: #e0e0e0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffaa00;
}

.footer-partners {
    margin-top: 30px;
}

.footer-partner-logo {
    max-width: 115px;
    height: auto;
    object-fit: contain;
    margin: 0 15px;
    filter: brightness(0.8) contrast(1.2);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.footer-partner-logo:hover {
    filter: brightness(1) contrast(1.3);
    transform: scale(1.05);
}

.age-restriction-icon {
    font-size: 2.5rem;
    color: #ff6600;
    margin-top: 20px;
    display: inline-block;
}

/* Animations */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-up-bounce {
    0% { opacity: 0; transform: translateY(50px) scale(0.8); }
    60% { opacity: 1; transform: translateY(-10px) scale(1.05); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulseBorder {
    0% { border-color: #ffaa00; box-shadow: 0 0 20px rgba(255, 170, 0, 0.5); }
    50% { border-color: #ff6600; box-shadow: 0 0 30px rgba(255, 102, 0, 0.7); }
    100% { border-color: #ffaa00; box-shadow: 0 0 20px rgba(255, 170, 0, 0.5); }
}

.animate-fade-in-up {
    opacity: 0;
    animation: fade-in-up 0.8s ease-out forwards;
}

.animate-fade-in-up.delay-1 { animation-delay: 0.2s; }
.animate-fade-in-up.delay-2 { animation-delay: 0.4s; }

.animate-game-card {
    opacity: 0;
    animation: scale-up-bounce 0.8s ease-out forwards;
}

.animate-game-card.delay-3 { animation-delay: 0.6s; }
.animate-game-card.delay-4 { animation-delay: 0.8s; }
.animate-game-card.delay-5 { animation-delay: 1.0s; }

/* Intersection Observer Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.95);
        border-top: 1px solid #ffaa00;
        padding: 15px;
        margin-top: 10px;
    }

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

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

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

    .game-cards-preview .col-md-4 {
        margin-bottom: 20px;
    }

    .game-card-preview {
        max-width: 200px;
    }

    .testimonials-slider-container {
        margin: 0 20px;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .prev-btn {
        left: 0;
    }

    .next-btn {
        right: 0;
    }

    .leaderboard-list {
        padding: 20px;
    }

    .leaderboard-item {
        padding: 12px 15px;
    }

    .leaderboard-rank {
        font-size: 1.2rem;
    }

    .leaderboard-avatar {
        width: 40px;
        height: 40px;
    }

    .leaderboard-name, .leaderboard-score {
        font-size: 1rem;
    }

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

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

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

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

    .game-card-preview {
        max-width: 180px;
    }

    h2 {
        font-size: 2.5rem;
    }

    .footer-partners {
        gap: 20px;
    }

    .footer-partner-logo {
        max-width: 100px;
        margin: 0;
    }

    .game-modal-close-btn {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}
/* Base container styling for top and side spacing */
.dataTrustFrame {
    margin-top: 20px; /* Top margin for the main container */
    margin-left: 15px; /* Left margin for the main container */
    margin-right: 15px; /* Right margin for the main container */
}

/* Heading styles within .dataTrustFrame */
.dataTrustFrame h1 {
    font-size: 22px; /* Moderate font size for H1 */
    margin-top: 20px; /* Top margin for H1 */
    margin-bottom: 10px; /* Bottom margin for H1 */
    line-height: 1.2; /* Line height for H1 */
    font-weight: bold; /* Ensure H1 is bold */
}

.dataTrustFrame h2 {
    font-size: 20px; /* Moderate font size for H2 */
    margin-top: 18px; /* Top margin for H2 */
    margin-bottom: 9px; /* Bottom margin for H2 */
    line-height: 1.3; /* Line height for H2 */
    font-weight: bold; /* Ensure H2 is bold */
}

.dataTrustFrame h3 {
    font-size: 18px; /* Moderate font size for H3 */
    margin-top: 16px; /* Top margin for H3 */
    margin-bottom: 8px; /* Bottom margin for H3 */
    line-height: 1.4; /* Line height for H3 */
    font-weight: bold; /* Ensure H3 is bold */
}

.dataTrustFrame h4 {
    font-size: 16px; /* Moderate font size for H4 (often body text size) */
    margin-top: 14px; /* Top margin for H4 */
    margin-bottom: 7px; /* Bottom margin for H4 */
    line-height: 1.5; /* Line height for H4 */
    font-weight: bold; /* Ensure H4 is bold */
}

.dataTrustFrame h5 {
    font-size: 14px; /* Moderate font size for H5 (smaller than body text) */
    margin-top: 12px; /* Top margin for H5 */
    margin-bottom: 6px; /* Bottom margin for H5 */
    line-height: 1.5; /* Line height for H5 */
    font-weight: bold; /* Ensure H5 is bold */
}

/* Paragraph styles within .dataTrustFrame */
.dataTrustFrame p {
    font-size: 16px; /* Standard paragraph font size */
    line-height: 1.6; /* Improved readability with line height */
    margin-bottom: 1em; /* Space between paragraphs */
}

/* Unordered list styles within .dataTrustFrame */
.dataTrustFrame ul {
    list-style-type: disc; /* Default disc bullet points */
    margin-top: 1em; /* Top margin for the list */
    margin-bottom: 1em; /* Bottom margin for the list */
    margin-left: 0; /* Reset default browser margin-left */
    padding-left: 40px; /* Indent the list items, including space for bullets */
}

/* List item styles within .dataTrustFrame */
.dataTrustFrame li {
    font-size: 16px; /* Font size for list items */
    line-height: 1.5; /* Line height for list items */
    margin-bottom: 0.5em; /* Space between list items */
}


@media(max-width: 500px){
    .leaderboard-item{
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }
}


.accordion-button::after{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%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") !important;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 11.354a.5.5 0 0 1 .708 0L8 5.707l5.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") !important;
}


.age-verification-content div{
    flex-wrap: wrap;
}