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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0e130 0%, #56ab2f 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.container {
    max-width: 600px;
    width: 90%;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

#story-container {
    text-align: center;
}

.scene {
    animation: fadeIn 0.8s ease-in;
}

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

.emoji {
    font-size: 80px;
    margin: 20px 0;
    display: block;
    animation: bounce 1s infinite;
}

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

h1 {
    color: #3a7d0a;
    font-size: 2.5em;
    margin-bottom: 20px;
    line-height: 1.3;
}

p {
    color: #333;
    font-size: 1.2em;
    line-height: 1.6;
    margin: 20px 0;
}

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

button {
    padding: 15px 30px;
    font-size: 1.1em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(245, 87, 108, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.4);
}

.btn-no {
    background: #e0e0e0;
    color: #666;
    position: relative;
}

.btn-no:hover {
    background: #d0d0d0;
}

.btn-back {
    background: none;
    color: #999;
    font-size: 0.9em;
    padding: 6px 14px;
    margin-bottom: 10px;
    border-radius: 8px;
    align-self: flex-start;
}

.btn-back:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
}

.heart {
    display: inline-block;
    color: #f5576c;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.celebration {
    animation: celebrate 0.6s ease-out;
}

@keyframes celebrate {
    0% {
        transform: scale(0.5) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 24px;
    animation: float-up 4s ease-in infinite;
    opacity: 0;
}

@keyframes float-up {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) rotate(180deg);
    }
}

.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .emoji {
        font-size: 60px;
    }
    
    p {
        font-size: 1.1em;
    }
    
    button {
        padding: 12px 24px;
        font-size: 1em;
    }
    
    .countdown-numbers {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 70px;
    }
}

/* Countdown styles */
.countdown {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(86, 171, 47, 0.1) 0%, rgba(240, 225, 48, 0.1) 100%);
    border-radius: 15px;
    border: 2px solid rgba(86, 171, 47, 0.3);
}

.countdown-text {
    font-size: 1.2em;
    color: #3a7d0a;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: lowercase;
}

.countdown-numbers {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #f5576c;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.countdown-label {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    text-transform: lowercase;
}

.countdown-subtext {
    font-size: 1em;
    color: #2d6a1e;
    margin-top: 15px;
    font-style: italic;
}

/* Photo gallery */
.photo-gallery {
    margin-top: 35px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(86, 171, 47, 0.08) 0%, rgba(240, 225, 48, 0.08) 100%);
    border-radius: 15px;
    border: 2px solid rgba(86, 171, 47, 0.2);
}

.photo-gallery-title {
    font-size: 1.1em;
    color: #3a7d0a;
    font-weight: 600;
    margin-bottom: 20px;
}

.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.photo-grid .photo-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 70%;
    margin: 0 auto;
}

.photo-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: scale(1.03);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 600px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-grid .photo-item:last-child:nth-child(odd) {
        max-width: 100%;
    }
}
