.navbar-brand .navbar-brand-item{
    height: 50px;
}
.copyright-text{
    font-size: 0.9rem;
}
/* header */
header{
    position: relative!important;
}
header.fixedTop{
    position: fixed!important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 11;
    background-color: #fff;
}
.items-icon{
    list-style: none;
}
.items-icon .nav-item{
    line-height: 60px;
    padding: 0 5px;
}
.icon{
    width: 22px;
}
.icon:last-child{
    margin-right: 0;
}
.dropdown{
    position: relative;
}
.dropdown-menu{
    min-width: auto;
    border-radius: 0;
    padding: 0;
}
.dropdown-menu[data-bs-popper]{
    left: -4px;
}
.dropdown-item{
  padding: 5px 10px;
  text-align: center;
  border-radius: 0;
  line-height: 1.2;
}
.dropdown-toggle::after{
    display: none;
}

/* header end */
footer{
    background-color: #e8804d;
    display: block;
    position: relative;
}
footer .list-group-item-action{
    color: #fff;
}

.list-inline-item {
    display: inline-block;
}
.list-inline-item:not(:last-child) {
    margin-right: 0.5rem;
}
.list-inline {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
  }
  .list-group-item-action {
    width: 100%;
    color: #495057;
    text-align: inherit;
    text-decoration: none;
    font-size: 0.9rem;
  }
  .list-group-item-action:hover, .list-group-item-action:focus {
    z-index: 1;
    color: #495057;
    text-decoration: none;
    background-color: #f8f9fa;
  }
  .list-group-item-action:active {
    color: #212529;
    background-color: #e9ecef;
  }

 /*BACK TOP TOP*/
 .btn-home{
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateY(20px);
}
.btn-home.show{
    opacity: 1;
    transform: translateY(0);
    z-index: 100;
}
.btn-home img{
    max-width: 100px;
}

  
  /*PRE LOADER*/
.preloader {
    background-color: #ffffff;
    position: fixed;
    z-index: 999999;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
  }
  .preloader img {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
  }


  /* slider */
  .slider{
    height: 600px;
    background:url(../images/slider_bg_big.png?v=9) no-repeat top center;
    background-size: auto 100%;
  }
  .slider .container{
    position: relative;
    height: 100%;
  }



.text-line:nth-child(1) {
    animation: slideUp 1s ease-out 0.5s forwards;
}

.text-line:nth-child(2) {
    margin-left: 40px;
    animation: slideUp 1s ease-out 1s forwards;
}
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.bg-light-green{
    background-color: #c8e1de;
}
.img-icon{
    max-width: 220px;
}
@media (max-width: 1200px) {
    .slider{
        height: 420px;
        background:url(../images/slider_bg_desktop.jpg?v=9) no-repeat top right;
        background-size: cover;
    }
   
}

@media (max-width: 992px) {
    .slider{
        background:url(../images/slider_bg_desktop.jpg?v=9) no-repeat top center;
        background-size: cover;
    }
}
@media (max-width: 768px) {
    .slider{
        height: 500px;
        background:url(../images/slider_bg_mobile.jpg?v=9) no-repeat center center;
        background-size: cover;
    }
  
   

    
    .img-icon{
        max-width: 120px;
    }
}

.l-shape {
    position: absolute;
    z-index: 5;
}

.l-shape-top-left {
    top: 0;
    left: 0;
}

.l-shape-bottom-right {
    bottom: 0;
    right: 0;
}

.video-container {
    opacity: 1;
    /*animation: fadeInVideo 1s ease-in 2s forwards; */
    overflow: hidden;
    margin: 0 auto;
    padding: 30px;
    height: auto!important;
}

@keyframes fadeInVideo {
    from {
        opacity: 0;
       
    }
    to {
        opacity: 1;
       
    }
}

.video-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 0!important;
}
.l-shape img {
    width: 70px;
   
}


@media (max-width: 768px) {
   
    .l-shape img {
        width: 50px;
    }
    
    @keyframes moveTopLeft {
        0% {
            transform: translate(-50%, -50%);
        }
        100% {
            transform: translate(calc(-50% - 200px), calc(-50% - 150px));
        }
    }

    @keyframes moveBottomRight {
        0% {
            transform: translate(-50%, -50%) rotate(180deg);
        }
        100% {
            transform: translate(calc(-50% + 200px), calc(-50% + 150px)) rotate(180deg);
        }
    }
}
.bg-line{
    background: url(../images/bg_line_01.png) no-repeat top center,url(../images/bg_line_02.png) no-repeat bottom center;
    background-size: 100% auto;
}
.bg-line-orange{
    padding-top: 140px;
    background: url(../images/bg_line_orange.png) no-repeat top center;
    background-size: auto 40%;
}

