* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  outline: none;
}

body {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  background: #0f2027; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to right,
    #2c5364,
    #203a43,
    #0f2027
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to right,
    #2c5364,
    #203a43,
    #0f2027
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.container {
  position: relative;
  background: #fff;
  box-shadow: 16px 13px 16px 0px rgba(0, 0, 0, 0.75);
  -webkit-box-shadow: 16px 13px 16px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 16px 13px 16px 0px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  border-radius: 18px;
  width: 400px;
  height: 120px;
  padding: 2rem;
  margin: 2rem;
  margin-top: 5rem;
  transition: 0.6s ease-out;
}

.search-field {
  width: 100%;
  height: min-content;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-field input {
  width: 80%;
  border-radius: 16px;
  font-size: 1.8rem;
  padding-left: 32px;
  font-weight: 500;
  text-transform: uppercase;
  color: #2c7da0;
}

.search-field input::placeholder {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
}

.search-field button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1rem;
  transition: 0.4 ease;
  background-color: #01497c;
  color: #a9d6e5;
  cursor: pointer;
}

.search-field button:hover {
  background: #01497c;
  color: #fff;
  transition: 0.4 ease;
}

.search-field i {
  position: absolute;
  padding: 0.8rem;
  font-size: 1.2rem;
}

.weather-box {
  text-align: center;
  position: relative;
  z-index: 1;
}

.weather-box img {
  width: 60%;
  margin-top: 2rem;
}

.weather-box .temperature {
  position: relative;
  color: #01497c;
  font-size: 4rem;
  font-weight: 800;
  margin-top: 2rem;
}

.weather-details {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}

.weather-details .humidity,
.weather-details .wind {
  display: flex;
  align-items: center;
  width: 50%;
  height: 100px;
}

.weather-details .humidity {
  padding-left: 20px;
  justify-content: flex-start;
}

.weather-details .wind {
  padding-right: 20px;
  justify-content: flex-end;
}

.weather-details i {
  color: #fff;
  font-size: 26px;
  margin-right: 10px;
  margin-top: 6px;
}

.weather-details span {
  color: #fff;
  font-size: 22px;
  font-weight: 500;
}

.weather-details p {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.not-found {
  width: 100%;
  text-align: center;
  margin-top: 50px;
  scale: 0;
  opacity: 0;
  display: none;
}

.not-found img {
  width: 70%;
}

.not-found p {
  color: #06283d;
  font-size: 22px;
  font-weight: 500;
  margin-top: 12px;
}

.weather-box,
.weather-details {
  scale: 0;
  opacity: 0;
}

.fadeIn {
  animation: 0.5s fadeIn forwards;
  animation-delay: 0.5s;
}

@keyframes fadeIn {
  to {
    scale: 1;
    opacity: 1;
  }
}

.addSearchButtonDiv {
  position: absolute;
  top: 1rem;
  left: 50%;
}

.addSearchButtonDiv button {
  all: unset;
  width: 100px;
  height: 30px;
  font-size: 16px;
  background: transparent;
  border: none;
  position: relative;
  color: #f0f0f0;
  cursor: pointer;
  z-index: 1;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.addSearchButtonDiv button::after,
.addSearchButtonDiv button::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -99999;
  transition: all 0.4s;
}

.addSearchButtonDiv button::before {
  transform: translate(0%, 0%);
  width: 100%;
  height: 100%;
  background: #28282d;
  border-radius: 10px;
}

.addSearchButtonDiv button::after {
  transform: translate(10px, 10px);
  width: 35px;
  height: 35px;
  background: #ffffff15;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 50px;
}

.addSearchButtonDiv button:hover::before {
  transform: translate(5%, 20%);
  width: 110%;
  height: 110%;
}

.addSearchButtonDiv button:hover::after {
  border-radius: 10px;
  transform: translate(0, 0);
  width: 100%;
  height: 100%;
}

.addSearchButtonDiv button:active::after {
  transition: 0s;
  transform: translate(0, 5%);
}

.no-click {
  pointer-events: none;
  display: none !important;
}

#remove {
  font-size: 0.8rem;
  width: 30px;
  height: 30px;
  background-color: #d11a2a;
  position: absolute;
  margin: 0 auto;
  top: 0;
  right: 0px;
}

.error {
  animation: shake 0.2s ease-in-out 0s 2;
  box-shadow: 0 0 0.5em red;
}

@keyframes shake {
  0% {
    margin-left: 0rem;
  }
  25% {
    margin-left: 0.5rem;
  }
  75% {
    margin-left: -0.5rem;
  }
  100% {
    margin-left: 0rem;
  }
}
