
#cake {
    display: block;
    position: relative;
    margin: -10em auto 0 auto;
}

@keyframes candle-appear {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.cake-container {
    position: relative; /* Permite que los hijos se posicionen respecto a él */
    display: inline-block;
}

.candles-container {
    position: absolute;
    top: 555px;
    left: 50%;
    width: 140px;
    height: 35px;
    display: flex;
    justify-content: space-between;
    transform: translate(-50%, 0);
    opacity: 1;
    will-change: transform;
}

.velas {
    background: #ffffff;
    border-radius: 10px;
    position: relative;
    width: 20px;
    height: 100px;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.velas:after,
.velas:before {
    background: rgba(255, 0, 0, 0.4);
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
}

.velas:after {
    top: 25%;
    left: 0;
}

.velas:before {
    top: 45%;
    left: 0;
}

.fuego {
    border-radius: 100%;
    position: absolute;
    top: -35px;
    left: 50%;
    margin-left: -2.6px;
    width: 6.66666667px;
    height: 30px;
    opacity: 1;
    transition: opacity 0.5s;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.fuego:nth-child(1) {
    animation: fuego 2s 1.5s infinite;
}

.fuego:nth-child(2) {
    animation: fuego 1.5s 1.5s infinite;
}

.fuego:nth-child(3) {
    animation: fuego 1s 1.5s infinite;
}

.fuego:nth-child(4) {
    animation: fuego 0.5s 1.5s infinite;
}

.fuego:nth-child(5) {
    animation: fuego 0.2s 1.5s infinite;
}

@keyframes fuego {

    0%,
    100% {
        background: rgba(254, 248, 97, 0.5);
        box-shadow: 0 0 40px 10px rgba(248, 233, 209, 0.2);
        transform: translateY(0) scale(1);
    }

    50% {
        background: rgba(255, 50, 0, 0.1);
        box-shadow: 0 0 40px 20px rgba(248, 233, 209, 0.2);
        transform: translateY(-20px) scale(0);
    }
}

@keyframes in {
    to {
        transform: translate(-50%, 0);
    }
}


.blow-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
}