body {
    overflow: hidden; /*Prevents scrolling, can be overriden on individual pages */
    position: relative;
}

#logodiv {
    position: relative;
    height: 2.5rem;
    display: flex;
    justify-content: center;
    padding-left: 1rem; /* Centers logo due to uneven text sizes on left and right */
}

.logotext {
    display: fixed;
    height: 1.2rem;
    position: relative;
    top: 0.6rem;
    margin: 0 0.5rem;
}

.logotext:hover {
    filter: inherit;
    cursor: default;
}

#homebutton {
    display: fixed;
    height: 6rem;
    border-radius: 100%;
    transition: filter .4s ease-in-out;
}

#homebutton:hover {
    filter: brightness(110%) drop-shadow(1px 1px 1px blue);
    -webkit-filter: brightness(110%) drop-shadow(1px 1px 1px blue);
}

nav {
    display: flex;
    justify-content: center;
}

#mobileNav {
    display: none;
    position: relative;
    background-color: #3887c3;
    bottom: 0.5rem;
    height: 2rem;
    z-index: -1;
}

#mobilenavmenu {
    color: white;
    position: absolute;
    left: 0.5rem;
    top: 0.3rem;
}

#menucaret {
    font-size: 7px;
    position: relative;
    bottom: 0.15rem;
}

#mobilenavshift {
    display: none;
    background-color: #3887c3;
    height: 2.5rem;  
    border-bottom: 1px solid #94cefa;
}

.nav-link {
    color: #fff;
    font-size: 2.2vh;
    background-color: #3887c3;
    text-decoration: none;
    width: 16.67vw;
    padding: 5px;
    text-align: center;
    transition-property: color, 'background-color';
    transition-duration: .4s;
    transition-timing-function: ease-in-out;
}

.bordered-link {
    border-right: 1px solid #94cefa;
}

#leftlogonav {
    padding-right: 2vw;
}

#rightlogonav{
    padding-left: 2vw;
}

.nav-link:hover {
    color: #94cefa;
    background-color: #347db4;
}

#hamburgermenudiv {
    position: absolute;
    width: 3.5rem;
    height: 3.5rem;
    cursor: pointer;
}

#mobilenavhamburgermenu {
    display: none;
    position: relative;
    width: 2rem;
    background-color: transparent;
    height: var(--nav-height);
  }

  #mobilenavhamburgermenu:before  {
    content: "";
    position: absolute;
    left: 0.5em;
    top: 0.5em;
    width: 2em;
    height: 0.4em;
    background: white;
    box-shadow: 
      0 0.8em 0 0 white,
      0 1.6em 0 0 white;
  }


@media only screen and (max-width: 1000px) {
    #leftlogonav {
        padding-right: 9vw;
    }
    
    #rightlogonav{
        padding-left: 2vw;
        padding-right: 2vw;
    }

    .nav-link {
        font-size: 0.8rem;
    }
}

@media only screen and (max-width: 721px) {

    body {
        overflow-y: auto;
    }
    
    .nav-link {
      font-size: 0.55rem;
      max-width: 100%;
    }

    #leftlogonav {
        padding-right: 11vw;
    }
    
    #rightlogonav{
        padding-left: 4vw;
        padding-right: 2vw;
    }
  }

@media only screen and (max-width: 547px) {
    nav {
        display: block;
    }
  
    .nav-link {
        display: block;
        width: 100%;
        padding: 2.5vh 0;
        font-size: 1rem;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
  
    .bordered-link {
      border-bottom: 1px solid #94cefa;
      border-right: none;
    }
    
    .hidablenavlink {
        display: none;
      }

    #mobilenavhamburgermenu {
        display: initial;
    }
    
}

@media only screen and (max-width: 500px) {
   .logotext {
        height: 0.6rem;
        top: 1.1rem
   }
   #hideablenavmenu {
    display: none;
}
}

