@import url("https://fonts.googleapis.com/css2?family=Nova+Square&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nova+Slim&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nova+Flat&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nova+Round&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nova+Round&family=Offside&display=swap");

* {
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
}

:root {
  --fSquare: "Nova Square", sans-serif;
  --fSlim: "Nova Slim", system-ui;
  --fFlat: "Nova Flat", system-ui;
  --fRound: "Nova Round", system-ui;
  --fOffside: "Offside", sans-serif;

  --cMain: #298598;
  --cBlue: #0a192f;
  --cSilver: #a8b2d1;
  --cPink: #ff3366;
  --cWhite: #f5f5f5;
}

/* =========================HERO========================= */

main {
  height: calc(100vh - 130px);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 35px;
}

main h1 {
  font-family: var(--fSquare);
  font-size: 4rem;
  color: var(--cBlue);
  text-align: center;
}
main h2 {
  font-family: var(--fSlim);
  font-size: 2.5rem;
  color: var(--cBlue);
}

.buttons {
  display: flex;
  gap: 20px;
  margin-top: 70px;
}
.buttons a {
  text-decoration: none;
  font-family: var(--fOffside);
  font-size: 1.5rem;
  padding: 0.75em 1.5em;
  border-radius: 25px;
  border: 2px solid var(--cMain);
  outline: none;
  transition: all 0.3s ease;
}
.buttons a:first-of-type {
  color: var(--cMain);
}
.buttons a:first-of-type:hover {
  color: var(--cPink);
  background-color: var(--cMain);
}
.buttons a:last-of-type {
  color: var(--cMain);
  color: var(--cWhite);
  background-color: var(--cMain);
}
.buttons a:last-of-type:hover {
  color: var(--cPink);
  background-color: transparent;
}

.scrollDown {
  font-size: 2rem;
  background-color: var(--cSilver);
  color: var(--cWhite);
  padding: 0.5em 0.7em;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
}
.scrollDown:hover {
  color: var(--cPink);
}

/* =========================COLLECTIONS========================= */
#explanation {
  width: calc(100% - 120px);
  margin: 0 auto;
}
#explanation .imageWrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}
#explanation .bgProduct {
  width: 100%;
  object-fit: cover;
  height: 500px;
}
#explanation .hoodieImage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 90%;
}

#explanation h1 {
  font-family: var(--fSquare);
  font-size: 4rem;
  color: var(--cBlue);
  margin-bottom: 1%;
}
#explanation h2 {
  font-family: var(--fSlim);
  font-size: 2em;
  color: var(--cSilver);
  margin-top: 3%;
  margin-bottom: 1%;
}
#explanation p {
  font-family: var(--fSlim);
  font-size: 1.3em;
  color: var(--cBlue);
  margin-bottom: 1%;
}
#explanation ul {
  font-family: var(--fOffside);
  margin-left: 2%;
  font-size: 1em;
}
#explanation ul li {
  margin-bottom: 0.2%;
}

/* =========================PICKS========================= */
#picks {
  width: calc(100% - 120px);
  margin: 0 auto;
  margin-top: 15%;
  margin-bottom: 10%;
}

#picks h1 {
  font-family: var(--fSquare);
  font-size: 4rem;
  color: var(--cBlue);
}
#picks h2 {
  font-family: var(--fSlim);
  font-size: 2em;
  color: var(--cSilver);
}

#sellCards {
  margin-top: 125px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
}
#sellCards article {
  background-color: var(--cBlue);
  display: flex;
  flex-direction: column;
  flex: 1 1 100px;
  min-width: 400px;
  height: 350px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  text-indent: 10px;
}

#sellCards article h3 {
  font-family: var(--fSquare);
  font-size: 2.25rem;
  color: var(--cWhite);
  margin-top: 10px;
  transition: all 0.2s ease;
}
#sellCards article p {
  font-family: var(--fSlim);
  font-size: 1.1rem;
  color: var(--cSilver);
}
#sellCards article img {
  width: calc(100% - 20px);
  height: 230px;
  object-fit: cover;
  position: absolute;
  top: calc(100% - 10px);
  left: 50%;
  transform: translate(-50%, -100%);
  border-radius: 6px;
  transition: all 0.4s ease;
}

#sellCards article:hover img {
  height: calc(100% - 20px);
}
#sellCards article:hover h3 {
  text-indent: 11px;
}
#sellCards article:hover a:last-of-type {
  opacity: 1;
}

#sellCards a:last-of-type {
  background-color: var(--cSilver);
  color: var(--cWhite);
  font-size: 2.5rem;
  padding: 10px;
  border-radius: 16px;
  text-indent: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.4s ease;
}

/* =========================RESPONSIVE========================= */

@media (max-width: 777px) {
  main h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  #explanation h2 {
    margin-top: 4%;
    margin-bottom: 2%;
  }
  #explanation p {
    margin-bottom: 3%;
  }
  #explanation ul {
    margin-left: 5%;
  }
}

@media (max-width: 650px) {
  main h1,
  #explanation h1,
  #picks h1 {
    font-size: 3.5rem;
  }
  main h2,
  #explanation h2,
  #picks h2 {
    font-size: 1.7rem;
  }

  .buttons {
    margin-top: 0;
  }
  .buttons a {
    font-size: 1.3rem;
  }

  .scrollDown {
    font-size: 1.5rem;
  }
  #cards,
  #sellCards {
    margin-top: 70px;
  }
  #cards article {
    height: 350px;
  }

  #picks {
    margin-top: 25%;
  }
}

@media (max-width: 550px) {
  #explanation,
  #picks {
    width: 90%;
  }
}

@media (max-width: 470px) {
  main h1,
  #explanation h1,
  #picks h1 {
    font-size: 3rem;
  }
  main h2,
  #picks h2 {
    font-size: 1.3rem;
  }

  .buttons {
    flex-direction: column;
  }
  .buttons a {
    font-size: 1.15rem;
  }

  #explanation h2 {
    font-size: 2rem;
    margin-top: 10%;
  }
  #explanation p {
    margin-top: 7%;
  }
  #explanation {
    width: 90%;
  }
  #explanation .imageWrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
  }
  #explanation .bgProduct {
    height: 350px;
  }
  #explanation .hoodieImage {
    height: 95%;
  }

  #sellCards article {
    height: 310px;
    min-width: 230px;
  }
  #sellCards article h3 {
    font-size: 1.8rem;
  }
  #sellCards article p {
    font-size: 1rem;
  }
}

@media (max-width: 430px) {
  #explanation h1 {
    margin-bottom: 5%;
  }
}
