/* Big W Games – extracted per-page styles (scoped) */

:root { --font-sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif; }

body { font-family: var(--font-sans); }


/* ===== index.html (theme-home) ===== */
body.theme-home {
font-family: 'Arial', sans-serif; background-color: #f0f8ff; color: #333; text-align: center; margin: 0; padding: 0;
}



body.theme-home header h1 {
margin: 0; font-size: 2.5em;
}



/* Ensures the banner scales well on mobile and centers it */
.banner-img {
max-width: 100%; height: auto; max-height: 150px; display: block; margin: 0 auto;
}

body.theme-home .container {
max-width: 1000px; margin: 40px auto; padding: 0 20px;
}

body.theme-home .hero {
background-color: white; padding: 50px 30px; border-radius: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); margin-bottom: 40px;
}

body.theme-home .hero h2 {
color: #FF9800; font-size: 2.2em; margin-bottom: 15px;
}

body.theme-home .game-cards {
    display: flex; 
    justify-content: space-around; 
    gap: 30px;
    flex-wrap: wrap; /* <--- This allows cards to stack when space is tight */
}

body.theme-home .card {
    background-color: white; 
    padding: 30px; 
    border-radius: 15px; 
    box-shadow: 0 5px 10px rgba(0,0,0,0.1); 
    width: 45%; 
    min-width: 300px; /* <--- This forces the wrap once the screen gets narrow */
    transition: transform 0.3s;
    box-sizing: border-box; /* Ensures padding doesn't break the layout */
}

body.theme-home .card:hover {
transform: translateY(-5px);
}

body.theme-home .card h3 {
font-size: 1.8em; color: #2196F3;
}

body.theme-home .card a.button-link {
    display: inline-block; background-color: #FFC107; color: #333; text-decoration: none; padding: 12px 25px; border-radius: 8px; font-weight: bold; margin-top: 15px;
}



/* ===== mac.html (theme-mac) ===== */
body.theme-mac {
font-family: 'Arial', sans-serif; background-color: #f0ffff; color: #333; margin: 0; padding: 0;
}

