* {
  padding: 0;
  margin: 0;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  font-family: "Slabo 27px", serif;
  font-size: 10px;
  display: flex;
  align-items: center;
  position: relative;
}

@media (max-height: 600px) {
  body {
    font-size: 7px;
  }
}

body,
canvas {
  background-color: rgb(240, 240, 240);
}

@keyframes rotating {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

canvas {
  z-index: -1;
  position: absolute;
  animation: rotating 600s linear infinite;
}

#content {
  width: 100%;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

#content.hidden {
  visibility: hidden;
  opacity: 0;
}

h1 {
  text-align: center;
  margin-bottom: 1.2em;
  font-size: 5em;
}

ul {
  padding: 0;
}

li {
  list-style: none;
  text-align: center;
  margin-bottom: 2em;
}

a {
  font-size: 3em;
  font-weight: bold;
  text-decoration: none;
  color: #000;
}

a:visited {
  color: #000;
}

a:hover {
  text-decoration: underline;
}

h1,
a {
  text-shadow: -1px -1px 0 #f0f0f0, 1px -1px 0 #f0f0f0, -1px 1px 0 #f0f0f0,
    1px 1px 0 #f0f0f0;
}

#navbar-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  height: 20px;
  width: 28px;
  cursor: pointer;
  box-sizing: border-box;
  border-bottom: 3px solid #666;
  border-top: 3px solid #666;
  opacity: 0.7;
}

#navbar-btn::before {
  content: "";
  position: absolute;
  box-sizing: border-box;
  width: 100%;
  height: 3px;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  border-bottom: 3px solid #666;
}

#hide-btn {
  position: absolute;
  top: 10px;
  left: 48px;
  height: 22px;
  width: 22px;
  cursor: pointer;
  transform: rotate(45deg) translateY(-4px);
  border-radius: 100% 0;
  border: 3px solid #666;
  opacity: 0.7;
}

#hide-btn::before {
  content: "";
  position: absolute;
  box-sizing: border-box;
  height: 12px;
  width: 12px;
  top: 50%;
  transform: translate(5px, -6px);
  left: 0;
  border: 3px solid #666;
  border-radius: 100%;
}

#navbar {
  position: absolute;
  height: 100%;
  right: 0;
  width: 190px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding-left: 30px;
  background-color: rgba(220, 220, 220, 0.7);
  transition: right 0.7s ease;
}

#navbar.hidden {
  right: -190px;
}

#navbar a {
  font-size: 3em;
  padding: 20px 0;
}
