/* Color Pallette: https: //colorhunt.co/palette/f3e9dcd96f32c75d2cf8b259 */
:root {
    --blue: #180c46;
    --blue-frosted: rgba(24, 12, 70, 0.95);
    --orange: #D96F32;
    --yellow: #FFD700;
    --light-purple: #8A2BE2;
    --dark-purple: #4a00e0;
    --text-primary: #FFFFFF;
    --text-secondary: #8A2BE2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--orange);
    background-size: cover;
    background-repeat: no-repeat;
    color-scheme: dark;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

/* --- NAVIGATION BAR --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: var(--blue-frosted);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 1001;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: rotate(-15deg);
}

.logo span {
    transition: color 0.3s ease;
}

.logo:hover span {
    color: var(--yellow);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--yellow);
}

/* Hamburger Menu Styles */

.hamburger-menu {
    display: none;
    cursor: pointer;
}


.hamburger-menu svg {
    fill: var(--text-primary);
    transition: transform 0.3s ease-in-out;
}

.hamburger-menu .line {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, y 0.3s ease-in-out;
    transform-origin: center;
}


.hamburger-menu.active svg {
    transform: rotate(90deg);
}

.hamburger-menu.active .line.middle {
    opacity: 0;
}

.hamburger-menu.active .line.top {
    transform: rotate(45deg);
    y: 32.5;
}

.hamburger-menu.active .line.bottom {
    transform: rotate(-45deg);
    y: 32.5;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.joke-text {
    font-size: 0.8em;
    font-style: italic;
    color: var(--text-primary);
}

/* Games Counter */
.site-stats {
    text-align: center;
    margin-bottom: 4rem;
    /* This now creates the space above the game cards */
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-primary);
    opacity: 0.8;
    /* Slightly faded to not compete with the main header */
}

/* The number itself */
#total-plays-counter {
    color: var(--yellow);
    font-weight: 700;
    margin-left: 8px;
    /* Keep the anti-jitter fix */
    display: inline-block;
    min-width: 25px;
    text-align: left;
}

.cta-button {
    display: inline-block;
    background-color: var(--blue);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    color: var(--yellow);
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Games Section */
.games-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.game-card {
    background-color: var(--blue);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px -15px #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.game-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

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

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-primary);
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.tags span {
    background-color: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.play-button {
    display: block;
    width: 100%;
    padding: 0.8rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    background: linear-gradient(90deg, var(--light-purple), var(--dark-purple));
    border-radius: 8px;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.play-button:hover {
    color: var(--yellow);
}

/* Partner Games */
.partner-games-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.partner-games-section .games-grid {
    grid-template-columns: 1fr;
    justify-items: center;
}

.partner-games-section .game-card {
    max-width: 530px;
    width: 100%;
}

.app-store-button {
    display: block;
    width: 100%;
    padding: 0.8rem;
    text-align: center;
    text-decoration: none;
    color: var(--blue);
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    color: var(--text-primary);
    background: linear-gradient(90deg, var(--light-purple), var(--dark-purple));
}

.app-store-button:hover {
    color: var(--yellow);
}

.app-store-notice {
    font-size: 0.75rem;
    text-align: center;
    color: var(--text-primary);
    margin-top: 0.5rem;
    padding: 0;
    flex-grow: 0;
}

/* Newsletter */
.newsletter-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.newsletter-section {
    /* No background color here */
}

/* Newsletter form 'Card' */
#mc_embed_signup {
    background: var(--blue);
    /* Dark blue background for the form */
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px -15px #000;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
}

/* Style the descriptive paragraph */
.newsletter-description {
    text-align: center;
    color: var(--text-primary);
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Style the form input field */
#mc_embed_signup .mc-field-group input[type="email"] {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--dark-purple);
    background-color: #1c1c3c;
    /* A slightly lighter dark color */
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

/* Style the placeholder text */
#mc_embed_signup .mc-field-group input[type="email"]::placeholder {
    color: var(--text-primary);
    opacity: 0.6;
}

/* Style the submit button to match your other buttons */
#mc_embed_signup .button {
    width: 100%;
    margin-top: 1rem;
    height: auto;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--light-purple), var(--dark-purple));
    color: var(--text-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for the button */
#mc_embed_signup .button:hover {
    transform: translateY(-5px);
    color: var(--yellow);
    background: linear-gradient(90deg, #9b4dff, #5e1fff);
    /* Slightly brighter on hover */
}

/* --- Clean Up & Style Mailchimp Elements --- */

/* Hide the "Email Address" label above the input */
#mc_embed_signup .mc-field-group label {
    display: none !important;
}

