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

body {
    font-family: 'Quicksand', sans-serif;
    background-image: url('/CORAZONES.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-y: auto;
    color: #4a4a4a;  
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    text-align: center;
}

.login-container, .love-letter-container {
    background-color: rgba(255, 245, 245, 0.9);  
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(255,100,100,0.1);
    padding: 30px;
    max-height: 80vh;
    overflow-y: auto;
}

#love-form {
    display: grid;
    gap: 15px;
}

input {
    width: 100%;
    padding: 10px;
    border: 1.5px solid #c61f54;  
    border-radius: 8px;
    outline: none;
    font-family: 'Quicksand', sans-serif;
}

.hint {
    color: #c61f54;  
    font-size: 0.8em;
}

button {
    background-color: #c61f54;  
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Quicksand', sans-serif;
}

button:hover {
    background-color: #a11743;  
}

.hidden {
    display: none;
}

.love-letter-container {
    position: relative;
    overflow: hidden;
    max-height: 80vh;
}

.scrollable-content {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 10px;
}

.heart-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.love-content {
    position: relative;
    z-index: 2;
    text-align: center;
    line-height: 1.6;
}

.love-content h2 {
    color: #c61f54;  
    margin-bottom: 20px;
}

.signature {
    margin-top: 30px;
    font-style: italic;
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23c61f54"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
    background-size: cover;
    animation: fall 3s linear infinite;
}

.final-question {
    margin-top: 30px;
    position: sticky;
    bottom: 0;
    background-color: rgba(255, 245, 245, 0.9);
    padding: 10px 0;
}

.answer-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.yes-button {
    background-color: #c61f54;  
    color: white;
}

.no-button {
    background-color: #c61f54;  
    color: white;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

@media (max-width: 600px) {
    .container {
        width: 90%;
        padding: 10px;
    }
    
    .love-letter-container {
        max-height: 90vh;
    }
    
    .scrollable-content {
        max-height: 60vh;
    }
}

/* Custom scrollbar for better aesthetics */
.scrollable-content::-webkit-scrollbar {
    width: 8px;
}

.scrollable-content::-webkit-scrollbar-track {
    background: rgba(198, 31, 84, 0.1);
}

.scrollable-content::-webkit-scrollbar-thumb {
    background: #c61f54;
    border-radius: 4px;
}