/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/* fonts */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap");

/* reset */

/* Box sizing rules */
*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  -webkit-text-decoration-skip: ink;
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    -webkit-animation-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    -webkit-animation-iteration-count: 1 !important;
    animation-iteration-count: 1 !important;
    -webkit-transition-duration: 0.01ms !important;
    -o-transition-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* end reset */

body {
  background-size: cover;
  background-position: 50%;
  background-repeat: no-repeat;
  font-family: "Open Sans", sans-serif;
}

/* bg */
.bg {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: -1;
}
.bg img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.weather-app {
  min-height: 100vh;
  width: 100%;
  position: relative;
}
.weather-app,
.weather-detials,
.weather {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

/* start weather dev  */

.weather {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  width: 60%;
  padding: 3rem 5rem 7rem;
}
.weather h1 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}
.weather-detials {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  color: #fff;
}
.weather-detials div:last-child {
  margin-left: 1.5rem;
}
.temp {
  font-size: 7rem;
}
.city {
  font-size: 3rem;
  text-transform: capitalize;
}
.date {
  font-size: 0.9rem;
}
.sky {
  text-align: center;
}

/* end weather dev  */

/* start panel */

.panel {
  width: 40%;
  background-color: rgba(0, 15, 46, 0.2);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: #ddd;
  padding-left: 2.5rem;
}
.panel .form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}
.panel input[type="text"] {
  width: 70%;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.664);
  font-size: 1.5rem;
  margin-top: 2rem;
  padding: 1rem 0;
  color: #ddd;
}
.panel input[type="text"]::-webkit-input-placeholder {
  color: #ddd;
}
.panel input[type="text"]:-moz-placeholder {
  color: #ddd;
}
.panel input[type="text"]::-ms-input-placeholder {
  color: #ddd;
}
.panel input[type="text"]::-o-input-placeholder {
  color: #ddd;
}
.panel input[type="text"]:focus {
  outline: none;
}

.details-wrapper {
  display: -ms-grid;
  display: grid;
  row-gap: 5rem;
  padding: 2rem 0;
}
.city-details,
.weather-stats {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-right: 5rem;
}

.weather-stats span,
.city-details span {
  display: block;
  margin: 1rem 0;
  font-size: 1.2rem;
}
.city-details::after,
.weather-stats::after {
  content: "";
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  position: absolute;
  left: 0;
  bottom: 0;
}
.weather-stats {
  margin-bottom: 0.5rem;
}
.weather-stats div,
.city-details div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}
.weather-stats h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  padding: 1.5rem 0;
  padding-top: 0;
}

/* end panel */
@media (max-width: 1000px) {
  html {
    font-size: 14px;
  }
  .weather {
    padding-left: 2rem;
  }
}

@media (max-width: 740px) {
  html {
    font-size: 12px;
  }
  .weather-app {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }
  .weather {
    width: 100%;
  }
  .panel {
    width: 100%;
  }
  .btn {
    width: 5%;
  }
}

@media screen and (max-width: 650px) {
  html {
    font-size: 13px;
  }
  .temp {
    font-size: 4rem;
  }
  .city {
    font-size: 1.2rem;
  }
  .btn {
    width: 15%;
  }
}

.btn {
  width: 20%;
  border: none;
  background-color: #e97603;
  cursor: pointer;
  display: -ms-grid;
  display: grid;
  place-items: center;
}
.btn img {
  width: 40%;
  height: auto;
}

/* start media */
