@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Prata&display=swap');

*:focus {
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
}

html {
  min-height: 100%;
  font-family: 'Libre Baskerville', serif;
}

body {
  background-image: linear-gradient(rgb(223, 223, 255), rgb(255, 255, 255));
}

#page {
  background-color: rgb(242, 242, 255);
  box-shadow: 0 0 10px 0 rgb(201, 200, 255);
  width: 920px;
  margin: auto;
  padding: 30px 40px 10px 40px;
}

#header {
  display: grid;
}

#title {
  font-family: 'Prata', serif;
  font-size: 34pt;
  font-weight: bold;
  color: black;
  grid-area: 1 / 1 / 2 / 2;
}

#subtitle {
  font-size: 20pt;
  font-weight: bold;
  color: black;
  margin-left: 0.1em;
  margin-bottom: 5px;

  grid-area: 2 / 1 / 3 / 1;
}

#contact-details {
  justify-self: end;
  grid-area: 1 / 1 / 2 / 2;
}

#navigation-hamburger {
  position: absolute;
  top: 0;
  right: 0;
  margin: 40px 20px;

  background-color: inherit;
  border: none;
  cursor: pointer;

  display: none;
}

#navigation-hamburger img {
  width: 35px;
}

#navigation {
  display: flex;
  justify-content: right;
  grid-area: 2 / 0 / 3 / 1;
}

#navigation-close {
  display: none;
}

#navigation a{
  color: black;
  text-decoration: none;
  padding: 5px 10px 10px 10px;
}

#navigation a:hover {
  text-decoration: underline;
}

#navigation .active {
  text-decoration: underline;
}

#licence-container {
  text-align: right;
  font-size: 8pt;
  color: rgba(0, 0, 0, 0.7);
  margin: 25px 0 10px 0;
}

@media screen and (max-width: 1050px) {
  #page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: scroll;
  }
}

@media screen and (max-width: 720px/*780px*/) {
  #navigation-hamburger {
    display: flex;
  }

  #navigation {
    position: fixed;
    top: 0;
    right: calc(0px - min(80%, 300px) - 20px);
    width: min(80%, 300px);
    height: 100%;

    background-color: rgb(242, 242, 255);
    box-shadow: 0 0 10px 0 black;

    flex-direction: column;

    transition: right 0.3s;

    z-index: 9999;
  }

  #navigation-close {
    border: none;

    width: 35px;
    height: 35px;
    margin: 10px 5px;
    padding: 5px;

    display: flex;

    outline: none;
    background-color: inherit;

    cursor: pointer;
  }

  #navigation-close img {
    width: 25px;
    height: 25px;
  }

  #navigation a {
    margin-left: 15px;
  }

  #navigation.open {
    right: 0;
  }

  #contact-details {
    grid-area: 3 / 1 / 4 / 2;
    justify-self: start;
  }
}

@media screen and (max-width: 600px) {
  #licence-container {
    font-size: 6pt;
  }
}

@media screen and (max-width: 490px) {
  #title {
    font-size: 25pt;
  }

  #navigation-hamburger img {
    width: 30px;
  }

  #contact-details {
    font-size: 10pt;
  }
}

@media screen and (max-width: 400px) {
  #title {
    font-size: 20pt;
  }

  #subtitle {
    font-size: 15pt;
  }

  #navigation-hamburger img {
    width: 25px;
  }

  #contact-details {
    font-size: 9pt;
  }
}
