body {
    font-family: Dynapuff, sans-serif;
    font-size: 64px;
    background-color: #333;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 20px;
}

.headtext{
    padding-bottom: 72px;
}

h1 {
    font-size: 64px;
    margin-bottom: 20px;
}

.cake-container {
    position: relative;
    display: inline-block;
}

.cake {
    position: relative;
    width: 250px;
    height: 200px;
    margin: 0 auto;
}

.plate {
    width: 270px;
    height: 110px;
    position: absolute;
    bottom: -10px;
    left: -10px;
    background-color: #ccc;
    border-radius: 50%;
    box-shadow:
        0 2px 0 darken(#ccc, 10%),
        0 4px 0 darken(#ccc, 10%),
        0 5px 40px rgba(black, 0.5);
    z-index: 1;
}

.layer {
    position: absolute;
    display: block;
    width: 250px;
    height: 100px;
    border-radius: 50%;
    background-color: #553c13;
    z-index: 2;
    box-shadow:
        0 2px 0px lighten(#553c13, 5%),
        0 4px 0px darken(#553c13, 8.2%),
        0 6px 0px darken(#553c13, 8.4%),
        0 8px 0px darken(#553c13, 8.6%),
        0 10px 0px darken(#553c13, 8.8%),
        0 12px 0px darken(#553c13, 9%);
}

.layer-top {
    top: 0px;
}

.layer-middle {
    top: 33px;
}

.layer-bottom {
    top: 66px;
}

.icing {
    top: 2px;
    left: 5px;
    background-color: #f0e4d0;
    width: 240px;
    height: 90px;
    border-radius: 50%;
    position: absolute;
    z-index: 3;
}

.drip {
    display: block;
    width: 50px;
    height: 60px;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    background-color: #f0e4d0;
    z-index: 3;
}

.drip1 {
    top: 53px;
    left: 5px;
    transform: skewY(15deg);
    height: 48px;
    width: 40px;
    position: absolute;
}

.drip2 {
    top: 69px;
    left: 181px;
    transform: skewY(-15deg);
    position: absolute;
}

.drip3 {
    top: 54px;
    left: 90px;
    width: 80px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    position: absolute;
}

.candle {
    background-color: #7B020B;
    width: 16px;
    height: 80px;
    border-radius: 8px / 4px;
    top: -20px;
    left: 50%;
    margin-left: -8px;
    position: absolute;
    z-index: 4;
}

.flame {
    position: absolute;
    background-color: orange;
    width: 15px;
    height: 35px;
    border-radius: 10px 10px 10px 10px / 25px 25px 10px 10px;
    top: -34px;
    left: 50%;
    margin-left: -7.5px;
    z-index: 10;
    box-shadow:
        0 0 10px rgba(orange, 0.5),
        0 0 20px rgba(orange, 0.5),
        0 0 60px rgba(orange, 0.5),
        0 0 80px rgba(orange, 0.5);
    transform-origin: 50% 90%;
    animation: flicker 1s ease-in-out alternate infinite;
}

.gif {
    width: 200px;
    height: auto; 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    padding-top: 40px;
    transform: translate(-50%, -50%);
    
}

@keyframes flicker {
    0% {
        transform: skewX(5deg);
        box-shadow:
            0 0 10px rgba(orange, 0.2),
            0 0 20px rgba(orange, 0.2),
            0 0 60px rgba(orange, 0.2),
            0 0 80px rgba(orange, 0.2)
    }

    25% {
        transform: skewX(-5deg);
        box-shadow:
            0 0 10px rgba(orange, 0.5),
            0 0 20px rgba(orange, 0.5),
            0 0 60px rgba(orange, 0.5),
            0 0 80px rgba(orange, 0.5)
    }

    50% {
        transform: skewX(10deg);
        box-shadow:
            0 0 10px rgba(orange, 0.3),
            0 0 20px rgba(orange, 0.3),
            0 0 60px rgba(orange, 0.3),
            0 0 80px rgba(orange, 0.3)
    }

    75% {
        transform: skewX(-10deg);
        box-shadow:
            0 0 10px rgba(orange, 0.4),
            0 0 20px rgba(orange, 0.4),
            0 0 60px rgba(orange, 0.4),
            0 0 80px rgba(orange, 0.4)
    }

    100% {
        transform: skewX(5deg);
        box-shadow:
            0 0 10px rgba(orange, 0.5),
            0 0 20px rgba(orange, 0.5),
            0 0 60px rgba(orange, 0.5),
            0 0 80px rgba(orange, 0.5)
    }
}

.cut-outline {
    width: 240px;
    height: 90px;
    border-radius: 50%;
    border: 2px dashed #000;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    z-index: 6;
}


.sprinkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 7;
}

.sprinkle {
    width: 5px;
    height: 5px;
    background-color: red;
    position: absolute;
    border-radius: 50%;
    animation: fall 1s linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(-10px);
        opacity: 1;
    }

    100% {
        transform: translateY(10px);
        opacity: 0;
    }
}

@keyframes textFade {
    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.animated-text {
    animation: textFade 2s ease-in-out 2;

}

.fixed-text {
    animation: none;
    opacity: 1;
}
.btn-grad {
    background-image: linear-gradient(to right, #ED4264 0%, #FFEDBC  51%, #ED4264  100%);
    margin: 10px;
    padding: 15px 45px;
    align-self: center;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;            
    border-radius: 10px;
    display: block;
}

.btn-grad:hover {
    background-position: right center; 
    color: #fff;
    text-decoration: none;
}
