* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Content */
.content {
    text-align: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title {
    font-size: 3.5em;
    color: #764ba2;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Wish Section */
.wish-section {
    background: rgba(230, 200, 255, 0.4);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    border: 2px solid #764ba2;
}

.wish-label {
    font-size: 1.1em;
    color: #764ba2;
    margin-bottom: 15px;
    font-weight: bold;
}

.wish-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #667eea;
    border-radius: 10px;
    font-family: 'Arial', sans-serif;
    font-size: 1em;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.wish-input:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 10px rgba(118, 75, 162, 0.3);
}

.wish-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 1em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.wish-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

.wish-display {
    min-height: 50px;
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border-left: 5px solid #667eea;
    font-size: 1.1em;
    color: #333;
    word-wrap: break-word;
    white-space: pre-wrap;
    animation: fadeIn 0.5s ease-out;
}

/* Celebration Section */
.celebration-hidden {
    display: none;
}

.celebration-show {
    display: block;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.happy-birthday-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 25px 0;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#birthdayMessage {
    font-size: 2em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.wishes-container {
    background: rgba(230, 200, 255, 0.4);
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    border: 2px solid #764ba2;
}

.wishes-title {
    font-size: 1.2em;
    color: #764ba2;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

.wishes-display {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wish-item {
    background: white;
    padding: 12px 15px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    font-size: 1em;
    color: #333;
    animation: dropDown 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes dropDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wish-item:hover {
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transform: translateX(5px);
    transition: all 0.3s ease;
}



.subtitle {
    font-size: 1.3em;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Cake */
.cake {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 40px auto;
}

.cake-body {
    width: 150px;
    height: 100px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border-radius: 10px 10px 20px 20px;
    position: relative;
    box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.2);
}

.cake-body::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 20px;
    background: #fff59d;
    border-radius: 50%;
    opacity: 0.8;
}

.candle {
    position: absolute;
    top: -40px;
    width: 6px;
    height: 35px;
    background: #ffeb3b;
    border-radius: 10px;
    animation: flicker 0.5s ease-in-out infinite;
}

.candle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 15px;
    background: #ff6b6b;
    border-radius: 50% 50% 50% 0;
    animation: flame 0.5s ease-in-out infinite;
}

.candle:nth-child(1) {
    left: 20px;
    animation-delay: 0s;
}

.candle:nth-child(2) {
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.1s;
}

.candle:nth-child(3) {
    right: 20px;
    animation-delay: 0.2s;
}

@keyframes flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes flame {
    0%, 100% {
        transform: translateX(-50%) scaleY(1);
    }
    50% {
        transform: translateX(-50%) scaleY(1.1);
    }
}

/* Message Box */
.message-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 30px 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(118, 75, 162, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(118, 75, 162, 0);
    }
}

.message {
    font-size: 1.2em;
    margin: 0;
}

/* Button */
.button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    margin-top: 20px;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.6);
}

.button:active {
    transform: translateY(-1px);
}

/* Balloons */
.balloons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.balloon {
    position: absolute;
    width: 40px;
    height: 50px;
    border-radius: 50% 50% 50% 0;
    opacity: 0.8;
    animation: float 6s ease-in infinite;
}

.balloon::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 20px;
    background: rgba(0, 0, 0, 0.2);
}

.balloon1 {
    left: 10%;
    bottom: -50px;
    background: #ff6b6b;
    animation-duration: 6s;
    animation-delay: 0s;
}

.balloon2 {
    left: 25%;
    bottom: -50px;
    background: #4ecdc4;
    animation-duration: 7s;
    animation-delay: 0.5s;
}

.balloon3 {
    left: 50%;
    bottom: -50px;
    background: #ffe66d;
    animation-duration: 6.5s;
    animation-delay: 1s;
}

.balloon4 {
    left: 75%;
    bottom: -50px;
    background: #95e1d3;
    animation-duration: 7.5s;
    animation-delay: 0.2s;
}

.balloon5 {
    right: 10%;
    bottom: -50px;
    background: #f38181;
    animation-duration: 6.8s;
    animation-delay: 0.7s;
}

@keyframes float {
    0% {
        bottom: -50px;
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Confetti */
.confetti {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    opacity: 1;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .content {
        padding: 30px;
        margin: 20px;
    }

    .title {
        font-size: 2.5em;
    }

    .subtitle {
        font-size: 1em;
    }
}
