@import url("https://fonts.googleapis.com/css2?family=Dosis&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300&display=swap");
*,
*::before,
*::after {
  margin: 0;
  padding: 0;

  box-sizing: border-box;
}

/* Codigo Body */

html,
body {
  font-size: 16px;
  height: 100vh;
  max-height: 100vh;
  width: 100vw;
}

body {
  height: 100vh;
  display: grid;
  grid-template-areas:
    "header"
    "main"
    "footer";
}

/* Codigo Header */

header {
  grid-area: header;
  height: 10vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

header > h1 {
  color: white;
  font-family: "Dosis", sans-serif;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.534);
  font-size: 5vh;
  text-align: center;
}

/* Codigo Main */

main {
  grid-area: main;
  min-height: 65vh;
  width: 100%;
}

nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 25px 5px;
}

a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  text-align: center;
  text-decoration: none;
}

a > img {
  width: 15vh;
  margin-bottom: 10px;
}

a > p {
  border-radius: 3px;
  font-size: 3.2vh;
  font-family: "Quicksand", sans-serif;
  text-shadow: 1px 1px 0.1px black;
  font-weight: 500;
  color: white;
  background-color: rgba(0, 0, 0, 0.363);
  box-shadow: 1px 1px 8px 0 rgb(0, 0, 0);
  width: 90%;
  min-width: 100px;
}

main > div {
  font-family: "Quicksand", sans-serif;
  margin-top: 30px;
  display: flex;
  width: 65%;
  flex-direction: column;
  text-align: center;
  padding: 5px 10px;
  opacity: 1;
  font-size: 1.7vh;
  text-shadow: 1px 1px 4px rgba(68, 68, 68, 0.568);
  color: rgb(255, 255, 255);
  background-color: rgba(0, 0, 0, 0.274);
}

main > div > p:first-of-type {
  display: none;
}

/* Codigo Footer */

footer {
  font-family: "Quicksand", sans-serif;
  height: 10vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  font-size: 1.55vh;
}

footer div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  text-decoration: none;
  text-align: center;
}

footer > div > p:first-of-type {
  grid-area: 1 / 1 / 2 / 3;
}

#videoBG {
  filter: blur(4px);
  position: fixed;
  z-index: -1;
}

@media (min-aspect-ratio: 16/9) {
  #videoBG {
    width: 100%;
    height: auto;
  }
}
@media (max-aspect-ratio: 16/9) {
  #videoBG {
    width: auto;
    height: 100%;
  }
}
@media (max-width: 724px) {
  #videoBG {
    display: none;
  }
  body {
    background-image: url("./../img/poster.png");
    background-size: cover;
    backdrop-filter: blur(4px);
  }
}

@media screen and (min-width: 681px) {
  header {
    height: 20vh;
  }

  header > h1 {
    font-size: 8vh;
  }

  nav {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 100px 10px;
  }

  footer {
    font-size: 2.5vh;
  }

  main > div {
    position: absolute;
    right: 0;
    margin-top: 50px;
    padding-right: 35px;
    width: auto;
  }
  main > div > p:first-of-type {
    display: block;
  }
}

@media (orientation: landscape), screen and (min-width: 1166px) {
  header {
    justify-content: start;
  }

  header > h1 {
    margin-top: 50px;
    margin-left: 50px;
    font-size: 12vh;
    text-shadow: 3px 3px 2px rgba(0, 0, 0, 0.534);
  }

  main {
    display: flex;
    justify-content: center;
    position: relative;
    max-width: 100vw;
  }

  main > div {
    width: auto;
    position: absolute;
    bottom: 0;
    right: 0;
    margin-right: 10px;
    justify-content: center;
    border-radius: 20px 20px 0px 20px;
  }

  main > div > p:first-of-type {
    display: block;
  }

  nav {
    margin: 20px;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
  }

  a > img {
    width: 20vh;
  }

  a > p {
    width: 100%;
    font-size: 3vh;
    box-shadow: 0px 0px 0px;
    font-weight: 100;
  }

  footer {
    align-items: flex-end;
    font-size: 1.6vw;
    color: rgb(0, 0, 0);
    text-shadow: 0px 0px 12px rgb(255, 255, 255);
  }
  footer div {
    display: flex;
  }

  footer > div > p:after {
    content: " - ";
  }
  footer > div > p:last-child:after {
    content: "";
  }
}

@media screen and (min-width: 1166px) {
  nav {
    width: 100%;
  }
}