.icon-container{
    position: absolute;
    top: 0;
    left: -60px;
    z-index: 0;
}
.icon-container img{
    width: 300px;
}
@media (max-width: 1200px) {
    .icon-container img{
        width: 220px;
    }
   
}
@media (max-width: 992px) {
    .icon-container img{
        width: 180px;
    }
}
@media (max-width: 768px) {
    .bg-line-orange{
        padding-top: 60px;
    }
    .btn-home{
        right: 15px;
        left: auto;
        bottom: 80px;
    }
    .btn-home img{
        max-width: 60px;
    }
    .bg-line{
        background: url(../images/bg_line_01.png) no-repeat top right;
        background-size: auto 50%;
    }
}
.carousel-youtube .carousel-control-next{
    right: 10px!important;
    opacity: 1!important;
} 
.carousel-youtube .carousel-control-prev{
    left: 10px!important;
    opacity: 1;
}
.carousel-youtube .carousel-control-next img,.carousel-youtube .carousel-control-prev img{
    width: 20px!important;
}
.bg-stage-two{
    background: url(../images/bg_stage_two.png) no-repeat top center;
    background-size: 130% auto;
}
@media (max-width: 1200px) {
    .bg-stage-two{
        background-size: 150% auto;
    }
}
@media (max-width: 768px) {
    .bg-stage-two{
        background: url(../images/bg_stage_two_m.png) no-repeat top center;
        background-size: 100% auto;
    }
   
}


.question-container {
    display: none;
    min-width: 100%;
    min-height: 240px;
}

.question-container.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-title, .question-text {
 color:#32687e;
 letter-spacing: 3px;
 padding:0!important;
 margin:0!important;
 font-size: 2rem!important;
 font-weight: 500!important;
}
.question-title{
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: 15px!important;
}
.question-title span:nth-child(2){
    font-size: 1.5rem!important;
}
.question-title span:nth-child(3){
    font-size: 1.2rem!important;
}
.question-text{
    margin-top: 5px;
}

.answer-btn {
    border: none;
    background: none;
    color:#32687e;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;

}
.answer-btn img{
    width: 20px;
}

.answer-btn:hover {
    transform: translateY(-5px);
}
.envelope-container {
    display: none;
    height: 0;
    transition: height 1s ease-in-out;
}

.envelope-content,.envelope-content-end{
    position: absolute;
    top: 150px;
    left: 0;
    width: 50%;
    z-index: 1;
    max-width: 600px;
}

.envelope-content .h2{
    color:#32687e!important;
    letter-spacing: 2px;
   margin-top: 15px;
}
.envelope-content .h2 span{
    padding: 3px 5px;
    background-color: #fff;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
}
.envelope-content-end img{
    max-width: 500px;
}
@media (max-width: 1200px) {
    .envelope-content-end img{
        max-width: 350px;
    }
}
.front-container,.middle-container{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.front-container{
    z-index: 15;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
}
.middle-container{
    z-index: 10;
}
.letter-container{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9;
}
.letter-content{
    background: url(../images/result/letter.png) repeat-y top center;
    background-size: 100% auto;
    color:#32687e!important;
}

.letter-content-inner{
    width: 90%;
    padding: 0 15px;
}
.letter-content strong{
    color:#e9904c!important;
}
.letter-content img{
    max-width: 100px;
}

#letter-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 200px;
}







#letter-icon a{
    text-decoration: none;
    color: #32687e!important;
}

@media (max-width: 1200px) {
    
}


/* Envelope animation styles */
.envelope-content .h2,.envelope-content-end {
    opacity: 0;
}


/* Letter animation styles */
#letter {
    transition: transform 0.8s ease-in-out;
}

.letter-container {
    transition: transform 0.8s ease-in-out;
}

/* Front container animation */
.front-container {
    transition: transform 1.2s ease-in-out;
    transform-origin: top center;
}