/* Hide the "* indicates required" text */
#mc_embed_signup .indicates-required {
    display: none !important;
}

/* Target the paragraph that holds the Mailchimp badge */
#mc_embed_signup .optionalParent .foot p {
    margin-top: 1.5rem;
    text-align: center;
}

/* Override the inline styles on the span wrapping the badge */
#mc_embed_signup .optionalParent .foot p span {
    background-color: transparent !important;
}

/* Style the badge image itself */
#mc_embed_signup .refferal_badge {
    max-width: 180px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* Make the badge fully visible when the user hovers over it */
#mc_embed_signup .optionalParent .foot p:hover .refferal_badge {
    opacity: 1;
}

/* Style the error/success messages */
#mc_embed_signup #mce-responses .response {
    color: var(--text-primary);
    background-color: #333;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

#mc_embed_signup #mce-responses #mce-error-response {
    background-color: #a33;
    /* Reddish for errors */
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 4rem 0 2rem 0;
}

.footer-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-content p {
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.social-icons a {
    color: var(--text-primary);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--yellow);
}

.footer-links {
    margin: 2rem 0;
}

.footer-links h3 {
    margin: 2rem 0;
}

.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    margin: 0 0.5rem;
}

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

.footer-title-link {
    display: inline-block;
    text-decoration: none;
    /* Removes the default underline */
}

/* This targets the h3 inside the link */
.footer-title-link h3 {
    color: var(--text-primary);
    /* Ensures the text is white */
    transition: color 0.3s ease;
    /* Adds a smooth color change on hover */
}

.footer-title-link:hover h3 {
    color: var(--yellow);
}

.copyright p {
    font-size: 0.9rem;
    color: var(--text-primary);
}


/* Animations */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-text.animate-on-scroll {
    transform: translateX(-50px);
}

.hero-image.animate-on-scroll {
    transform: translateX(50px);
}

.game-card.animate-on-scroll {
    transform: translateY(50px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Terms & Privacy */

.content-section {
    padding: 8rem 0 6rem 0;
}

.content-section .container {
    background-color: var(--blue);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px -15px #000;
}

/* Style the main page title */
.content-section h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* Style the "Last Updated" text */
.content-section p em {
    display: block;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    opacity: 0.7;
    font-style: normal;
}

/* Style the section sub-headings */
.content-section h2 {
    font-size: 1.5rem;
    color: var(--yellow);
    /* Use yellow to make headings pop */
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Style the main paragraph text for readability */
.content-section p {
    color: var(--text-primary);
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* Style the bullet point lists */
.content-section ul {
    list-style-type: disc;
    list-style-position: inside;
    padding-left: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* Style the email link to be interactive */
.content-section a {
    color: var(--yellow);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.content-section a:hover {
    opacity: 0.8;
}

/* --- 404 ERROR PAGE STYLES --- */

.error-page-content {
    text-align: center;
    /* Center all the content */
    padding: 2rem 0;
}

/* Style the big "404" number */
.error-page-content h1 {
    font-size: 8rem;
    /* Make it huge */
    font-weight: 900;
    color: var(--yellow);
    /* Use your brand's yellow for impact */
    line-height: 1;
    margin-bottom: 0;
}

/* Style the "Page Not Found" sub-heading */
.error-page-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* Style the friendly message */
.error-page-content p {
    color: var(--text-primary);
    opacity: 0.9;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.error-page-content .cta-button {
    margin-top: 1rem;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

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

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        width: 100%;

        background-color: var(--blue-frosted);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
    }

    nav ul.active {
        display: flex;
    }

    .hamburger-menu {
        display: block;
        z-index: 1001;
    }
}