body.theme-mac header {
background-color: #00BCD4; color: white; padding: 20px 0; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

body.theme-mac header h1 {
margin: 0; font-size: 2.5em;
}

body.theme-mac .container {
max-width: 800px; margin: 40px auto; padding: 0 20px;
}

body.theme-mac .section {
background-color: white; padding: 30px; border-radius: 15px; margin-bottom: 30px; box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

body.theme-mac h2 {
color: #00BCD4; border-bottom: 3px solid #00BCD4; padding-bottom: 10px; margin-top: 0;
}

body.theme-mac h3 {
color: #FF9800;
}

body.theme-mac .rule-list {
list-style-type: disc; padding-left: 20px;
}

body.theme-mac .back-link {
display: block; margin-bottom: 20px; text-decoration: none; color: #00BCD4; font-weight: bold;
}



/* ===== robomissions.html (theme-robomissions) ===== */
body.theme-robomissions {
font-family: 'Arial', sans-serif; background-color: #fff1f8; color: #333; margin: 0; padding: 0;
}

body.theme-robomissions header {
background-color: #E91E63; color: white; padding: 20px 0; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

body.theme-robomissions header h1 {
margin: 0; font-size: 2.5em;
}

body.theme-robomissions .container {
max-width: 800px; margin: 40px auto; padding: 0 20px;
}

body.theme-robomissions .section {
background-color: white; padding: 30px; border-radius: 15px; margin-bottom: 30px; box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

body.theme-robomissions h2 {
color: #E91E63; border-bottom: 3px solid #E91E63; padding-bottom: 10px; margin-top: 0;
}

body.theme-robomissions h3 {
color: #3F51B5;
}

body.theme-robomissions ul {
list-style-type: none; padding-left: 0;
}

body.theme-robomissions ul li {
background: #f0f4ff; margin-bottom: 8px; padding: 10px; border-radius: 5px;
}

body.theme-robomissions .back-link {
display: block; margin-bottom: 20px; text-decoration: none; color: #E91E63; font-weight: bold;
}

/* ----- Shared helpers for landing page content ----- */
body.theme-home .section { margin-top: 28px; }
body.theme-home .feature-list,
body.theme-home .rule-list { text-align: left; margin: 10px auto 0; max-width: 520px; padding-left: 18px; }
body.theme-home .feature-list li,
body.theme-home .rule-list li { margin: 6px 0; }

/* ===== Page Title (H1) Styling ===== */
.container h1 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 10px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 1px 2px 3px rgba(0,0,0,0.1); /* Adds a soft, polished drop shadow */
}

/* Automatically color-coordinate the H1 to match the specific page theme! */
body.theme-mac h1 { color: #00BCD4; }
body.theme-robomissions h1 { color: #E91E63; }
body.theme-about h1 { color: #4CAF50; }
body.theme-shop h1 { color: #FF9800; }
body.theme-newsletter h1 { color: #4CAF50; }

.button-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  background: #4CAF50;
  color: #fff;
  font-weight: 700;
}

.button-link:hover { opacity: 0.92; }
body.theme-home .site-footer { margin-top: 34px; padding: 16px 0; color: #555; }

/* ===== Game Image Styles ===== */
.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 2px solid #f0f0f0;
}

.rules-hero-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    display: block;
    margin: 0 auto 25px auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* ===== about.html (theme-about) ===== */
body.theme-about {
    font-family: 'Arial', sans-serif; background-color: #e8f5e9; color: #333; margin: 0; padding: 0;
}
body.theme-about header {
    background-color: #90EE90; color: white; padding: 20px 0; box-shadow: 0 4px 6px rgba(0,0,0,0.1); text-align: center;
}
body.theme-about header h1 { margin: 0; font-size: 2.5em; }
body.theme-about .container { max-width: 800px; margin: 40px auto; padding: 0 20px; }
body.theme-about .section { background-color: white; padding: 30px; border-radius: 15px; margin-bottom: 30px; box-shadow: 0 5px 10px rgba(0,0,0,0.05); }
body.theme-about h2 { color: #4CAF50; border-bottom: 3px solid #4CAF50; padding-bottom: 10px; margin-top: 0; }
body.theme-about .back-link { display: block; margin-bottom: 20px; text-decoration: none; color: #4CAF50; font-weight: bold; }

/* Testimonial Styling */
.testimonial {
    background-color: #f9f9f9;
    border-left: 5px solid #FFC107;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 0 10px 10px 0;
    font-size: 1.1em;
    color: #555;
}
.testimonial-author {
    text-align: right;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
    font-size: 0.9em;
}

/* ===== shop.html (theme-shop) ===== */
body.theme-shop {
    font-family: 'Arial', sans-serif; background-color: #fffde7; color: #333; margin: 0; padding: 0; text-align: center;
}
body.theme-shop header {
    background-color: #FFC107; color: #333; padding: 20px 0; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
body.theme-shop header h1 { margin: 0; font-size: 2.5em; }
body.theme-shop .container { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
body.theme-shop .back-link { display: block; margin-bottom: 20px; text-decoration: none; color: #FF9800; font-weight: bold; text-align: left; }
body.theme-shop .hero { background-color: white; padding: 40px 30px; border-radius: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); margin-bottom: 40px; }
body.theme-shop .hero h2 { color: #FF9800; margin-top: 0; }

/* ===== New Grid Header Layout (Center Logo, Right Nav) ===== */
.site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Creates 3 invisible columns */
    align-items: center;
    padding: 15px 30px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.site-header .logo-link {
    grid-column: 2; /* Locks the logo into the exact center column */
    display: flex;
    justify-content: center;
}

.site-header .banner-img {
    max-height: 120px; /* 150% of the original 80px size! */
    width: auto;
    margin: 0;
}

.site-header .main-nav {
    grid-column: 3; /* Locks the buttons into the right column */
    display: flex;
    justify-content: flex-end; /* Pushes the buttons to the far right edge */
    gap: 15px;
}

/* Make it mobile-friendly! Stacks beautifully on small screens */
@media (max-width: 850px) {
    .site-header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        padding: 15px;
    }
    
    .site-header .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===== newsletter.html (theme-newsletter) ===== */
body.theme-newsletter {
    font-family: 'Arial', sans-serif; background-color: #f4fbf5; color: #333; margin: 0; padding: 0; text-align: center;
}
body.theme-newsletter .container { max-width: 800px; margin: 40px auto; padding: 0 20px; }
body.theme-newsletter .hero { padding: 40px 30px; border-radius: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
body.theme-newsletter .back-link { display: block; margin-bottom: 20px; text-decoration: none; color: #4CAF50; font-weight: bold; text-align: left; }

/* ===== Homepage Local Announcement Card ===== */
body.theme-home .announcement-card {
    background-color: white;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Matches your hero drop shadow */
    margin-bottom: 40px;
    border: 3px solid #FFC107; /* A friendly yellow border to make it pop */
}

body.theme-home .announcement-card h3 {
    color: #FF9800; /* Matches the 'Where to Buy' button */
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 15px;
}

body.theme-home .announcement-card a {
    color: #4CAF50; /* Green link text to match your newsletter button */
    font-weight: bold;
    text-decoration: none;
}

body.theme-home .announcement-card a:hover {
    text-decoration: underline;
}

/* ===== Clickable Images and Titles ===== */
body.theme-home .card .image-link {
    display: block; /* Ensures the link wraps the image perfectly without extra space */
}

body.theme-home .card .title-link {
    text-decoration: none; /* Removes the default blue underline */
    display: inline-block;
}

/* Add a nice little fade effect when they hover over the image or title */
body.theme-home .card .image-link:hover .card-img,
body.theme-home .card .title-link:hover h3 {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}