.CDplayer {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.CDplayer iframe, .CDplayer object, .CDplayer embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

button {
    cursor: pointer;
}
body{
    background-image: url(系所社團飛船修正版地底背景.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center; 
    overflow-x: hidden;
}
ul{
    float:left;
}

.modal-body {
    position:relative;
}
th{
    padding-top: 4%;
}
#bread{
    float:left;
    /* width: 32vw; */
}
#breadcru{
    background-color: black;
    opacity: 0.8;
}
#text_at{
    color: rgb(0, 162, 255);
    opacity: 1;
    font-size: 1.3vw;
}
#text, #text_stu{
    opacity: 1;
    color: white;
    font-size: 1.3vw;
}
/* button{
    border-top-left-radius: 40px;
    border-bottom-right-radius: 40px;
    -webkit-transition-duration: 0.4s; 
    transition-duration: 0.4s;
} */
button:hover {
    background-color: rgb(43, 78, 233);
    color: white;
}

h4{
    margin-top: 3%;
    margin-left:68%;  
}

h5{
    margin-left: 20%;
}

table{
    background-image: url(系所社團飛船修正版地底背景2_去被.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left; 
    float: right;
    margin-right: 3%;
    margin-top: 13%;
    opacity: 0.8;
}

thead{
    text-align: center;
    font-size:2.4vw;
    color: white;
}

tbody{
    float:center;
    display: block;
    height: 40vh;
    overflow-y: scroll;
    border-collapse: collapse;
    text-align: center;
    margin-left: 15%;
    margin-top: 5%;
    width:29vw;

}

td{
    float: left;
    font-size: 1.7vw;
}
#tabletext{
    color: white;
}

.science_table, .management_table, .engineering_table, .csee_table, .earth_table, .hakka_table, .chst_table{
    display: none;
}

.CDplayer {
    margin-left: 15%;
    margin-top: 2%;
}

      

h6{
    margin-top: 2%;
    margin-left: 18%;
    border-left: 6px solid lightgreen;
    border-bottom: 40px;
    background-color: rgb(250, 250, 221);
    font-size: 17px;
    border-spacing:50px;
    padding-left:10px; 
    width: 100%;
    word-wrap: break-word;
    max-width: 550px;
    max-height: 350px;
    overflow-y: auto;
    line-height: 26px;
    letter-spacing: 1px;
    
}

h3{
    color: rgb(32, 243, 180);
    font-size: 40px;
    margin-left: 2%;
}
h5{
    margin-left: 18%;
    color: white;
    font-size: 30px;
}


.modal-content{
    background-image: url(彈出視窗背景.png);
}

.modal{
  margin-top: 5%;  
}

#modal_button{ 
    margin-top: 2px;
    width: 90px;
    padding-top:8px; 
    padding-bottom: 8px;
    border-radius: 10%;
    text-align: center;
}

#nav_a,#nav_i{
    font-size: 17px;
    color: white;
}
#nav_i:focus{
    color: rgb(7, 56, 112);
}
#nav_a:focus{
    color: rgb(7, 56, 112);
}
.nav{
    margin-top: 8%;
}
.nav-pills .nav-link{
    background-color: rgba(255, 255, 255,0);
    display: block;
    padding: 0.4rem 0rem;
}
.nav-pills .nav-link.active{
    background-color: rgb(98, 224, 255);
}


#modal_button:hover{
    box-shadow: 0 14px 20px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);

}
#combut{
    position: relative;
    display: inline-block;
    margin-top: 9%;
    transform: translateX(-23vw);
    -webkit-transform: translateX(-23vw);
    -moz-transform: translateX(-23vw);
    -o-transform: translateX(-23vw);
}
.leftbox{
    float: left;
    opacity: 0.7;
    width: 33vw;
    position: relative;
}
#but_1, #but_2, #but_3, #but_4, #but_5, #but_6, #but_7, #but_8{
    background-color: rgba(255, 255, 255, 0);
    color: white;    
    font-size: 2.1vw;
    position: absolute;
    border-radius: 1vh;

}

