@font-face {
    font-family: "NotoSansTC";
    src: url("./../fonts/NotoSansTC-Regular.otf") format("opentype");

    src: url("./../fonts/NotoSans-Bold.ttf") format("truetype"),
        url("./../fonts/NotoSansTC-Black.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: "Noto Sans TC", sans-serif;
}
body{
    position: relative;
}
.mobile {
    display: none;
}

/* preloader */
.loader-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    background-color: #242f3f;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    display: inline-block;
    width: 30px;
    height: 30px;
    position: relative;
    border: 4px solid #fff;
    animation: loader 2s infinite ease;
}

.loader-inner {
    vertical-align: middle;
    display: inline-block;
    width: 100%;
    background-color: #fff;
    animation: loader-inner 2s infinite ease-in;
}

@keyframes loader {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(180deg);
    }

    50% {
        transform: rotate(180deg);
    }

    75% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes loader-inner {
    0% {
        height: 0%;
    }

    25% {
        height: 0%;
    }

    50% {
        height: 100%;
    }

    75% {
        height: 100%;
    }

    100% {
        height: 0%;
    }
}

/* preloader end */
@media (max-width: 768px) {
    #webside1 {
        display: none;
    }

    .mobile {
        display: block;
    }
}

.seal {
    align-items: stretch;
    background-repeat: no-repeat;
    background-size: cover;
    object-fit: cover;
    width: 40vh;
    height: 40vh;
    margin: auto;
    /* background-image: url("./../image/seal_1.png"); */
    background-image: url("./../image/seal2_14.svg");
}

#campus {
    background: linear-gradient(
        315deg,
        rgba(255, 170, 114, 0.5) 0%,
        rgba(244, 255, 98, 0.5) 30%,
        rgba(108, 255, 231, 0.5) 100%
    );
}

.accordion-item:last-of-type .accordion-button.collapsed {
    border-radius: 0;
}

.dropdown-item {
    white-space: normal;
}

.slide-bar-right {
    width: 40px;
    height: 30px;
    position: relative;
    animation: mymove-right 3s;
    animation-iteration-count: infinite;
}

@keyframes mymove-right {
    from {
        left: 25%;
    }

    to {
        left: 75%;
    }
}

.feedback-slider-item:after {
    display: none;
}

.slide-bar-left {
    width: 40px;
    height: 30px;
    position: relative;
    animation: mymove-left 3s;
    animation-iteration-count: infinite;
}

@keyframes mymove-left {
    from {
        left: 35%;
    }

    to {
        left: 10%;
    }
}

.accordion-button,
.accordion-item,
.accordion-button:not(.collapsed) {
    background-color: rgb(233, 233, 233);
    text-align: center;
    user-select: none;
}

.border-img {
    -moz-border-image: -moz-linear-gradient(top left, #3acfd5 0%, #3a4ed5 100%);
    -webkit-border-image: -webkit-linear-gradient(
        top left,
        #3acfd5 0%,
        #3a4ed5 100%
    );
    border-image: linear-gradient(to bottom right, #3acfd5 0%, #3a4ed5 100%);
    border-image-slice: 1;
}

.landing-font {
    font-family: "NotoSansTC", "Noto Sans TC", sans-serif;
    color: linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%);
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #818181;
    background-color: rgb(212, 211, 211);
}

.mapContainer {
    height: 640px;
}

#mapid {
    z-index: 1;
    width: 100%;
    height: 100%;
}

#btn-Liberal {
    margin-top: 15px;
}

#btn-Liberal,
.secLiberal,
.border_Liberal,
.border_Liberal:not(.collapsed) {
    background-color: #ffadad;
}

#btn-Science,
.secScience,
.border_Science,
.border_Science:not(.collapsed) {
    background-color: #ffd6a5;
}

#btn-Engineering,
.secEngineering,
.border_Engineering,
.border_Engineering:not(.collapsed) {
    background-color: #fdffb6;
}

#btn-Management,
.secManagement,
.border_Management,
.border_Management:not(.collapsed) {
    background-color: #caffbf;
}

#btn-Electrical,
.secElectrical,
.border_Electrical,
.border_Electrical:not(.collapsed) {
    background-color: #9bf6ff;
}

#btn-Earth,
.secEarth,
.border_Earth,
.border_Earth:not(.collapsed) {
    background-color: #a0c4ff;
}

#btn-Hakka,
.secHakka,
.border_Hakka,
.border_Hakke:not(.collapsed) {
    background-color: #bdb2ff;
}

#btn-Health,
.secHealth,
.border_Health,
.border_Health:not(.collapsed) {
    background-color: #ffc6ff;
}

.third {
    background-color: white;
    font-size: 15px;
}

.side_map {
    text-decoration: none;
}

