.s-anniversary {
    background-image: url(../images/s-anniversary/main-bg--.webp);
    /* background-size: contain; */
    background-repeat: no-repeat;
    background-position: center;
    height: 1080px;
}

.col-s-anniversary {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 120px 0 0 0;
}

.img-title-text {
    width: 420px;
    object-fit: contain;
}

.div-text-total {
    margin-top: 20px;
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 500;
}

.bg-number-milestone {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-number-milestone p {
    font-size: 80px;
    font-family: "Cinzel", serif;
    font-weight: 700;
    margin: 0 .12em;
    line-height: 1.2;
    display: inline-block;
    text-shadow: 1px 1px 0px #005AFF,
        0 0 6px #1668FF,
        0 0 10px #6098FF,
        0 0 8px #B1CCFF;
}

.warp-big-col-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10%;
    position: relative;
    z-index: 21;
}

.incol-btn-wish {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 1.5rem;
}

.warp-col-step-item {
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.col-big-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-items-milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; */
    background: url(../images/s-anniversary/bg-item.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 180px;
    height: 180px;
    padding: 25px;
}

#step-item6 .step-items-milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; */
    background: url(../images/s-anniversary/bg-item-gold.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 180px;
    height: 180px;
    padding: 25px;
}

.progress-item-milestones {
    --bs-progress-bg: #9d9d9d;
    --bs-progress-bar-bg: #f3c160 !important;
    height: 5px;
    margin: -18px 8% 0 8%;
}

.step-points {
    width: 32px;
    height: 32px;
    background-image: url(../images/s-anniversary/step-point.png);
    background-position: center;
    background-repeat: no-repeat;
    z-index: 10;
}

.completed .step-points {
    width: 32px;
    height: 32px;
    background-image: url(../images/s-anniversary/step-point-active.png);
    background-position: center;
    background-repeat: no-repeat;
    z-index: 10;
}

.text-total-milestone {
    font-size: 30px;
    font-family: "Cinzel", serif;
    font-weight: 600;
    /* margin: 0 .12em; */
    line-height: 1.2;
    text-shadow: 1px 1px 0px #005AFF,
        0 0 6px #1668FF,
        0 0 10px #6098FF,
        0 0 8px #B1CCFF;
}

.text-total-milestone-gold {
    font-size: 30px;
    font-family: "Cinzel", serif;
    font-weight: 600;
    /* margin: 0 .12em; */
    line-height: 1.2;
    text-shadow: 1px 1px 0px #FFCC00,
        0 0 6px #FFDB4C,
        0 0 10px #ffdf60,
        0 0 8px #ffe372;
}

#step-item6 .step-items-milestone.pulse-box {
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.active .step-items-milestone {
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.completed .step-items-milestone::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background: url(../images/s-anniversary/bg-item-completed.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 180px;
    height: 180px;
}

#step-item6.completed .step-items-milestone::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background: url(../images/s-anniversary/bg-item-gold-completed.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 180px;
    height: 180px;
}

.img-step-items-milestone {
    width: 100%;
    object-fit: contain;
}

.col-bubble {
    position: absolute;
    top: 0;
    width: 100%;
    height: 1080px;
    pointer-events: none;
    z-index: 99;
}

.box-bubble {
    background-image: url(../images/s-anniversary/box-text-wish.webp);
    background-repeat: no-repeat;
    background-size: contain;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 30px 8px 34px;
}

.img-ic-party {
    width: 34%;
    object-fit: contain;
}

.text-wish {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: #fff;
    text-shadow: 1px 0px #000;
    text-align: center;
}

.text-name-wish {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: #f7d799;
    text-shadow: 1px 0px #000;
    text-align: center;
    padding-top: 5px;
}

.text-date-event {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    filter: drop-shadow(1px 0px 4px #6193ff);
    padding-top: 5px;
}

#bb-1 {
    position: absolute;
    top: 146px;
    left: 224px;
    z-index: 20;
}

#bb-2 {
    position: absolute;
    top: 318px;
    left: -60px;
    z-index: 20;
}

#bb-3 {
    position: absolute;
    top: 669px;
    left: 34px;
    z-index: 20;
}

#bb-4 {
    position: absolute;
    top: 194px;
    right: 224px;
    z-index: 20;
}

#bb-5 {
    position: absolute;
    top: 632px;
    right: 80px;
    z-index: 20;
}

.float-reset-box {
    animation: fadeIn 2.5s ease forwards,
        /* ค่อยๆ โชว์ */
        floatUpAndReset 6s ease-in-out infinite;
    /* ลอยแบบวน */
    ;
}

/* Keyframe: ค่อยๆ โชว์ */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Keyframe: ลอยขึ้น → หาย → กลับมา → วน */
@keyframes floatUpAndReset {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    83.33% {
        opacity: 1;
        transform: translateY(-80px);
    }

    90% {
        opacity: 0;
        transform: translateY(-120px);
    }

    100% {
        opacity: 0;
        transform: translateY(0);
    }
}

