@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  font-size: 62.5%;
}

body {
  font-family: "Poppins", sans-serif;
  height: 100vh;
  overflow: hidden;
}

.header {
  background: #cdcdcd93;
  max-height: 100px;
  height: 10%;
  width: 100%;
  padding: 1rem 0 1rem 0;
  position: fixed;
  z-index: 1;
}

a {
  color: black;
  text-decoration: none;
  font-size: 1.2rem;
}
#notFound {
  display: none;
  justify-content: center;
  font-size: 2rem;
}
#notFound > h2 {
  font-weight: 200;
  text-align: center;
}
.header .content_header {
  height: 100%;
  display: flex;
  max-width: 1020px;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 0 1rem 0 1rem;
}

.header .top_search {
  display: flex;
  gap: 1rem;
  background: #ffff;
  box-shadow: rgba(3, 102, 214, 0.3) 0px 0px 0px 3px;
  border-radius: 30px;
  align-items: center;
  padding: 1rem 0.8rem 1rem 0.8rem;
  text-align: center;
}
.top_search input {
  border: none;
  color: #000000;
  font-size: 1.4rem;
  background: transparent;
  outline: none;
  width: 0;
  transition: 0.8s ease-in;
}

.top_search button {
  border: none;
  background: transparent;
  color: rgba(3, 101, 214, 0.785);
  font-size: 1.4rem;
  cursor: pointer;
}

.top_search:hover input {
  width: 250px;
}
main {
  height: 100%;
}

.loader {
  width: 100px;
  height: 100px;
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.loader::after,
.loader::before {
  content: "";
  box-sizing: border-box;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid #000000;
  position: absolute;
  left: 0;
  top: 0;
  animation: animloader 2s linear infinite;
}
.loader::after {
  animation-delay: 1s;
}
.container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}
.slide_container {
  max-width: 1020px;
  width: 100%;
}
.slide_content {
  margin: 0 40px;
  overflow: hidden;
  border-radius: 25px;
}
.card {
  border-radius: 25px;
  background: #f1f1f1;
}
.image_content,
.card_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
}
.image_content {
  row-gap: 5px;
  position: relative;
}
.overlay {
  position: absolute;
  left: 0;
  top: 0;
  height: 60%;
  width: 100%;
  background: #4070f4;
  border-radius: 25px 25px 0 0;
}
.card_image {
  position: relative;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
}

.card_image .card_img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #4070f4;
}
.name {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.description {
  font-size: 14px;
}
.swiper-navBtn {
  color: red;
}

#result_search {
  padding: 1rem;
  max-height: 100vh;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 1020px;
  margin: 0 auto;
  overflow-y: scroll;
  padding-top: 10rem;
}

.container_result {
  background: #ebe9e9;
  height: 450px;
}
.container_result .overlay {
  border-radius: 0;
}

.hidden {
  display: none;
}
footer {
  background: #cdcdcd;
  display: flex;
  align-items: center;
  width: 100%;
  height: 10%;
}
footer > p {
  margin-left: 1rem;
}
::-webkit-scrollbar {
  width: 5px;
  margin-top: 10rem;
}
::-webkit-scrollbar-thumb {
  width: 10px;
  background-color: transparent;
}
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

@media (max-width: 570px) {
  .header .content_header {
    flex-direction: column;
    padding-bottom: 1rem;
    gap: 0.5rem;
  }
  .header {
    height: 15%;
  }
  .top_search input {
    width: 300px;
  }
  main {
    height: 100%;
  }
  #result_search {
    padding-bottom: 10rem;
  }
}

/* animações */

@keyframes animloader {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
