
/* navigation laptop and desktop */
.topnav.desktop {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
}
.topnav.desktop.nav-open {
    display: none;
}
.topnav.desktop ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: end;
}
.topnav.desktop a {
    font-family: 'QuicksandNormal', sans-serif;
    font-weight:300;
    font-size:14px;
    line-height:45px;
    padding:8px 10px 0 10px;
    height:50px;
    white-space: nowrap;
}
.topnav.desktop a:hover {
    cursor:pointer;
    border-bottom:5px solid rgba(128,128,128,0.5);
}
.topnav.desktop a.currentItem {
    border-bottom:5px solid rgba(144,158,3,1);
}

/* media widths */
@media (min-width: 321px) and (max-width: 1280px) {
    .topnav.desktop {
    	float:left;
    	width:100%;
    }
    .topnav.desktop ul li {
    	padding-top:8px;
    	float:left;
    }
}

@media (min-width: 1px) and (max-width: 800px) {
    .topnav.desktop {
        display: none;
    }
}


/* switch for mobile (small) views, disabled on bigger screens */
.menu.mobile {
    cursor: pointer;
}
.menu.mobile svg {
    position: absolute;
    top: 3rem;
    right: 2rem;
    width: 1.5rem;
    cursor: pointer;
}
@media screen and (max-width: 800px) {
    .menu.mobile {
        display: block;
    }
}
@media screen and (min-width: 801px) {
    .menu.mobile {
        display: none;
    }
}

/* navigation - mobile */
.mobile-nav {
    position: fixed;
    top: 0;
    transition: all .3s;
    left: -100%;
    border-right:1px solid grey;
    width: 80%;
    height: 100%;
    z-index: 5;

    background: rgb(255, 255, 255, .6);
    backdrop-filter: blur(5px);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.mobile-nav.nav-open {
    left: 0;
}

.mobile-nav .nav-elem-container {
    display: flex;
    flex-direction: column;
    width: 100%;

    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.nav-elem-container .nav-elem-cont {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 17%;

    justify-content: center;
    align-items: center;
    border-bottom: 1px solid grey;
}

.nav-elem-cont .nav-elem {
    width: 100%;
    height: 100%;
    line-height: 5rem;
    font-size: 1.7rem !important;
    font-weight: 200;
    color: #424c6c;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

@media screen and (orientation: landscape) {
    .mobile-nav.nav-open .nav-element-container .nav-element-cont .nav-elem {
        line-height: 3.5rem;
        font-size: 1.7rem !important;
    }
}

@media screen and (max-width: 1200px) {
    .nav-elem {
        font-size: .9rem !important;
        letter-spacing: 2px;
    }
}

@media screen and (max-width: 1024px) {
    .nav-elem {
        font-size: .8rem !important;
        letter-spacing: 1px !important;
    }
}
