@media screen and (min-width: 800px) {
    nav {
        width: 200px;
        min-width: 200px;
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
    }
    nav>#logo {
        background-color: #282c3a;
        background-image: url('/resurse/logoIMMS.png');
        background-position: center;
        background-repeat: no-repeat;
        background-size: 120px;
        display: block;
        height: 50px;
        border-top-left-radius: 20px;
        margin-bottom: 30px;
    }
    #mobileBtn{
        display: none;
    }
    header #subNav a {
        padding: 0px 25px 0px 25px;
        margin-top: 10px;
        margin-left: 5px;
        line-height: 30px; 
    }
}

@media screen and (max-width: 799px) {
    nav {
        position: sticky;
        top:0;
        z-index: 999;
    }

    nav>#logo {
        background-color: #282c3a;
        background-image: url('/resurse/logoIMMS.png');
        background-position: 10px 10px;
        background-repeat: no-repeat;
        background-size: 100px;
        height: 50px;
        display: block;
    }

    nav>ul {
        display: none;
        position: absolute;
        background-color: #40465a;
        width: 100%;
        z-index: 999;
    }

    #mobileBtn {
        display: inline-block;
        position: absolute;
        top: 0;
        right: 0;
        padding-top: 5px;
        width: 50px;
        height: 45px;
        background-color: #12141a;
        z-index: 999;
    }

    .bar1,
    .bar2,
    .bar3 {
        width: 30px;
        height: 5px;
        background-color: #fff;
        margin: 6px 10px;
        transition: 0.4s;
    }

    .bar1.change {
        transform: translate(0, 11px) rotate(-45deg);
    }

    .bar2.change {
        opacity: 0;
    }

    .bar3.change {
        transform: translate(0, -11px) rotate(45deg);
    }
    header #subNav a {
        padding: 0px 15px 0px 15px;
        margin-top: 5px;
        margin-left: 5px;
        line-height: 30px;
    }
}
/*navigare sus*/
#subNav {
    float: left;
    padding-left: 20px;
}

header #subNav a {
    display: inline-block;
    width: auto;
    background-color: #555;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    color: #fff;
    transition: background-color 0.3s, color 0.3s;
}

header #subNav a:hover {
    background-color: var(--culoareVerde);
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

/*Navigare stanga*/
nav {
    background-color: #40465a;
}

nav a,
nav a:visited {
    display: block;
    text-align: left;
    padding-left: 20px;
    text-decoration: none;
    line-height: 30px;
    font-weight: bold;
    font-size: 0.8rem;
    color: #fff;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    background-color: #2e3242;
    transition: background-color 0.3s, color 0.3s;
    color: var(--culoarePortocaliu);
}

nav a.curentNav {
    background-color: #2e3242;
    transition: background-color 0.3s, color 0.3s;
    color: var(--culoareVerde);
}


/* Base styles for navigation */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
}

/* Top-level menu items */
nav ul>li {
    display: block;
    /* Horizontal alignment for top-level menu */
}

nav ul li a {
    display: block;
    padding: 0px 20px;
    text-decoration: none;
    transition: background-color 0.3s;
}

/* Dropdown menu styling */
ul li ul {
    display: none;
    /* Hidden by default */
    position: relative;
    font-size: 0.9em !important;
    border-style: solid;
    border-width: 1px 0px 1px 0px;
    background-color: #545c75;
    border-color: #313747;
    box-shadow: 0px 2px 10px #3d4458 inset, 0px -2px 10px #3d4458 inset;
}

ul li ul li {
    position: relative;
    padding-left: 10px;

}
ul li ul li a{
    font-size: 0.75rem;
    margin-left: -10px;
}

ul li ul li a::before {
    content: ' \25BA';
    margin-right: 5px;
    font-size: 10px;
}


/* Styling for nested submenus */
nav ul li ul li ul {
    display: none;
    /* Hidden by default */
    position: relative;
}

nav ul>li>a {
    font-weight: bold;
}

.curentNav {
    background-color: #333;
    color: #fff;
}



#tabs a {
    text-decoration: none;
    transition: background 0.5s, color 0.5s;
    font-size: 16px;
    font-weight: bolder;
    display: inline-block;
    color: #CCC;
    background-color: #555;
    line-height: 30px;
    margin-left: 0px;
    margin-right: 0px;
    padding-left: 10px;
    padding-right: 10px;
    border-color: #999;
    border-style: none solid solid solid;
    border-width: 0px 1px 1px 1px;
    -moz-border-radius: 0px 0px 10px 10px;
    -webkit-border-radius: 0px 0px 10px 10px;
    border-radius: 0px 0px 10px 10px;
}

#tabs a:hover {
    background-color: #000;
    border-color: #000;
    color: #FFF;
    transition: background 0.5s, color 0.5s;
}

#tabs a.activ {
    background-color: #FFF;
    border-color: #000;
    color: #000;
}