body {
  font-family: "serif,Times New Roman", Times;
  text-align: center;
  margin: 0;
  padding: 0;
}
#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}
.container {
  width: 60%;
  margin: 20px auto;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px gray;
  background-image: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
}

h1 {
  margin: 0;
}

.search-box {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.search-box input {
  width: 60%;
  padding: 10px;
  border-radius: 5px 0 0 5px;
  outline: none;
  border: none;
}

.search-box button {
  font-size: medium;
  padding: 10px;
  border: none;
  outline: none;
  background: #eef;
  color: black;
  cursor: pointer;
  border-radius: 0 5px 5px 0;
}

.weather-info {
  display: flex;
  justify-content: space-around;
  background: #eef;
  padding: 20px;
  border-radius: 10px;
}

.weather-icon {
  width: 100px;
  height: 100px;
}
.text {
  justify-self: center;
}
.location {
  text-align: left;
}

.star {
  font-size: 24px;
  cursor: pointer;
}

.details {
  text-align: left;
}

.forecast {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.day {
  width: 100px;
  background: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0px 0px 5px rgb(179, 179, 179);
}

@media (max-width: 768px) {
  #background-video {
    display: none;
  }
  .container {
    width: 80%;
    margin: 0px auto;
  }
  .search-box input {
    width: 80%;
  }
  .weather-info {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .location {
    text-align: center;
  }
  .details {
    text-align: center;
  }
  .forecast {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }
  .day {
    width: 90%;
    margin: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
}
.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  border-top: 4px solid #fff;
  border-right: 4px solid transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
}
.loader::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border-bottom: 4px solid #ff3d00;
  border-left: 4px solid transparent;
}
.error-message {
  color: red;
  font-size: 18px;
  margin-top: 20px;
  text-align: center;
}
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

