* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0a0a23; /* dark night blue */
    overflow: hidden; /* keep background fixed */
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    max-width: 500px;

    /* Make scrollable */
    max-height: 80vh;          /* limits height to 80% of viewport */
    overflow-y: auto;          /* vertical scroll if content is too tall */
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */

    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    z-index: 2;
    position: relative;
}

h1 {
    color: #e63946;
    margin-bottom: 15px;
}

.message {
    font-size: 15px;
    margin-bottom: 20px;
    color: #444;
}

.question {
    font-size: 22px;
    margin-bottom: 25px;
    color: #d62828;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

button {
    padding: 12px 22px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.yes-btn {
    background-color: #ff4d6d;
    color: white;
}

.yes-btn:hover {
    transform: scale(1.1);
    background-color: #e63956;
}

.no-btn {
    background-color: #ccc;
    color: #333;
}

.no-btn:hover {
    background-color: #999;
}

.photo-gallery {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.photo-gallery img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.photo-gallery img:hover {
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .card {
        padding: 25px;
    }

    .question {
        font-size: 18px;
    }

    button {
        font-size: 14px;
        padding: 10px 18px;
    }
}

.love-letter {
    margin-top: 20px;
    padding: 20px;
    background: #fff0f3;
    border-radius: 15px;
    text-align: left;
    line-height: 1.6;
    color: #5a189a;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.hearts {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.heart {
    position: absolute;
    bottom: -20px;
    font-size: 20px;
    animation: floatUp 6s linear infinite;
    opacity: 0.8;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) scale(1.5);
        opacity: 0;
    }
}

#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* behind hearts and card */
    pointer-events: none;
}

.hearts {
    z-index: 1;
}

.card {
    z-index: 2;
}

.card {
    -webkit-overflow-scrolling: touch;  /* Smooth scrolling on iOS */
}
}