@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');

*{
    font-family: Noto Sans TC;
}

html {
    scroll-behavior: smooth;
    scroll-padding: 35px 0 0 0;
  }

:root {
    --button-bg-color: #F96C1D;
    --button-bg-hover-color: #FFCE0C;
    --button1-bg-color: #FF6495;
    --button1-bg-hover-color: #7DB8FF;
    --no1-bg-color: #FFCE0C;
    --no2-bg-color: #B8B8B8;
    --no3-bg-color: #EEA859;
    --active-bg-color: #7DB8FF;
}

[v-cloak]{
    display: none;
}

.center{
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn{
    transition: all .3s ease-in-out;
    color: white;
    background-color: var(--button-bg-color);
}

.btn:hover{
    background-color: var(--button-bg-hover-color);
}

.btn1{
    transition: all .3s ease-in-out;
    color: white;
    box-shadow: 0 3px 5px #03030357;
    background-color: var(--button1-bg-color);
}

.btn1:hover{
    background-color: var(--button1-bg-hover-color);
}

.active-text{
  position: relative;
  padding-top: 30px; 
  padding-bottom: 25px; 
  font-size: 1.25em;
  font-weight: 600;
  color: #000;  
}

.active-text::before{
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    left: -50%;
    top: 50%;
    background-color: #000;
}

.active-text::after{
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    right: -50%;
    top: 50%;
    background-color: #000;
}

@media(max-height:986px){
    .mediaH{
        height: 800px;
        min-height: 800px !important;
        overflow-y: scroll;
    }
}

.mediaH::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #7DB8FF;
  }
.mediaH::-webkit-scrollbar {
    width: 6px;
    background-color: black;
  }
.mediaH::-webkit-scrollbar-thumb {
    background-color: #B8B8B8;
  }


/* -------- 時間線 -------- */

.timeline{
    width: calc(100% - 160px);
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.line1{
    width: 95%;
    height: 2px;
    background-color: #7DB8FF;
}

.dot{
    width: 20px !important;
    height: 20px;
    background-color: #7DB8FF;
    border-radius: 50%;
}

.w-line:nth-child(1){
    width: 23%;
}
.w-line:nth-child(2){
    width: 20%;
}
.w-line:nth-child(3){
    width: 20%;
}
.w-line:nth-child(4){
    width: 15%;
}
.w-line:nth-child(5){
    width: 24%;
}

.h-line:nth-child(1){
    height: 25%;
}
.h-line:nth-child(2){
    height: 20%;
}
.h-line:nth-child(3){
    height: 20%;
}
.h-line:nth-child(4){
    height: 20%;
}
.h-line:nth-child(5){
    height: 15%;
}
.h-line1{
    width:2px;
    height: 100%;
    background-color: #7DB8FF;
}

/* ----- 活動辦法 ------ */
.pc-box{
    position: relative;
    text-align: center;
    color: white;
    font-weight: 800;
    padding: 3.5rem 4.25rem;
    font-size: 28px;
}

.pc-box::after{
    content: '';
    position: absolute;
    top: 30%;
    right: -30px; /* 調整箭頭的水平位置 */
    border-width: 30px 0 30px 60px; /* 調整邊框寬度以改變箭頭大小 */
    border-style: solid;
    border-color: transparent transparent transparent #005CB7;
}

.pc-box.line::before{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -90%;
    width: 2px;
    height: 190px;
    background-color: #005CB7;
}

.pc-box.line.active::before{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -130%;
    width: 2px;
    height: 130px;
    background-color: #005CB7;
}

.pc-box.line.active::after{
    content: '';
    position: absolute;
    top: 10%;
    right: -25px; /* 調整箭頭的水平位置 */
    border-width: 30px 0 30px 60px; /* 調整邊框寬度以改變箭頭大小 */
    border-style: solid;
    border-color: transparent transparent transparent #005CB7;
}

.text-activeItem{
    min-width: 120px;
}

/*----- 活動獎項----- */
.awards{
    margin-left: 3%;
    background-color: #FFFFFF;
    border-radius: 21px;
    box-shadow: 0 3px 6px #00000029;
}

.awards-box{
    position: relative;
    padding:6px 95px;
    color: white;
    font-size: 24px;
    border-radius: 39px;
    margin-top: -20px;
}

.content{
    position: relative;
    display: inline-block;
    padding-top: 4px;
    color: #FF6495;
}

.content::after{
    content: '';
    position: absolute;
    width: 66px;
    height: 5px;
    bottom: 0;
    left: 0;
    border-radius: 5px;
    background-color: #FFF281;
}

.no1{
    background-color: var(--no1-bg-color);
}

.no2{
    background-color: var(--no2-bg-color);
}

.no3{
    background-color: var(--no3-bg-color);
}

.no4{
    background-color: var(--active-bg-color);
}

/*----- 注意事項----- */

.notice-title{
    background-color:#005CB7;
    border-radius: 39px;
    color: white;
    font-weight: 600;
    font-size: 24px;
}

/* -----mobile-menu----- */

.mb-menu{
    background-color: #2383E2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-right: 1px solid #0062C4;
    width: 33.333%;
    height: 75px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}
.mb-menu:last-child{
    border-right:none
}

/* -------- 得獎名單 -------- */

.card{
    margin-top: 60px;
    width: 31%;
    background-color: #FFFFFF;
    padding: 24px;
    position: relative;
    box-shadow: 0 3px 6px #00000029;
}

.card .img{
    cursor: pointer;
    max-height: 242px
}

.card .img1{
   max-width: 70px;
   position: absolute;
   left: -25px;
   top:-25px;
}

.card-text h3{
    font-size: 22px;
}

.card-text p{
    font-size: 20px;
}
.awards-people{
    gap:20px;
}
.awards-people>p{
    padding-left: 3%;
    width: 32%;
    justify-content: start;
}
.vote-people{
    width: 100%;
    padding-left: 2rem;
}
.vote-people>p{
    width: 16.6%;
    font-size: 20px;
    padding-bottom: 10px;
}
.text-cont{
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
    position: relative;
    background-color: #FF6495;
    border-radius: 24px;
    box-shadow: 0 3px 6px #00000029;
    padding: 8px 23px;
    color: white;
    font-size: 22px;
    transition: all .3s;
}
.text-cont img{
    position: absolute;
    right: -10px;
    bottom: -15px;
    width: 39px;
}
.text-cont1{
    color: #9B9B9B;
    font-size: 16px;
    text-align: center;
}

.text-cont:hover{
    background-color: #11B9F6;
    transform: translateY(-8px);
}

/* ------彈跳框------- */
.v-enter-active,
.v-leave-active {
  transition: opacity 0.3s ease;
}

.v-enter-from,
.v-leave-to {
  opacity: 0;
}
.modal-outer{
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: 10;
  height: 100vh;
  width: 100%;
  background-color: rgba(0,0,0,0.4);
}

.modal{
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - 45%);
  overflow: scroll;
  --tw-translate-x: -50%;
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  overflow: hidden;
  border-radius: 0.75rem;
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}

 .openModels { 
  display: block; 
  opacity: 1;
}

