@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poppins&display=swap");

* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  box-sizing: border-box;
}

html {
  overflow: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scroll-snap-type: mandatory; /* for older browsers */
  scroll-snap-points-y: repeat(100lvh); /* for older browsers */
}

html {
  font-family: "Bebas Neue";
}

body {
  background-color: black;
  overflow: hidden;
}

@media (width < 640px) {
  nav {
    display: none;
  }

  #verification > div {
    width: 90%;
    height: 55%;
    padding: 5%;
  }

  #verification h2 {
    font-size: 200%;
    padding-bottom: 2rem;
    font-weight: 400;
  }

  #verification p {
    font-size: 100%;
  }

  #verification .question {
    padding-top: 5%;
    color: #b38f5f;
    font-size: 150%;
  }

  #verification li {
    padding: 2.5rem 1rem;
  }

  #verification button {
    padding: 1rem 2.5rem;
    font-size: small;
  }
  #origin {
    grid-template-areas:
      ". . . "
      "textO textO . "
      ". . . ";
    background-size: cover;
  }
  #origin h2 {
    font-size: 250%;
    text-shadow: 2px 2px 3px black;
    border-radius: 0 5% 5% 0;
  }

  #tradition {
    grid-template-areas:
      "imgT imgT imgT"
      "imgT imgT imgT "
      "textT textT textT ";
  }

  #tradition h2 {
    font-size: 250%;
    padding: 15% 5% 40% 5%;
    text-shadow: 2px 2px 3px black;
  }

  #tradition img {
    height: 75%;
    place-self: end;
    justify-self: center;
  }

  #home {
    background-position: left;
  }

  #home h1 {
    font-size: 350%;
    text-shadow: 3px 2px 3px black;
  }

  .copyright,
  .socialmedia {
    font-size: small;
  }
}

@media (640px <= width <= 920px) {
  nav {
    display: none;
  }

  #verification > div {
    width: 70%;
    height: 50%;
    padding: 2rem;
  }

  #verification h2 {
    font-size: 250%;
    padding-bottom: 2rem;
    font-weight: 400;
  }
  #verification p {
    font-size: 125%;
  }

  #verification .question {
    padding-top: 5%;
    color: #b38f5f;
    font-size: 200%;
  }

  #verification li {
    padding: 2.5rem 1rem;
  }

  #verification button {
    padding: 1.5rem 3rem;
    font-size: large;
  }

  #home h1 {
    font-size: 600%;
    text-shadow: 7px 5px 5px black;
  }

  #origin {
    background-size: cover;
    grid-template-areas:
      ". . . "
      "textO textO . "
      ". . . ";
  }

  #origin h2 {
    font-size: 350%;
    text-shadow: 4px 3px 3px black;
    border-radius: 0 5% 5% 0;
  }

  #tradition {
    grid-template-areas:
      "imgT imgT imgT"
      "imgT imgT imgT "
      "textT textT textT ";
  }

  #tradition h2 {
    font-size: 350%;
    padding: 5% 5% 20% 5%;
    text-shadow: 4px 3px 3px black;
  }

  #tradition img {
    height: 80%;
    place-self: end;
    justify-self: center;
  }
}

@media (width > 920px) {
  nav {
    z-index: 1;
    border-radius: 25px 0 0 25px;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.9);
    top: 25%;
    right: 0;
    position: fixed;
    display: unset;
  }

  nav hr {
    height: 2px;
    width: 100%;
    background-color: #8e774e;
    margin: 2px 0px 5px 0px;
  }

  nav h2 {
    text-decoration: none;
    font-size: x-large;
    color: white;
    margin-bottom: 0;
    text-align: center;
  }

  nav a {
    text-decoration: none;
    font-size: xx-large;
    color: #cec7c2;
  }

  nav ul {
    margin: 0 10px 0 0;
    list-style: none;
  }

  nav li {
    text-transform: uppercase;
    margin: 0 5px;
  }

  nav li a.active {
    color: #8e774e;
  }

  nav li a.active:hover {
    color: #b38f5f;
  }

  nav li a:hover {
    color: white;
  }

  #verification > div {
    width: 55%;
    height: 60%;
    padding: 2rem;
  }

  #verification h2 {
    font-size: 300%;
    padding-bottom: 2rem;
    font-weight: 400;
  }

  #verification p {
    font-size: 125%;
  }

  #verification .question {
    padding-top: 15%;
    color: #b38f5f;
    font-size: 220%;
  }

  #verification button {
    padding: 1.5rem 3rem;
    font-size: large;
  }

  #home {
    background-position: center;
  }

  #home h1 {
    font-size: 750%;
    text-shadow: 10px 7px 5px black;
  }

  #origin {
    background-size: cover;
    grid-template-areas:
      ". . . "
      "textO . . "
      ". . . ";
  }
  #origin h2 {
    font-size: 450%;
    text-shadow: 4px 3px 3px black;
    margin-left: 5%;
    border-radius: 5%;
  }

  #tradition {
    grid-template-areas:
      "imgT textT textT "
      "imgT textT textT "
      "imgT textT textT ";
  }

  #tradition h2 {
    font-size: 450%;
    padding: 0% 25% 5% 5%;
    text-shadow: 4px 3px 3px black;
  }

  #tradition img {
    width: 85%;
    place-self: center;
  }

  #footer .socialmedia a {
    font-size: large;
  }
}

.section {
  height: 100lvh;
  scroll-snap-align: start;
  overflow: hidden;
}

.hidden {
  display: none;
}

#verification {
  background: rgba(142, 119, 78, 0.5);
  width: 100%;
  height: 100lvh;
  z-index: 5;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  text-align: center;
}

#verification ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding-top: 3.5%;
}

#verification > div {
  background: white;
  place-self: center;
}

#verification li {
  padding: 2.5rem 1rem;
}
#verification button {
  background: #8e774e;
  transition: all 0.1s;
  pointer-events: all;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  color: black;
}
#verification button:hover {
  background: #b38f5f;
  transition: all 0.25s;
}

#verification .btnY {
  grid-area: btnY;
}

#verification .btnN {
  grid-area: btnN;
}

#home {
  background: url(./img/hero.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  display: grid;
  grid-template-areas:
    ". . ."
    "titleH titleH titleH"
    ". . . ";
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  align-items: center;
  justify-content: center;
}

#home h1 {
  padding: 10px 20px;
  grid-area: titleH;
  align-self: self-start;
  justify-self: center;
  color: white;
}

#origin {
  background: url(./img/origin.jpg);
  background-position: center;

  background-repeat: no-repeat;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  align-items: center;
  justify-content: center;
}

#origin h2 {
  grid-area: textO;
  color: white;
  padding: 5% 0 5% 5%;
  background-color: rgba(142, 119, 78, 0.75);
  margin-right: 5%;
}

#tradition {
  background: #b38f5f;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  align-items: center;
  justify-content: center;
}

#tradition::after {
  pointer-events: none;
  content: "";
  position: absolute;
  top: 200vh;
  left: 0;
  width: 100%;
  height: 100lvh;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.2) 20%,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.2) 80%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

#tradition h2 {
  grid-area: textT;
  color: white;
  text-align: justify;
}

#tradition img {
  grid-area: imgT;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 5px 5px 10px black;
}

#footer {
  grid-area: footer;
  background: white;
  color: black;
  height: 4vh;
  padding: 0.5% 2% 0.5% 2%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#footer .socialmedia {
  display: flex;
  flex-direction: row;
  margin-right: 1%;
  gap: 5%;
}

#footer .socialmedia a {
  color: black;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

#footer img {
  max-height: 4vh;
}
