﻿.title {
    color: #0b7a5f;
    font-weight: bold; 
}

.panel {
    display: inline-block;
    background-color: #e8e6e6;
    width: 100%;
    height: 690px;
    padding: 15px;
    font-family: 'Microsoft JhengHei';
}

.mb-lang {
    display: inline-block;
    font-weight: bold;
    margin-right: 5px;
}

    .mb-lang .nav-link {
        display: inline;
        padding: 8px;
    }

     .mb-lang .nav-link:hover {
         color: lightseagreen;
     }

    .more-url a {
        text-decoration: none;
        color: #0b7a5f;
        font-weight: bold;
    }

.top {
    display: inline-block;
    width: 100%;
    height: auto;
}

.left {
    float: left;
    width: 50%;
}

.right {
    float: right;
}

#faculty_list {
    list-style: none;
    padding: 0;
    margin: 0;
}


#faculty_list li {
    margin-bottom:15px;
}

    #faculty_list img {
        vertical-align: middle;
        width: 100%;
        height: auto;
    }

.image-container {
    position: relative;
    display: inline-block;
}

#faculty_list .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    opacity: 1;
}

#faculty_list .image-container:hover .overlay {
    /*opacity: 1;*/
}

.grid-item {
    width: 128px;
    height: 128px;
    background-color: #0b7a5f;
    float: left;
    border: solid #89d39f 1px;
    border-radius: 25px;
    margin: 22px;
    padding: 10px;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    transition: transform .2s;
}

    .grid-item:hover {
        transform: scale(1.1);
        background: #89d39f;
    }

    .grid-item a img {
        width: 102px;
        height: 102px;
    }

    .grid-item a + label {
        font-size: 10pt;
        padding-top: 15px;
        display: block;
    }

@media (min-width: 200px) and (max-width: 320px) {
    .panel {
        text-align: center;
        background-color: #e8e6e6;
        width: 100%;
        height: auto !important;
        padding: 2px;
        font-family: 'Microsoft JhengHei';
    }

    .title, .right {
        font-size: 10pt;
    }

    #mpu_logo {
        width: 150px !important;
        height: 40px !important;
    }

    .grid-item a + label {
        font-size: 8pt;
    }

    .row {
        margin-left: 0px;
        margin-right: 0px;
        display: block;
    }

    .col-xs-4 {
        float: left;
        display: inline-block !important;
    }

    .grid-item {
        width: 72px;
        height: 72px;
        background-color: #0b7a5f;
        border: solid #89d39f 1px;
        border-radius: 10px;
        margin: 25px;
        padding: 0px;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        transition: transform .2s;
    }

        .grid-item a img {
            width: 72px;
            height: 72px;
        }

    .carousel-text h3 {
        font-size: 12px !important;
        margin-bottom: 10px;
    }

    .web-lang{
        display:none;
    }
}

@media (min-width: 321px) and (max-width: 350px) {
    .panel {
        text-align: center;
        background-color: #e8e6e6;
        width: 100%;
        height: auto;
        min-height: 375px;
        padding: 5px;
        font-family: 'Microsoft JhengHei';
    }

    .grid-item a + label {
        font-size: 8pt;
        padding-top: 13px;
        display: block;
        white-space: normal;
        word-wrap: break-word;
    }

    .row {
        margin-left: 0px;
        display: block;
        flex-wrap: nowrap !important;
    }

    .grid-item {
        width: 83px;
        height: 83px;
        background-color: #0b7a5f;
        border: solid #89d39f 1px;
        border-radius: 25px;
        margin: 30px;
        padding: 10px;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        transition: transform .2s;
    }

        .grid-item a img {
            width: 60px;
            height: 60px;
        }

    #faculty_list img {
        vertical-align: middle;
        width: 100%;
        height: 166px;
    }

    .carousel-text h3 {
        font-size: 12px !important;
        margin-bottom: 10px;
    }

    .social-media img {
        width: 60px !important;
        height: 60px !important;
        margin: 8px;
    }

    .web-lang {
        display: none;
    }

    .title {
        font-size: 12pt !important;
    }
}


