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

body {
    font-family: 'Dancing Script', cursive;
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 25%, #A0522D 50%, #CD853F 75%, #DEB887 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

.star {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

.chocolates-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.falling-chocolate {
    position: absolute;
    font-size: 20px;
    opacity: 0.8;
    animation: fall linear infinite;
    pointer-events: none;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0.3;
    }
}

.container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px 20px 60px 20px;
    max-width: 900px;
    width: 100%;
}

.header {
    margin-bottom: 40px;
    animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: #fff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(139, 69, 19, 0.5),
        3px 3px 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { 
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.5),
            0 0 20px rgba(255, 255, 255, 0.3),
            0 0 30px rgba(139, 69, 19, 0.5),
            3px 3px 5px rgba(0, 0, 0, 0.3);
    }
    50% { 
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 0.8),
            0 0 30px rgba(255, 255, 255, 0.5),
            0 0 40px rgba(139, 69, 19, 0.8),
            3px 3px 5px rgba(0, 0, 0, 0.3);
    }
}

.date {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
}

.message {
    font-size: 1.8rem;
    color: #FFF8DC;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

/* Chocolate Box Styles */
.chocolate-box-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    animation: fadeInUp 1.5s ease;
    perspective: 1000px;
}

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

.chocolate-box {
    position: relative;
    width: 400px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotateY(0deg); }
    25% { transform: translateY(-10px) rotateY(5deg); }
    50% { transform: translateY(0px) rotateY(0deg); }
    75% { transform: translateY(-10px) rotateY(-5deg); }
}

.box-lid {
    position: relative;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #8B0000 100%);
    border-radius: 10px 10px 0 0;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 -3px 10px rgba(0, 0, 0, 0.2),
        inset 0 3px 10px rgba(255, 255, 255, 0.2);
    animation: lidBounce 3s ease-in-out infinite;
}

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

.ribbon {
    position: absolute;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.ribbon-horizontal {
    width: 100%;
    height: 20px;
    top: 20px;
    left: 0;
}

.ribbon-vertical {
    width: 20px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.bow {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
}

.bow-left, .bow-right {
    position: absolute;
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50% 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.bow-left {
    left: 0;
    transform: rotate(-45deg);
}

.bow-right {
    right: 0;
    transform: rotate(135deg);
}

.bow-center {
    position: absolute;
    width: 15px;
    height: 15px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.box-base {
    width: 100%;
    background: linear-gradient(135deg, #F5DEB3 0%, #DEB887 50%, #D2B48C 100%);
    border-radius: 0 0 10px 10px;
    padding: 30px 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 5px 15px rgba(255, 255, 255, 0.3),
        inset 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.chocolate-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.chocolate-row:last-child {
    margin-bottom: 0;
}

.chocolate {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.4),
        inset 0 2px 5px rgba(255, 255, 255, 0.3);
    animation: chocolateBounce 2s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chocolate:hover {
    transform: scale(1.1) rotate(5deg);
}

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

.dark-chocolate {
    background: linear-gradient(135deg, #3d2817 0%, #5c3a1f 50%, #3d2817 100%);
    animation-delay: 0s;
}

.milk-chocolate {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
    animation-delay: 0.2s;
}

.white-chocolate {
    background: linear-gradient(135deg, #FFF8DC 0%, #FFFACD 50%, #FFF8DC 100%);
    animation-delay: 0.4s;
}

.hazelnut-chocolate {
    background: linear-gradient(135deg, #6B4423 0%, #8B5A3C 50%, #6B4423 100%);
    animation-delay: 0.6s;
}

.chocolate-shine {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    filter: blur(3px);
}

.chocolate-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chocolate:hover .chocolate-wrapper {
    opacity: 1;
}

/* Stagger animations for each chocolate */
.chocolate-1 { animation-delay: 0.1s; }
.chocolate-2 { animation-delay: 0.2s; }
.chocolate-3 { animation-delay: 0.3s; }
.chocolate-4 { animation-delay: 0.4s; }
.chocolate-5 { animation-delay: 0.5s; }
.chocolate-6 { animation-delay: 0.6s; }
.chocolate-7 { animation-delay: 0.7s; }
.chocolate-8 { animation-delay: 0.8s; }
.chocolate-9 { animation-delay: 0.9s; }
.chocolate-10 { animation-delay: 1s; }
.chocolate-11 { animation-delay: 1.1s; }
.chocolate-12 { animation-delay: 1.2s; }

/* Love Message */
.love-message {
    margin: 40px 0;
    animation: fadeIn 2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.quote {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
    margin-bottom: 10px;
}

.quote-sub {
    font-size: 2rem;
    color: #FFE4E1;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Surprise Button */
.surprise-btn {
    position: relative;
    padding: 15px 40px;
    font-size: 1.5rem;
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #8B0000 100%);
    color: white;
    border: 3px solid #FFD700;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 30px;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.4),
        inset 0 2px 5px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: buttonPulse 2s ease-in-out infinite;
    overflow: hidden;
}

@keyframes buttonPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); }
}

.surprise-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 50%, #DC143C 100%);
    box-shadow: 
        0 10px 30px rgba(220, 20, 60, 0.5),
        inset 0 2px 5px rgba(255, 255, 255, 0.4);
}

.surprise-btn:active {
    transform: scale(0.95);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: btnGlowMove 3s linear infinite;
}

@keyframes btnGlowMove {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Canvas for hearts animation */
#heartsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .date {
        font-size: 1.2rem;
    }
    
    .message {
        font-size: 1.3rem;
    }
    
    .chocolate-box {
        width: 300px;
    }
    
    .chocolate {
        width: 55px;
        height: 55px;
    }
    
    .quote {
        font-size: 1.8rem;
    }
    
    .quote-sub {
        font-size: 1.5rem;
    }
    
    .surprise-btn {
        font-size: 1.2rem;
        padding: 12px 30px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .chocolate-box {
        width: 250px;
    }
    
    .chocolate {
        width: 45px;
        height: 45px;
    }
    
    .box-lid {
        height: 50px;
    }
}
