* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

html {
  font-size: 62.5%;
}

body {
  height: 100vh;
  width: 100%;
  color: rgba(220, 220, 220, 0.67)!important;
  background-image: linear-gradient(rgba(0, 0, 0, 0.468));
  /* background-image:linear-gradient(to right bottom ,rgba(0, rgba(0, 0, 0, 0.68) 0.511) , black), url('../assets/clouds.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; */
  /* background-color: rgb(0, 0, 0); */
  display: flex;
  justify-content: center;
  align-items: center;

}

.container {
  height: 80%;
  width: 80%;
  background-color: transparent;
  border: 0.1rem solid white;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 2rem;

  .weather-header {
    height: 3.5rem;
    width: 50%;
    background-color: transparent;
    border-radius: 1rem;
    border: 0.1rem solid rgb(228, 228, 228);
    position: relative;
    left: -13rem;

    .search-cont {
      height: 100%;
      width: 100%;
      display: flex;
      border-radius: 1rem;

      .fa-solid {
        height: 100%;
        width: 15%;
        font-size: 2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
      }

      .input-search {
        width: 100%;
        background-color: transparent;
        border: none;
        outline: 0;
        color: white;
      }

      .input-search::placeholder {
        color: white;
      }
    }
  }

  .weather-body {
    height: 60%;
    width: 60%;
    background-color: transparent;
    text-align: center;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-content: center;

    .weather-city {
      font-size: 3rem;
    }

    .weather-date-time {
      font-size: 1.4rem;
    }

    .weather-data {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;

      .weather-forecast {
        height: 3rem;
        width: 7rem;
        background-color: rgba(255, 255, 255, 0.497);
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 2rem;
        font-size: 1.4rem;
      }

      .weather-icon {
        height: auto;
        width: auto;
        display: grid;
        place-items: center;
      }
    }

    .weather-temp {
      font-size: 2.8rem;
    }

    .weather-minmax {
      display: flex;
      justify-content: center;
      gap: 3rem;
      font-size: 1.8rem;
      text-transform: capitalize;
    }
  }

  .weather-details-cont {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
    gap: 1rem;

    .weather-card {
      background-color: orange;
      padding: 1rem;
      display: flex;
      gap: 1rem;
      align-items: center;
      border-radius: 1rem;
      text-transform: capitalize;
      background-color: transparent;
      box-shadow: rgba(239, 239, 239, 0.721) 0px 1px 3px 0px,
        rgba(252, 252, 252, 0.884) 0px 0px 0px 1px;

      .fa-droplet {
        font-size: 2rem;
      }

      div {
        .heading {
          font-size: 1.5rem;
        }

        .icon-weather {
          font-size: 2rem;
        }
      }
    }
  }
}

@media (max-width: 700px) {
  html {
    font-size: 50%; /* Reduce base size for better readability */
  }

  .container {
    height: auto;
    width: 95%;
    padding: 1.5rem;
    gap: 2rem;
  }

  .container .weather-header {
    width: 100%;
    left: 0;
    height: 4rem;
  }

  .container .weather-header .search-cont .fa-solid {
    width: 10%;
    font-size: 2rem;
  }

  .container .weather-header .search-cont .input-search {
    font-size: 1.4rem;
  }

  .container .weather-body {
    width: 100%;
    height: auto;
    gap: 1rem;
  }

  .container .weather-body .weather-city {
    font-size: 2.5rem;
  }

  .container .weather-body .weather-date-time {
    font-size: 1.2rem;
  }

  .container .weather-body .weather-data .weather-forecast {
    width: 6rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }

  .container .weather-body .weather-temp {
    font-size: 2.4rem;
  }

  .container .weather-body .weather-minmax {
    font-size: 1.4rem;
    gap: 2rem;
    flex-direction: column;
  }

  .container .weather-details-cont {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 1.2rem;
  }

  .container .weather-details-cont .weather-card {
    padding: 1rem;
    font-size: 1.2rem;
    gap: 0.8rem;
  }

  .container .weather-details-cont .weather-card .fa-droplet {
    font-size: 1.8rem;
  }

  .container .weather-details-cont .weather-card div .heading {
    font-size: 1.4rem;
  }

  .container .weather-details-cont .weather-card div .icon-weather {
    font-size: 1.8rem;
  }
}
