/* Styling untuk angka 22 menggunakan pendekatan teks */

.candles-container {
    position: absolute;
    width: 100%;
    top: -45px; /* Posisi default untuk mobile */
    display: flex;
    justify-content: center;
    z-index: 20;
}

/* Media query untuk layar desktop */
@media (min-width: 769px) {
    .candles-container {
        top: -70px; /* Posisi jauh lebih tinggi untuk tampilan desktop */
    }
}

/* Container untuk angka 22 dan api */
.number-22-container {
    position: relative;
    height: 40px; /* Lebih kecil untuk proporsi yang lebih baik */
    display: flex;
    justify-content: center;
    z-index: 10;
}

/* Media query untuk layar desktop */
@media (min-width: 769px) {
    .number-22-container {
        height: 45px; /* Sedikit lebih tinggi untuk desktop */
    }
}

/* Styling untuk teks angka 22 */
.text-number {
    font-family: 'Arial', sans-serif;
    font-weight: 900;
    font-size: 32px; /* Ukuran lebih besar */
    color: #FFCC00; /* Warna emas kuning */
    text-shadow: 
        0 1px 0 #FFA500,
        0 0 5px rgba(255, 215, 0, 0.6),
        0 0 10px rgba(255, 165, 0, 0.4);
    z-index: 15;
    line-height: 1;
    -webkit-user-select: none;
    user-select: none;
}

/* Media query untuk layar desktop */
@media (min-width: 769px) {
    .text-number {
        font-size: 38px; /* Ukuran lebih besar untuk desktop */
        margin-top: -5px; /* Geser sedikit ke atas */
    }
}

/* Container untuk api lilin */
.flame-container {
    position: absolute;
    top: 0; /* Kembali ke posisi 0 dan akan dikontrol oleh wrapper */
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between; /* Memisahkan kedua api */
    width: 100%;
    z-index: 25;
}

/* Wrappers untuk memposisikan api secara lebih tepat */
.candle-flame-wrapper {
    position: relative;
    display: inline-block;
}

.left-flame-wrapper {
    position: absolute;
    left: calc(50% - 16px); /* Posisi tepat di atas digit pertama */
    top: -15px; /* Posisi vertikal di atas angka untuk mobile */
}

.right-flame-wrapper {
    position: absolute;
    right: calc(50% - 16px); /* Posisi tepat di atas digit kedua */
    top: -15px; /* Posisi vertikal di atas angka untuk mobile */
}

/* Media query untuk layar desktop */
@media (min-width: 769px) {
    .left-flame-wrapper, 
    .right-flame-wrapper {
        top: -22px; /* Posisi vertikal lebih tinggi untuk desktop */
    }
}

/* Posisi api lilin */
.candle-flame {
    position: relative;
    width: 10px; /* Api yang lebih besar untuk angka yang lebih besar */
    height: 16px; /* Api yang lebih besar untuk angka yang lebih besar */
    background: radial-gradient(ellipse at bottom, 
        rgba(255, 255, 100, 0.9) 0%,
        rgba(255, 215, 0, 0.9) 40%,
        rgba(255, 140, 0, 1) 100%);
    border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
    animation: flicker 0.8s infinite alternate;
    box-shadow: 
        0 0 8px rgba(255, 215, 0, 0.7),
        0 -3px 6px rgba(255, 140, 0, 0.5);
    z-index: 25;
}

/* Media query untuk layar desktop */
@media (min-width: 769px) {
    .candle-flame {
        width: 12px; /* Api yang sedikit lebih besar untuk desktop */
        height: 18px;
    }
}

/* Hapus margin yang tidak lagi diperlukan */
.candle-flame.flame-left, 
.candle-flame.flame-right {
    margin: 0;
    transform: none;
}

/* Efek animasi api lilin */
@keyframes flicker {
    0% {
        transform: scale(1.0);
        opacity: 1;
    }
    100% {
        transform: scale(1.05, 1.15);
        opacity: 0.9;
    }
}

/* Tambahan style untuk menyempurnakan tampilan angka 22 */
.number-candle:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    top: 0;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0.5));
}

/* Memberikan efek 3D pada lilin angka */
.number-candle:after {
    content: "";
    position: absolute;
    width: 90%;
    height: 5px;
    bottom: 0;
    left: 5%;
    border-radius: 50%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
}
