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

body {
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
    overflow-x: hidden; /* Prevents characters from causing side-scroll */
    -webkit-text-size-adjust: 100%;
}

/* --- Cartoon Characters Styling --- */

.char-top {
    position: fixed;
    top: 0;
    left: 50%;
    /* Flip upside down and move up so only half shows */
    transform: translateX(-50%) rotate(180deg) translateY(40%); 
    width: 250px; /* Big size */
    z-index: 1; /* Behind the box */
    pointer-events: none; /* User can click through the image */
    opacity: 0.9;
}

.char-bottom {
    position: fixed;
    bottom: 0;
    left: 50%;
    /* Move down so only more than half shows */
    transform: translateX(-50%) translateY(35%);
    width: 280px; /* Big size */
    z-index: 1;
    pointer-events: none;
    opacity: 0.9;
}

/* --- Main Story Box --- */
.box {
    position: relative;
    z-index: 10; /* Ensures box is always on top of characters */
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 80px 40px; 
    width: min(92vw, 650px);
    min-height: 300px; /* Keeping it tall */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    animation: fadeIn 0.8s ease-out;
}

h2 {
    font-size: 36px; /* Slightly larger */
    color: #ff4d6d;
    line-height: 1.2;
    font-weight: 800;
}

p {
    font-size: 22px; /* Increased for better mobile legibility */
    line-height: 1.6;
    font-weight: 450;
    max-width: 90%;
}

button {
    padding: 20px 45px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff4d6d, #ff758c);
    color: white;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(255, 77, 109, 0.35);

     /* ADD THESE */
    width: 100%;
    max-width: 300px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(255, 77, 109, 0.35);
}

button:active { transform: scale(0.95); }

/* --- Responsive Adjustments --- */

@media (max-width: 480px) {
    .box {
        padding: 60px 25px;
        min-height: 55vh; /* Larger presence on mobile */
    }

    h2 { font-size: 30px; }
    p { font-size: 20px; }

    /* Adjusting character sizes for smaller screens */
    .char-top { 
        width: 200px; 
        transform: translateX(-50%) rotate(180deg) translateY(45%);
    }
    .char-bottom { 
        width: 220px; 
        transform: translateX(-50%) translateY(40%);
    }

    button { width: 100%; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

