* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Jacques Francois Shadow", serif;
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: rgb(14, 14, 14);
}

.container {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.header {
  width: 82%;
  height: 5em;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  width: 18em;
  justify-content: space-between;
  align-items: center;
}

.logo__image {
  width: 3em;
  height: 3em;
}

@keyframes gradient-slide {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.title {
  font-weight: 400;
  font-size: 2em;
  background: linear-gradient(270deg, #ffffff, #99e2fb, #fcfbfa);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-slide 5s infinite linear;
}

.search-container {
  display: flex;
  justify-content: center;
  margin: 1em auto;
}

.search {
  position: relative;
  width: 18em;
}

.input {
  width: 100%;
  padding-left: 1em;
  padding-right: 2.5em;
  height: 2em;
  border: 1px solid #ccc;
  border-radius: 10em;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.1em;
}

.search__btn {
  position: absolute;
  right: 1em;
  top: 50%;
  font-size: 1em;
  transform: translateY(-50%);
  background: none;
  border: none;
}

.clear__btn {
  position: absolute;
  right: 2.5em;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.2em;
  font-weight: bold;
  color: rgb(252, 58, 58);
  cursor: pointer;
}

.filled {
  cursor: pointer;
}

@media (max-width: 768px) {
  .logo {
    width: 12em;
  }
  .logo__image {
    width: 2em;
    height: 2em;
  }
  .title {
    font-size: 1.3em;
    font-weight: 300;
  }
  .search {
    width: 12em;
  }
}

@media (max-width: 500px) {
  .header {
    flex-direction: column;
    margin: 1em auto;
  }
}

.line {
  width: 100%;
  height: 0.3em;
  background-color: rgb(226, 111, 24);
}

.gallery {
  display: flex;
  justify-content: center;
  width: 80%;
  margin: 1em auto;
  flex-wrap: wrap;
  flex-shrink: 1;
}

.card {
  width: 30%;
  margin: 0.3em 0.7em;
  flex-shrink: 0;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .card {
    width: 45%;
  }
}

@media (max-width: 500px) {
  .card {
    width: 100%;
  }
}

.card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  transition: all 2s ease-in-out 0.5s;
}

.card img:hover {
  transform: scale(1.5);
  border: 1px solid #99e2fb;
  border-radius: 10px;
}

@media (max-width: 500px) {
  .card img:hover {
    transform: scale(1.2);
  }
}

.footer {
  display: flex;
  margin: 0 auto;
  justify-content: space-between;
  align-items: center;
  width: 85%;
  padding: 0;
}

h2 {
  color: white;
  font-weight: 400;
}

.icon__footer__git,
.icon__footer__rs {
  width: 7em;
  height: auto;
}

.icon__footer__rs {
  padding-right: 1.5em;
}
@media (max-width: 500px) {
  .icon__footer__git,
  .icon__footer__rs {
    width: 5em;
    height: auto;
  }
  .icon__footer__rs {
    padding-right: 1em;
  }
}

.icon__footer__git:hover,
.icon__footer__rs:hover {
  transform: scale(1.1);
  transition: transform 0.7s ease-in-out;
}
