* {
    box-sizing: border-box;
}
body {
    margin:0;
    padding:0;
}
.menu {
    width:3vw;
    min-width:70px;
    background:var(--navy);
    height: 100vh;
    z-index:99;
    position:fixed;
    transition:0.3s ease-in-out;
    display:flex;
    flex-direction: column;
    align-items: center;
    padding:2vw 0;
}

[data-theme="allift"] {
    background:var(--all-lift);
}
[data-theme="allconnect"] {
    background:var(--all-connect);
}
[data-theme="connectfm"] {
    background:var(--connect-fm);
}
[data-theme="iris"] {
    background:var(--iris);
}
[data-theme="redlift"] {
    background:var(--redlift);
}

.teletrack-logo {
    display: flex;
    justify-content: center;
}
.teletrack-logo-img {
    width:30px;
}

@media(min-width:1024px) {
    .teletrack-mobile-logo-img {
        display:none;
    }   
}
@media(max-width:1024px) {
    .teletrack-logo-img {
        display:none;
    } 
    .teletrack-mobile-logo-img {
        width:150px;
        }  
}

.the-menu {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    height:100%;
    overflow-y: auto;
    overflow-x: hidden;
}
.the-menu::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, and newer versions of Opera */
}

.menu-link {
    position:relative;
    width:100%;
    text-align: center;
}
.menu-link a {
    display:block;
    padding:10px 0;
}

.active-item {
    background:rgba(255,255,255,0.1);
}
@media(min-width:1024px) {
    .the-menu > div:nth-of-type(2){
        margin: 10px 0 15px 0;
    }
    .the-menu > div:nth-of-type(10){
        margin-top:15px;
    }
}

.header-lower {
    margin-top:auto;
}

.menu-link:hover .menu-link__name {
visibility:visible;
transform:translateX(0);
}

.menu-link:hover a {
    background:rgba(255,255,255,0.1);
}

.menu-link__name {
    background:white;
    border:1px solid var(--dark-shade);
    color:var(--navy);
    font-size:calc(10px + 0.2vw);
    border-radius:5px;
    padding: 0.4vw 0.8vw;
    position:absolute;
    width:auto;
    top:6px;
    left:90%;
    visibility:hidden;
    transform:translateX(4px);
    white-space:nowrap;
    display:table;
}

.menu-wrapper {
    width:100%;
    height:100%;
}
    
@media(max-width:1024px) {

    .the-menu {
        flex-direction: row;
        padding: 5px 0.7rem 0 0.7rem;
        justify-content: space-between;
        overflow-y:hidden;
        position: relative;
        border-bottom-left-radius: 20px;
        
        overflow-x: auto;
        -ms-overflow-style: none;  /* Internet Explorer and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .the-menu::-webkit-scrollbar {
        display: none;  /* Chrome, Safari, and newer versions of Opera */
    }
    .menu-fade-left {
        background: var(--background);
        background: linear-gradient(90deg, var(--background) 0%, var(--background) 100%);
        height: 61px;
        position: fixed;
        left: 0;
        top: 30px;
        display: block;
        width: 30px;
        z-index: 2;
        border-bottom-left-radius: 20px;
    }
    .menu-fade-right {
        background: var(--background);
        background: linear-gradient(90deg, var(--background) 0%, var(--background) 100%);
        height: 61px;
        position: fixed;
        right: 0;
        top: 30px;
        display: block;
        width: 30px;
        z-index: 2;
        border-bottom-right-radius: 20px;
    }
    .menu {
        width:100%;
        height: auto;
        position: fixed;
        top: 0;
        left: 0;
        padding:5px 0;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }
    .menu-link:nth-of-type(1),
    .menu-link:nth-of-type(6) {
        margin:0 10px;
    }
    .menu-icon {
        width:13px;
    }
    .menu-wrapper {
        width: 100vw;
        padding:0;
        height:auto;
    }
    .menu-link__name {
        background:transparent;
        font-size:12px;
        border-radius:0;
        padding:0;
        position:unset;
        width:100%;
        visibility:visible;
        border:0;
        color:white;
        transform:translateX(0);
        white-space:nowrap;
        display:table;
    }
    .active-item {
        border-radius: 5px;
    }
    .menu-link {
        text-align:center;
        margin:0 10px;
    }
    .menu-link a {
        padding:5px 10px;

    }
    .menu-icon {
        margin:auto;
    }
    .header-lower {
        position:unset;
        margin-top:0;
    }

}
/* EXPANDABLE MENU TOGGLE */
.expand-collapse {
    cursor:pointer;
    text-align: center;
}
.expand-collapse img {
    width:1.2vw;
    max-width:16px;
}
.expand-collapse .collapse-menu {
    display:none;
}
.expand-collapse.expanded .collapse-menu {
    display:block;
    margin:auto;
}
.expand-collapse.expanded .expand-menu {
    display:none;
}

/* ADDITIONAL MENU CLASSES AFTER EXPANDER TOGGLED */

.expanded-menu {
    width:12vw;
    min-width:160px;
    transition:0.2s ease-in-out;
}
.expanded-menu .menu-link {
    text-align: left;
}
.theme_selector {
    color:white;
}
.expanded-menu .menu-link a, .expanded-menu .theme_selector{
    padding:10px 20px;
}
.expanded-menu .menu-link__name {
    animation: background-dissolve 0.2s forwards 0.3s;
    background:transparent;
    left:calc(2vw + 20px);
    opacity:0;
    border:0;
    color:white;
    top:7px;
    transform:translateX(0);
}
.sub-menu-links{
    font-size: calc(10px + 0.2vw);
    list-style-type: none;
}
.sub-menu-links a{
    color:white;
}

@keyframes background-dissolve {
    to   {   opacity:1;
        visibility:visible;
    }
}

@media(max-width:1024px) {
    .expand-collapse {
        display:none;
    }
}

/* Expanded menu to display on larger screens */
@media(min-width:1800px) {
    .expand-collapse {
        display:none;
    }
}