header {
    position: fixed;
    top: 0;
    z-index: 1000;
    font-family: 'NSimSun', 'SongTi Tc', serif;
}

a:hover {
    text-decoration: none;
}

#menu-control {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    margin: 10px 15px;
}

#menu-control>* {
    margin-left: 15px;
}

#navbar {
    width: 100%;
    padding: 10px 25px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#drop-btn,
#drop-btn:hover,
#drop-btn:focus,
#drop-btn:active {
    background-color: transparent;
    border: none;
    outline: none;
}

#menu-btn {
    cursor: pointer;
    height: 40px;
}

#header-logo {
    height: 65px;
    margin: 10px 25px;
}

#avatar-img {
    cursor: pointer;
    width: 92px;
    height: 92px;
    z-index: -10;
    position: absolute;
    background-size: cover;
    top: -15px;
    left: -15px;
}

#header-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    right: 0;
    top: 110%;
    padding: 25px;
    width: 400px;
    margin: 0;
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: 0.2s ease-in-out;
}

#header-menu.show {
    visibility: visible;
    opacity: 1;
}

#header-menu .row {
    flex-wrap: nowrap;
    margin: 0;
}

.link-wrapper {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    align-items: center;
    margin: 0 5px;
    color: #333;
}

.link-wrapper:hover {
    color: #666;
    text-decoration: none;
}

.link-title {
    min-width: 65px;
    text-align: center;
}

#header-menu i {
    margin: 0;
    font-size: 40px;
    color: #333;
}

#personal-avatar {
    /* width: 50px;
    height: 50px;
    background-size: cover; */
    /* border-radius: 50%;
    border: solid 1.5px #C2B9AD; */
    /* background-color: #fff; */
    cursor: pointer;
    /*-------*/
    width: 100px;
    height: 100px;
    z-index: -10;
    position: absolute;
    top: -2px;
    left: -19px;
}

#default-avatar {
    cursor: pointer;
    width: 91px;
    height: 91px;
    z-index: -10;
    position: absolute;
    top: -15px;
    left: -15px;
}

#ironman-avatar {
    width: 63px;
    height: 63px;
    z-index: -10;
    position: absolute;
    top: -1.5px;
    left: -0.5px;
}


/* 取消button的設定*/

#personal-drop-btn,
#personal-drop-btn:hover,
#personal-drop-btn:focus,
#personal-drop-btn:active {
    border-radius: 50%;
    border: solid 1.5px #C2B9AD;
    width: 65px;
    height: 65px;
    background-color: transparent;
    overflow: hidden;
    position: relative;
    top: 2px;
    /*-------*/
    /* border: none; */
    outline: none;
    z-index: 10;
}

#personal-menu {
    visibility: hidden;
    opacity: 0;
    background-color: white;
    width: 300px;
    height: 375px;
    top: 110%;
    position: absolute;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    justify-content: space-around;
    transition: 0.3s ease-in-out;
}

#personal-menu.show {
    visibility: visible;
    opacity: 1;
}

#personal-img {
    width: 100px;
    height: 100px;
    border: solid 1.5px #C2B9AD;
    border-radius: 50%;
    background-size: cover;
}

#username {
    position: relative;
    top: -20px;
    font-size: 30px;
    color: #6a635a;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#userunit {
    font-size: 15px;
    color: #6a635a;
}

#personal-btn {
    position: relative;
    top: -20PX;
    font-size: 17px;
    color: #6a635a;
    display: flex;
    align-items: center;
    justify-content: center;
    border: solid 1.5px #6a635a;
    border-radius: 10px;
    width: 180px;
    height: 40PX;
    margin-bottom: 15px;
}

#logout {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: -20PX;
    font-size: 17px;
    color: #6a635a;
    border: solid 1.5px #6a635a;
    border-radius: 10px;
    width: 180px;
    height: 40px;
}

#header-menu .menuIcon {
    width: 60px;
}

#header-menu .link-title {
    width: 110px;
}

@keyframes menuShowAni {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    #navbar {
        padding: 10px 15px;
    }
    #menu-control{    
        margin: 10px;
    }
    #menu-control>* {
        margin-left: 10px;
    }
    #menu-btn {
        cursor: pointer;
        height: 35px;
    }
    #header-logo{    
        margin: 10px;
    }
    #header-menu {
        width: 55vh;
        max-width: 90vw;
        padding: 25px;
        margin-right: 0px;
    }
    #header-menu .link-title {
        width: 25vw;
    }
    #header-menu .menuIcon {
        width: 15vw;
    }
    #personal-menu {
        width: auto;
        padding: 20px 40px;
        margin-right: 10px;
    }
    #dropdown-menu {
        margin-left: 15px;
    }
    #drop-btn {
        padding: 0;
    }
}