html {
  margin: 0;
  padding: 0;
}

body {
  margin: 5px;
}

#nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  border-bottom: 1px solid #aaa;
}

#nav-links-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 600px;
  height: 100%;
}

.nav-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #401666;
  height: 50px;
  padding: 5px;
  border-radius: 10px;
}

.nav-item a {
  text-decoration: none;
  color: #fff;
  font-size: 20px;
}

/* When screen width <= 600 (min: 230px) */
@media only screen and (max-width: 600px) {
  #nav-bar {
    height: 168px;
    flex-direction: column;
  }

  #nav-links-container {
    width: 100%;
  }

  .nav-item {
    width: 64px;
  }

  .nav-item a {
    font-size: 14px;
    text-align: center;
  }

  h1 {
    font-size: 24px;
  }
}