/* ==========================================
   1. Global Resets & Typography
   ========================================== */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333333;
    scroll-behavior: smooth;
    background-image: url('assets/images/site-texture.png') !important;
    background-size: cover !important;
    background-position: center top !important;
    /* Ensures the top border/stars stay visible */
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* ==========================================
   2. Navigation Bar & Header Styles
   ========================================== */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #b1cae8 !important;
    height: 95px !important;
    /* Increased from 70px */
    padding: 10px 30px !important;
    /* Generous padding */
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    z-index: 9999 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    box-sizing: border-box !important;
}

.navbar.scrolled {
    padding: 8px 20px !important;
    height: 55px;
    background-color: rgba(177, 202, 232, 0.95) !important;
}

.nav-logo img {
    height: 90px;
    width: auto;
    display: block;
    position: relative;
    top: 25px;
    margin-top: 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-logo img {
    height: 60px !important;
    top: 5px !important;
}

.nav-links {
    display: flex;
    gap: 15px !important;
    /* Tighter gap so they fit better */
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar a {
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    text-decoration: none;
    color: #163683 !important;
    font-weight: 800;
    font-size: 1.0rem !important;
    /* Slightly smaller text so it fits across devices */
    text-transform: uppercase;
    letter-spacing: 2px !important;
    transition: opacity 0.2s ease;
}

.navbar .nav-links,
.navbar ul {
    display: flex !important;
    gap: 30px !important;
    /* Adjust this value (e.g., 25px, 35px, 40px) to space them further apart */
}

.navbar a:hover {
    opacity: 0.6;
    color: #163683 !important;
}

/* The Dark Blue Box Container (Made more compact) */
.coloring-container {
    position: relative !important;
    width: 92% !important;
    max-width: 920px !important;
    /* Reduced from 1000px to pull the columns closer together */
    margin: 10px auto 30px auto !important;
    padding: 80px 20px 25px 20px !important;
    background-color: #1a365d !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    box-sizing: border-box !important;
    z-index: 2 !important;
}

.coloring-intro {
    color: #e2e8f0 !important;
    font-family: sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    margin: 0 auto 20px auto !important;
    text-align: center !important;
    max-width: 700px !important;
}

.coloring-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: 8px !important;
    row-gap: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ==========================================
   Updated Solid Graphic Coloring Cards
   ========================================== */
.coloring-card {
    height: 275px !important;
    padding: 10px 10px 10px 10px !important;
    background-color: transparent !important;
    /* Removes the white background box */
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease;
}

/* Individual Hover States (Swaps base graphic to hover graphic) */
.coloring-card:nth-child(1):hover {
    background-image: url('assets/images/coloring-card-1-hover.png') !important;
}

.coloring-card:nth-child(2):hover {
    background-image: url('assets/images/coloring-card-2-hover.png') !important;
}

.coloring-card:nth-child(3):hover {
    background-image: url('assets/images/coloring-card-3-hover.png') !important;
}

.coloring-card:nth-child(4):hover {
    background-image: url('assets/images/coloring-card-4-hover.png') !important;
}

.coloring-card:nth-child(5):hover {
    background-image: url('assets/images/coloring-card-5-hover.png') !important;
}

.coloring-card:nth-child(6):hover {
    background-image: url('assets/images/coloring-card-6-hover.png') !important;
}

.coloring-card:nth-child(7):hover {
    background-image: url('assets/images/coloring-card-7-hover.png') !important;
}

.coloring-card:nth-child(8):hover {
    background-image: url('assets/images/coloring-card-8-hover.png') !important;
}

.image-container {
    width: 100% !important;
    height: 165px !important;
    /* Taller image container so thumbnails are bigger */
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
}

.image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* ==========================================
   Custom Graphic Download Buttons (3 States)
   ========================================== */
.coloring-card {
    height: 275px !important;
    padding: 10px 10px 10px 10px !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: center !important;
    /* <-- Adds horizontal centering for the button */
    box-sizing: border-box !important;
    transition: all 0.2s ease;
}

.btn-download {
    display: block !important;
    width: 200px !important;
    height: 55px !important;
    margin: 0 !important;
    /* Removes auto margin since align-items handles the centering */
    background-image: url('assets/images/download-btn-rest.png') !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
    border: none !important;
    box-shadow: none !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    text-decoration: none !important;
    transition: background-image 0.1s ease !important;
}

.btn-download:hover {
    background-image: url('assets/images/download-btn-hover.png') !important;
    transform: none !important;
}

.btn-download:active {
    background-image: url('assets/images/download-btn-click.png') !important;
}

/* ==========================================
   Peek-a-boo Mice Positioning & Animation
   ========================================== */
#coloring-corner-section .klaus {
    position: absolute !important;
    z-index: 1 !important;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Left Mouse (Tucked deeper inside the left edge of the blue box) */
.klaus-pop-1 {
    width: 130px !important;
    height: auto !important;
    left: calc(50% - 460px) !important;
    /* Starts further inside/behind the left border */
    top: 42% !important;
    transform: translateX(0);
}

/* Bottom Mouse (Tucked deeper inside the bottom edge of the blue box) */
.klaus-pop-6 {
    width: 160px !important;
    height: auto !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(0);
    bottom: 85px !important;
    /* Starts well inside the bottom of the blue box */
}

/* Hover Triggers: Deeper reach outward */
#color:has(.coloring-card:nth-child(-n+4) .btn-download:hover)~.klaus-pop-1 {
    transform: translateX(-110px) !important;
    /* Shoots out much further from behind the box */
}

#color:has(.coloring-card:nth-child(n+5) .btn-download:hover)~.klaus-pop-6 {
    transform: translateX(-50%) translateY(100px) !important;
    /* Dips down much further out from the bottom */
}

