html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.page1 {
    position: relative;
    height: 1000px;
    width: 100vw;
    display: flex;
    flex-direction: column;
}

.sky {
    height: 350px;
    background-image: url("../img/bg_sec01.png");
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
}

.ocean {
    margin-top: -2px;
    background: #549BC8;
    background: linear-gradient(180deg, rgba(84, 155, 200, 1) 0%, rgba(84, 155, 200, 1) 49%, rgba(255, 255, 255, 1) 100%);
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 650px;
}



.title-box {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translate(-50%, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 500px;
}

.title-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    display: block;
    margin-top: 0;
    margin-bottom: -10px;
    max-height: 20vh;
}

.title-text {
    margin-top: 30px;
    text-align: center;
    color: #5d5d5d;

}


.bear1 {
    position: absolute;
    left: 50%;
    top: 300px;
    transform: translate(-50%, -30%);
    width: 180px;
    height: 180px;
    background-image: url("../img/PolarBear_1.gif");
    background-size: cover;
    z-index: 3;
}

.bear1.success {
    position: absolute;
    left: 50%;
    top: 300px;
    transform: translate(-50%, -30%);
    width: 280px;
    height: 280px;
    background-image: url("../img/PolarBear_2.gif");
    background-size: cover;
    z-index: 3;
}

/* Mobile devices (portrait and landscape) */
@media only screen and (max-width: 767px) {
    .desc {
        font-size: 0.7rem !important;
    }
    .mobile-font {
        font-size: 0.7rem !important;
    }
}

/* -----------------冰塊文字----------------- */
.ice-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    color: #FFFACD; /* Lighter yellow color */
    font-size: 24px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: fadeInOut 4s ease-in-out 1;
    transition: opacity 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* -----------------冰塊變化----------------- */
