* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

}

:root {
  font-size: 62.5%;

  --hue: 400;
  --color-base-white: hsl(0, 0%, 100%);
  --color-base-gray-100: hsl(0, 0%, 96%);
  --color-base-gray-500: hsl(0, 0%, 24%);
  --color-base-gray-900: hsl(var(--hue), 60%, 50%); 
}

html, body, input {
  font-family: 'Mulish', sans-serif;
}

body {
  font-size: 1.6rem;
  background-color: var(--color-base-gray-100);
  color: var(--color-base-gray-900);
}

.app {
  display: grid;
  grid-template-rows: max-content 1fr max-content;
  height: 100vh;
}

.container {
  padding: 1.6rem 3.2rem;
  width: min(112rem, 100%);
  margin: 0 auto;
}

main {
  background-color: var(--color-base-white);
  border: solid 1px white;
  border-radius: 1rem;

}

nav img {
  max-width: 20rem;
  width: auto;
  height: auto;
  object-fit: cover;
}


nav {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 8rem;  /* REMOVER ESTA LINHA QUANDO RECOLOCAR O LOGO */

}

nav div {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin: 0 auto;
}

div h1 {
  font-size: 4rem;

}


/* Galeria */


main h1 {
  padding-top: 1rem;
  font-size: 4rem;
  text-align: center;

}

.gallery {
  margin-top: 2rem;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;


}

.item {
  background-color: var(--color-base-white);
  border-radius: .8rem;
  overflow: hidden;
}

.item a {
  text-decoration: none;
  color: var(--color-base-gray-900);
}

.item img {
  width: 100%;
  aspect-ratio: 14/9;
  object-fit: contain;
  display: block;
  transition: filter 200ms ease-out, transform 600ms ease-in;
  background-color: var(--color-base-gray-100);

  border-radius: 0.8rem;
}

.item img:hover {
  filter: hue-rotate(7deg) contrast(101%) saturate(200%);
  transform: scale(1.1) rotate(-2deg);
}

.details {
  padding: 2.2rem;
  background-color: var(--color-base-white);
  z-index: 1;
  position: relative;
}

.details h2 {
  font-size: 1.8rem;
}

.tags {
  margin-top: 1.2rem;
}

.tags span {
  padding: .6rem;
  background-color: var(--color-base-gray-100);
  border-radius: .4rem;

  line-height: 0;
  font-size: 1.2rem;
  text-transform: uppercase;
}

footer p {
  text-align: center;
  padding: 1.6rem;
  font-weight: 600;
}

header {
  --startY: -100%;
  animation: move .2s;
}

footer {
  --startY: 100%;
  animation: move .2s;

}

@keyframes move {
  from {
    transform: translateY(var(--startY));
  }
}

.item {
  --delay: .4s;
  animation: appear .4s var(--delay) backwards;
}

@keyframes appear {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }

  50% {
    transform: scale(1.2);
  }
}

@media (max-width: 700px) {

  nav {
    display: flex;
    flex-direction: column;
    /* margin-top: 0; */
  }

  div h1 {
    font-size: 4rem;
  }

  .container {
    padding-top:0;
    padding-left:1.5rem;
    padding-right: 1.5rem;
  }

  .container h1 {
    font-size: 3rem;
  }

  .container h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
  }

  .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .details h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
  }

}