@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  color: white;
  font-weight: 600;
}

body {
  background: url("./assets/bg.jpg");
  width: 100%;
  height: 100dvh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

body::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100dvh;
  background: rgb(0, 0, 0, 0.15);
  backdrop-filter: blur(15px);
}

/* Utilities */

.regular_text {
  font-weight: 400;
}

/* End Utilities */

.main_container {
  width: 300px;
  height: 496px;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgb(0, 0, 0, 0.15),
    rgb(255, 255, 255, 0.15)
  );
  border-radius: 12px;
  backdrop-filter: blur(100px);
  padding: 20px;
}

/* Input Container */

.input_container {
  position: relative;
  margin-bottom: 25px;
}

.city_input {
  width: 100%;
  padding: 10px 16px;
  border-radius: 99px;
  border: 3px solid transparent;
  background: rgb(0, 0, 0, 0.15);
  outline: none;
  font-weight: 500;
  transition: 0.25s border;
  padding-right: 45px;
}

.city-input:focus {
  border: 3px solid rgb(0, 0, 0, 0.15);
}

.city_input::placeholder {
  color: rgb(255, 255, 255, 0.75);
}

.search_btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  display: flex;
  cursor: pointer;
}
/* End Input Container */

/* Section: Weather Info  */

.weather_info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.location_date_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.location {
  display: flex;
  align-items: center;
  gap: 6px;
}

.weather_summary_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.weather_summary_img {
  width: 120px;
  height: 120px;
}

.weather_summary_info {
  text-align: end;
}

.weather_condition_container {
  display: flex;
  justify-content: space-between;
}

.condition_item {
  /* border: solid; */
  display: flex;
  align-items: center;
  gap: 6px;
}
.condition_item span {
  font-size: 30px;
}

.forecast_item_container {
  display: flex;
  gap: 15px;
  overflow-x: scroll;
  padding-bottom: 12px;
}
.forecast_item_container::-webkit-scrollbar {
  height: 8px;
}

.forecast_item_container::-webkit-scrollbar-track {
  background: rgb(0, 0, 0, 0.1);
  border-radius: 99px;
}
.forecast_item_container::-webkit-scrollbar-thumb {
  background: rgb(0, 0, 0, 0.15);
  border-radius: 99px;
}

.forecast_items {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  gap: 6px;
  padding: 10px;
  min-width: 70px;
  background: rgb(255, 255, 255, 0.1);
  transition: 0.3s background;
}

.forecast_items:hover {
  background: rgb(255, 255, 255, 0.15);
}
.forecast_item_img {
  width: 35px;
  height: 35px;
}
/* Section: Weather Info End */

/* Section: Message  */

.section_msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  margin-top: 25%;
}

.section_msg img{
  height: 180px;
  width: fit-content;
}
/* End Section: Message  */
