* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-block: 40px;
}

/* header */
header {
  width: 100%;
  max-width: 800px;
  text-align: center;
}

header h1 {
  color: #666666;
}

header form .search-container {
  margin-top: 20px;
  position: relative;
}

header form .search-container input {
  width: 100%;
  font-size: 18px;
  padding: 12px 24px;
  border: none;
  border-radius: 21rem;
  background: #e2e2e2;
}

header form .search-container .material-symbols-outlined {
  position: absolute;
  top: 12px;
  right: 11px;
  opacity: 0.6;
  cursor: pointer;
}

.images-container {
  padding: 0 0.2px;
  margin-block: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.images-container img {
  width: 280px;
  height: 260px;
  border-radius: 0.4rem;
}

.images-container .imageDiv {
  position: relative;
}

.imageDiv .overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  background-color: rgba(0, 0, 0, 0.6);
  transition: height 0.4s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.imageDiv .overlay h3 {
  color: #fff;
  display: none;
  text-align: center;
  font-size: 20px;
  padding: 0 3px;
}

.imageDiv:hover .overlay {
  height: 100%;
  overflow: hidden;
  border-radius: 0.4rem;
}

.imageDiv:hover .overlay h3 {
  display: block;
}

.loadMoreBtn {
  border: none;
  color: #fff;
  background-color: rgb(106, 210, 106);
  font-size: 20px;
  font-weight: 600;
  padding: 8px 12px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
  display: none;
  margin-bottom: 20px;
}

.loadMoreBtn:hover {
  background-color: rgb(63, 169, 63);
}

main section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 20px 0 50px 0;
}

footer {
  margin-bottom: 0;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #d0cccc;
  color: rgb(0, 0, 0);
  text-align: center;
  justify-items: center;
  padding: 10px 0;
}

footer h3 {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-weight: 500;
}

@media screen and (max-width: 920px) {
  header {
    width: 80%;
  }
}
