/* Basic Reset and Font Setup */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4; /* Light gray background */
    color: #333;
}

/* Container to center the main content, similar to the reference site */
main {
    max-width: 800px; /* Limits the width for readability */
    margin: 20px auto; /* Centers the content block */
    padding: 20px;
    background-color: #fff; /* White content background */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Header Styling */
header {
    text-align: center;
    padding: 40px 0 20px 0;
    background-color: #fff; /* Match the main container */
    border-bottom: 2px solid #ccc;
}
header h1 {
    margin: 0;
    font-size: 2.5em;
    color: #007bff; /* A nice, friendly blue for branding */
}
header p {
    margin-top: 5px;
    color: #666;
}

/* Navigation Bar */
nav {
    background-color: #333; /* Dark background for the nav */
    text-align: center;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Makes the links line up horizontally */
    justify-content: center;
}
nav li {
    padding: 15px 20px;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}
nav a:hover {
    color: #007bff; /* Blue hover effect */
}

/* Section Headings */
h2 {
    color: #007bff;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 30px;
}

/* Call to Action Button */
.cta-button {
    /* text-align: center; */
    margin: 30px 0;
}
.cta-button a {
    display: inline-block;
    background-color: #28a745; /* Green for a "Buy Now" button */
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.cta-button a:hover {
    background-color: #218838;
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid #ccc;
    font-size: 0.8em;
    color: #666;
}

/* New styling for the actual image */
.game-image {
    /* Ensures the image never overflows its container */
    max-width: 100%; 
    /* Maintains the image's proportion */
    height: auto; 
    /* Centers the image within the main content block */
    display: block; 
    margin: 20px auto;
    /* Optional: Add a slight border or shadow to make it pop */
    border: 1px solid #ccc;
}

/* Styling for the Logo Image */
.site-logo {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
    
    /* --- ADD THIS FOR THE COLOR FLASHING ANIMATION --- */
    animation: festive-flash 4s infinite alternate; 
    
    /* Optional: Keep the transition/filter line as a fallback for initial load */
filter: drop-shadow(0 0 15px rgba(192, 57, 43, 0.9));}

/* Simplified Header H1 Rule */
header h1 {
    /* Only keep margin adjustments if needed */
    margin-top: 10px; 
    margin-bottom: 0; /* Ensures no extra space below the logo */
}

/* New Flexbox Container to align buttons horizontally */
.buy-button-group {
    display: flex; /* 1. Enables Flexbox */
    justify-content: space-around; /* 2. Distributes space evenly between and around items */
    gap: 15px; /* Adds a little space between the buttons themselves */
    margin: 30px auto; /* Centers the whole group block */
    max-width: 90%; /* Keeps the group from spreading too wide */

/* --- ADD THIS LINE FOR MULTIPLE ROWS --- */
    flex-wrap: wrap; /* Allows items to drop to the next line when space runs out */
}

/* We should also ensure items have a minimum size so they don't become tiny */
.cta-button {
    /* If you haven't defined .cta-button width, add this to ensure they fit neatly: */
    width: 30%; /* Will fit 3 buttons across before wrapping */
    min-width: 150px; /* Ensures they don't shrink too much on desktop */
    margin-bottom: 20px; /* Adds space between rows */
}


/* Styling for the Buy Now Image */
.buy-now-img {
    /* Sets a maximum size for the image */
    max-width: 150px; 
    /* Ensures the image maintains its aspect ratio */
    height: auto; 
    /* Make the image look like it's lifting off the page when hovered */
    transition: transform 0.2s ease-in-out;
}

/* Optional: Make the image react when the user hovers over it */
.buy-now-img:hover {
    transform: scale(1.05); /* Makes it 5% larger on hover */
    opacity: 0.9;
}

/* 1. Flexbox Parent: Aligns the items horizontally */
.image-gallery {
    display: flex;             /* Makes the items flex horizontally */
    justify-content: space-around; /* Distributes space evenly between images */
    align-items: flex-start;   /* Aligns items to the top (useful if images are different heights) */
    gap: 20px;                 /* Adds space between the images */
    margin: 40px auto;         /* Centers the whole gallery block on the page */
    max-width: 900px;          /* Optional: Set a max width for the gallery */
}

/* 2. Flexbox Children: Ensure images scale to fit the layout */
.gallery-item {
    /* Allows the item to grow/shrink equally */
    flex: 1; 
    /* Ensures the image is centered within its item container */
    text-align: center; 
}

/* 3. The Image itself: Ensure it stays within its container */
.gallery-img {
    max-width: 100%;           /* Image will scale down if the screen is too small */
    height: auto;              /* Maintains image proportions */
    border-radius: 8px;        /* Optional: Makes the corners slightly round */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow */
}


/* Styling for the language button */
.lang-button {
    text-decoration: none;
    color: white; /* Match your existing nav text */
    border: 1px solid white;
    padding: 5px 10px;
    border-radius: 4px;
    margin-left: 15px;
    font-size: 0.9em;
}
.lang-button:hover {
    background-color: white;
    color: #333; /* Dark text on white background */
}


/* ------------------------------------------- */
/* MOBILE RESPONSIVENESS FIXES           */
/* ------------------------------------------- */

/* Apply these styles ONLY when the screen is 600 pixels wide or smaller */
@media (max-width: 600px) {
    
    /* 1. Force the Buy Buttons to stack vertically */
    .buy-button-group {
        flex-direction: column;
        /* Center the column stack */
        align-items: center; 
    }
    
    /* 2. Constrain the size of the individual buttons/images in the stack */
    .cta-button {
        width: 100%; 
        max-width: 200px; /* Optional: Sets a reasonable maximum width for the button block */
        margin-bottom: 20px;
    }

    
    /* 3. Also fix the Image Gallery (if you have one on the sales page) */
    .image-gallery {
        flex-direction: column;
        align-items: center;
    }

}

/* Override for larger screens (e.g., desktop/tablet) */
@media (min-width: 601px) {
    .cta-button {
        /* This sets the width to a little less than 1/3 of the container,
           allowing 3 items to fit neatly across a row with spacing (gap: 15px). */
        width: calc(33.33% - 15px); 
        min-width: 150px;
    }

}


/* Section Headings */
h2 {
    color: #FF5722; /* A strong Halloween orange/red */
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 30px;
    /* Add a subtle glow to the text itself */
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.2)); 
}

