/*css file*/

#drag_page {
    height: 100vh;
    width: 100vw;
    position: relative;
    background: white;
}

#ani_info {
    position: absolute;
    bottom: 10px;
    right: 5px;
}

#drag_form {
    position: absolute;
    top: 66px;
    left: 600px;
}



#drag_form .form-control {
    background: transparent;
    border: none;
    width: 300px;
    margin-top: 28px;
    height: 22px;
    color: white;
}

#btn_bobo {
    position: absolute;
    width: 120px;
    height: 50px;
    left: 370px;
    top: 288px;
    border: none;
}

#ani_info {
    position: absolute;
    bottom: 10px;
    right: 5px;
    width: fit-content;
    left: 0;
    right: 0;
    bottom: 20px;
    margin: auto;
    font-size: 1.2rem;
    color: #000;
}

#drag_bobble {
    position: absolute;
    top: 25px;
    left: -50px;
}

#canvas_container {
    position: relative;
    width: 100%;
    height: 100%;
}

#bobo_drag {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
}

#cap_wrapper {
    margin-top: 15px;
}

#captcha_label {
    width: 215px;
    height: 80px;
}


input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    background-color: transparent !important;
    transition: background-color 5000s ease-in-out 0s;
}


section.horizontal {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.h_wrapper::-webkit-scrollbar {
    /* Chrome/Safari */
    display: none;
}

.h_box {

    height: 100vh;
    width: 100vw;
    position: relative;
    scroll-snap-align: start;
    /* 吸附到左邊 */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

}

.h_box.green {
    z-index: 2;
    /* perspective: 600px;
    transform-style: preserve-3d;
    perspective-origin: 50% 50%; */
}

.h_box.blue {
    z-index: 1;
}

.h_box.purple {
    z-index: 0;
}


#bobo_push {
    position: absolute;
    left: 100%;
    bottom: 0;
}

#shadow {
    aspect-ratio: 9 / 16;
    opacity: 0;
}

.h_wrapper .col-xl-7 p {
    font-size: 1.2rem;
    font-weight: 500;
    margin-left: 20px;
}

.h_box .row {
    max-width: 1200px;
}

#ani_container {
    position: absolute;
    left: 0;
    right: 0;
    top: 100px;
    margin: auto;
    height: fit-content;
    width: fit-content;
}

#ani_container p {
    font-size: 1.5rem;
}

#ani_title,
.h_box.green .col-xl-7 {
    perspective: 600px;
    transform-style: preserve-3d;
    perspective-origin: 50% 50%;
}

#stitle {
    perspective: 600px;
    transform-style: preserve-3d;
}

#stitle span {
    display: inline-block;
    transform-origin: 50% 50% -30px;
    transform-style: preserve-3d;
    color: inherit;
}

/* #stitle span::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
}

#stitle span::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: gray;
    背面文字顏色
    background: transparent;
    背面底色
    transform: rotateY(180deg);
    backface-visibility: hidden;
} */

.ani_char {
    display: inline-block;
    opacity: 0;
    transform-origin: 50% 50% -50px;
}


@media (prefers-color-scheme: dark) {
    #bobo_push {
        filter: drop-shadow(0px 0px 6px white);
    }

    .h_box {
        background: var(--c15) !important;
        color: var(--c18) !important;
        background-color: #191a1a;
        background-image: linear-gradient(0deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%, transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%, transparent),
            linear-gradient(90deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%, transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%, transparent) !important;
        background-size: 55px 55px !important;

        box-shadow: 2px 0px 28px -3px rgb(255 255 255 / 86%), 160px 0px 420px 129px rgb(32 84 99 / 18%);
    }

    .h_wrapper .col-xl-7 p {
        filter: drop-shadow(1px 1px 2px gray);
    }

}

@media (prefers-color-scheme: light) {
    .h_box {
        background: var(--c15) !important;
        color: var(--c18) !important;
        --color: rgb(112 112 112 / 7%);
        background-image: linear-gradient(0deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%, transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%, transparent),
            linear-gradient(90deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%, transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%, transparent) !important;

        background-size: 55px 55px !important;

        box-shadow: 8px 0px 4px rgb(107 50 5 / 79%), 60px 0px 120px 12px rgb(62 42 1 / 55%);
    }


    .h_wrapper .col-xl-7 p {
        filter: drop-shadow(1px 1px 2px gray);
    }

}

@media (min-width: 992px) {}

@media (min-width: 1200px) {
    .h_wrapper {
        display: flex;
        height: 100vh;
        width: 300vw;
        overscroll-behavior: none;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        scroll-snap-type: x mandatory;
        /* 原生吸附（可關） */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    #cry_wrapper {
        width: 100vw;
        height: 100vh;
        background-image: url(https://faith.tw/userfiles/web/images/class_room.webp);
        background-size: cover;
        background-repeat: no-repeat;
    }

    #cry_wrapper video {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 620px;
        height: 766px;
        z-index: 999;
        filter: grayscale(0.1) brightness(1);
    }
}