* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--main-bg-color);
  display: flex;
  min-height: 100vh;
  flex-direction: column;

  .page-wrap {
    flex: 1;
  }
}

.top-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-dark);
  color: #fff;
  height: 50px;
  padding: 1em 5em;

  a {
    color: var(--text-light);
    text-decoration: none;
  }
}

.menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.menu > li {
  margin: 0 1rem;
  overflow: hidden;
}

.menu-button-container {
  display: none;
  height: 100%;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#menu-toggle {
  display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #fff;
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

.menu-button::before {
  content: "";
  margin-top: -8px;
}

.menu-button::after {
  content: "";
  margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: var(--bg-dark);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}

@media (max-width: 768px) {
  .top-nav {
    padding: 1em;
  }

  .menu-button-container {
    display: flex;
  }
  .menu {
    position: absolute;
    top: 0;
    margin-top: 50px;
    left: 0;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  #menu-toggle ~ .menu li {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  #menu-toggle:checked ~ .menu li {
    border-bottom: 1px solid #485767;
    height: 2.5em;
    padding: 0.5em;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  .menu > li {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.5em 0;
    width: 100%;
    color: white;
    background-color: var(--bg-dark);
  }
  .menu > li:not(:last-child) {
    border-bottom: 1px solid #fff;
  }
}

main {
  height: 100%;
}

footer {
  background-color: var(--bg-dark);
  color: white;
  width: 100%;
  height: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;

  p {
    text-align: center;
    font-weight: bold;
  }
}

.container {
  margin: 0 auto;
  height: 100%;
  max-width: 1310px;
}

.messages {
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 0 1rem;

  .alert {
    border-style: solid;
    border-width: 1px;
    margin: 0.25rem auto;
    padding: 0.5rem;
  }

  .alert.debug {
    background-color: #eaeaea;
    border-color: #9a9a9a;
  }

  .alert.info {
    background-color: #87bbff;
    border-color: #1f96ff;
  }

  .alert.success {
    background-color: #bfffc1;
    border-color: #44ff41;
  }

  .alert.warning {
    background-color: #ffd08d;
    border-color: #ff9500;
  }

  .alert.error {
    background-color: #ffbbbb;
    border-color: #ff2c2c;
  }
}

button {
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
}