@media (min-width: 351px) and (max-width: 375px) {
    .panel {
        text-align: center;
        background-color: #e8e6e6;
        width: 100%;
        height: auto;
        min-height: 375px;
        padding: 5px;
        font-family: 'Microsoft JhengHei';
    }

    .grid-item a + label {
        font-size: 8pt;
        display: block;
        white-space: normal;
        word-wrap: break-word;
        padding-top: 12px;
    }

    .row {
        margin-left: 0px;
        margin-right: 0px;
        display: block;
        flex-wrap: nowrap !important;
    }

    .grid-item {
        width: 85px;
        height: 85px;
        background-color: #0b7a5f;
        border: solid #89d39f 1px;
        border-radius: 25px;
        margin: 10px 10px 24px;
        padding: 10px;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        transition: transform .2s;
    }

        .grid-item a img {
            width: 60px;
            height: 60px;
        }

    #faculty_list img {
        vertical-align: middle;
        width: 100%;
        height: 166px;
    }

    .carousel-text h3 {
        font-size: 12px !important;
        margin-bottom: 10px;
    }

    .social-media img {
        width: 65px !important;
        height: 65px !important;
        margin: 8px;
    }

    .web-lang {
        display: none;
    }

    .title {
        font-size: 16pt !important;
    }
}

@media (min-width: 376px) and (max-width: 400px) {
    .panel {
        text-align: center;
        background-color: #e8e6e6;
        width: 100%;
        padding: 5px;
        height: auto;
        min-height: 380px;
        font-family: 'Microsoft JhengHei';
    }

    .grid-item a + label {
        font-size: 8pt;
        display: block;
        padding-top: 13px;
        white-space: normal;
        word-wrap: break-word;
    }

    .row {
        margin-left: 0px;
        margin-right: 0px;
    }

    .grid-item {
        width: 85px;
        height: 85px;
        background-color: #0b7a5f;
        border: solid #89d39f 1px;
        border-radius: 25px;
        margin: 10px 13px 30px;
        padding: 10px;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        transition: transform .2s;
    } 

        .grid-item a img {
            width: 60px;
            height: 60px;
        }

    #faculty_list img {
        vertical-align: middle;
        width: 100%;
        height: 166px;
    }

    .carousel-text h3 {
        font-size: 12px !important;
        margin-bottom: 10px;
    }

    .social-media img {
        width: 65px !important;
        height: 65px !important;
        margin: 8px;
    }

    .web-lang {
        display: none;
    }

    .title {
        font-size: 16pt !important;
    }
}


@media (min-width: 401px) and (max-width: 413px) {
    .panel {
        text-align: center;
        background-color: #e8e6e6;
        width: 100%;
        padding: 5px;
        height: auto;
        min-height: 380px;
        font-family: 'Microsoft JhengHei';
    }

    .grid-item a + label {
        font-size: 8pt;
        display: block;
        padding-top: 13px;
        white-space: normal;
        word-wrap: break-word;
    }

    .row {
        margin-left: 0px;
        margin-right: 0px;
    }

    .grid-item {
        width: 85px;
        height: 85px;
        background-color: #0b7a5f;
        border: solid #89d39f 1px;
        border-radius: 25px;
        margin: 4vw;
        padding: 10px;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        transition: transform .2s;
    }

        .grid-item a img {
            width: 60px;
            height: 60px;
        }

    #faculty_list img {
        vertical-align: middle;
        width: 100%;
        height: 166px;
    }

    .carousel-text h3 {
        font-size: 12px !important;
        margin-bottom: 10px;
    }

    .social-media img {
        width: 65px !important;
        height: 65px !important;
        margin: 8px;
    }

    .web-lang {
        display: none;
    }

    .left {
        width: 60% !important;
    }

    .title {
        font-size: 14pt !important;
    }
}

