body {
  margin: 0;
}

ul.sidenav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 20em;
  background-color: #797777;
  position: fixed;
  height: 100%;
  overflow: auto;
}

ul.sidenav li a {
  display: block;
  color: white;
  padding: 0.5em 1em;
  text-decoration: none;
}
 
ul.sidenav li a.active {
  background-color: #e3000b;
  color: white;
}

ul.sidenav li a:hover:not(.active) {
  background-color: #4a0004;
  color: white;
}

div.content {
  margin-left: 20em;
  padding: 0.1em 1em;
  height: 1000px;
}

a {
  color: #e3000b;
  font-weight: bold;
  text-decoration: none;
}

a:hover {
  color: #4a0004;
}

ul.sidenav li a {
  font-weight: normal;
}

table.schedule {
  border-collapse:collapse;
  text-align: center;
}

table.schedule th {
  border-bottom: 1px solid #008acb;
  padding: 5px;
}

table.schedule td.time {
  border-right: 1px solid #008acb;
  padding: 5px;
  padding-right: 10px;
}

table.schedule td.lecture {
  background-color: #8f2011;
  color: white;
  border-right: 1px solid white;
}

table.schedule td.test {
  background-color: #ccaf00;
  color: white;
}

table.schedule td.excursion {
  background-color: #4aa943;
  color: white;
}

@media screen and (max-width: 100em) {
  ul.sidenav {
    width: 100%;
    height: auto;
  }
  
  ul.sidenav li a {
    float: left;
    padding: 1em;
    height: 1.2em;
  }
  
  div.content {
    margin-left: 0;
    padding-top: 2.4em;
  }
}

@media screen and (max-width: 60em) {
  ul.sidenav {
    position: relative;
  }

  ul.sidenav li a {
    text-align: center;
    float: none;
  }

  div.content {
    padding-top: 0;
  }
}

