/* main */
section[thename="main"] {
    height: 100vh;
    height: calc(100vh - 80px);
    max-height: 740px;
    overflow: hidden;
    min-height: 740px;
}
section[thename="main"] centerwrap{
    height: 100%;
}
section[thename="main"] .title {
    width: 35%;
    right: 9%;
    margin-right: 0px;
    top: 16vw;
    position: absolute;
    z-index: 1;
}
section[thename="main"] .photo {
    width: 48%;
    left: 9%;
    top: 4vw;
    position: absolute;
    z-index: 1;
}

section[thename="main"]  .photo{
    display: none;
}
section[thename="main"] .photo :first-child {
    display: block;
}





.animates04 {
    opacity: 0;
}
.animates04.active {
    opacity: 1;
    animation: animates04 0.6s ease-out;
    -webkit-animation: animates04 0.6s ease-out;
}
@keyframes animates04 {
    0% {
        opacity: 0;
        transform: translate(0px, 50px);
    }
    100% {
        opacity: 1;
        transform: translate(0px, 0px);
    }
}
.animates05 {
    opacity: 0;
}
.animates05.active {
    opacity: 1;
    animation: animates05 0.6s ease-out;
    -webkit-animation: animates05 0.6s ease-out;
}
@keyframes animates05 {
    0% {
        opacity: 0;
        transform: translate(0px, 50px);
    }
    100% {
        opacity: 1;
        transform: translate(0px, 0px);
    }
}

.animates06 {
    opacity: 0;
    position: initial;
}
.animates06.active {
    opacity: 1;
    animation: animates06 0.6s ease-out;
    -webkit-animation: animates06 0.6s ease-out;
}
@keyframes animates06 {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}






/* intro */
section[thename="intro"] .text {
    text-align: center;
    font-size: 24px;
    margin-bottom: 55px;
}
section[thename="intro"] .title {
    max-width: 70%;
    height: 90px;
}



/* prizes */
section[thename="prizes"]{
    padding-top: 100px;
    padding-bottom: 50px;
}
section[thename="prizes"] .text {
    text-align: center;
    font-size: 24px;
    margin-bottom: 55px;
}
section[thename="prizes"] .title {
    max-width: 70%;
    height: 80px;
}
section[thename="prizes"] .prizes_info{
    width: 45%;
    display: inline-block;
    vertical-align: top;

}
section[thename="prizes"] .prizes_info .photo{
    width: 95%;
    padding-bottom: 95%;
    background-size: contain;
    background-position: center;
    margin-top: -80px;
    margin-left: 13%;
}
section[thename="prizes"] .prizes_info_text {
    text-align: center;
    font-size: 24px;
    width: 50%;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 0px;
    height: 120px;
}


section[thename="prizes"]{
    padding-top: 50px;
}

section[thename="prizes"] .prizes_list{
    margin-bottom: 0px;
}
section[thename="prizes"] .prizes_list .each{
    width: 30%;
    display: inline-block;
    margin-bottom: 0px;
}
section[thename="prizes"] .prizes_list .each .photo{
    width: 100%;
    padding-bottom: 90%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}





/* ecosystem */
section[thename="ecosystem"]{
    padding-top: 100px;
    padding-bottom: 50px;
}
section[thename="ecosystem"] .title {
    max-width: 70%;
    height: 90px;
}
section[thename="ecosystem"] .text {
    text-align: center;
    font-size: 24px;
    margin-bottom: 55px;
}
section[thename="ecosystem"] .photo {
    width: 90%;

}





/* campus */
section[thename="campus"]{
    padding-top: 100px;
    padding-bottom: 50px;
}
section[thename="campus"] .text {
    text-align: center;
    font-size: 24px;
    margin-bottom: 55px;
}
section[thename="campus"] .title {
    max-width: 70%;
    height: 90px;
}
section[thename="campus"] .photo{
    background-image: url(../images/home/campus_photo.png);
    width: 60%;
    padding-bottom: 51%;
    background-size: auto 97%;
    background-position: center right;
    display: inline-block;
    vertical-align: top;
}
section[thename="campus"] .content{
    width: 39%;
    display: inline-block;
    vertical-align: top;
    font-size: 22px;
    line-height: 2;
    position: absolute;
}
section[thename="campus"] .content .in{
    padding: 30px;
    margin-top: 6vw;
    margin-right: 11vw;
}
section[thename="campus"] .content .intro{
    margin-top: 30px;
}
section[thename="campus"] .apply_btn{
    margin-top: 30px;
    width: 300px;
    cursor: pointer;
}
section[thename="campus"] .apply_btn{
    margin-top: 30px;
    width: 300px;
    padding-bottom: 25%;
    cursor: pointer;

    background-image:url(../images/home/apply_btn0.svg),url(../images/home/apply_btn1.svg);
    background-repeat: no-repeat, no-repeat;
    background-position: -1px -1px,5px 7px; 
    background-size: 97% 97%, 98% 98%;
}
section[thename="campus"] .apply_btn:hover{
    background-position: 2px 2px,5px 7px; 
    background-size: 97% 97%, 98% 98%;
}
section[thename="campus"] .apply_btn:active{
    background-position: 5px 7px,5px 7px; 
    background-size: 97% 97%, 97% 97%;
}


