a {text-decoration: none;}

.fade{
    display: none;
}

/* 桌機 */
@media (min-width:1024px) {

    header {
        display: flex;
        justify-content: space-between;
        position: fixed;
        top: 0px;
        left: 0px;
        background-color: #F5F5F5;

        height: 60px;
        width: 100%;
        padding: 17px 3.4%;
    }

    .logo {
        height: 25px;
    }

    /* navbar */
        /* 刪掉怪怪的padding */
        .container-fluid {
            padding: 0px;
        }

        .navbar-expand-lg .navbar-nav .nav-link {
            padding: 0px;
        }

        /* 正確padding與樣式 */
        .nav-item {
            padding: 10px 20px;
            font-family: 'Noto Sans TC';
            font-size: 16px;
            line-height: 19px;
            color: #909090;
        }

        .nav-item:hover{
            background-color: #E5E5E5;
            color: #505050;
            transition: all;
        }

        .dropdown-menu{
            border: 0px;
            border-radius: 0px;
        }

        .dropdown-item{
            padding: 10px 20px;
            font-family: 'Noto Sans TC';
            font-size: 14px;
            color: #909090;
        }

        .dropdown-item:hover{
            background-color: #E5E5E5;
            color: #505050;
            transition: all;
        }


    /* 不要漢堡和手機版物件 */
    .hbg {
        display: none;
    }

    .mobileNAV {
        display: none;
    }


}

/*平板$手機*/
@media (max-width:1023px) {

    .navbar {
        display: none;
    }

    header {
        width: 100%;
        height: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;

        position: fixed;
        top: 0px;
        z-index:100;
        background-color: #F5F5F5;

    }


    header ul {
        list-style: none;
        color: #909090;
        display: flex;
        flex-direction: column;
    }

    header .hbg {
        width: 24px;

    }

    .hbg>div {
        border-top: 2.5px solid #909090;
        margin: 5px 0 5px 0;
    }



    header .NAV {
        display: none;
    }

    .bg_nav {
        background-color: #E5E5E5;
    }

    .mobileNAV {
        width: 100vw;
        height: 100vh;
        list-style: none;
        color: #909090;
        background-color: #F5F5F5;
        font-weight: 400;
        font-size: 18px;
        line-height: 22px;
        display: block;
        border: 0;
        border-radius: 0;
    }

    .mobileNAV>div:first-child {
        height: 60px;
        border: 0;
        margin-right: calc(32 / 428 * 100% - 16px);
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .mobileNAV button {
        width: 18px;
        height: 17px;
        margin: 3px calc(39 / 428 * 100%);
    }

    .mobileNAV svg {
        width: 15px;
        height: 12px;
        margin-top: 3px;
        transform: rotate(0deg);
    }

    .mobileNAV>div:last-child {
        border: 0;
        display: flex;
        justify-content: center;

    }

    .mobileNAV ul {
        max-width: 514px;
        width: 100%;
        padding: 0;
    }

    .mobileNAV>div>ul>li {
        width: 100%;
        border-bottom: 1px solid #D4D4D4;
    }

    .mobileNAV>div>ul>li:first-child {
        border-top: 1px solid #D4D4D4;
    }

    .mobileNAV a {
        color: #909090;
        width: 100%;
        height: 64px;
        padding: 20px 0 22px 0;
        line-height: 20px;
    }

    .mobileNAV a[aria-expanded="true"] {
        color: #505050;
        background-color: #E5E5E5;
    }

    .mobileNAV a[aria-expanded="false"]~#school {
        background-color: #E5E5E5;
    }

    .mobileNAV a[aria-expanded="true"]>svg {
        transform: rotate(180deg);
        transition: all 300ms ease-out;
    }

    .mobileNAV a[aria-expanded="false"]>svg {
        transform: rotate(0deg);
        transition: all 300ms ease-out;
    }


    .mobileNAV a:first-child {
        padding: 0 20px 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #collapse {
        width: 100%;
        list-style: none;
        color: #909090;
        padding: 0;
        background-color: #FFFFFF;
    }

    #collapse a {
        color: #909090;
    }

    #collapse li {
        height: 64px;
        display: flex;
        align-items: flex-end;
        border-top: 1px solid #D4D4D4;
        padding-left: 20px;

    }

}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .logo{
        width: 125.63px;
        height: 25px;
    }

    header{
        padding: 18px 6%;
    }
}    
    
/* Mobile */
@media (max-width: 767px) {
    .logo{
        height: 20px;
    }

    header{
        padding: 17px 7.4%;
    }
}
