/* Font */
@import url("https://fonts.googleapis.com/css2?family=Ubuntu&display=swap");

/* Reset Class */
* {
  padding: 0;
  margin: 0;
  user-select: none;
  box-sizing: border-box;
}

body {
  font-family: "Ubuntu", sans-serif;
  font-size: 1rem;
  height: 100vh;
  width: 100%;
  padding: 2rem 0;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wrapper */
#main {
  width: 360px;
  margin: 0 auto;
  background-color: #fafafa;
  padding: 1rem;
  border-radius: 0.5rem;
  position: relative;
}

/* Change Location */
.change-location {
  display: flex;
  justify-content: start;
  align-items: center;
  position: relative;
}

.change-location img {
  height: 23px;
  width: 23px;
  position: absolute;
  top: 0.065rem;
  left: 0.2rem;
}

.change-location button {
  height: 1.5rem;
  border: none;
  outline: none;
  padding: 0.3rem 0.5rem 0.3rem 1.7rem;
  background-color: #7f8c8d;
  color: #111;
  border-radius: 0.5rem;
  cursor: pointer;
}

/* Current Location */
.current-location {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0 0.3rem 0;
}

.current-location img {
  width: 30px;
  height: 30px;
}

/* Weather Icon */
.weather-icon {
  padding: 0.2rem 0;
  text-align: center;
}

.weather-icon img {
  height: 12rem;
  width: 12rem;
}

/* Weather Info */
.weather-description {
  text-align: center;
  padding: 0 0 0.5rem 0;
}

/* Temperature */
.temperature {
  font-size: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  /* border: 1px solid #000; */
}

.temperature h1 {
  /* border: 1px solid #000; */
  padding: 0 0 0 1rem;
}

.temperature img {
  height: 8.5rem;
  width: 8.5rem;
}

/* Rain prediction */
.humidity {
  /* padding: 1rem 0; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.humidity h3 {
  font-size: 1.5rem;
}

.humidity img {
  height: 30px;
  width: 30px;
}

/* Meadia query */
@media screen and (max-width: 400px) {
  #main {
    width: auto;
  }
}

/* Loader */
.loader {
  height: auto;
  width: auto;
  display: flex;
  position: absolute;
  top: 50%;
  left: 45%;
}

.loader span {
  height: 30px;
  width: 30px;
  border: 3px solid #888;
  border-top: 4px solid #f50057;
  border-radius: 50%;
  animation: loader 1s infinite;
}

.loader p {
  margin: 0.7rem 0 0 0;
}

/* Animation */
@keyframes loader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
