* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: #0a0908;
  background-color: #f2e6b1;
  font-family: "Sora", sans-serif;
}
h1,
h2,
h3,
h4 {
  font-family: "Montserrat", sans-serif;
}
header {
  background-color: #22333b;
  padding: 5rem 2rem;
  border-radius: 10px;
  margin: 3rem 2rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
header h1 {
  text-align: center;
  color: #11f97d;
}

.search-bar {
  display: flex;
  justify-content: center;
  border-radius: 5px;
  padding-top: 1rem;
}

header input,
button {
  border: none;
}
input:focus {
  outline: none;
}
header input {
  width: 10rem;
  height: 2rem;
  padding: 0 1rem;
  border-radius: 5px 0 0 5px;
}
header button {
  border-radius: 0 3px 3px 0;
  background-color: #11f97d;
  padding: 0 5px;
  color: #22333b;
}
header button svg {
  max-width: 80%;
  height: 100%;
}

/* result designs */

/* .anime-result-grid {
  padding: 2em;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
} */

.anime-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  /* border: 1px solid #11f97d; */

  border-radius: 2px;
  scale: 0.9;
  transition: 0.3s ease-in-out;
}
.anime-result:hover {
  scale: 1;
}
.anime-result p {
  text-align: center;
  text-transform: capitalize;
  font-family: "Montserrat", sans-serif;

  position: absolute;
  margin-left: 10px;
  margin-right: 10px;
  bottom: 16px;
  left: 0;
  right: 0;

  color: #000000;
  background-color: rgba(255, 255, 255, 0.411);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
  font-size: small;
}
.anime-result img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.anime-result:hover p {
  visibility: visible;
  opacity: 1;
}
/*  */
.anime-result img {
  -webkit-filter: grayscale(0) blur(0);
  filter: grayscale(0) blur(0);
  -webkit-transition: 0.3s ease-in-out;

  transition: 0.3s ease-in-out;
}
.anime-result:hover img {
  -webkit-filter: grayscale(100%) blur(1px);
  filter: grayscale(100%) blur(1px);
}
/* popular section styles */

#popular-anime-section {
  padding: 1rem 2rem 2rem 2rem;
  position: relative;
  min-height: 20vh;
}
#popular-anime-section h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
}

.popular-anime-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  min-height: 50vh;
}

/* media queries */

/* big landscape tablets, laptops, and desktops */
@media (min-width: 1020px) {
  header input {
    width: 13rem;
    height: 2rem;
  }

  header {
    padding: 10rem 1rem;
    margin: 2em 20% 0 20%;
  }
  #popular-anime-section {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 3rem 10rem;
  }
  .popular-anime-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;

    padding: 1rem;
  }
}
