* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Contenedor de confeti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

/**/


#start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

#start-btn {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #FF69B4, #FFD700);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
    transition: transform 0.3s ease;
}

#start-btn:hover {
    transform: scale(1.1);
}


/**/

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FF69B4;
    animation: confetti-fall 3s linear infinite;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Contenedor principal */
.celebration-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: slideDown 1s ease-out;
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    animation: glow 2s ease-in-out infinite alternate;
}

.name-title {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #FF69B4, #9B59B6, #3498DB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    animation: rainbow 3s ease-in-out infinite;
}

.subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Animaciones del header */
@keyframes slideDown {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes glow {
    0% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.4);
    }
    100% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 215, 0, 0.8);
    }
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Contenedor de la torta */
.cake-container {
    position: relative;
    margin-bottom: 3rem;
    animation: slideUp 1.2s ease-out 0.5s both;
}

.cake {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Capas de la torta */
.cake-layer {
    position: relative;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cake-bottom {
    width: 200px;
    height: 80px;
    background: linear-gradient(45deg, #8B4513, #D2691E);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.cake-middle {
    width: 150px;
    height: 60px;
    background: linear-gradient(45deg, #FF69B4, #FF1493);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    z-index: 2;
}

.cake-top {
    width: 100px;
    height: 40px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-35px);
    z-index: 3;
}

/* Decoraciones de la torta */
.cake-decoration {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.decoration-1 {
    background: #FF69B4;
    top: 20px;
    left: 30px;
}

.decoration-2 {
    background: #9B59B6;
    top: 20px;
    right: 30px;
}

.decoration-3 {
    background: #3498DB;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.decoration-4 {
    background: #FFD700;
    top: 15px;
    left: 25px;
}

.decoration-5 {
    background: #FF69B4;
    top: 15px;
    right: 25px;
}

/* Cereza */
.cherry {
    width: 12px;
    height: 12px;
    background: #DC143C;
    border-radius: 50%;
    position: relative;
    animation: bounce 1s ease-in-out infinite;
}

.cherry::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: #228B22;
}

/* Velas */
.candles {
    position: absolute;
    top: -60px;
    display: flex;
    gap: 20px;
    z-index: 10;
}

.candle {
    position: relative;
    width: 8px;
    height: 40px;
    background: linear-gradient(to bottom, #FFD700, #FFA500);
    border-radius: 4px;
    animation: sway 3s ease-in-out infinite;
}

.candle-1 { animation-delay: 0s; }
.candle-2 { animation-delay: 0.5s; }
.candle-3 { animation-delay: 1s; }

.wick {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 4px;
    background: #333;
    border-radius: 1px;
}

.flame {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 12px;
    background: radial-gradient(circle, #FFA500 30%, #FF4500 70%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 0.5s ease-in-out infinite alternate;
}

/* Plato */
.plate {
    width: 250px;
    height: 20px;
    background: linear-gradient(45deg, #E8E8E8, #FFFFFF);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-10px);
}

/* Animaciones de la torta */
@keyframes slideUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
}

@keyframes flicker {
    0% { transform: translateX(-50%) scale(1) rotate(-1deg); }
    100% { transform: translateX(-50%) scale(1.1) rotate(1deg); }
}

/* Contenedor de mensaje */
.message-container {
    text-align: center;
    animation: fadeIn 1.5s ease-out 1s both;
}

.celebration-message {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 300;
}

.heart {
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.confetti-button {
    background: linear-gradient(45deg, #FF69B4, #9B59B6);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.confetti-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.6);
    background: linear-gradient(45deg, #9B59B6, #FF69B4);
}

.confetti-button:active {
    transform: translateY(-1px);
}

/* Elementos flotantes */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.balloon, .star {
    position: absolute;
    font-size: 2rem;
    animation: float 4s ease-in-out infinite;
}

.balloon-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    color: #FF69B4;
}

.balloon-2 {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
    color: #9B59B6;
}

.balloon-3 {
    bottom: 30%;
    left: 5%;
    animation-delay: 2s;
    color: #3498DB;
}

.star-1 {
    top: 25%;
    left: 20%;
    animation-delay: 0.5s;
    color: #FFD700;
}

.star-2 {
    top: 60%;
    right: 10%;
    animation-delay: 1.5s;
    color: #FFA500;
}

.star-3 {
    bottom: 20%;
    right: 25%;
    animation-delay: 2.5s;
    color: #FFD700;
}

/* Animaciones generales */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Media Queries - Responsive Design */

/* Tablets (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .main-title {
        font-size: 3.5rem;
    }
    
    .name-title {
        font-size: 4rem;
    }
    
    .cake-bottom {
        width: 180px;
        height: 70px;
    }
    
    .cake-middle {
        width: 135px;
        height: 55px;
    }
    
    .cake-top {
        width: 90px;
        height: 35px;
    }
    
    .plate {
        width: 220px;
    }
}

/* Móviles (hasta 768px) */
@media screen and (max-width: 768px) {
    .celebration-container {
        padding: 1rem;
    }
    
    .header {
        margin-bottom: 2rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .name-title {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .cake-container {
        margin-bottom: 2rem;
    }
    
    .cake-bottom {
        width: 150px;
        height: 60px;
    }
    
    .cake-middle {
        width: 120px;
        height: 45px;
        transform: translateY(-15px);
    }
    
    .cake-top {
        width: 80px;
        height: 30px;
        transform: translateY(-25px);
    }
    
    .plate {
        width: 180px;
        height: 15px;
    }
    
    .candles {
        top: -50px;
        gap: 15px;
    }
    
    .candle {
        width: 6px;
        height: 30px;
    }
    
    .flame {
        width: 6px;
        height: 10px;
        top: -10px;
    }
    
    .celebration-message {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .confetti-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .balloon, .star {
        font-size: 1.5rem;
    }
    
    .cake-decoration {
        width: 12px;
        height: 12px;
    }
}

/* Móviles pequeños (hasta 480px) */
@media screen and (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .name-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .cake-bottom {
        width: 120px;
        height: 50px;
    }
    
    .cake-middle {
        width: 100px;
        height: 40px;
        transform: translateY(-12px);
    }
    
    .cake-top {
        width: 70px;
        height: 25px;
        transform: translateY(-20px);
    }
    
    .plate {
        width: 150px;
        height: 12px;
    }
    
    .candles {
        top: -40px;
        gap: 12px;
    }
    
    .candle {
        width: 5px;
        height: 25px;
    }
    
    .celebration-message {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .confetti-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .balloon, .star {
        font-size: 1.2rem;
    }
    
    .cake-decoration {
        width: 10px;
        height: 10px;
    }
}

/* Animaciones adicionales para móvil */
@media screen and (max-width: 768px) {
    .floating-elements {
        display: none; /* Ocultar elementos flotantes en móvil para mejor rendimiento */
    }
    
    .confetti {
        width: 8px;
        height: 8px;
    }
}