@media (min-width: 414px) and (max-width: 429px) {

    .title { 
        font-size: 14pt !important;
    }
    
    .left{
        width: 60% !important;
    }

    .panel {
        text-align: center;
        background-color: #e8e6e6;
        width: 100%;
        padding: 10px;
        height: auto;
        min-height: 450px;
        font-family: 'Microsoft JhengHei';
    } 

    .grid-item a + label {
        font-size: 8pt;
        display: block;
        padding-top: 13px;
        white-space: normal;
        word-wrap: break-word;
    } 

    .grid-item {
        width: 85px;
        height: 85px;
        background-color: #0b7a5f;
        border: solid #89d39f 1px;
        border-radius: 25px; 
        padding: 10px;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        transition: transform .2s;
    }

        .grid-item a img {
            width: 60px;
            height: 60px;
        }

    #faculty_list img {
        vertical-align: middle;
        width: 100%;
        height: 166px;
    }

    .carousel-text h3 {
        font-size: 14px !important;
        margin-bottom: 10px;
    }

    .social-media img {
        width: 65px !important;
        height: 65px !important;
        margin: 8px;
    }

    .web-lang {
        display: none;
    }
}



@media (min-width: 430px) and (max-width: 480px) {

    .title {
        font-size: 16pt !important;
    }

    .panel {
        text-align: center;
        background-color: #e8e6e6;
        width: 100%;
        padding: 10px;
        height: auto;
        min-height: 450px;
        font-family: 'Microsoft JhengHei';
    }

    .grid-item a + label {
        font-size: 9pt;
        display: block;
        padding-top: 13px;
        white-space: normal;
        word-wrap: break-word;
    }

    .row {
        margin-left: 0px;
        margin-right: 0px;
    }

    .grid-item {
        width: 96px;
        height: 96px;
        background-color: #0b7a5f;
        border: solid #89d39f 1px;
        border-radius: 25px;
        margin: 15px;
        padding: 5px;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        transition: transform .2s;
    }

        .grid-item a img {
            width: 80px;
            height: 80px;
        }

    #faculty_list img {
        vertical-align: middle;
        width: 100%;
        height: 166px;
    }

    .carousel-text h3 {
        font-size: 14px !important;
        margin-bottom: 10px;
    }

    .social-media img {
        width: 80px !important;
        height: 80px !important;
        margin: 8px;
    }

    .web-lang {
        display: none;
    }
}

* {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
}

.carousel {
    background: #EEE;
    margin-bottom: 28px;
}

.carousel-cell {
    margin-right: 20px;
    overflow: hidden;
}

    .carousel-cell img {
        display: block;
        height: 200px;
    }


.carousel-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    padding: 10px;
    box-sizing: border-box;
}

    .carousel-text h3 {
        font-size: 24px;
        margin-bottom: 10px;
    }

@media screen and ( min-width: 481px ) {
    .row {
        display: block;
    }

    .grid-item {
        margin-left: 2vw;
        margin-right: 2vw;
    }

    .panel {
        text-align: center;
        background-color: #e8e6e6;
        width: 100%;
        padding: 25px;
        height: auto;
        font-family: 'Microsoft JhengHei';
    } 
     
}

@media (min-width: 482px) and (max-width: 572px) {
    .carousel-cell img {
        height: 400px;
    }

     

    .web-lang {
        display: none;
    }
}

@media screen and ( min-width: 572px ) {
    .carousel-cell img {
        height: 400px;
    }

    .mb-lang {
        display: none;
    }

    .title {
        font-size: 16pt !important;
    }
}

@media screen and ( min-width: 1024px ) {
    .row {
        display: block;
    }

    .panel {
        display: inline-block;
        background-color: #e8e6e6;
        width: 100%;
        height: 430px;
        padding: 15px;
        font-family: 'Microsoft JhengHei';
    }

    .faculty_panel {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 767px) {
    .carousel-text {
        height: 40%;
        font-size:10pt !important;
        padding:15px;
    }

        .carousel-text h3 {
            margin-left: 0px;
        }

        .carousel-text p {
            display: none;
        }
}

.social-media {
    padding: 5px;
    width: 100%;
    text-align: center;
} 

.social-media img {
    width: 65px;
    height: 65px;
    margin: 8px;
    border:solid 2px #ccc;
    padding: 0px;
    border-radius: 40px;
}

.tooltip-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Adjust the alpha value for transparency */
    z-index: 9999;
}

    .wecht-qrcode {
        width: 128px;
        height: 128px;
    }

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ccc;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}