/* 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 {
    /* Ensures the image will never be wider than the container on small screens */
    width: 100%;             
    /* The 500px limit remains for desktop */
    max-width: 500px; 
    /* Maintains the logo's proportions */
    height: auto; 
    /* Display as a block element so 'margin: auto' can center it */
    display: block; 
    /* Centers the logo image in the middle of the header */
    margin: 0 auto 10px auto; 
}

/* 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 */
}

/* All visual styling is handled by the logo image class */
.site-logo {
    max-width: 500px; 
    height: auto; 
    display: block; 
    margin: 0 auto 10px auto; /* This centers the logo image */
}

/* 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 */
}

/* 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;
    }
}

/* 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 SHAPE-CONFORMING HALLOWEEN GLOW --- */
    filter: drop-shadow(0 0 15px rgba(255, 100, 0, 0.9)); 
    
    /* Optional: Keep the transition for a smooth effect */
    transition: filter 0.3s ease-in-out;
}

/* 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 */
}