@media (max-width: 1024px) {
    .coloring-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ==========================================
   4. Contact & Footer Styles
   ========================================== */
#coming-soon {
    background: rgba(27, 54, 93, 0.75) !important;
    color: white;
    position: relative;
    padding: 50px 20px 50px 20px !important;
    width: 92% !important;
    max-width: 1050px !important;
    margin: 120px auto 80px auto !important;
    border-radius: 16px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

#coming-soon h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-style: normal !important;
    font-weight: 300 !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    font-size: 2.6rem !important;
}

.contact-card-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 2;
    width: 100% !important;
    max-width: 900px !important;
    /* Adjust this to change overall card width */
}

.contact-card-box h2 {
    font-style: italic;
    font-size: 2.2rem;
    margin-bottom: 0;
}

/* 2. Force the card to fill that wrapper completely */
.contact-white-card {
    background-image: url('assets/images/contact-card.png') !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 100% 100% !important;
    box-shadow: none !important;
    color: #333333;
    padding: 70px 60px !important;
    width: 100% !important;
    min-height: 400px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    font-family: "Copperplate", "Copperplate Gothic Light", fantasy !important;
    font-size: 1.8rem !important;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.contact-white-card .brand-title {
    font-size: 1.8rem !important;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: #111111;
}

.contact-white-card .location-text {
    font-size: 0.95rem !important;
    color: #666666;
    margin-bottom: 25px;
}

.contact-white-card .subscribe-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.contact-white-card .email-input {
    width: 100%;
    max-width: 320px !important;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    font-size: 0.95rem;
    text-align: center;
    outline: none;
}

.contact-white-card .drop-line-btn {
    background-color: #ffffff;
    color: #111111;
    border: 2px solid #111111;
    padding: 12px 30px;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-white-card .drop-line-btn:hover {
    background-color: #111111;
    color: #ffffff;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.copyright-text,
.illustrator-text {
    font-size: 0.85rem !important;
    opacity: 0.7;
    margin-bottom: 4px;
}

.hero-combined {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 1100px !important;
    height: auto !important;
    object-fit: contain !important;
    z-index: 1 !important;
}

/* Pull the yellow banner and layout upward to close the gap */
#launch-gate [style*="background-color: #ffffd7"] {
    margin-top: -20px !important;
}

.hero-graphics-row {
    margin-bottom: 0px !important;
}

#launch-gate div[style*="background-color: #ffffd7"] {
    align-items: flex-start !important;
    padding-top: 4vh !important;
    padding-bottom: 4vh !important;
}

.coloring-header-row {
    display: flex !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto 15px auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.coloring-header-row img {
    height: auto !important;
    max-height: 95px !important;
    object-fit: contain !important;
}

/* Container for the overlapping header */
.coloring-header-overlap {
    position: absolute !important;
    top: -45px !important;
    left: 5% !important;
    max-width: 90% !important;
    z-index: 10 !important;
}

/* Responsive size for the combined logo asset */
.coloring-header-img {
    height: auto !important;
    width: 100% !important;
    max-width: 380px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)) !important;
}

.coloring-container {
    padding-top: 80px !important;
}

.coloring-card:nth-child(-n+4) .image-container img {
    transform: scale(1.1) !important;
}

.coloring-card:nth-child(n+5) .image-container img {
    transform: scale(1.2) !important;
}

