@import url("https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;500;600;700&family=Poppins:wght@100;300;400;600;900&display=swap");

html {
  font-size: 62.5%;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Pixelify Sans", cursive;
}

body {
  background-color: #f5f2e8;
  padding: 2vh 5vw;
}

h1 {
  text-align: center;
  font-weight: 400;
  font-size: 5rem;
}

form {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

input {
  border-bottom: 0.5px solid;
  outline: none;
  background-color: transparent;
  width: 30vw;
  height: 5vh;
  font-size: 1.8rem;
  padding: 0.5rem;
  margin-right: 1rem;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}
button {
  background-color: transparent;
  color: black;
  font-size: 1.8rem;
  height: 5vh;
  padding: 0 4rem;
  transition: all 0.3s ease 0s;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

button:hover {
  background-color: black;
  color: wheat;
}

.search-results {
  columns: 3 340px;
  gap: 30px;
}

.search-result {
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  margin-bottom: 5%;
}

.search-result img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease-in-out;
}

.search-result:hover img {
  opacity: 0.8;
}
.a-tag-wrapper {
  padding: 2px 6px;
}

.search-result a {
  font-size: 20px;
  text-decoration: none;
  color: black;
}

#show-more-button {
  margin: 20px 0;
  display: none;
}

@media screen and (max-width: 768px) {
  html {
    font-size: 50%;
  }
  .search-result {
    width: 100%;
  }
  .search-results {
    columns: 2;
    gap: 15px;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 45%;
  }
  .search-result {
    width: 100%;
  }
  form {
    flex-direction: column;
  }
  input {
    width: 70vw;
  }
  button {
    margin-top: 2rem;
    background-color: black;
    color: wheat;
  }
  .search-results {
    columns: 1;
    gap: 15px;
  }
}