/*  */

.past_slider {
    width: 90%;
    overflow: hidden;
    position: relative;
    padding: 0px 0;
     padding-top: 40px;
    padding-bottom: 40px;
}

.past_slider .swiper-wrapper {
    align-items: center;
}

.past_slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.45;
    transform: scale(0.78);
}

.past_slider .swiper-slide-active {
    opacity: 1;
    transform: scale(1.20);
    z-index: 3;
}

.past_slider .swiper-slide-prev,
.past_slider .swiper-slide-next {
    opacity: 0.75;
    transform: scale(0.8);
}

.past_slider .each {
    width: 100%;
    aspect-ratio: 175 / 300;
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    background-size: 100% 100%, 140%;
}

/* 左右箭頭，可自行美化 */
.past_prev,
.past_next {
    width: 44px;
    height: 44px;
    position: absolute;
    top: 50%;
    margin-top: -22px;
    z-index: 10;
    cursor: pointer;
    background: rgba(255,255,255,0.8);
    border-radius: 999px;
}

.past_prev { left: 10px; }
.past_next { right: 10px; }

.past_prev::before,
.past_next::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
    transform-origin: center;
}

.past_prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.past_next::before {
    transform: translate(-65%, -50%) rotate(45deg);
}







/* home - mobile */
@media screen and (max-width: 960px) {


    /* main */
    section[thename="main"] .photo_m {
        width: 91%;
        margin-left: -1%;
        margin-top: 20px;
    }
    section[thename="main"] .title {
        width: 65%;
        left: 0;
        top: 0;
        position: relative;
        z-index: 1;
        display: block;
        margin: auto;
        margin-top: 20px;
    }

    .scroll {
        width: 80px;
        bottom: 20px;
        margin-left: -40px;
    }

    section[thename="main"] {
        height: 100vh;
        max-height: 95vh;
        min-height: 95vh;
    }


    /* intro */
    section[thename="intro"] .title {
        max-width: 80%;
        height: auto;
    }
    section[thename="intro"] .text {
        text-align: center;
        font-size: 17px;
    }

    section[thename="intro"] .past_slider {
        width: 83%;
    }
   


    /* prizes */
    section[thename="prizes"] .title {
        max-width: 81%;
        height: auto;
    }
    section[thename="prizes"] .text {
        text-align: center;
        font-size: 17px;
    }

    section[thename="prizes"] .prizes_list_m {
        
    }
    section[thename="prizes"] .prizes_list_m .each img{
        width: 85%;
    }
    section[thename="prizes"] .each_text {
        text-align: center;
        font-size: 17px;
        margin: 30px;
        margin-top: 0;
    }

    /* ecosystem */
    section[thename="ecosystem"] {
        padding-top: 0px;
        padding-bottom: 0px;
    }
    section[thename="ecosystem"] .title {
        max-width: 81%;
        height: auto;
    }
    section[thename="ecosystem"] .text {
        text-align: center;
        font-size: 17px;
        margin-bottom: 10px;
        margin-top: 0;
    }

    /* campus */
    section[thename="campus"] .title {
        max-width: 81%;
        height: auto;
    }
    section[thename="campus"] .text {
        text-align: center;
        margin: 25px;
        font-size: 17px;
        margin-bottom: 10px;
        margin-top: 0;
    }
    section[thename="campus"] .content {
        width: auto;
        display: block;
        vertical-align: top;
        font-size: 22px;
        line-height: 2;
        position: relative;
        font-size: 17px;
        margin-left: 30px;
        margin-right: 30px;
    }
    section[thename="campus"] .photo {
        width: 92%;
        padding-bottom: 80%;
    }
    section[thename="campus"] .content .in {
        padding: 30px;
        margin-top: 0;
        margin-right: 0;
    }
    section[thename="campus"] .apply_btn {
        margin-top: 30px;
        width: 80%;
        margin: auto;
        display: block;
        margin-top: 30px;
        padding-bottom: 27%;
    }
    
}
