body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    min-height: 100vh;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.birthday-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    position: relative;
}

h1 {
    color: #ff4b6e;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.message {
    margin: 30px 0;
}

.birthday-wish {
    font-size: 1.2em;
    color: #666;
}

button {
    background: #ff4b6e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
    transition: transform 0.3s;
}

button:hover {
    transform: scale(1.05);
}

.plate {
    width: 120px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    position: relative;
    bottom: -95%;
}

.layer {
    width: 100px;
    height: 60px;
    background: #ff9a9e;
    border-radius: 10px;
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.icing {
    width: 100px;
    height: 15px;
    background: white;
    border-radius: 10px;
    position: absolute;
    bottom: 70px;
    left: 10px;
}

.balloons {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
}

.balloon {
    width: 30px;
    height: 40px;
    background: #ff4b6e;
    border-radius: 50%;
    position: absolute;
    animation: float 3s infinite;
}

.balloon:nth-child(2) {
    left: 50%;
    background: #4b9eff;
    animation-delay: 0.5s;
}

.balloon:nth-child(3) {
    right: 20%;
    background: #ffd700;
    animation-delay: 1s;
}

.cake {
    margin: 40px auto;
    position: relative;
    width: 200px;
    height: 180px;
    left: 7%;
}

.candle {
    width: 15px;
    height: 45px;
    background: linear-gradient(45deg, #ffd700, #ffeb3b);
    position: absolute;
    bottom: 33%;
    left: 25%;
    border-radius: 8px;
}

.flame {
    width: 15px;
    height: 30px;
    background: linear-gradient(to bottom, #ff0000, #ffa500);
    border-radius: 50% 50% 20% 20%;
    position: absolute;
    top: -25px;
    left: 0;
    transform-origin: bottom;
    animation: flicker 1s ease-in-out infinite;
    box-shadow: 0 0 10px #ff6b6b, 
                0 0 20px #ff6b6b,
                0 0 30px #ff4500;
}

@keyframes flicker {
    0%, 100% { 
        transform: scaleY(1) rotate(-2deg);
        opacity: 0.9;
    }
    25% { 
        transform: scaleY(1.1) rotate(2deg);
        opacity: 1;
    }
    50% { 
        transform: scaleY(0.9) rotate(-1deg);
        opacity: 0.8;
    }
    75% { 
        transform: scaleY(1.2) rotate(1deg);
        opacity: 1;
    }
}

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