/* Loading dots animation */
.loading-dots {
    display: inline-block;
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}
.envelope-content, .envelope-content-end{
    top: 20px;
    width: 50%;
}
@media (max-width: 1200px) {
    .envelope-content, .envelope-content-end{
        top: 100px;
        width: 50%;
    }
    .question-title, .question-text,.answer-btn{
        font-size: 1.5rem!important;
    }
    .question-title span:nth-child(2){
        font-size: 1.3rem!important;
    }
    .question-title span:nth-child(3){
        font-size: 1rem!important;
    }
    .answer-btn{
        gap: 10px;
    }
}
@media (max-width: 768px) {
    .letter-content-inner{
        padding: 0 10px;
    }
    .question-title span:nth-child(1){
        font-size: 1.8rem!important;
    }
    .question-text{
        margin-left: 15px;
        line-height: 1.5;
    }
   
   
    .envelope-content, .envelope-content-end{
       top: -40px;
        width: 100%;
       
    }
   
    .letter-content img{
        max-width: 80px;
    }
    .envelope-content-end{
        left: -10px;
        overflow: hidden;
    }
    .envelope-content-end img{
        max-width: 300px;
    }

    .question-text{
        padding-top: 10px!important;
        padding-left: 10px!important;
    }
    
    .question-text:last-child{
        margin-bottom: 30px!important;
    }
    .question-title, .question-text{
        font-size: 1.2rem!important;
    }
    .answer-btn{
        font-size: 1.2rem!important;
        justify-content: flex-start;
        text-align: left;
    }
    .answer-btn img{
        width: 15px!important;
        padding-right: 5px!important;
    }
}
.question-btn-container{
    width: 100%;
}
@media (max-width: 480px) {
 
    .answer-btn{
        display: block;
        margin-bottom: 15px;
    }
    .question-btn-container{
        width:auto;
    }
}
.text-success{
    color: #479ead!important;
}
.text-secondary{
    color: #ad7147!important;
}
.text-shadow{
    text-shadow: 3px 3px 6px rgba(255, 255, 255, 0.3);
}
#letter{
    clip-path: inset(-1000px 0 0 0);
}
.video-content h5{
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}
.video-content h5.active{
    display: block;
    opacity: 1;
}
.letter-spacing{
    letter-spacing: 2px;
    line-height: 1.2;
}
@media (max-width: 1200px) {
   
    .carousel-youtube .carousel-control-next{
        right: 10px!important;
    }
    .carousel-youtube .carousel-control-prev{
        left: 10px!important;
    }
}
/* Video Slider Styles - Bootstrap Carousel 風格 */
.video-slider-container {
    position: relative;
    width: 100%;
    touch-action: pan-y; /* 允許垂直滾動，但限制水平滾動 */
    user-select: none; /* 防止文字選擇 */
}

.video-slider-content {
    overflow: hidden;
}

.video-slider-container .slider-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.video-slider-container .slide-item {
    position: relative;
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    z-index: 1;
    display: block;
}

.video-slider-container .slide-item.current {
    z-index: 2;
}


.video-slider-container .slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-slider-container .slider-nav-btn:hover {
    opacity: 1;
}

.video-slider-container .slider-nav-left {
    left: -20px;
}

.video-slider-container .slider-nav-right {
    right: -20px;
}

.video-slider-container .slider-nav-btn img {
    width: 30px;
}

/* 拖拽時的視覺反饋 */
.video-slider-container.dragging {
    cursor: grabbing;
}

.video-slider-container.dragging .slider-wrapper {
    transition: none;
}

@media (max-width: 768px) {
    .video-slider-container .slider-nav-left {
        left: -10px;
    }
    
    .video-slider-container .slider-nav-right {
        right: -10px;
    }
    
    .video-slider-container .slider-nav-btn img {
        width: 20px;
    }
}



.restart-btn {
    max-width: 140px;
}


.vertical-img{
    max-width: 50px;
    animation: fadeIn 2s ease-in forwards;
}
.vertical-img-en{
    max-width: 45%;
    animation: fadeIn 2s ease-in forwards;
}
.vertical-img:nth-child(2) {
    animation-delay: 0.5s;
}
.vertical-img-en:nth-child(2) {
    animation-delay: 0.5s;
}
.vertical-img-en:nth-child(3) {
    animation-delay: 1s;
}
@media (max-width: 1200px) {
    .vertical-img{
        max-width: 40px;
    }
}
@media (max-width: 480px) {
    .vertical-img{
        max-width: 30px;
    }
    .vertical-img-en{
        max-width: 90%;
    }
}