#webside1 {
    position: fixed;
    z-index: 90;
    top: 150px;
    left: -5px;
    background: -webkit-linear-gradient(90deg, rgb(0, 0, 0), rgb(255, 70, 246));
    background: linear-gradient(90deg, rgb(0, 0, 0), rgb(255, 70, 246));
    border-radius: 20px 0 0 20px;
}

#webside1 a {
    color: white;
}
.navbar {
    z-index: 2;
}
.close-navbar-toggler {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    cursor: pointer;
}
.close-navbar-toggler.collapsed {
    z-index: -1;
}
.navbar-brand {
    font-size: 22px;
    font-weight: bold;
    font-family: "Noto Sans TC", sans-serif;
}

.nav-link {
    font-size: 18px;
    font-weight: 400;
    font-family: "Noto Sans TC", sans-serif;
}

.navbar-nav:hover li a {
    opacity: 0.8;
}

.sidenav::-webkit-scrollbar {
    display: none;
}

.sidenav a:hover {
    color: purple;
}

#campus {
    min-height: 100vh;
}

@media (max-width: 575.98px) {
    .card-title {
        font-size: 24px;
    }

    .department {
        font-size: 16px;
        margin-top: 0.25rem;
        letter-spacing: 0.1rem;
    }

    .card-footer {
        font-size: 16px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .card-title {
        font-size: 24px;
    }

    .department {
        font-size: 16px;
        letter-spacing: 0.1rem;
    }

    .card-footer a {
        font-size: 10px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .card-title {
        font-size: 16px;
    }

    .department {
        margin-top: 0.25rem;
        font-size: 10px;
    }

    .card-footer a {
        font-size: 10px;
    }
}

@media (min-width: 1199.98px) {
    .card-title {
        font-size: 24px;
    }

    .department {
        letter-spacing: 0.1rem;
        font-size: 16px;
    }

    .card-footer {
        width: 100%;
    }
}

.card-title {
    font-weight: bold;
}

.card-body p {
    margin-bottom: 0px;
}

.card-footer {
    background: transparent;
    border-top: 0px;
}

/* .department:hover {
    text-decoration: underline;
} */

.info-box {
    height: 45vh;
    min-height: 300px;
}

/*mobile department*/
* {
    touch-action: pan-y;
}

.mobile_detail {
    font-size: 5px;
    margin: 0.5rem auto 0 auto;
    width: fit-content;
}

.mobile_department {
    margin-top: 10px;
    width: 200px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    font-weight: 400;
    display: inline-block;
    position: relative;
}

.section-title:after,
.section-title:before {
    content: "";
    position: absolute;
    bottom: 0;
}

.section-title:after {
    height: 2px;
    background-color: rgba(252, 92, 15, 0.46);
    left: 25%;
    right: 25%;
}

.section-title:before {
    width: 15px;
    height: 15px;
    border: 3px solid #fff;
    background-color: #fc5c0f;
    left: 50%;
    transform: translatex(-50%);
    bottom: -6px;
    z-index: 9;
    border-radius: 50%;
}

/* CAROUSEL STARTS */
.customer-feedback .owl-item img {
    width: 85px;
    height: 85px;
}

.feedback-slider-item {
    position: relative;
    padding: 60px;
    margin-top: -60px;
}

.feedback-slider-item p {
    line-height: 1.875;
}

.thumb-prev .customer-rating {
    top: -20px;
    left: 0;
    right: auto;
}

.thumb-next .customer-rating {
    top: -20px;
    right: 0;
}

/* GREY BACKGROUND COLOR OF THE ACTIVE SLIDER */
.feedback-slider-item:after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    top: 103px;
    background-color: #f6f6f6;
    border: 1px solid rgba(251, 90, 13, 0.1);
    border-radius: 10px;
    z-index: -1;
}

.thumb-prev,
.thumb-next {
    position: absolute;
    z-index: 99;
    top: 45%;
    width: 98px;
    height: 98px;
    left: -90px;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

.thumb-next {
    left: auto;
    right: -90px;
}

.customer-feedback .owl-nav [class*="owl-"] {
    position: relative;
    display: inline-block;
    bottom: 45px;
    transition: all 0.2s ease-in;
}

.customer-feedback .owl-nav i {
    background-color: transparent;
    color: rgb(251, 90, 13);
    font-size: 25px;
}

.customer-feedback .owl-prev {
    left: -15px;
}

.customer-feedback .owl-prev:hover {
    left: -20px;
}

.customer-feedback .owl-next {
    right: -15px;
}

.customer-feedback .owl-next:hover {
    right: -20px;
}

/* DOTS */
.customer-feedback .owl-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 35px;
}

.customer-feedback .owl-dot {
    display: inline-block;
}

.customer-feedback .owl-dots .owl-dot span {
    width: 11px;
    height: 11px;
    margin: 0 5px;
    background: #fff;
    border: 1px solid rgb(251, 90, 13);
    display: block;
    -webkit-backface-visibility: visible;
    -webkit-transition: all 200ms ease;
    transition: all 200ms ease;
    border-radius: 50%;
}

.customer-feedback .owl-dots .owl-dot.active span {
    background-color: rgb(251, 90, 13);
}

.owl-prev,
.owl-next {
    width: 60px;
}

/* RESPONSIVE */
/* @media screen and (max-width: 767px) {
    .feedback-slider-item:after {
        left: 30px;
        right: 30px;
    }

    .customer-feedback .owl-nav [class*="owl-"] {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        margin-top: 45px;
        bottom: auto;
    }

    .customer-feedback .owl-prev {
        left: 0;
    }

    .customer-feedback .owl-next {
        right: 0;
    }
} */

/*end mobile*/

/* search bar */
/* input {
    font: 1em "Noto Sans TC", sans-serif;
    line-height: 1.5em;
}
input {
    color: #171717;
}

.search-bar {
    display: flex;
}

.search-bar input,
.search-btn,
.search-btn:before,
.search-btn:after {
    transition: all 0.25s ease-out;
}
.search-bar input,
.search-btn {
    width: 3em;
    height: 3em;
}
.search-bar input:invalid:not(:focus),
.search-btn {
    cursor: pointer;
}
.search-bar,
.search-bar input:focus,
.search-bar input:valid {
    width: 100%;
}
.search-bar input:focus,
.search-bar input:not(:focus) + .search-btn:focus {
    outline: transparent;
}
.search-bar {
    margin: auto;
    padding: 1.5em;
    justify-content: center;
    max-width: 30em;
}
.search-bar input {
    background: transparent;
    border-radius: 1.5em;
    box-shadow: 0 0 0 0.4em #171717 inset;
    padding: 0.75em;
    transform: translate(0.5em, 0.5em) scale(0.5);
    transform-origin: 100% 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.search-bar input::-webkit-search-decoration {
    -webkit-appearance: none;
}
.search-bar input:focus,
.search-bar input:valid {
    background: #fff;
    border-radius: 0.375em 0 0 0.375em;
    box-shadow: 0 0 0 0.1em #d9d9d9 inset;
    transform: scale(1);
}
.search-btn {
    background: #171717;
    border-radius: 0 0.75em 0.75em 0 / 0 1.5em 1.5em 0;
    padding: 0.75em;
    position: relative;
    transform: translate(0.25em, 0.25em) rotate(45deg) scale(0.25, 0.125);
    transform-origin: 0 50%;
}
.search-btn:before,
.search-btn:after {
    content: "";
    display: block;
    opacity: 0;
    position: absolute;
}
.search-btn:before {
    border-radius: 50%;
    box-shadow: 0 0 0 0.2em #f1f1f1 inset;
    top: 0.75em;
    left: 0.75em;
    width: 1.2em;
    height: 1.2em;
}
.search-btn:after {
    background: #f1f1f1;
    border-radius: 0 0.25em 0.25em 0;
    top: 51%;
    left: 51%;
    width: 0.75em;
    height: 0.25em;
    transform: translate(0.2em, 0) rotate(45deg);
    transform-origin: 0 50%;
}
.search-btn span {
    display: inline-block;
    overflow: hidden;
    width: 1px;
    height: 1px;
}

/* Active state */
/* .search-bar input:focus + .search-btn,
.search-bar input:valid + .search-btn {
    background: #008cff;
    border-radius: 0 0.375em 0.375em 0;
    transform: scale(1);
}
.search-bar input:focus + .search-btn:before,
.search-bar input:focus + .search-btn:after,
.search-bar input:valid + .search-btn:before,
.search-bar input:valid + .search-btn:after {
    opacity: 1;
}
.search-bar input:focus + .search-btn:hover,
.search-bar input:valid + .search-btn:hover,
.search-bar input:valid:not(:focus) + .search-btn:focus {
    background: #0c48db;
}
.search-bar input:focus + .search-btn:active,
.search-bar input:valid + .search-btn:active {
    transform: translateY(1px);
}

@media screen and (prefers-color-scheme: dark) {

    input {
        color: #f1f1f1;
    }
    body {
        background: #171717;
    }
    .search-bar input {
        box-shadow: 0 0 0 0.4em #f1f1f1 inset;
    }
    .search-bar input:focus,
    .search-bar input:valid {
        background: #3d3d3d;
        box-shadow: 0 0 0 0.1em #3d3d3d inset;
    }
    .search-btn {
        background: #f1f1f1;
    }
}  */

.typeahead {
    z-index: 1051;
}
