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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 25%, #ffecd2 50%, #fcb69f 75%, #ff9a9e 100%);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.screen {
    display: none;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
}

.screen.active {
    display: flex;
}

/* Loading Screen */
.loading-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.loading-hearts {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.loading-heart {
    font-size: 2rem;
    animation: heartPulse 1.5s ease-in-out infinite;
}

.loading-heart:nth-child(2) {
    animation-delay: 0.3s;
}

.loading-heart:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* Mobile hint */
.mobile-hint {
    font-size: 1rem;
    color: #ff6b6b;
    font-style: italic;
    margin-bottom: 1rem;
    display: none;
}

/* Persistence message */
.persistence-message {
    font-size: 1.3rem;
    color: #e91e63;
    font-weight: bold;
    margin-top: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    animation: fadeInBounce 0.5s ease-out;
}

/* Test sound button */
.test-sound-btn {
    background: #666;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.test-sound-btn:hover {
    opacity: 1;
}

@keyframes fadeInBounce {
    0% { opacity: 0; transform: scale(0.8) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

h1 {
    font-size: 3rem;
    color: #e91e63;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 3rem;
    font-style: italic;
}

.button-container {
    position: relative;
    width: 100vw;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 120px;
}

.yes-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 10px 20px rgba(238, 90, 36, 0.3);
    position: relative;
}

.yes-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(238, 90, 36, 0.4);
}

.no-btn {
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    color: white;
    box-shadow: 0 10px 20px rgba(9, 132, 227, 0.3);
    position: absolute;
    transition: none;
}

/* Balloon Screen Styles */
.balloon-container {
    text-align: center;
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#balloon-date {
    font-size: 2rem;
    color: #e91e63;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.location-text {
    font-size: 1.4rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.instruction {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

.countdown-message {
    font-size: 1.5rem;
    color: #e91e63;
    font-weight: bold;
    margin-top: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.balloon {
    font-size: 8rem;
    animation: float 3s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.balloon:hover {
    transform: scale(1.1);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(0); opacity: 0; }
}

.balloon.popping {
    animation: pop 0.5s ease-out forwards;
}

/* Hearts Animation */
.hearts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.heart {
    position: absolute;
    font-size: 2rem;
    color: #e91e63;
    animation: heartFloat 3s ease-out forwards;
    opacity: 0;
}

@keyframes heartFloat {
    0% {
        opacity: 1;
        transform: translateY(50vh) scale(0);
    }
    10% {
        transform: translateY(40vh) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1.5);
    }
}

.final-message {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.final-message h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.final-message p {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1rem;
}

.final-location {
    font-size: 1.3rem;
    color: #ff6b6b;
    font-weight: bold;
    margin-top: 1rem;
}

.hidden {
    display: none !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .mobile-hint {
        display: block; /* Show mobile hint on mobile devices */
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem; /* Less margin since mobile hint is shown */
    }
    
    .btn {
        padding: 1rem 1.5rem;
        font-size: 1.2rem;
        min-width: 100px;
        touch-action: manipulation; /* Prevents zoom on double-tap */
    }
    
    .button-container {
        gap: 2rem;
        height: 250px; /* More space for button to move around */
    }
    
    .no-btn {
        /* Ensure button is easily tappable when it stops moving */
        min-height: 44px; /* iOS recommended touch target size */
        min-width: 100px;
    }
    
    .balloon {
        font-size: 6rem;
    }
    
    .final-message h1 {
        font-size: 2.5rem;
    }
    
    .location-text {
        font-size: 1.2rem;
    }
}