/*
=============== 
Global Styles
===============
*/

* {
  margin: 0;
  box-sizing: border-box;
  padding: 0;
}

/*
=============== 
Variables
===============
*/

:root {
  --clr-grey-1: hsl(209, 61%, 16%);
  --clr-grey-2: hsl(211, 39%, 23%);
  --clr-grey-3: hsl(209, 34%, 30%);
  --clr-grey-4: hsl(209, 28%, 39%);
  --clr-grey-5: hsl(210, 22%, 49%);
  --clr-grey-6: hsl(209, 23%, 60%);
  --clr-grey-7: hsl(211, 27%, 70%);
  --clr-grey-8: hsl(210, 31%, 80%);
  --clr-grey-9: hsl(212, 33%, 89%);
  --clr-grey-10: hsl(210, 36%, 96%);
  --clr-white: #fff;
  --ff-primary: 'Lato', sans-serif;
  --transition: all 0.3s linear;
  --spacing: 0.15rem;
  --radius: 0.5rem;
  --light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --dark-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/*
=============== 
body
===============
*/
.all {
  height: 100vh;
  width: 100vw;
  background: linear-gradient(
      rgba(159, 226, 231, 0.2),
      rgba(155, 120, 120, 0.4)
    ),
    url('./images/pexels-eberhard-grossgasteiger-844297.jpg') center/cover
      no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}
/*
=============== 
weather center
===============
*/
#weather {
  width: 80vw;
  height: 75vh;
  margin: 0 auto;
  max-width: 650px;
  min-height: 350px;
  background: linear-gradient(rgba(192, 54, 54, 0.2), rgba(134, 15, 15, 0.3));
  /* transform: translate(0, 15%); */
  border-radius: var(--radius);
  box-shadow: var(--dark-shadow);
  position: relative;
}

/*
=============== 
App Title
===============
*/

.title {
  text-align: center;
  padding: 1.5rem;
  font-size: 1.5rem;
  letter-spacing: var(--spacing);
  color: var(--clr-grey-1);
  font-family: 'Arvo', serif;
  text-transform: capitalize;
}

/*
=============== 
weather settings (units)
===============
*/

.settings {
  text-align: center;
  position: absolute;
  bottom: 10%;
  right: 0%;
  display: flex;
  width: 100px;
  background: transparent;
}
.units {
  font-size: 1.5rem;
  background: transparent;
  border: transparent;
  transition: var(--transition);
}
.unit-settings {
  display: flex;
}

.units-Celsius {
  width: 2.3rem;
  height: 1.3rem;
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  border: none;
  cursor: pointer;
  box-shadow: var(--dark-shadow);
  color: var(--clr-grey-1);
  font-family: 'Noto Serif JP', serif;
  transition: var(--transition);
}
.units-Fahrenheit {
  width: 2.3rem;
  height: 1.3rem;
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border: none;
  border-left: 0.1rem solid var(--clr-grey-1);
  cursor: pointer;
  box-shadow: var(--dark-shadow);
  color: var(--clr-grey-1);
  font-family: 'Noto Serif JP', serif;
  transition: var(--transition);
}
.avtive-btn {
  color: rgb(255, 255, 255);
  background: var(--clr-grey-1);
}
.units-Celsius:hover {
  color: rgb(255, 255, 255);
  background: var(--clr-grey-1);
}
.units-Fahrenheit:hover {
  color: rgb(255, 255, 255);
  background: var(--clr-grey-1);
}

/*
=============== 
weather input data
===============
*/

#waether-data {
  background: rgba(238, 82, 82, 0.445);
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: var(--radius);
  width: 60%;
  max-width: 350px;
  height: 45%;
  min-height: 210px;
  max-height: 220px;
  padding-top: 0.5rem;
}

input {
  border-radius: var(--radius);
  width: 95%;
  height: 2rem;
  margin-bottom: 0.5rem;
  border: transparent;
  padding: 0.2rem;
  font-size: 0.9rem;
  font-family: 'Lobster', cursive;
  letter-spacing: 0.1rem;
  color: var(--clr-grey-2);
  text-transform: capitalize;
  box-shadow: var(--light-shadow);
}

textarea {
  border-radius: var(--radius);
  width: 95%;
  height: 4rem;
  margin-bottom: 0.5rem;
  border: transparent;
  padding: 0.2rem;
  font-size: 0.9rem;
  font-family: 'Lobster', cursive;
  letter-spacing: 0.1rem;
  color: var(--clr-grey-2);
  text-transform: capitalize;
  box-shadow: var(--light-shadow);
}
.btn {
  width: 5rem;
  height: 2rem;
  border-radius: var(--radius);
  border: transparent;
  box-shadow: var(--dark-shadow);
  color: var(--clr-grey-1);
  font-family: 'Noto Serif JP', serif;
  text-transform: uppercase;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.3rem;
}
.btn:hover {
  color: rgb(255, 255, 255);
  background: var(--clr-grey-1);
  transform: scale(1.1);
}

