* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

body {
  background-color: #222;
}

.background {
  background-image: url(images/rain_mid5.webp);
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  width: 100%;
}

.blur {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  height: 100vh;
  width: 100%;
}

.card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90%;
  max-width: 1100px;
  background-image: url(images/rain_mid5.webp);
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  margin-top: 30px;
  margin-left: 140px;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
}

.columns {
  display: flex;
  flex-direction: row;
  height: 100%;
}

.columns_right {
  width: 550px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.display_date {
  display: none;
  height: 100%;
  width: 100%;
}

.box {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.date {
  border: 3px solid #fff;
  background-color: rgba(190, 190, 190, 0.37);
  color: #fff;
  padding: 1.5rem;
}

.date h2 {
  font-size: 64px;
  font-weight: 600;
}

.date p {
  font-size: 24px;
  font-weight: 400;
}

.columns_left {
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 550px;
  padding: 50px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0)
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

.search input {
  border: 0;
  outline: 0;
  background-color: #ebfffc;
  color: #555;
  padding: 10px 25px;
  height: 60px;
  border-radius: 30px;
  flex: 1;
  margin-right: 16px;
  font-size: 18px;
}

::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #000;
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #000;
}

::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #000;
}

.search button {
  border: 0;
  outline: 0;
  background-color: transparent;
  border-radius: 50%;
  width: 35px;
  height: auto;
  cursor: pointer;
}

.error {
  text-align: left;
  margin: 10px 0 0 10px;
  font-size: 14px;
  display: none;
}

.weather {
  display: none;
}

.weather_flex {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.weather-icon {
  width: 170px;
  margin-top: 10px;
}

.weather h1 {
  font-size: 80px;
  font-weight: 500;
}

.weather h2 {
  font-size: 45px;
  font-weight: 400;
  margin-top: -10px;
}

.details {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 50px;
}

.col {
  display: flex;
  align-items: center;
  text-align: center;
  padding: 0 15px;
}

.col img {
  width: 50px;
  margin-right: 10px;
}

.humidity,
.wind {
  font-size: 28px;
  margin-top: 0px;
}

.humidity_text,
.wind_text {
  font-size: 24px;
  margin-top: 0;
}

@media (max-width: 1300px) {
  .card {
    width: 80%;
    margin-left: 90px;
  }
}

@media (max-width: 1024px) {
  .columns {
    flex-direction: column;
  }

  .columns_left {
    width: 100%;
    height: 100%;
  }

  .weather_flex {
    flex-direction: row;
    justify-content: space-evenly;
    margin-top: 20px;
  }

  .weather-icon {
    width: 100px;
    margin-top: 5px;
  }

  .weather h1 {
    font-size: 64px;
  }

  .weather h2 {
    margin-left: 15px;
    font-size: 36px;
    margin-top: 15px;
  }

  .details {
    margin-top: 30px;
  }

  .col img {
    width: 100px;
  }

  .humidity,
  .wind {
    font-size: 42px;
    margin-top: -6px;
  }

  .columns_right {
    width: 100%;
    height: 100%;
    justify-content: center;
  }

  .display_date {
    height: auto;
  }
}

@media (max-width: 768px) {
  .card {
    margin-left: 50px;
  }

  .weather_flex {
    margin-top: 15px;
  }

  .weather-icon {
    width: 60px;
    margin-top: 5px;
  }

  .weather h1 {
    font-size: 48px;
  }

  .weather h2 {
    margin-left: 10px;
    font-size: 36px;
    margin-top: 10px;
  }
}

@media (max-width: 600px) {
  .card {
    margin-left: 45px;
  }

  .columns_left {
    height: 100%;
    padding: 20px;
  }

  .search input {
    height: 40px;
    font-size: 16px;
    padding: 5px 0 0 15px;
    margin: 0;
    width: 50px;
  }

  .search button {
    margin-left: 15px;
    width: 35px;
    height: 35px;
  }

  .weather h1 {
    font-size: 32px;
  }

  .weather h2 {
    margin-left: 10px;
    font-size: 24px;
    margin-top: 10px;
  }

  .details {
    flex-direction: column;
    padding: 10px;
    margin-top: 0;
  }

  .col {
    width: 100%;
    align-items: flex-start;
    justify-content: center;
    padding: 10px;
  }

  .col img {
    width: 50px;
  }

  .humidity,
  .wind {
    font-size: 16px;
    margin-top: 5px;
  }

  .columns_right {
    width: 100%;
    height: 50%;
    justify-content: center;
  }

  .date h2 {
    font-size: 32px;
    font-weight: 600;
  }

  .date p {
    font-size: 20px;
    font-weight: 400;
  }
}
