/* customizable snowflake styling */
.loader button {
    width: 50%;
    height: 100px;
    position: fixed;
    left: 50%;
    top: 45%;
    transform: translateY(-50%);
    transform: translateX(-50%);
    background: center no-repeat #fff;
    z-index: 9999999999999999999999;
    font-size: 50px;
    outline: none;
    box-sizing: border-box;
    border: none;
    border-radius: .3em;
    text-transform: uppercase;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .16), 0 3px 6px rgba(110, 80, 20, .4),
        inset 0 -2px 5px 1px rgba(139, 66, 8, 1),
        inset 0 -1px 1px 3px rgba(250, 227, 133, 1);
    background-image: linear-gradient(160deg, #a54e07, #b47e11, #fef1a2, #bc881b, #a54e07);
    border: 1px solid #a55d07;
    color: rgb(120, 50, 5);
    text-shadow: 0 2px 2px rgba(250, 227, 133, 1);
    cursor: pointer;
    transition: all .2s ease-in-out;
    background-size: 100% 100%;
    background-position: center;
}

/* Countdown badge above the start button */
#countdown {
    position: fixed;
    left: 50%;
    top: 34%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #fff7c2 0%, #fff1a8 50%, #ffd54a 100%);
    color: #5a3700;
    padding: 14px 24px;
    font-size: 28px;
    font-weight: 700;
    border-radius: 12px;
    border: 2px solid #f6d03a;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    z-index: 1000000000000;
    text-align: center;
    min-width: 360px;
}

/* Disabled state for the start button */
.loader button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(5%);
}

.golden-btn:focus,
.golden-btn:hover {
    background-size: 150% 150%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23),
        inset 0 -2px 5px 1px #b17d10,
        inset 0 -1px 1px 3px rgba(250, 227, 133, 1);
    border: 1px solid rgba(165, 93, 7, .6);
    color: rgba(120, 50, 5, .8);
}

.golden-btn:active {
    box-shadow: 0 3px 6px rgba(0, 0, 0, .16), 0 3px 6px rgba(110, 80, 20, .4),
        inset 0 -2px 5px 1px #b17d10,
        inset 0 -1px 1px 3px rgba(250, 227, 133, 1);
}

.loader {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: url(img/back.png) center no-repeat #000;
}

.song {
    display: none;
}

body {
    background-color: #FFDAB9;
}

img {
    width: 100%;
}

.balloon-border {
    position: fixed;
    top: 100%;
    opacity: 0.5;
    z-index: 99999999;
}

.area {
    text-align: center;
    font-size: 70px;
    color: #C4515C;
    letter-spacing: -7px;
    font-weight: 700;
    text-transform: uppercase;
    animation: spin 2s ease-out infinite;
    text-shadow: 0px 0px 5px #fff, 0px 0px 7px #fff;
}

#nae {
    text-transform: capitalize;
}

#confetti {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
}

@keyframes spin {
    0% {
        transform: rotateZ(0);
    }

    25% {
        transform: rotateZ(10deg);
    }

    50% {
        transform: rotateZ(0deg);
    }

    75% {
        transform: rotateZ(-10deg);
    }
}

.type-wrap {
    font-size: 25px;
    color: #C4515C;

}

.cake {
    transform: translateY(-50%);
    transform: translateX(-50%);
    left: 50%;
    position: absolute;
    padding-top: 250px;
}

/* Candle overlay on the cake image */
.candles-overlay {
    position: absolute;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    width: 220px;
    height: 120px;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.candle {
    width: 18px;
    height: 34px;
    background: linear-gradient(180deg,#fff8d6,#ffd54a);
    border-radius: 6px 6px 3px 3px;
    box-shadow: inset 0 -4px 6px rgba(0,0,0,0.1);
    position: relative;
}
.candle::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -12px;
    transform: translateX(-50%);
    width: 8px;
    height: 12px;
    background: radial-gradient(circle at 50% 40%, #ffd700, #ff8c00);
    border-radius: 50%;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.candle.out::after {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px) scale(0.8);
}

.blow-prompt {
    position: absolute;
    left: 50%;
    top: 75%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    pointer-events: auto;
    z-index: 2000;
}

/* Responsive tweaks for small screens (phones) */
@media (max-width: 480px) {
    .loader button {
        width: 80%;
        height: 80px;
        font-size: 30px;
        left: 50%;
        top: 50%;
    }
    #countdown {
        font-size: 20px;
        padding: 10px 14px;
        min-width: 260px;
        top: 28%;
    }
    .candles-overlay {
        width: 160px;
        height: 80px;
        top: 8%;
    }
    .candle {
        width: 14px;
        height: 28px;
    }
    .cake {
        padding-top: 180px;
    }
    .area {
        font-size: 36px;
        letter-spacing: -3px;
    }
    .type-wrap { font-size: 18px; }
}