/* กำหนด delay ทั้ง fadeIn และ float ให้แต่ละกล่อง */
.delay-0 {
    animation-delay: 0s, 0s;
}

.delay-1 {
    animation-delay: 0.5s, 0.5s;
}

.delay-2 {
    animation-delay: 1s, 1s;
}

.delay-3 {
    animation-delay: 1.5s, 1.5s;
}

.delay-4 {
    animation-delay: 2s, 2s;
}

.btn-modal-register {
    max-width: 370px;
    padding: 0;
    margin-top: 0;
}

@media (max-width: 1024px) {

    .warp-big-col-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 5%;
    }

    .s-anniversary {
        background-image: url(../images/s-anniversary/main-bg.webp);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        height: 878px;
    }

    .step-items-milestone {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* justify-content: center; */
        background: url(../images/s-anniversary/bg-item.webp);
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        width: 130px;
        height: 130px;
        padding: 15px;
    }


    #step-item6 .step-items-milestone {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* justify-content: center; */
        background: url(../images/s-anniversary/bg-item-gold.webp);
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        width: 130px;
        height: 130px;
        padding: 15px;
    }

    .completed .step-items-milestone::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        background: url(../images/s-anniversary/bg-item-completed.webp);
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        width: 130px;
        height: 130px;
    }

    #step-item6.completed .step-items-milestone::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        background: url(../images/s-anniversary/bg-item-gold-completed.webp);
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        width: 130px;
        height: 130px;
    }

    .text-total-milestone {
        font-size: 22px;
        padding-bottom: 5px;
    }

    .text-total-milestone-gold {
        font-size: 22px;
        padding-bottom: 5px;
    }

    .step-points {
        width: 26px;
        height: 26px;
    }

    .completed .step-points {
        width: 26px;
        height: 26px;
    }

    .progress-item-milestones {
        --bs-progress-bg: #9d9d9d;
        --bs-progress-bar-bg: #f3c160 !important;
        height: 5px;
        margin: -15px 8% 0 8%;
    }

    #bb-1 {
        position: absolute;
        top: 146px;
        left: 63px;
        z-index: 20;
    }

    #bb-2 {
        position: absolute;
        top: 329px;
        left: -33px;
        z-index: 20;
    }

    #bb-3 {
        position: absolute;
        top: 509px;
        left: 34px;
        z-index: 20;
    }

    #bb-4 {
        position: absolute;
        top: 194px;
        right: 85px;
        z-index: 20;
    }

    #bb-5 {
        position: absolute;
        top: 522px;
        right: 66px;
        z-index: 20;
    }

}

@media (max-width: 992px) {

    .s-anniversary {
        background-image: url(../images/s-anniversary/mian-bg-sm.webp);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top center;
        height: 1080px;
    }

    .col-s-anniversary {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 370px 0 0 0;
    }

    .text-wish {
        font-size: 12px;
        font-weight: 500;
        line-height: 1.2;
        color: #fff;
        text-shadow: 1px 0px #000;
        text-align: center;
    }

    .text-name-wish {
        font-size: 12px;
        font-weight: 500;
        line-height: 1.2;
        color: #f7d799;
        text-shadow: 1px 0px #000;
        text-align: center;
        padding-top: 5px;
    }

    .box-bubble {
        background-image: url(../images/s-anniversary/box-text-wish.webp);
        background-repeat: no-repeat;
        background-size: contain;
        width: 182px;
        height: 182px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0px 26px 8px 30px;
    }

    #bb-1 {
        position: absolute;
        top: 209px;
        left: 251px;
        z-index: 20;
    }

    #bb-2 {
        position: absolute;
        top: 397px;
        left: -33px;
        z-index: 20;
    }

    #bb-3 {
        position: absolute;
        top: 716px;
        left: 34px;
        z-index: 20;
    }

    #bb-4 {
        position: absolute;
        top: 269px;
        right: 4px;
        z-index: 20;
    }

    #bb-5 {
        position: absolute;
        top: 610px;
        right: 7px;
        z-index: 20;
    }

}

