@charset "UTF-8";

header {
    background-color: #f5f5f5;
    background-image: url(../images/texture.png);
    position: fixed;
    z-index: 10;
}

header .navbar-brand img {
    width: 100%;
}

header .navbar-brand {
    z-index: 9999;
}

/* 電腦版樣式 */
@media(min-width:991px) {
    header {
        width: 25%;
        padding: 4.427%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 100vh;
    }

    main {
        position: relative;
        display: block;
        overflow: hidden;
        width: 75%;
        margin: 0 -4.427%;
        padding: 4.427%;
        left: 29.427%;
    }



    .navbar-expand-lg .navbar-nav {
        flex-direction: column;
    }

    .nav-link em {
        display: none;
    }

}

/* 手機版樣式 */
@media(max-width:991px) {

    main {
        padding-top: 75px;
        padding-bottom: 40%;
    }

    header {
        width: 100%;
        padding: 10px;

        background: rgba(255, 255, 255, 0.4);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
        z-index: 999;

    }

    header .navbar-brand img {
        width: auto;
        height: 3rem;
    }

    header footer {
        display: none;
    }

    header  .navbar{
        width: 100%;
        position: absolute;
        left: 0;
        top: 0;
    }

    header .navbar-collapse {
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        min-height: 100vh;
        background-color: #fff;
    }

    .navbar-nav {
        padding-top: 20%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .navbar-nav .nav-item {
        width: calc(100%/2);
        padding: 10px;
    }



    .navbar-nav .nav-item .nav-link {
        display: block;
        position: relative;
        padding: 20px 20px 70px 20px;
        color: #333;
        border: 1px solid #333;
    }


    .navbar-nav .nav-item .nav-link:before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        border: 5px solid #c69c6d;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .navbar-nav .nav-item .nav-link:after {
        content: "";
        position: absolute;
        left: 20px;
        bottom: 20px;
        right: 20px;
        height: 2px;
        background: #333;
    }

    .navbar-nav .nav-item .nav-link em {
        margin-top: 5px;
        display: block;
        font-size: 0.6rem;
        color: #333;
        padding: 0;
        font-style: normal;
        opacity: 0.6;
    }

    .navbar .copyright{
        position: absolute;
        bottom: 20px;
        width: 100%;
        text-align: center;
        font-size: 12px;
        opacity: 0.6;
    }
}



.navbar-toggler {
    position: fixed;
    right: 10px;
    top: 10px;
    border: none;
    z-index: 9999;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.nav-link strong {
    white-space: nowrap;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-weight: bolder;
    color: #333;
}