

/* --- Keyframe Animations --- */
@keyframes pop-in {
    0% { transform: scale(0.5); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slide-in {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.7); transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
    70% { box-shadow: 0 0 10px 20px rgba(255, 153, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 153, 0, 0); transform: translateX(-50%) scale(1); }
}

@keyframes draw-arrow {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
}


/* --- General Styles --- */
@keyframes background-pan {
    from { background-position: 0% 0%; }
    to { background-position: 100% 100%; }
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #FDFD96; /* Muted Yellow */
    background-image: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
    animation: background-pan 60s linear infinite;
    color: #212529;
    text-align: center;
    margin: 0;
    padding: 2rem;
}

#logo {
    max-width: 250px;
    margin-top: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

h1, h2 {
    font-family: 'Bangers', 'Marker Felt', 'Chalkduster', 'Bradley Hand', 'Trebuchet MS', sans-serif;
    color: #D62828; /* Strong Red/Orange from Logo */
    text-shadow: 3px 3px 0 #FFF, 6px 6px 0 rgba(0,0,0,0.2);
    letter-spacing: 2px;
}

h1 {
    font-size: 4.5em;
}

h2 {
    font-size: 3.5em;
}

main {
    max-width: 700px;
    margin: 2rem auto;
    background-color: #fdfdfd;
    padding: 2rem 2.5rem;
    border-radius: 10px;
    border: 4px solid #003049; /* Dark Blue from Logo */
    box-shadow: 10px 10px 0px #003049;
}

/* --- Book Section & Animations --- */
.book-section h2 {
    animation: pop-in 0.8s ease-out forwards;
}

.book-section ul li {
    opacity: 0; /* Start hidden */
    animation: slide-in 0.6s ease-out forwards;
}

/* Stagger the animation for each list item */
.book-section ul li:nth-child(1) { animation-delay: 0.5s; }
.book-section ul li:nth-child(2) { animation-delay: 0.7s; }
.book-section ul li:nth-child(3) { animation-delay: 0.9s; }
.book-section ul li:nth-child(4) { animation-delay: 1.1s; }


/* --- Buttons --- */
.master-button-container {
    position: relative;
    height: 150px; /* Give space for elements to move */
    margin-top: 2rem;
}

.cta-button {
    position: absolute;
    display: inline-block;
    font-family: 'Bangers', 'Marker Felt', 'Chalkduster', 'Bradley Hand', 'Trebuchet MS', sans-serif;
    font-size: 1.5em;
    letter-spacing: 1px;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #212529;
    box-shadow: 4px 4px 0 #212529;
    transition: transform 0.3s ease, box-shadow 0.2s ease-in-out;
    white-space: nowrap; /* Prevent text wrapping */
}

.cta-button:hover {
    transform: translateY(-4px) translateX(-4px);
    box-shadow: 8px 8px 0 #212529;
}

.cta-button:active {
    transform: translateY(2px) translateX(2px);
    box-shadow: 2px 2px 0 #212529;
}

/* Amazon Button Style */
#amazon-button {
    background-color: #F77F00; /* Bright Orange from Logo */
    animation: pulse 2s infinite 2s; /* Start pulsing after 2s delay */
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    /* Ensure button stays in place during animations */
    transform-origin: center;
}

/* Joke Button Style */
#joke-button {
    background-color: #007bff; /* Blue */
    top: 100px; /* Start below the amazon button */
    left: 50%;
    transform: translateX(-50%);
    /* Ensure smooth transitions */
    transition: transform 0.3s ease;
}

/* SVG Arrow Style */
#arrow-svg {
    position: absolute;
    width: 80px;
    height: 60px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    filter: drop-shadow(3px 3px 2px rgba(0,0,0,0.2));
    pointer-events: none; /* Make sure it doesn't block clicks */
}

#arrow-svg path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-arrow 1.5s ease-out forwards;
}


/* --- Footer --- */
footer {
    margin-top: 3rem;
    font-size: 1em;
    font-weight: bold;
    color: #003049;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    #logo {
        max-width: 200px;
    }
    
    h1 {
        font-size: 2.5em;
    }
    
    h2 {
        font-size: 2em;
    }
    
    main {
        max-width: 100%;
        padding: 1.5rem;
        margin: 1rem auto;
    }
    
    .master-button-container {
        height: 120px;
        margin-top: 1.5rem;
    }
    
    .cta-button {
        font-size: 1.2em;
        padding: 0.6rem 1.2rem;
    }
    
    .book-section div {
        max-width: 100% !important;
    }
    
    .book-section ul {
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }
    
    #logo {
        max-width: 150px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    main {
        padding: 1rem;
    }
    
    .master-button-container {
        height: 100px;
        margin-top: 1rem;
    }
    
    .cta-button {
        font-size: 1em;
        padding: 0.5rem 1rem;
    }
    
    .book-section ul {
        padding-left: 15px;
    }
}
