@import url("https://fonts.googleapis.com/css2?family=Julius+Sans+One&family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;1,100;1,200;1,300;1,400;1,500;1,600&family=Quicksand:wght@300;400;500&display=swap");

@-ms-viewport{
  width: device-width;
}

body {
  background-color: white;
  margin: 0;
  font-family: "Quicksand", sans-serif;
  padding-top: 50px;
}

#index {
  overflow: hidden;
}

h1 {
  text-align: center;
  z-index: -1;
}

#hero-text {
  margin: 0;
  width: 100%;
  height: 100vh;
}

#hero-text h1 {
  font-size: 100px;
  translate: 0 calc(50vh - 170px);
}

@media (max-width: 500px) or (orientation: portrait) {
  nav a {
    color: #fff;
    text-decoration: none;
  }

  .p-menu {
    height: 100%;
    position: absolute;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    z-index: 120;
  }

  nav {
    background-color: black;
    margin: 0;
    padding: 10px;
  }

  /* Hamburger */
  .hamburger {
    height: 90px;
    margin: 0 10px 8px 0;
    display: -ms-grid;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    justify-items: right;
    z-index: 120;
  }

  .hamburger div {
    background-color: rgb(61, 61, 61);
    position: relative;
    width: 80px;
    height: 10px;
    margin-top: 14px;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
  }

  #toggle {
    display: none;
  }

  #toggle:checked+.hamburger .top {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    margin-top: 45px;
  }

  #toggle:checked+.hamburger .meat {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    margin-top: -10px;
  }

  #toggle:checked+.hamburger .bottom {
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  #toggle:checked~.menu {
    height: 430px;
  }

  /* Menu */
  .menu {
    width: 100%;
    background-color: #02173f;
    margin: 0;
    display: -ms-grid;
    display: grid;
    grid-template-rows: 1fr repeat(4, 0.5fr);
    grid-row-gap: 25px;
    padding: 0;
    list-style: none;
    clear: both;
    width: auto;
    text-align: center;
    height: 0px;
    overflow: hidden;
    transition: height 0.4s ease;
    z-index: 120;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }

  .menu a:first-child {
    margin-top: 40px;
  }

  .menu a:last-child {
    margin-bottom: 40px;
  }

  .link {
    width: 100%;
    margin: 0;
    padding: 10px 0;
    font-size: 30pt;
  }

  .link:hover {
    background-color: #fff;
    color: rgb(61, 61, 61);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
}

@media (min-width: 501px) and (orientation: landscape) {
  nav a {
    color: #fff;
    text-decoration: none;
  }

  .p-menu {
    position: absolute;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    z-index: 120;
  }

  #toggle,
  .hamburger {
    display: none;
  }

  .menu {
    width: 100%;
    text-align: center;
    background-color: black;
    font-family: 'Quicksand', sans-serif;
    position: absolute;
    top: 0;
    margin: 0;
  }

  .menu a {
    display: inline-block;
    margin: 20px 5vw;
    padding: 0;
    position: relative;
    font-size: 18px;
    color: white;
    text-decoration: none;
  }

  .menu a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: white;
    transform-origin: bottom right;
    transition: transform 0.2s ease-out;
  }

  .menu a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
  }

  .menu a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(1);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: white;
  }
}