html,
body {
  font-family: "Noto Sans", "DejaVu Sans", sans-serif;
  text-align: justify;
  text-justify: inter-word;

  margin-right: 12%;
  margin-left: 12%;
  margin-top: 40px;
  margin-bottom: 20px;

  @media only screen and (max-device-width: 480px) {
    margin-right: 4%;
    margin-left: 4%;
  }

  background-color: hsl(48, 87%, 94%);
}

footer {
  text-align: center;
  font-size: 90%;
  color: gray;
  overflow: hidden;

  a {
    color: gray;
  }
}

h2 {
  text-align: center;
  padding-top: 24px;
  padding-bottom: 24px;
  color: hsl(323, 39%, 40%);
}

a {
  text-decoration-line: none;
  padding: 1px 2px;
  color: hsl(190, 89%, 25%);
}

a:hover {
  background-color: hsl(39, 24%, 76%);
}

.lang-buttons {
  div {
    margin: 10px 5px;
    width: 28px;
    height: 24px;
    vertical-align: middle;
  }

  a {
    padding: 0;

    div.lang-active:hover {
      background-color: hsl(39, 24%, 76%);
    }
  }
}

@keyframes animateLeftBar {
  0% {
    opacity: 1;
    transform: translatex(-15px);
  }

  100% {
    opacity: 1;
    transform: translatex(0);
  }
}

.left-bar {
  position: fixed;
  display: block;
  background-color: transparent;
  color: #555555;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  text-align: center;

  details[open] {
    background-color: hsl(48, 87%, 94%);
    border-right: 1px solid hsl(43, 59%, 41%);
    height: 100vh;
    width: 18vw;

    @media only screen and (max-device-width: 480px) {
      width: 50vw;
    }

    img {
      width: 85%;
    }

    a {
      color: hsl(323, 39%, 40%);
    }
  }

  /* the summary button */
  details>summary {
    position: relative;
    top: 10px;
    margin-left: 10px;
    list-style: none;
    cursor: pointer;
    background-color: hsl(39, 24%, 76%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    div.open {
      display: none;
    }
  }

  details[open]>summary {
    div.open {
      display: block;
    }

    div.closed {
      display: none;
    }
  }
}

.right-bar {
  position: fixed;
  color: #444444;
  top: 0;
  right: 0;
  width: 10%;
  padding-top: 5%;
  height: 100%;
  overflow: hidden;
  text-align: center;
}

/* email obsfucation for automated harvesters */
/* thanks to https://spencermortensen.com/articles/email-obfuscation/ ! */
span.email {
  span:nth-child(2) {
    display: none;
  }
}