/*
=============== 
weather Output
===============
*/
.weather-output {
  display: none;
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  min-height: 550px;
  background: whitesmoke;
  padding: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.Evening {
  background: linear-gradient(
      rgba(21, 155, 233, 0.219),
      rgba(8, 54, 129, 0.459)
    ),
    rgb(33, 105, 187);
}

.Morning {
  background: linear-gradient(
      rgba(233, 201, 21, 0.219),
      rgba(237, 241, 16, 0.459)
    ),
    rgb(243, 222, 128);
}

/*
=============== 
sun animation
===============
*/
.Morning-active {
  animation-name: rotatez;
  animation-duration: 10s;
  animation-delay: 1s;
  animation-iteration-count: infinite;
}

@keyframes rotatez {
  0% {
    transform: rotatez(0deg);
  }
  25% {
    transform: rotatez(90deg);
  }
  50% {
    transform: rotatez(180deg);
  }
  75% {
    transform: rotatez(270deg);
  }
  100% {
    transform: rotatez(360deg);
  }
}

.avtive-list {
  display: block;
}

.location {
  display: flex;
  gap: 1rem;
  font-size: 1.3rem;
  color: var(--clr-grey-1);
}
.weather-image {
  display: block;
  padding: 2rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.weather-img {
  width: 120px;
}
.weather-discriptin {
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: var(--spacing);
  color: var(--clr-grey-1);
  text-transform: capitalize;
  font-family: 'Noto Serif', serif;
}

.user-feeling {
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: var(--spacing);
  color: var(--clr-grey-1);
  text-transform: lowercase;
  font-family: 'Noto Serif', serif;
}
.weather-info {
  text-align: center;
}
.temprature {
  font-size: 5rem;
  padding-top: 3rem;
  letter-spacing: var(--spacing);
  color: var(--clr-grey-1);
  font-family: 'Nanum Myeongjo', serif;
  transform: translatex(40px);
}
.more-info {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  justify-content: space-between;
  max-width: 12rem;
  letter-spacing: var(--spacing);
  color: var(--clr-grey-1);
  font-family: 'Nanum Myeongjo', serif;
}

.date-time {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  justify-content: space-between;
  max-width: 13rem;
  letter-spacing: var(--spacing);
  color: var(--clr-grey-1);
  font-family: 'Nanum Myeongjo', serif;
  padding-top: 1.5rem;
}

.close-btn {
  position: absolute;
  right: 10%;
}
.close-button {
  border: transparent;
  background: transparent;
  font-size: 1.5rem;
  color: rgb(207, 115, 115);
  cursor: pointer;
  transition: var(--transition);
}
.close-button:hover {
  color: rgb(199, 15, 15);
  transform: scale(1.2);
}

.more-info-list {
  display: grid;
  grid-template-rows: 2rem;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 550px;
  background: linear-gradient(
      rgba(233, 201, 21, 0.219),
      rgba(237, 241, 16, 0.459)
    ),
    rgb(243, 222, 128);
  padding: 2rem 0.5rem;
  padding-top: 0rem;
  border-radius: var(--radius);
  letter-spacing: var(--spacing);
  color: var(--clr-grey-1);
  font-family: 'Nanum Myeongjo', serif;
  transition: var(--transition);
  transform: translatey(95%);
}

.more-list-active {
  transform: translatey(0%);
}

.Evening1 {
  background: linear-gradient(
      rgba(21, 155, 233, 0.219),
      rgba(8, 54, 129, 0.459)
    ),
    rgb(33, 105, 187);
}

.Morning2 {
  background: linear-gradient(
      rgba(233, 201, 21, 0.219),
      rgba(237, 241, 16, 0.459)
    ),
    rgb(243, 222, 128);
}

.btn-more {
  width: 10rem;
  margin-right: auto;
  margin-left: auto;
  border-radius: var(--radius);
  border: transparent;
  box-shadow: var(--dark-shadow);
  color: var(--clr-grey-1);
  font-family: 'Noto Serif JP', serif;
  text-transform: uppercase;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.5rem;
  align-self: center;
  margin-bottom: 0.5rem;
}
.more-info-2 {
  display: grid;
  /* grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); */
  grid-template-rows: repeat(6, 3rem);
  align-items: center;
  gap: 0.2rem;
}
.more {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  border-bottom: 0.05rem solid rgba(129, 121, 86, 0.644);
}
.logo-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}
.logo-new {
  display: inline-block;
  width: 40px;
}
.logo-new-t {
  display: inline-block;
  width: 20px;
  height: 37px;
}
.title-new {
  font-size: 1rem;
}

/*
=============== 
Adding media query for responsive design
===============
*/
@media screen and (min-width: 450px) {
  .weather-img {
    width: 150px;
  }
  .title-new {
    font-size: 1.12rem;
  }
  #weather {
    width: 70vw;
  }
}

@media screen and (max-height: 640px) {
  .temprature {
    font-size: 5rem;
    padding-top: 0.3rem;
  }
  .weather-output {
    min-height: 465px;
  }
  .more-info-list {
    min-height: 465px;
  }
}
@media screen and (min-width: 850px) and (min-height: 750px) {
  #weather {
    width: 50vw;
    height: 75vh;
  }
  .title {
    font-size: 2rem;
  }
  .temprature {
    font-size: 7rem;
    padding-top: 1.5rem;
  }
  .weather-output {
    min-height: 615px;
  }
  .more-info-list {
    min-height: 615px;
  }
  .weather-img {
    width: 200px;
  }
  .user-feeling {
    font-size: 2rem;
  }
  .close-button {
    font-size: 2.2rem;
  }
  .location {
    font-size: 2rem;
  }
  .more-info {
    max-width: 17rem;
    padding: 1rem;
  }
}

@media screen and (min-width: 950px) and (min-height: 800px) {
  .temprature {
    font-size: 7rem;
    padding-top: 3rem;
  }
  .weather-output {
    min-height: 650px;
  }
  .more-info-list {
    min-height: 650px;
  }
  .more-info {
    max-width: 20rem;
  }
}
