html,
* {
  box-sizing: border-box;
}

body {
  display: flex;
  margin: 0;
  height: 100vh;
  font-family: sans-serif;
  overflow: hidden;
}

label {
  display: none;
}

input {
  display: none;
}

input:checked ~ ul {
  display: none;
}

nav {
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 10px;
  min-width: 250px;
  width: 250px;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
}
nav > footer {
  margin: auto auto 20px auto;
  text-align: center;
}
nav h1 {
  text-align: center;
  color: #333;
  margin: 20px;
}
nav > ul {
  padding: 0;
}
nav > ul > li {
  list-style: none;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 10px;
}
nav > ul > li:hover {
  background-color: beige;
}
nav > ul > li > a {
  text-decoration: none;
  display: block;
  padding: 10px;
  color: #333;
}

main {
  flex: 1 1 auto;
  overflow-y: scroll;
  overflow-x: hidden;
}
main > section {
  margin: 10px 20px;
  color: #333;
}
main > section:target > header {
  text-decoration: underline;
}
main code {
  background-color: #eee;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 5px;
  display: block;
}
main::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(250px + 30px);
  width: calc(100% - 250px - 50px);
  height: 40px;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9) 100%);
}

@media (max-width: 640px) {
  body {
    flex-direction: column;
  }

  label, input {
    display: block;
    text-align: center;
    color: #333;
    max-width: 100px;
    margin: 5px auto;
  }

  input {
    margin-bottom: 10px;
  }

  nav {
    min-width: 250px;
    width: unset;
    font-size: 0.8em;
  }
  nav > header > h1 {
    margin-bottom: 0;
  }

  main::after {
    width: calc(100% - 25px);
    left: 10px;
  }
  main::before {
    content: "";
    position: absolute;
    width: calc(100% - 25px);
    left: 10px;
    height: 40px;
    background: linear-gradient(180deg, white 0%, rgba(255, 255, 255, 0.5) 25%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 75%);
  }
  main section {
    padding-top: 5px;
  }

  footer {
    display: none;
  }
}

/*# sourceMappingURL=styles.css.map */
