HTML {
  font-size: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: inter;
}

body {
  height: 100vh;
  padding: 1rem 3rem 0 3rem;
  overflow-x: hidden;
}

.container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
}

nav {
  position: relative;
  height: 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 35rem;
}

.gender {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.6rem;
}

.gender a {
  position: relative;
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

.gender a:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 0.2rem;
  background-color: #000;
  bottom: -0.2rem;
  left: 0;
}

.gender a:last-child::after {
  width: 0%;
}

.gender a:not(:last-child) {
  margin-right: 2rem;
}

.search {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  background: #f1f1f1;
  padding: 0.5rem 1rem;
  border-radius: 3rem;
  font-size: 1.6rem;
}

.search input {
  background: transparent;
  width: 6rem;
  border: none;
  outline: none;
  transition: width 300ms linear;
}

.search input:focus {
  width: 15rem;
}

.icons img {
  width: 2.4rem;
}

.icons {
  display: flex;
  gap: 6rem;
  align-items: center;
}

/* content */
.content {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.direction {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.dir-btn {
  font-weight: bold;
  font-size: 1.4rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.items {
  color: #fff;
  display: flex;
  align-items: end;
  gap: 8rem;
}

.item {
  position: relative;
  color: #fff;
  text-decoration: none;
  width: 25rem;
  border-radius: 3rem 3rem 0 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.item h1 {
  font-size: 2.4rem;
}

.item img {
  position: absolute;
  width: 45rem;
  left: -11rem;
  top: 0;
  animation: move 2000ms linear infinite;
}

@keyframes move {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1rem);
  }
}

@keyframes move2 {

  0%,
  100% {
    transform: translateY(1rem);
  }

  50% {
    transform: translateY(0);
  }
}

.item-det p {
  font-size: 1.4rem;
  padding: .5rem 0;
}

.add {
  color: #000;
  padding: 0 2rem;
  display: flex;
  align-self: center;
  justify-content: center;
  background: #fff;
  border: none;
  border-radius: 3rem;
  font-size: 1.8rem;
  cursor: pointer;
  margin-top: 1rem;
}

.items .item:nth-child(1) {
  height: 50rem;
  background: linear-gradient(to top left, #000 10%, #007f2e);
}

.items .item:nth-child(2) {
  height: 42rem;
  background: linear-gradient(to bottom right, #000 10%, #573578);
}

.items .item:nth-child(2) img {
  width: 40rem;
  left: -10rem;
  animation: move2 2000ms linear infinite;
}

/* social */
.social {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.social a {
  position: relative;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 600;
  color: #999;
}

.social a:after {
  content: "";
  position: absolute;
  width: 0%;
  height: 0.2rem;
  background-color: #000;
  bottom: -0.2rem;
  left: 0;
  transition: width 300ms linear;
  transform-origin: right;
}

.social a:hover:after {
  width: 100%;
}

/* Discover */
.discover {
  position: absolute;
  top: 50%;
  left: -2rem;
  text-align: center;
  transform: rotate(-90deg);
}

.discover h1 {
  font-size: 2.4rem;
  font-weight: 900;
}

.discover p {
  font-size: 1.4rem;
}

@media (min-width: 1400px) {
  html {
    font-size: 13px;
  }
}

@media (max-width: 884px) {
  .social {
    display: none;
  }

  .content {
    justify-content: space-around;
  }

  .items .item:nth-child(1),
  .items .item:nth-child(2) {
    width: 28rem;
  }

  .items .item:nth-child(1) {
    height: 60rem;
  }

  .items .item:nth-child(2) {
    height: 50rem;
  }

  .items .item img {
    width: 50rem;
    left: -14rem;
  }

  .items .item:nth-child(2) img {
    width: 45rem;
    left: -12rem;
  }

  .item-det .det p {
    font-size: 1.8rem;
  }

  .add {
    font-size: 2.6rem;
  }
}

@media (max-width: 834px) {
  nav {
    position: fixed;
    top: -10px;
    left: 0;
    width: 100vw;
    z-index: 999;
    background: #fff;
    padding: 0 3.5rem;
  }

  .container {
    position: relative;
    display: flex;
    justify-content: center;
  }

  .content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-left: 5rem;
    flex-direction: column-reverse;
    align-items: center;
    margin-top: 15%;
  }

  .items {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 6rem;
  }

  .direction {
    margin-top: 3rem;
  }

  .items .item {
    border-radius: 3rem;
  }

  .items .item:nth-child(1),
  .items .item:nth-child(2) {
    width: 60rem;
    height: 50%;
  }

  .items .item:nth-child(1) img,
  .items .item:nth-child(2) img {
    position: static;
    width: 50rem;
  }

  .items .item .item-number {
    font-size: 3.5rem;
  }

  .item-det .det p {
    font-size: 2rem;
  }

  .add {
    font-size: 3rem;
  }

  .discover {
    position: fixed;
    left: 1rem;
  }
}

@media (max-width: 768px) {
  .search {
    display: none;
  }

  .items {
    gap: 4rem;
  }

  .items .item:nth-child(1) ,
  .items .item:nth-child(2){
    width: 50rem;
  }

  .items .item:nth-child(1) img,
  .items .item:nth-child(2) img {
    width: 40rem;
  }
}

@media (max-width: 428px) and (max-width: 926px) {
  [alt="Nike Logo"] {
    width: 5rem;
  }

  .icons {
    gap: 2rem;
  }

  .discover{
    left: -1rem;
  }

  .items .item:nth-child(1),
  .items .item:nth-child(2) {
    width: 30rem;
  }

  .items .item:nth-child(1) img,
  .items .item:nth-child(2) img{
    width: 25rem;
  }

  .content{
    margin-top: 25%;
    padding-left: 6rem;
  }
}

@media (max-width: 390px){
  html{
    font-size: 8.5px;
  }
}