body {
    background-image: url('backgrounds/home_page_bg.png');
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    font-family: Arial, sans-serif;
    color: #fff;
}


/* Style the links as boxed buttons */
.link-box {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background-color: #FFD700;
    /* Gold-colored box */
    color: black;
    /* Text color */
    text-align: center;
    border-radius: 5px;
    /* Rounded corners */
    font-weight: bold;
    text-decoration: none;
}

header {
    text-align: center;
    margin-bottom: 20px;
    /* Adds space between header and links */
    font-size: 2em;
    color: white;
}

.old-nav,
.original-links {
    display: none !important;
}

.grumpy-navbar {
    width: 100%;
    /* Stretch across entire viewport */
    display: flex;
    justify-content: center;
    gap: 2rem;
    background-color: #103c9d00;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 0;
    /* Remove border radius if you want flat edges */
}


.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin-top: -50px;
    /* Adjust to center vertically */
}

.contact-form {
    background: rgba(0, 40, 80, 0.8);
    padding: 25px;
    border-radius: 10px;
    max-width: 400px;
    width: 100%;
    color: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);

}

.contact-form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
}

.contact-form textarea {
    min-height: 100px;
}

.send-button {
    background: #FFD700;
    color: black;
    padding: 12px 24px;
    font-size: 18px;
    border-radius: 8px;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.send-button:hover {
    background: #FFA500;
    transform: scale(1.1);
}

.hidden {
    display: none;
    color: #73ff00;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}

.share {
    color: #1a1918
}

.send-button {
    background: #FFD700;
    /* Bright gold */
    color: black;
    padding: 12px 24px;
    font-size: 18px;
    border-radius: 8px;
    transition: 0.3s ease;
}

.send-button:hover {
    background: #ec7906;
    /* Orange glow effect */
    transform: scale(1.1);
}

/* Position the links in the middle top */
.links-container {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
}

.link-box {
    display: inline-block;
    padding: 12px 22px;
    margin: 10px;
    background-color: #ffffff;
    /* Gold-colored box */
    color: rgb(206, 7, 7);
    text-align: center;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.link-box:hover {
    background-color: #2600ff;
    /* Orange effect on hover */
    transform: scale(1.1);
}

.navigation-links {
    text-align: center;
    margin-top: 20px;
}

.navigation-links .link-box {
    display: inline-block;
    padding: 12px 22px;
    margin: 10px;
    background-color: #ffffff;
    /* Gold color */
    color: rgb(219, 5, 5);
    text-align: center;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.navigation-links .link-box:hover {
    background-color: #FFA500;
    /* Orange hover effect */
    transform: scale(1.1);
}

.home-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: #FFD700;
    color: black;
    font-size: 18px;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s ease-in-out;
}

.home-btn:hover {
    background: #FFA500;
    transform: scale(1.1);
}

.button {
    display: inline-block;
    padding: 15px 25px;
    background: linear-gradient(to right, #0066ff, #00ccff);
    color: white;
    font-size: 18px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(94, 255, 0, 0.959);
}

.btn {
    background-color: #ffcc00;
    transition: 0.3s;
}

.btn:hover {
    background-color: #ff9900;
    transform: scale(1.1);
}

.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes waveEffect {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

.oceanic-transition {
    animation: waveEffect 1.5s infinite ease-in-out;
}

.book-page-text,
h1 {
    background: rgba(240, 248, 245, 0);
    /* Subtle ocean tone */
    color: rgb(255, 0, 34);
    font-size: 1.5em;

}

.book-list {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.book-list a img {
    width: 200px;
    /* Adjust as needed */
    border-radius: 10px;
    /* Adds smooth edges */
    transition: transform 0.3s ease-in-out;
}

.book-list a img:hover {
    transform: scale(1.05);
    /* Slight zoom effect on hover */
}

h1,
h2 {
    text-align: center;

}

h2 {
    font-weight: bold;
    color: red;
}

.book-info {
    background: rgba(0, 40, 80, 0.8);
    /* Subtle ocean tone */
    color: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    width: 80%;
    margin: 10px auto;
    margin-top: 160px;
}

.book-info-2 {
    background: rgba(0, 40, 80, 0.8);
    /* Subtle ocean tone */
    color: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    width: 80%;
    margin: 10px auto;
    margin-top: 350px;
}

.book-info-1 {
    background: rgba(0, 40, 80, 0.8);
    /* Subtle ocean tone */
    color: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    width: 80%;
    margin: 10px auto;
    margin-top: 300px;
}

.book-description {
    font-size: 1.7em;
    font-weight: bold;
    line-height: 1.5;
    color: #f10057;
    margin-left: 600px;
}

/* === Book Card Glowing Popup === */
.book-card {
    position: relative;
    width: 200px;
    margin: 20px;
    text-align: center;
}

.book-card img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.book-card:hover img {
    transform: scale(1.05);
}

.book-popup {
    display: none;
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    width: 220px;
    text-align: center;
    z-index: 10;
    animation: glowPulse 2s ease-in-out infinite;
}

.book-card:hover .book-popup {
    display: block;
}

/* === Boosted Glow Effect === */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.8),
            0 0 30px rgba(0, 255, 255, 0.6),
            0 0 40px rgba(0, 255, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 35px rgba(0, 255, 255, 1),
            0 0 55px rgba(0, 255, 255, 0.9),
            0 0 65px rgba(0, 255, 255, 0.8);
    }

    100% {
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.8),
            0 0 30px rgba(0, 255, 255, 0.6),
            0 0 40px rgba(0, 255, 255, 0.4);
    }
}

.book-gallery-container {
    padding: 40px;
    text-align: center;
    color: white;
}

.book-gallery {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.book-tile {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    width: 200px;
}

.book-tile img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.book-tile p {
    font-size: 1em;
    color: #FFD700;
    font-weight: bold;
}

.inside-book-container {
    text-align: center;
    padding: 40px;
    color: white;
}

.inside-book-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.inside-book-gallery img {
    width: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease-in-out;
}

.inside-book-gallery img:hover {
    transform: scale(1.05);
}

.book-preview-text {
    font-size: 1.3em;
    margin: 20px auto;
    max-width: 600px;
    color: #FFD700;

}

.book-display {
    text-align: center;
    padding: 40px 20px;
}

.book-preview-bio {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: rgb(0, 128, 255);
    border-left: 6px solid #0077aa;
    border-radius: 8px;
    font-size: 25px;
    line-height: 1.6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

@media (max-width: 600px) {

    .book-row,
    .character-list {
        flex-direction: column;
        align-items: center;
    }

    .book-tile img,
    .character-card img {
        max-width: 80%;
    }

    .speak-btn,
    .link-box,
    .home-btn {
        width: 90%;
        font-size: 16px;
        margin: 10px auto;
        display: block;
    }

    .book-label,
    .book-tile p,
    .coming-soon {
        font-size: 14px;
    }
}

.book-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.book-tile img {
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.book-tile img:hover {
    transform: scale(1.05);
}

.coming-soon {
    color: #fefeff !important;
    font-size: 25px;
    font-weight: bold;
}

.bold-text {
    font-weight: bold;
}

.welcome-text {
    text-align: center;
    font-size: 1.5em;
    margin-top: 20px;
    color: #ff0404;
}

.buy-btn,
.contact-button {
    display: inline-block;
    background: #ffcc00;
    padding: 15px 30px;
    font-size: 18px;
    text-decoration: none;
    color: black;
    border-radius: 8px;
    transition: 0.3s;
}

.contact-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    /* center horizontally */
    transform: translateX(-50%);
}

.buy-btn:hover {
    background: #ff0000;
}

.contact-btn:hover {
    background: #005fa3;
}

.playfair-display-uniquifier> {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
}

.character-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}


.character-card {
    position: relative;
    display: inline-block;
    text-align: center;
    margin: 10px;
}

.character-card p {
    margin: 5px 0;
    font-weight: bold;
    color: #FFD700;
}



.character-card img {
    width: 100px;
    height: 180;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.character-card:hover img {
    transform: scale(1.1);
}

.character-bio {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    width: 180px;
    font-size: 14px;
    text-align: center;
    z-index: 10;
    animation: glowPulse 2s ease-in-out infinite;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.character-card:hover .character-bio {
    display: block;
    animation: glowPulse 1.8s ease-in-out infinite;
}

.character-card p {
    color: rgb(255, 251, 2);
    font-weight: bold;
}

.character-intro {
    background-color: #0345fc;
    margin-top: 40px;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.05em;
    line-height: 1.6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.buy-btn {
    background: #ffcc00;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.buy-btn:hover {
    background: #ff0037;
}


/* === Contact Section Styles (Newly Added) === */
.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    /* Adds space between books & contact section */
}

.contact-btn,
.home-btn {
    width: 250px;
    text-align: center;
    padding: 12px;
    font-size: 18px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.contact-btn {
    background: #0077cc;
    color: white;
}

.contact-btn:hover {
    background: #005fa3;
    transform: scale(1.05);
}

.home-btn {
    background: #FFD700;
    color: black;
}

.home-btn:hover {
    background: #FFA500;
    transform: scale(1.05);
}





@keyframes glowPulse {
    0% {
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.5),
            0 0 20px rgba(0, 255, 255, 0.4),
            0 0 30px rgba(0, 255, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 26px rgba(0, 255, 255, 0.9),
            0 0 40px rgba(0, 255, 255, 0.7),
            0 0 50px rgba(0, 255, 255, 0.6);
    }

    100% {
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.5),
            0 0 20px rgba(0, 255, 255, 0.4),
            0 0 30px rgba(0, 255, 255, 0.2);
    }
}

.author-bio {
    background-color: #033cf7;
    padding: 10px;
    margin-top: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1em;
    line-height: 1.6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.character-intro,
.author-bio {
    max-width: 900px;
    margin: 20px auto;
    padding: 10px;
    background-color: rgb(0, 38, 255);
    /* tweak this for tone */
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sample-pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.sample-pages img {
    width: 30%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}



.image-wrapper .click-overlay {
    background: rgba(128, 128, 128, 0.7);
    /* more neutral tone */
}

button {
    pointer-events: auto !important;
    z-index: 9999 !important;
    position: relative !important;
}

main {
    z-index: 0 !important;
    position: relative !important;
}

@keyframes pulseSpeak {
    0% {
        box-shadow: 0 0 10px rgba(0, 200, 255, 0.7);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 200, 255, 1);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 10px rgba(0, 200, 255, 0.7);
        transform: scale(1);
    }
}

.speaking {
    animation: pulseSpeak 1s infinite;
    outline: 3px solid #00ccff;
}

.speak-btn {
    background: #FFD700;
    color: black;
    padding: 12px 24px;
    font-size: 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.speak-btn:hover {
    background: #FFA500;
    transform: scale(1.05);
}

.speaking {
    animation: pulseSpeak 1s infinite;
    outline: 3px solid #00ccff;
}

.hungry {
    font-size: 25px;
    margin-top: 150px;
}

footer {
    background-color: #002f4b;
    /* Deep blue tone */
    color: #ffffff;
    text-align: center;
    padding: 20px 10px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    margin-top: 312px;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer a {
    color: #00aced;
    /* Accent color for links */
    text-decoration: none;
    margin: 0 8px;
}

footer a:hover {
    text-decoration: underline;
}

footer nav {
    margin-top: 10px;
}

.game-area {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px 0;
}

.card-back {
    width: 120px;
    height: 160px;
    background-image: url('characters/card-back.png');
    background-repeat: no-repeat;
    background-position: center;
    /* Replace with your Grumpy back */
    background-size: contain;

    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.character-card {
    width: 120px;
    /* Set the desired width */
    height: 160px;
    /* Set the desired height */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* Ensures the image fills the card */
    border-radius: 8px;
    /* Optional: for rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Optional: for a subtle shadow */
}

.badge-popup {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: gold;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: pop-in 0.4s ease;
    text-align: center;
}

.badge-popup img {
    width: 80px;
    height: auto;
}

.badge-popup.fade-out {
    opacity: 0;
    transition: opacity 1s ease-out;
}

@keyframes pop-in {
    from {
        transform: translateX(-50%) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .intro-container {
        text-align: center;
        padding: 1rem;
    }

    .intro-container h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: white;
        background-color: rgba(0, 0, 0, 0.4);
        padding: 0.5rem;
        border-radius: 8px;
    }

    .books-button {
        display: block;
        margin: 1rem auto;
        font-size: 1rem;
        padding: 0.6rem 1rem;
        background-color: #2b6cb0;
        color: white;
        border: none;
        border-radius: 6px;
        z-index: 2;
        position: relative;
    }

    .books-grid img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto 1rem;
    }
}