footer {
    /* ... existing code ... */
    border-top: 1px dashed #ccc; /* Change solid line to dashed */
    /* Optional: Change text color to a soft metallic shade */
    color: #7f8c8d; 
}

/* Update the unordered list styling */
#features ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
}

#features li {
    padding-left: 2em; /* Space for the custom bullet */
    position: relative;
    margin-bottom: 0.5em;
}

/* Add a custom emoji bullet point */
#features li::before {
    content: "⭐"; /* Use a star emoji */
    color: #FFD700; /* Gold color */
    font-size: 1.2em;
    position: absolute;
    left: 0;
    line-height: 1.6; /* Align with text */
}

/* Optional: Override the bullet for specific holidays (e.g., Halloween) */
#features li:nth-child(1)::before { content: "🎃"; }
#features li:nth-child(2)::before { content: "👻"; }
#features li:nth-child(3)::before { content: "🕸️"; }
/* Note: You would manually change these for the current season */

/* Navigation Bar */
nav a:hover {
    color: #FFD700; /* Change the hover color to a bright gold/yellow */
    transform: scale(1.1); /* Make the link text slightly larger */
}

.cta-button a:hover {
    background-color: #218838;
    transform: translateY(-2px); /* Makes the button lift slightly */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Gives the illusion of lifting */
}

/* ------------------------------------------- */
/* FESTIVE FLASHING GLOW ANIMATION - HOLIDAYS  */
/* ------------------------------------------- */

@keyframes festive-flash {
    /* Deep Red Glow (Christmas Red) */
    0% {
        filter: drop-shadow(0 0 15px rgba(192, 57, 43, 0.9)); /* #C0392B */
    }
    /* Bright Gold/Yellow Glow (Sparkle) */
    33% {
        filter: drop-shadow(0 0 20px rgba(255, 220, 0, 1.0)); /* Bright Gold */
    }
    /* Forest Green Glow (Christmas Green) */
    66% {
        filter: drop-shadow(0 0 15px rgba(30, 140, 50, 0.9)); /* A rich, deep green */
    }
    /* Return to Red for the loop */
    100% {
        filter: drop-shadow(0 0 15px rgba(192, 57, 43, 0.9)); /* #C0392B */
    }
}

/* Override the Pop-up Text for Spanish pages */
.cta-button a::after {
    content: "¡COMPRA AHORA!"; 
}

/* ------------------------------------------- */
/* BUY NOW HOVER POP-UP EFFECT                 */
/* ------------------------------------------- */

/* 1. Set up the container for relative positioning */
.cta-button a {
    position: relative; /* Essential: Allows the pop-up text to be positioned relative to the link */
    /* Ensure the link is visible and doesn't clip the pop-up */
    overflow: visible; 
}

/* 2. Style the hidden pop-up text (the ::after element) */
.cta-button a::after {
    content: "BUY NOW!"; /* The actual text that pops up */
    visibility: hidden; /* Start hidden */
    opacity: 0; /* Start fully transparent */
    position: absolute;
    top: -30px; /* Position it 30px above the button image */
    left: 50%;
    transform: translateX(-50%); /* Center the pop-up text block */
    
    /* Pop-up appearance styling */
    background-color: #333; /* Dark background */
    color: white; /* White text */
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    white-space: nowrap; /* Prevents text from wrapping */
    z-index: 10; /* Ensures the text appears over other elements */
    transition: opacity 0.3s, top 0.3s; /* Smooth transition effect */
}

/* 3. Make the pop-up visible on hover */
.cta-button a:hover::after {
    visibility: visible; /* Make it visible */
    opacity: 1; /* Make it fully opaque */
    top: -35px; /* Optional: Move it slightly higher for a "lift" effect */