/* The side navigation menu */
.sidebar {
  padding: 0;
  width: 320px;
  background-color: white;
  position: absolute;
  height: 100%;
  overflow: auto;
  z-index: 0;
  float:left;
  padding-top:50px;
  margin-top: 25px;
  border-bottom: 1px solid black;
  border-radius: 2px;
}

/* Sidebar links */
.sidebar .navtext {
  display: block;
  color: black;
  padding: 10px;
  padding-left: 60px;
  text-decoration: none;
  font-family: 'LMRoman10', sans-serif; /*'Roboto', serif;*/
  font-size: 18px;

  position: relative;
  line-height: 16px;
  transition: color 0.1s,background-color 0.1s,padding 0.2s ease-in;
}

.sidebar .navicon {
  margin-left: 60px!important;
}

.sidebar .navtext::before {
    content: '';
    display: block;
    position: absolute;
    bottom: 3px;
    left: 60px;
    height: 2px;
    width: 60%;
    background-color: #000;
    transform-origin: right top;
    transform: scale(0, 1);
    transition: color 0.1s,transform 0.2s ease-out;
}

.sidebar .navtext:hover::before, .navtext:focus::before {
    transform-origin: left top;
    transform: scale(1, 1);
}

.sidebar .onlynarrow2:hover::before, .onlynarrow3:focus::before {
    transform-origin: left top;
    transform: scale(0, 0)!important;
}
.sidebar .onlynarrow3:hover::before, .onlynarrow3:focus::before {
    transform-origin: left top;
    transform: scale(0, 0)!important;
}

/* Active/current link */
.sidebar .navtext.active {
  color: grey;
  position: relative;
  line-height: 16px;
}

/* Links on mouse-over */
.sidebar .navtext:hover:not(.active) {
  background-color: white;
  color: grey;
  border-radius: 0px;
}

.onlynarrow {
  display: none!important;
}
.onlynarrow2 {
  display: none!important;
}
.onlynarrow3 {
  display: none!important;
}





/* The sticky class is added to the navbar with JS when it reaches its scroll position */
.sticky {
  position: fixed;
  top: 0;
  width: 100%;
}

/* Add some top padding to the page content to prevent sudden quick movement (as the navigation bar gets a new position at the top of the page (position:fixed and top:0) */
.sticky + .content {
  padding-top: 5.4em;
  margin-top: 0px;
}


/* On screens that are less than 700px wide, make the sidebar into a topbar */
@media screen and (max-width: 1100px) {
  .sticky + .content {
    padding-top: 4em;
    margin-top: 90px;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding-left: 50px;
    padding-top:5px;
  }
  .sidebar .navtext {
    float: left;
    padding: 10px;
    padding-left: 10px;
  }
  .sidebar .navtext::before {
    left: 10px;
    width: 85%;
  }
  .content {
    margin-left: 0;
    max-width: 100vw;
    padding-left:1em;
    padding-right:1em;
  }
  footer {
    margin-left: 0;
    max-width: 100vw;
    padding-left:1em;
    padding-right:1em;
  }
  .onlywide {
    display: none;
  }
  .onlynarrow2 {
    display: block!important;
  }
}

/* On screens that are less than 400px, display the bar vertically, instead of horizontally */
@media screen and (max-width: 500px) {
  .content {
    padding-left:1em;
    padding-right:1em;
  }
  footer {
    padding-left:1em;
    padding-right:1em;
  }
  .sidebar {
    padding-left: 0px;
    padding-top:5px;
  }
  .sidebar .navtext {
    text-align: center;
    float: none;
  }
  .sticky + .content {
    padding-top: 4em;
    margin-top: 93px;
  }
  .sidebar .navtext::before {
    left: 40%;
    width: 20%;
  }
  .onlywide {
    display: none;
  }
  .onlynarrow {
    display: block!important;
  }
  .onlynarrow3 {
    display: block!important;
  }

  /*Collapsible Navbar:*/
  .sidebar .navtext:not(:first-child) {display: none!important;}
  .sidebar a.icon {
    float: right;
    display: block;
    position: absolute;
    padding-top: 5px;
    right: 0;
    top: 0;
  }
  .sidebar.responsive .icon {
  }
  .sidebar.responsive .navtext {
    display: block!important;
  }
  .sticky.navbarcollapsed + .content {
    padding-top: 4em;
    margin-top: 200px;
  }
  .sidebar.responsive .onlynarrow {
    display: none!important;
  }
  .sidebar.responsive .onlynarrow2 {
    display: none!important;
  }
}


.icon {
  color: black;
  padding-right: 0.5em;
}

/*Hide the icon that opens and closes the navbar on small screens*/
.sidebar .icon {
  display: none;
}

.navbarcollapsed {}

.navtext[aria-current="page"]{
  color: grey;
}