#but_1{
    top: 18%;
    left: 14%;
}
#but_1:focus{
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -o-transform: scale(1.2);
}
#but_1:hover{
    transform: scale(1.3);
    -webkit-transform: scale(1.3);
    -moz-transform: scale(1.3);
    -o-transform: scale(1.3);
}
#but_2{
    top: 36%;
    left: 14%;
}
#but_2:focus{
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -o-transform: scale(1.2);
}
#but_2:hover{
    transform: scale(1.3);
    -webkit-transform: scale(1.3);
    -moz-transform: scale(1.3);
    -o-transform: scale(1.3);
}
#but_3{
    top: 70%;
    left: 14%;
}
#but_3:focus{
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -o-transform: scale(1.2);
}
#but_3:hover{
    transform: scale(1.3);
    -webkit-transform: scale(1.3);
    -moz-transform: scale(1.3);
    -o-transform: scale(1.3);
}
#but_4{
    top: 54%;
    left: 14%;
}
#but_4:focus{
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -o-transform: scale(1.2);
}
#but_4:hover{
    transform: scale(1.3);
    -webkit-transform: scale(1.3);
    -moz-transform: scale(1.3);
    -o-transform: scale(1.3);
}
#but_5{
    top: 18%;
    left: 46%;
}
#but_5:focus{
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -o-transform: scale(1.2);
}
#but_5:hover{
    transform: scale(1.3);
    -webkit-transform: scale(1.3);
    -moz-transform: scale(1.3);
    -o-transform: scale(1.3);
}
#but_6{
    top: 36%;
    left: 46%;
}
#but_6:focus{
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -o-transform: scale(1.2);
}
#but_6:hover{
    transform: scale(1.3);
    -webkit-transform: scale(1.3);
    -moz-transform: scale(1.3);
    -o-transform: scale(1.3);
}
#but_7{
    top: 70%;
    left: 58%;
}
#but_7:focus{
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -o-transform: scale(1.2);
}
#but_7:hover{
    transform: scale(1.3);
    -webkit-transform: scale(1.3);
    -moz-transform: scale(1.3);
    -o-transform: scale(1.3);
}
#but_8{
    top: 54%;
    left: 46%;
}
#but_8:focus{
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -o-transform: scale(1.2);
}
#but_8:hover{
    transform: scale(1.3);
    -webkit-transform: scale(1.3);
    -moz-transform: scale(1.3);
    -o-transform: scale(1.3);
}
.carousel{
    max-width: 450px;
    max-height: 300px;
    float: left;
    margin-left: 18%;
}

.d-block{
    max-width: 450px;
    max-height: 300px;
}
@media screen and (min-width: 992px) and (max-width: 1000px){
    .bread{
        margin-top:2.3%;
    }
}
@media screen and (min-width: 589px) and (max-width: 769px){
    .breadcrumb {
        padding: 0rem 0.9rem;
    }
    #text_at{
        font-size: 3vw;
    }
}

