.nav-bar {
    position: fixed;
    left: 5px;
    top: 5px;
    background: white;
    border: 3px solid grey;
    border-radius: 7px;
    margin: 0;
    padding: 10px;
    width: 100vw;
    max-width: 81%;
    height: auto;
    z-index: 2;
    font-family: system-ui;
    font-weight: normal;
    display: block;
    text-align: center;
}

#logo-view {
    width: 45px;
    margin-right: 20px;
    float: right;
}

.nav-bar a {
    float: left;
    display: block;
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    border-radius: 5px;
    margin-right: 1px;
    transition: background-color 0.8s;
}

.active {
    background: crimson;
    font-weight: bold;
    color: white !important;
}

.nav-bar .icon {
    display: none;
    margin-right: 5px;
}

.dropdown {
    float: left;
    overflow: hidden;
    border-radius: 5px;
}

.dropdown .dropbtn {
    font-size: 17px;
    border: none;
    outline: none;
    color: black;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0 1px 0 0;
    transition: background-color 0.8s;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.dropdown-content a {
    float: none;
    color: black;
    padding: 12px 14px;
    text-decoration: none;
    margin-right: 0;
    display: block;
    text-align: left;
    transition: none;
}

.nav-bar a:hover,
.dropdown:hover .dropbtn {
    background-color: lightgray;
}

.dropdown-content a:hover {
    background-color: lightseagreen !important;
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.sm-icons {
    width: 20px;
    height: auto;
    margin: 0 2px -3px;
    border-radius: 100%;
}

@media (prefers-color-scheme: dark) {
    body {
        color: white;
        background: black;
    }
    .nav-bar {
        background: black;
    }
    .nav-bar a {
        color: #f2f2f2;
    }
    .nav-bar.responsive .icon {
        /* Check */
        color: white !important;
    }
    .dropdown .dropbtn {
        font-size: 17px;
        border: none;
        outline: none;
        color: #f2f2f2;
    }
    .nav-bar a:hover,
    .dropdown:hover .dropbtn {
        background-color: #555;
    }
    .dropdown-content>a {
        color: black;
    }
}

@media screen and (max-width: 600px) {
    body {
        margin-top: 10px;
    }
    .nav-bar {
        max-width: 72.5%;
        padding: 6px;
    }
    .nav-bar.responsive {
        opacity: 0.94;
    }
    .nav-bar.responsive>a,
    .nav-bar.responsive>.dropdown {
        animation: open 1.7s ease-in-out;
    }
    @keyframes open {
        from {
            opacity: 0;
            transform: translateY(-100%) translateX(25%) perspective(100px) translateZ(70px);
        }
        to {
            opacity: 1;
            transform: translateX(0) perspective(0) translateZ(0px);
        }
    }
    .nav-bar.responsive .active {
        animation: none;
    }
    #logo-hidden {
        display: block;
        width: 40px;
        margin: 18px auto 2px;
        padding: 0;
    }
    #logo-view {
        display: none;
    }
    .nav-bar a:not(:first-child),
    .dropdown .dropbtn {
        display: none;
    }
    .nav-bar a {
        font-size: 13px;
        padding: 10px 12px;
        margin-right: 0;
    }
    .nav-bar a.icon {
        float: right;
        display: block;
        padding: 6px;
        font-size: 20px !important;
        animation: none;
    }
    .nav-bar a.icon:hover {
        background-color: initial;
    }
    .nav-bar.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
        margin-top: 6px;
        margin-right: 11px;
        padding: 6px;
        /* Check */
        color: #9e9a9a;
    }
    .nav-bar.responsive a {
        float: none;
        display: block;
        text-align: left;
        margin-bottom: 1px;
    }
    .nav-bar.responsive .dropdown {
        float: none;
    }
    .nav-bar.responsive .dropdown-content {
        position: relative;
    }
    .dropdown-content a {
        font-size: 11px;
    }
    .nav-bar.responsive .dropdown .dropbtn {
        display: block;
        text-align: left;
        margin-bottom: 1px;
        font-size: 12px;
        padding: 10px 12px;
    }
}
