* {
  font-family: "M PLUS Rounded 1c", Avenir Next, Helvetica, sans-serif;
  color: white;
}

body {
  background: #652894;
  background: linear-gradient(
    90deg,
    rgba(101, 40, 148, 1) 0%,
    rgba(140, 22, 22, 1) 50%,
    rgba(150, 107, 45, 1) 100%
  );
  background-size: 150% 150%;
  background-position: center;
}

@media (max-width: 820px) {
  body {
    background: linear-gradient(
      150deg,
      rgba(101, 40, 148, 0.9) 0%,
      rgba(140, 22, 22, 1) 60%,
      rgba(150, 107, 45, 1) 100%
    );
    background-size: 200% 200%;
    background-position: center;
  }
  .wrapper {
    height: 540px;
    max-width: 85%;
    margin: 15% auto;
  }
  .autoSuggest {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .wrapper {
    width: 300px;
  }

  #cityInput {
    width: 150px;
  }
}

.wrapper {
  height: 540px;
  width: 400px;
  background: rgba(33, 32, 32, 0.37);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(242, 237, 237, 0.1);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  border-radius: 1rem;
  margin: 50px auto;
  padding: 1.5rem;
}
#appTitle {
  text-align: center;
}
.container {
  display: grid;
  place-items: center;
}
.searchContainer {
  display: flex;
  margin-top: 1rem;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
#cityInput,
#searchBtn {
  height: 2.3rem;
  box-sizing: border-box;
}

#cityInput {
  height: 2.3rem;
  border-radius: 0.8rem;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border: none;
  padding-left: 1rem;
  font-size: 1rem;
  outline: none;
  background-color: #00000083;
}
#cityInput:focus {
  box-shadow: -1px 1px 6px 1px #b7b5b5;
}
#searchBtn {
  background-color: #00000083;
  border: none;
  border-bottom-right-radius: 0.8rem;
  border-top-right-radius: 0.8rem;
  height: 2.3rem;
  width: 30px;
  cursor: pointer;
}
#searchBtn:hover {
  transition-duration: 0.5s;
  background-color: #ffffff;
  cursor: pointer;
}
#searchBtn:hover i {
  color: #000;
}
.autoSuggest {
  width: 50%;
  max-height: 90px;
  position: absolute;
  top: 9.4rem;
  z-index: 2;
  background: rgba(19, 19, 19, 0.37);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 0.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  outline: 1px solid #fffafad6;
  visibility: hidden;
}
.autoSuggest::-webkit-scrollbar {
  width: 5px;
}
.autoSuggest::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}
.autoSuggest::-webkit-scrollbar-track {
  background: #555;
}
.autoSuggest ul {
  list-style: none;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  padding-left: 0;
}
.autoSuggest ul li {
  padding-block: 0.3rem;
  padding-left: 1rem;
  cursor: pointer;
  width: 100%;
}
.autoSuggest ul li:hover {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 0.3rem;
}
.weatherContainer {
  text-align: center;
  margin-top: 2rem;
}
.weatherContainer h2 {
  margin-top: 5px;
}
#weatherIcon img {
  width: 100px;
  height: 100px;
  animation: livelyIcon 3s ease-in-out infinite;
  will-change: transform;
}

@keyframes livelyIcon {
  0% {
    transform: translateY(0) scale(1);
  }
  20% {
    transform: translateY(-6px) scale(1.07);
  }
  40% {
    transform: translateY(-10px) scale(1.12);
  }
  60% {
    transform: translateY(-6px) scale(1.07);
  }
  80% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.weatherData p {
  font-weight: bolder;
  font-size: 1rem;
}