@media (max-width: 768px) {

    .img-title-text {
        width: 350px;
        object-fit: contain;
    }

    .s-anniversary {
        background-image: url(../images/s-anniversary/mian-bg-sm.webp);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top center;
        height: 935px;
    }

    .col-s-anniversary {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 280px 0 0 0;
    }

    .step-items-milestone {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* justify-content: center; */
        background: url(../images/s-anniversary/bg-item.webp);
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        width: 112px;
        height: 112px;
        padding: 15px;
    }


    #step-item6 .step-items-milestone {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* justify-content: center; */
        background: url(../images/s-anniversary/bg-item-gold.webp);
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        width: 112px;
        height: 112px;
        padding: 15px;
    }

    .completed .step-items-milestone::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        background: url(../images/s-anniversary/bg-item-completed.webp);
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        width: 112px;
        height: 112px;
    }

    #step-item6.completed .step-items-milestone::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        background: url(../images/s-anniversary/bg-item-gold-completed.webp);
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        width: 112px;
        height: 112px;
    }

    #bb-1 {
        position: absolute;
        top: 120px;
        left: 251px;
        z-index: 20;
    }

    #bb-2 {
        position: absolute;
        top: 297px;
        left: -33px;
        z-index: 20;
    }

    #bb-3 {
        position: absolute;
        top: 646px;
        left: 34px;
        z-index: 20;
    }

    #bb-4 {
        position: absolute;
        top: 269px;
        right: 4px;
        z-index: 20;
    }

    #bb-5 {
        position: absolute;
        top: 540px;
        right: 7px;
        z-index: 20;
    }

}

@media (max-width: 470px) {

    .warp-big-col-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 5%;
        flex-direction: column;
    }

    .incol-btn-wish {
        padding-bottom: 1rem;
    }

    .incol-btn-wish a {
        max-width: 150px;
        width: 100%;
    }

    .text-wish {
        font-size: 9px;
        font-weight: 500;
        line-height: 1.2;
        color: #fff;
        text-shadow: 1px 0px #000;
        text-align: center;
    }

    .text-name-wish {
        font-size: 9px;
        font-weight: 500;
        line-height: 1.2;
        color: #f7d799;
        text-shadow: 1px 0px #000;
        text-align: center;
        padding-top: 5px;
    }

    .box-bubble {
        background-image: url(../images/s-anniversary/box-text-wish.webp);
        background-repeat: no-repeat;
        background-size: contain;
        width: 140px;
        height: 140px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0px 14px 2px 18px;
    }

    #bb-1 {
        position: absolute;
        top: 124px;
        left: 120px;
        z-index: 20;
    }

    #bb-2 {
        position: absolute;
        top: 241px;
        left: 2px;
        z-index: 20;
    }

    #bb-3 {
        position: absolute;
        top: 400px;
        left: 11px;
        z-index: 20;
    }

    #bb-4 {
        position: absolute;
        top: 244px;
        right: 27px;
        z-index: 20;
    }

    #bb-5 {
        position: absolute;
        top: 395px;
        right: 51px;
        z-index: 20;
    }

    .s-anniversary {
        background-image: url(../images/s-anniversary/mian-bg-sm.webp);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top center;
        height: 700px;
    }

    .div-text-total img {
        width: 80px;
        object-fit: contain;
    }

    .img-title-text {
        width: 250px;
        object-fit: contain;
    }

    .div-text-total {
        margin-top: 20px;
        display: flex;
        align-items: center;
        font-size: 20px;
        font-weight: 500;
    }

    .bg-number-milestone p {
        font-size: 60px;
        font-family: "Cinzel", serif;
        font-weight: 700;
        margin: 0 .12em;
        line-height: 1.2;
        display: inline-block;
        text-shadow: 1px 1px 0px #005AFF, 0 0 6px #1668FF, 0 0 10px #6098FF, 0 0 8px #B1CCFF;
    }

    .step-items-milestone {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: url(../images/s-anniversary/bg-item.webp);
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        width: 62px;
        height: 62px;
        padding: 10px;
    }


    #step-item6 .step-items-milestone {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* justify-content: center; */
        background: url(../images/s-anniversary/bg-item-gold.webp);
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        width: 62px;
        height: 62px;
        padding: 10px;
    }

    .completed .step-items-milestone::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        background: url(../images/s-anniversary/bg-item-completed.webp);
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        width: 62px;
        height: 62px;
    }

    #step-item6.completed .step-items-milestone::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        background: url(../images/s-anniversary/bg-item-gold-completed.webp);
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        width: 62px;
        height: 62px;
    }

    .step-points {
        width: 20px;
        height: 20px;
        background-size: contain;
    }

    .completed .step-points {
        width: 20px;
        height: 20px;
        background-size: contain;
    }


    .text-total-milestone {
        font-size: 14px;
        padding-bottom: 5px;
    }

    .text-total-milestone-gold {
        font-size: 14px;
        padding-bottom: 5px;
    }

    .progress-item-milestones {
        --bs-progress-bg: #9d9d9d;
        --bs-progress-bar-bg: #f3c160 !important;
        height: 3px;
        margin: -12px 11% 0 11%;
    }

    .col-s-anniversary {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 198px 0 0 0;
    }

    .text-date-event {
        font-size: 12px;
    }

}


@media (min-width: 1200px) {
    .btn-modal-register {
        max-width: 370px !important;
    }
}

@media (min-width: 768px) {
    .btn-modal-register {
        max-width: 250px;
    }
}

@media (max-width: 470px) {
    .btn-modal-register {
        max-width: 150px;
        width: 100%;
    }
}