* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  font-size: 62.5%;

  --color-base-white: #ffffff;
  --color-base-gray-100: #f5f5f5;
  --color-base-gray-300: #8d8d99;
  --color-base-gray-500: #3d3d3d;
  --color-base-gray-900: #202024;
}

html, body,input {
  font-family: "Mulish", sans-serif;
}

body {
  font-size: 1.6rem;
  background-color: var(--color-base-white);
  color: var(--color-base-gray-900)
}

#app {
  display: grid;
  grid-template-rows: max-content 1fr max-content;
  height: 50%;

}

.container {
  padding: 1.6rem 3.2rem;
  width: min(112rem, 100%);
  margin: 0 auto;

}
.logo {
  width: 15%;
  border-radius: 50%;
}

main {
  
 

}

header, nav, nav ul {
display: flex;
align-items: center;
flex: 1;
gap: 7.2rem;
font-weight: 700;

}

header form {
  flex: 1;
}

nav ul {
  list-style: none;
  font-size: 1.8rem;
  color: var(--color-base-gray-300)
}

ul li.active {
  color: var(--color-base-gray-900)
}

.avatar {
width: 5rem;
}

.input-wrapper {
  position: relative;
}

.search {
  position: absolute;
  left: 1.4rem;
  top: 50%;
  transform: translateY(-50%);

}

.input-wrapper label {
  width: 1px;
  height: 1px;
  overflow: hidden;
  position: absolute;
}

.input-wrapper input {
  width: 100%;
  padding: 1.6rem;
  padding-left: 4rem;
  
  background-color: #eeebeb ;
  border: 0;
  border-radius: .6rem;

  font-size: 1.6rem;
  font-weight: 600;
  opacity: .56;
}



/* galeria main */

main h1 {
  padding-top: 1.6rem;
  font-size: 2.4rem;
}

.gallery {
  margin-top: 3.2rem;
  display: block;
  overflow-y: scroll;

}

.item {
  background-color: var(--color-base-white);
  border-radius: .8rem;
  overflow: hidden;
  
  
}

.item img {
  width: 90%;
  aspect-ratio: 16/9;
  object-fit: cover;

  transition: all 200ms ease-out;

  display: block;
  /*
  transition: all;
  transition-duration: 200ms;
  transition-delay: 0;
  transition-timing-function: ease-out; */

}

.item img:hover {
  filter: hue-rotate(7deg) contrast(101%) saturate(200%);
  transform: scale(1.1) rotate(-1deg);
  
}

.details {
  padding: 2.2rem;
}

details h2 {
font-size: 1rem;
}

.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: 1rem;
  font-weight: 600;


}

/* responsividade */
@media (min-width: 1024px) {
  .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .item {
    width: calc(33.333% - 20px); /* Defina a largura de cada item */
    margin-bottom: 20px; /* Espaçamento entre os itens */
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .item {
    width: calc(50% - 20px); /* Defina a largura de cada item */
    margin-bottom: 20px; /* Espaçamento entre os itens */
  }

}

/* Para telas menores que 768px, a configuração padrão de uma coluna é mantida */

 

  

 


*/
/* Animações */

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);
  }
}
