* {
    /* 初始化 */
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

nav {
    /* 固定定位 */
    position: fixed;
    text-align: end;
    flex-direction: column-reverse;
    width: 300px;
    height: 100vh;
    right: -300px;
    z-index: 10;
    top: 0;
}


.menus {
    position: absolute;
    right: 0px;
    width: 300px;
    height: 100vh;
    padding: 25px 17px 0 0;
    overflow: overlay;
    color: #fff;
    background-color: #989b9d;
    z-index: 11;
}

.menus::-webkit-scrollbar {
    height: 0;
    width: 0;
    color: transparent;
}

.li {
    letter-spacing: 2px;
    font-size: 17px;
    font-weight: 600;
    padding: 16px 0;
    transition: 0.3s;
}

.menus li:hover {
    background-color: #676769;
}

.li .fa {
    font-size: 20px;
    width: 50px;
    height: 20px;
    text-align: center;
    margin-left: 5px;
}

.li ul {
    width: 0;
    height: 100vh;
    padding: 87px 0 0 0;
    background-color: #99a3aa;
    position: absolute;
    top: 0;
    left: 0;
    overflow: overlay;
    transition: 0.3s;
}

.li ul::-webkit-scrollbar {
    height: 0;
    width: 0;
    color: transparent;
}

.li ul li {
    padding: 16px 24px;
    /* 文字禁止换行 */
    white-space: nowrap;
    transition: 0.3s;
}

.li:hover ul {
    width: 233px;
}

.li ul li:hover {
    background-color: #4d525a;
}

.li a {
    text-decoration: none;
    color: #fff;
    display: block;
}

.li a:hover {
    color: #fff;
    text-shadow: white 0.1em 0.1em 0.2em
}

.my-navbar {
    position: fixed;
    width: 60px;
    height: 60px;
    background-color: skyblue;
    right: 20px;
    top: 20px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    z-index: 9;
    background: url("https://static.igem.wiki/teams/4115/wiki/navbar1.svg") no-repeat;
    background-size: contain;
}


.my-navbar:hover {
    background: url("https://static.igem.wiki/teams/4115/wiki/navbar2.svg") no-repeat;
    background-size: contain;
    transition: 0.3s;
    -webkit-box-shadow: 7px 7px 5px 0px rgba(50, 50, 50, 0.75);
    -moz-box-shadow: 7px 7px 5px 0px rgba(50, 50, 50, 0.75);
    box-shadow: 7px 7px 5px 0px rgba(50, 50, 50, 0.75);
}

.nav-background {
    position: fixed;
    height: 100vh;
    width: 100vw;
    right: 0;
    display: none;
    z-index: 10;
    opacity: 0.5;
    background-color: #989b9d;
}

.nav-icon{
    width: 30px;
    height: 30px;
    margin: 0 7px 0 10px;
}

@keyframes navbar-show {
    0% {
        right: -300px;
    }

    100% {
        right: 0px;
    }
}

@keyframes navbar-hidden {
    0% {
        right: 0px;
    }

    100% {
        right: -300px;
    }
}