@media screen and (min-width: 768px) and (max-width: 992px){
    
    h6{
        width:75%;
    }
    #carouselExampleIndicator1{
        max-width: 300px;
        max-height: 250px;
        float: left;
        margin-left: 21%;
    }
    #carouselExampleIndicator2{
        max-width: 300px;
        max-height: 250px;
        float: left;
        margin-left: 21%;
    }
    .d-block{
        max-width: 300px;
        max-height: 250px;
    }
}
@media screen and (max-width: 588px) and (min-width: 532px){
    .breadcrumb {
        padding: .75rem .9rem;

    }
}
@media screen and (max-width: 532px){
    .breadcrumb {
        padding: .75rem .5rem;
    }
}
@media screen and (max-width: 768px){
    body{
        background-image: url(系所手機板背景.png);
        background-position: center;
        background-size: cover;
        background-position: center; 
        overflow-x: hidden;
    }
    .modal{
        z-index: 4100;
        margin-top: 0%;
    }
    .modal .modal-body {
        height: var(--height);
        overflow: auto;
    }
    #nav_a, #nav_i{
        font-size: 12px;
    }
    h3{
        font-size: 6.7vw;
    }
    .nav{
        margin-top: 0%;
        margin-left: 27%;
        flex-wrap: nowrap;
    }
    #scroll_nav{
        overflow-x: scroll;
    }
    #modal_button{ 
        width: 60px;
        border-radius: 10%;
        text-align: center;
    }
    h5{
        font-size: 15px;
        margin-left: 6%;
    }
    h6{
        margin-top: 2%;
        margin-left: 5%;
        border-left: 6px solid lightgreen;
        border-bottom: 40px;
        background-color: rgb(250, 250, 221);
        font-size: 14px;
        border-spacing:50px;
        padding-left:10px; 
        width: 100%;
        word-wrap: break-word;
        max-width: 280px;
        max-height: 300px;
        overflow-y: auto;
        line-height: 26px;
        letter-spacing: 1px;
    }
    
    .carousel{
        max-width: 300px;
        max-height: 300px;
        float: left;
        margin-left: 5%;
    }
    
    .d-block{
        max-width: 300px;
        max-height: 300px;
    }
    /* 上方8個按鈕 */
    #cellup{
        position: relative;
        display: inline-block;
        margin-left: 4%;
        margin-top: 3%;
    }
    .sideup{
        width: 50vw;
        position: absolute;
        left: 44%;
        bottom: 17%;
    }
    .boxup{
        position: relative;
        width: 80vw;
        opacity: 0.7;
    }
    .titleup{
        float: left;
        width: 40vw;
    }
    .sidedown{
        width:55vw;
        float: left;
        margin-bottom: 6%;
    }
    #butcell_1, #butcell_2, #butcell_3, #butcell_4, #butcell_5, #butcell_6, #butcell_7, #butcell_8{
        background-color: rgba(255, 255, 255, 0);
        color: white;    
        font-size: 4.5vw;
        position: absolute;
        border-color: rgba(255, 255, 255, 0.5);    
        border-radius: 1vh;

    }
    #butcell_1{
        top: 11%;
        right:60%;
    }
    #butcell_2{
        top: 31%;
        right: 60%;
    }
    #butcell_3{
        top: 71%;
        right: 54.3%;
    }
    #butcell_4{
        top: 51%;
        right: 60%;
    }
    #butcell_5{
        top: 11%;
        right:13%;
    }
    #butcell_6{
        top: 31%;
        right:13%;
    }
    #butcell_7{
        top: 71%;
        right:13%;

    }
    #butcell_8{
        top: 51%;
        right:13%;
    }
    /* 下方table */
    table{
        opacity: 0.7;
        float:right;
        margin-right: 5%;
    }
    thead{
        text-align: center;
        font-size:10vw;
        color: white;
    }
    .department_content{
        white-space: nowrap;
    }
    tbody{
        display: block;
        height: 38vh;
        overflow-y: scroll;
        overflow-x: scroll;
        border-collapse: collapse;
        text-align: center;
        margin-top: 5%;
        width:80vw;
        float:left;
        margin-left: 0;
        padding-left: 8%;

    }
    td{
        float: left;
        font-size: 6vw;
    }
    #tabletext{
        color: white;
    }
    /* 麵包屑 */
    #bread{
        float:left;
        width: 10%;
        opacity: 0.8;
    }
    #text{
        font-size: 3.5vw;
    }
    #text_at{
        font-size: 3.8vw;
        float: right;
        text-align: center;
        padding-left: .5rem;
    }
    .player{
        width:80vw;
        height: 50vw;
    }
    
    .CDplayer{
        margin-left: 0%;
    }
}