@media (max-width: 768px) {
    .navbar {
        height: auto !important;
        min-height: 95px !important;
        padding: 12px 15px !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .navbar a,
    .navbar .nav-links {
        font-size: 0.85rem !important;
        gap: 15px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .nav-logo {
        max-width: 140px !important;
        width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .nav-logo img {
        max-width: 130px !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 !important;
        top: 0 !important;
        position: static !important;
        transform: none !important;
    }

    #launch-gate div[style*="background-color: #ffffd7"]>div {
        justify-content: center !important;
        padding: 0 15px !important;
    }

    .banner-message-card {
        width: 100% !important;
        max-width: 340px !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
    }

    .banner-amazon-btn {
        width: 150px !important;
        height: 46px !important;
        padding: 0 !important;
        font-size: 0 !important;
        bottom: 6% !important;
        right: 6% !important;
    }
}

/* ==========================================
   Floating Banner Message Card (Shorter & Darker Shadow)
   ========================================== */
.yellow-banner-section {
    width: 100% !important;
    margin: 0 !important;
    padding: -10px 0 !important;
    background-color: transparent !important;
}

.banner-wrapper {
    width: 100% !important;
    background-color: transparent !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.banner-message-card {
    width: 680px !important;
    max-width: 90% !important;
    height: auto !important;
    position: relative !important;
    z-index: 50 !important;
    margin-top: -35px !important;
    margin-left: 500px !important;
    filter: drop-shadow(0px 8px 22px rgba(0, 0, 0, 0.28)) !important;
}

.banner-card-img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* ==========================================
   Amazon Button Styles
   ========================================== */
.banner-amazon-btn {
    position: absolute !important;
    bottom: 2% !important;
    right: 4% !important;
    display: block !important;
    width: 180px !important;
    height: 55px !important;
    background-image: url('assets/images/amazon-button-rest.png') !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-decoration: none !important;
    transition: background-image 0.1s ease !important;
    z-index: 20 !important;
}

.banner-amazon-btn:hover {
    background-image: url('assets/images/amazon-button-hover.png') !important;
    transform: none !important;
}

.banner-amazon-btn:active {
    background-image: url('assets/images/amazon-button-click.png') !important;
}

/* ==========================================
   Contact Form Custom Sizing & Layout Fixes
   ========================================== */

/* Wider, taller message box */
.contact-white-card .message-input {
    width: 100% !important;
    max-width: 480px !important;
    height: 130px !important;
    padding: 12px 15px !important;
    border: 1px solid #cccccc !important;
    font-size: 0.95rem !important;
    font-family: inherit !important;
    resize: vertical !important;
    outline: none !important;
    margin-bottom: 12px !important;
}

/* Smaller, tighter email input to match */
.contact-white-card .email-input {
    width: 100% !important;
    max-width: 320px !important;
    height: 40px !important;
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    outline: none !important;
    border: 1px solid #cccccc !important;
    margin-bottom: 12px !important;
}

/* Smaller button */
.contact-white-card .drop-line-btn {
    width: auto !important;
    padding: 10px 25px !important;
    font-size: 0.85rem !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
}

/* Smaller, tighter email input to match */
.contact-white-card .email-input {
    width: 100% !important;
    max-width: 320px !important;
    height: 40px !important;
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    outline: none !important;
    border: 1px solid #cccccc !important;
}

/* Smaller button */
.contact-white-card .drop-line-btn {
    width: auto !important;
    padding: 10px 25px !important;
    font-size: 0.85rem !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
}

/* ==========================================
   Top Right "Download All" Header Button
   ========================================== */
.download-all-header-btn {
    position: absolute !important;
    top: -20px !important;
    right: 25px !important;
    background-color: #ffffff !important;
    color: #1a365d !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    z-index: 20 !important;
    transition: all 0.2s ease !important;
}

.download-all-header-btn:hover {
    background-color: #f0f4f8 !important;
    transform: translateY(-2px) !important;
}

@media (max-width: 768px) {
    .download-all-header-btn {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        display: block !important;
        width: fit-content !important;
        margin: -20px auto 20px auto !important;
    }
}

/* ==========================================
   Mobile Layout Fixes (Screens 768px and down)
   ========================================== */
@media (max-width: 768px) {

    /* 1. Fix the massive gap below the hero graphic */
    #launch-gate {
        min-height: auto !important;
        justify-content: flex-start !important;
        gap: 15px !important;
        padding: 95px 0 20px 0 !important;
        /* Clears the fixed navbar properly */
    }

    /* 2. Adjust yellow banner height and padding on mobile */
    #launch-gate div[style*="background-color: #ffffd7"] {
        height: auto !important;
        padding: 20px 10px !important;
        margin-top: 0 !important;
    }

    /* 3. Center and scale the banner card & Amazon button cleanly */
    .yellow-banner-inner {
        justify-content: center !important;
        padding: 0 !important;
    }

    .banner-message-card {
        width: 92% !important;
        max-width: 350px !important;
        margin: 0 auto !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
    }

    .banner-amazon-btn {
        width: 125px !important;
        height: 40px !important;
        bottom: 8% !important;
        right: 8% !important;
    }

    /* 4. Fix Download All button so it sits below the logo instead of overlapping */
    .download-all-header-btn {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        display: block !important;
        width: fit-content !important;
        margin: 30px auto 15px auto !important;
        /* Clears the overlapping logo */
        font-size: 0.85rem !important;
        padding: 8px 18px !important;
    }

    .coloring-container {
        padding-top: 40px !important;
        /* Gives breathing room at the top of the blue box */
        width: 95% !important;
        margin: 30px auto 20px auto !important;
    }

    /* 5. Hide peek-a-boo mice on mobile to prevent horizontal scrolling */
    .klaus {
        display: none !important;
    }

    /* 6. Coloring grid mobile fixes */
    .coloring-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        column-gap: 6px !important;
        row-gap: 12px !important;
    }

    .coloring-card {
        height: 230px !important;
        padding: 5px !important;
    }

    .image-container {
        height: 130px !important;
    }

    .btn-download {
        width: 130px !important;
        height: 38px !important;
        font-size: 0 !important;
    }
}