.openModels > .modal {
  opacity: 1;
} 

.modal-header{
  text-align: right;
  font-size: 0.875rem;
  line-height: 1.25rem;
  --tw-text-opacity: 1;
  color: rgb(80 80 80 / var(--tw-text-opacity));
  background-color: rgb(242 242 242 / var(--tw-bg-opacity));
  position: relative;
}

.btnx{
    position: absolute;
    right: 10px;
    top: 10px;
}

.modal-header .btnx img{
    width: 35px;
}

.modal-header > .center > img{
    
}

.modal-body{
  --tw-bg-opacity: 1;
  background-color: white;
  padding: 1.25rem;
}

.modalImg{
    max-height: 800px;
}

/* ----- RWD ----- */

@media (max-width:1601px){
    .pc-box.line::before{
        display: none;
    }
    .modalImg{
        max-height: 600px;
    }
}

@media ( max-width:1064px ){
    .modalImg{
        max-height:500px;
    }
    .timeline{
        width: calc(100% - 120px);
        height: 380px;
        margin: 20px auto 20px auto;
        display: flex;
        flex-direction: column;
        padding-bottom: 30px;
    }
    .dot{
        width: 20px;
        height: 25px;
    }
    .pc-box{
        font-size: 16px;
        padding: 12px 44px;
    }
    .pc-box.line.active{
        font-size: 16px;
        padding: 12px 28px;
    }
    .pc-box::after ,.pc-box.line.active::after{
        content: '';
        position: absolute;
        right: 35%;
        top: 90%;
        border: 20px solid;
        border-color: #005CB7 transparent transparent transparent;
    }
    .text-activeItem{
        padding-bottom: 4px;
    }
    .awards{
        margin-left: 0%;
    }
    .notice-title{
        font-size: 18px;
    }
}

@media(max-width:768px){
    .timeline{
        margin: 0px auto 20px auto;
        width: calc(100% - 70px);
    }
    .awards-box{
        font-size: 16px;    
        padding:6px 20px;
        width: 198px;
        text-align: center;
    }
    .content::after{
        width: 50px;
    }
    .card{
        margin-top: 30px;
        width: 100%;
        background-color: #FFFFFF;
        padding: 15px;
    }

    .card .img1{
        max-width: 52px;
        position: absolute;
        left: -20px;
        top:-20px;
     }

     .awards-people>p{
        padding-left: 0%;
        width: 100%;
        margin-top: 5px;;
    }
    .vote-people{
        display: flex;
        justify-content: start;
    }
    .vote-people>p{
        width: 33%;
        font-size: 16px;
        padding-bottom: 10px;
    }
    .text-cont{
        text-align: center;
        font-size: 14px;
        padding: 8px 10px;
    }
    .text-cont1{
        font-size: 12px;
    }
    .vote-people{
        width: 100%;
        padding-left: 0rem;
        text-align: center;
    }
    .modal{
        width: calc(100% - 15%);
      }
      .modal-header .btnx img{
        width: 16px;
    }
}