body {
    background-color: #FFECF4;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    color: #5D4037;
    text-align: center;
}

.container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 90%;
    z-index: 2;
    transition: opacity 0.5s ease-in-out;
}

.container.fade-out {
    opacity: 0;
}

h1 {
    font-family: Arial, sans-serif;
    color: #D81B60;
    font-size: 2.5em;
}

p {
     font-size: 1.1em;
    line-height: 1.6;
    text-align: justify;
}

.button-container {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

button {
    background-color: #E91E63;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}

button:hover {
    background-color: #D81B60;
    transform: translateY(-2px);
}

.heart {
    position: absolute;
    font-size: 2rem;
    color: #FF80AB;
    top: -10vh; 
    animation: fall 10s linear infinite;
    z-index: 1;
}

@keyframes fall {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(120vh);
        opacity: 0;
    }
}

video {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

#final-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* UBAHAN DI SINI */
    overflow-y: auto;      /* UBAHAN DI SINI */
    display: none;
    opacity: 0;
    transition: opacity 1.5s ease-in;
}

#final-text {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    line-height: 1.8;
    text-align: justify;
    max-width: 800px;
    padding: 40px;
    white-space: pre-wrap;
}

/* --- Media Query untuk Layar Kecil (HP) --- */
@media (max-width: 600px) {
    .container {
        padding: 25px;
    }
    h1 {
        font-size: 2em;
    }
    p {
        font-size: 1em;
    }
    button {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    #final-text {
        font-size: 1em;
        padding: 20px;
    }
}