.ice {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 100vw;
    height: 50vh;
    z-index: 2;
    transition: all 1s ease-in-out;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

.ice-floe-0 {
    min-width: 80vw;
    background-image: url("../img/ice/ice_01.png");
    max-height: 380px;
}

.ice-floe-1 {
    min-width: 500px;
    background-image: url("../img/ice/ice_05.png");
}


.ice-floe-2 {
    min-width: 500px;
    background-image: url("../img/ice/ice_10.png");

}

.ice-floe-3 {
    min-width: 500px;
    background-image: url("../img/ice/ice_15.png");
}

.ice-floe-4 {
    min-width: 500px;
    background-image: url("../img/ice/ice_20.png");
}

/* ----------------------工具列---------------------- */

.funList {
    position: absolute;
    left: 50%;
    bottom: 50px;
    transform: translate(-50%, 0);
    z-index: 33;
    text-align: center;

}

.funList-text {
    margin-top: 30px;
    color: #00375A;

}

/* ----------------------按鈕---------------------- */

/* Simple Language Switcher */
.language-switcher {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    display: flex;
    gap: 5px;
}

.language-btn {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    color: #333;
}

.language-btn:hover {
    background: #f5f5f5;
}

.language-btn.active {
    background: #0066cc;
    color: white;
    border-color: #0055aa;
}

.btn-my-org {
    display: inline-block;
    position: relative;
    font-size: 24px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 250ms;
    text-align: center;
    gap: 0.5rem;

    background: linear-gradient(to bottom right, #FFB446, #F39100);
    color: white;
    border-radius: 9999px;
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
        0 1px 0 0 #f472b6,
        0 8px 0 0 #AF6901,
        0 8px 16px 0 rgba(244, 114, 182, 0.5);
}



.btn-my-org:hover {
    transform: translate(0, -10px);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
        0 1px 0 0 #f472b6,
        0 2px 0 0 #f43f5e,
        0 3px 0 0 #e11d48,
        0 4px 0 0 #be123c,
        0 4px 8px 0 rgba(244, 114, 182, 0.5);
}

/* ----------------------進度條---------------------- */
.progress-container {
    position: relative;
    min-width: 300px;
    max-width: 500px;
    width: 10vw;
    margin-bottom: 30px;
}

.progress-container .label {
    text-shadow: 0px 0px 4px #00375A;
}

.label {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 20px;
    color: white;
}

.label b {
    font-size: 28px;
}

.progress-bar {
    width: 100%;
    height: 28px;
    background-color: #e0e0e0;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #fbb034, #ffdd00);
    width: 1%;
    border-radius: 999px 0 0 999px;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 14px;
    pointer-events: none;
}

/* ----------------------進度條---------------------- */




.page2 {
    position: relative;
    width: 100vw;
    min-height: 800px;
    background-image: url(../img/bg_sec02.png);
    background-size: cover;
    background-position: center;
}

.page2 .title-img {
    max-width: 250px;
}



.bear2 {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 0%);
    width: 280px;
    height: 280px;
    background-image: url(../img/PolarBear_2.gif);
    background-size: cover;
    z-index: 3
}

/* ----------------------球---------------------- */


.ball {
    position: absolute;
    bottom: 250px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;   
    cursor: pointer;
    line-height: 120px;
}

.ball >div{
    width: 100%;
    height: 100%;
    background: url(../img/img_snowball.svg);
    background-size: contain;
    text-align: center;   
    font-weight: bold;
    animation: rotateBall 6s  ease-in-out infinite
}

.ball:hover  {
    width: 130px;
    height: 130px;
    line-height: 130px;
}

.ball span {
    display: block;
    transform: rotate(0deg); 
    animation: antiRotate 6s  ease-in-out infinite;
}

/* 拋出軌跡：每個球不一樣方向 */
.ball_1 {
    animation: throw1 6s ease-in-out infinite
}

.ball_2 {
    animation: throw2 6s ease-in-out infinite
}

.ball_3 {
    animation: throw3 6s ease-in-out infinite
}

.ball_4 {
    animation: throw4 6s ease-in-out infinite
}

/* 拋出動畫（不同方向） */
@keyframes throw1 {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    20% {
        transform: translate(-210px, -200px);
    }

    100% {
        transform: translate(-210px, -200px)
    }
}

@keyframes throw2 {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    20% {
        transform: translate(-120px, -250px);
    }

    100% {
        transform: translate(-120px, -250px);
    }
}

@keyframes throw3 {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    20% {
        transform: translate(0px, -250px);
    }

    100% {
        transform: translate(0px, -250px);
    }
}

@keyframes throw4 {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    20% {
        transform: translate(90px, -200px);
    }

    100% {
        transform: translate(90px, -200px);
    }
}

/* 球旋轉 */
@keyframes rotateBall {
    0%   { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
}

/* 文字反旋轉*/
@keyframes antiRotate {
    0%   { transform: rotate(0deg); }
      100% { transform: rotate(-360deg); }
}


/* -------------------------彈窗--------------------------- */


.iceMo .headimg {
    position: absolute;
    width: 100%;
    height: 80px;
    background: transparent;
    background-image: url(../img/img_snow_cap.png);
    background-size: auto;
    background-repeat: no-repeat;
    border: none;
    z-index: 333;
    top: -30px;

}

.iceMo .modal-body {
    padding: 80px 30px 40px 30px;
    text-align: center;

    position: relative;
    padding-top: 50px;
    background: #fff;
    border-radius: 50px;
}

.iceMo .modal-content {
    margin-top: 30%;
}

#myMo-text {
    line-height: 30px;
    font-weight: 900;
}

/* -------------------浮冰漂浮中------------------- */
.floating {
    transform: translateX(-50%);
    animation: floatMotion 6s ease-in-out infinite;
}

@keyframes floatMotion {
    0% {
        transform: translate(-50%, 0) rotate(0deg);
    }

    25% {
        transform: translate(-48%, -5px) rotate(-1deg);
    }

    50% {
        transform: translate(-50%, -10px) rotate(1deg);
    }

    75% {
        transform: translate(-52%, -5px) rotate(-1deg);
    }

    100% {
        transform: translate(-50%, 0) rotate(0deg);
    }
}