body {
    width: 100vw;
    height: 100vh;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.container {
    height: auto;
    width: auto;
    color: aliceblue;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-radius: 1rem;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    -ms-border-radius: 1rem;
    -o-border-radius: 1rem;
    transition: opacity 0.3s ease;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -ms-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
}

.weather_body,
.weather_info {
    opacity: 1;
    transition: opacity 0.3s ease;
}
.weather_body.hidden,
.weather_info.hidden {
    opacity: 0;
    pointer-events: none;
}

h1{
    text-align: center;
    font-family: 'Raleway', sans-serif;
}
p{
    text-align: center;
}


/* bg color of container according to weather */
.day-clear {
  background: linear-gradient(to bottom, #4da0ff, #a8d8ff);
}
.night-clear {
  background: linear-gradient(to bottom, #0f2027, #203a43, #2c5364);
}
.day-cloud {
  background: linear-gradient(to bottom, #a1c4fd, #c2e9fb);
}
.night-cloud {
  background: linear-gradient(to bottom, #3e4e5e, #596a7b);
}
.day-fog {
  background: linear-gradient(to bottom, #dfe4ea, #f1f2f6);
}
.night-fog {
  background: linear-gradient(to bottom, #7f8c8d, #95a5a6);
}
.day-rain {
  background: linear-gradient(to bottom, #4d5e6f, #7b8c9d);
}
.night-rain {
  background: linear-gradient(to bottom, #2c3e50, #4b6b87);
}
.day-snow {
  background: linear-gradient(to bottom, #e3e3e3, #ffffff);
}
.night-snow {
  background: linear-gradient(to bottom, #ccd6dd, #ffffff);
}

/* text color according weather */
.container.day-clear,
.container.day-cloud,
.container.day-fog,
.container.day-snow {
  color: #1a1a1a; 
}
.container.night-clear,
.container.night-cloud,
.container.night-fog,
.container.night-rain,
.container.night-snow,
.container.day-rain {
  color: aliceblue;
}

/* searchbar section  */
.weather_search{
    position: relative;
    transition: transform 0.3s ease;
}
.city_name {  /*input part */
    width: 92%;
    border: none;
    outline: none;
    height: 2.2rem;
    max-width: 400px;
    padding-left: 2rem;
    border-radius: 1rem;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    -ms-border-radius: 1rem;
    -o-border-radius: 1rem;
}
.magnifying-glass {
    position: absolute;
    top: 29%;
    left: 2%;
    height: 16px;
    pointer-events: none;
}
.weather_search:focus-within {
    transform: scale(1.08);
    -webkit-transform: scale(1.08);
    -moz-transform: scale(1.08);
    -ms-transform: scale(1.08);
    -o-transform: scale(1.08);
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

/* suggestions  */
.suggestions-list {
    position: absolute;
    z-index: 999;
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
    background-color: #7bc3ef;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 1rem;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    -ms-border-radius: 1rem;
    -o-border-radius: 1rem;
}

.suggestions-list li {
    padding: 0.5rem;
    cursor: pointer;
    background-color: #7bc3ef;
    border: 1px solid rgb(240, 233, 233);
}
.suggestions-list li.active {
  background-color: #e0e0e0;
}
.suggestions-list li:hover {
    background-color: #e0e0e0;
}


/* time info in body  */
.timeinfo {
    display: flex;
    justify-content: space-around;
    height: 2.4rem;
    margin: 1rem;
    margin-bottom: 0rem;
    font-family:'Raleway', sans-serif;

     p{
        display: flex;
        align-items: center;
        margin: 0;
        font-size: 1.5rem;
        font-weight: 600;
    }
    & .weathre_day{
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        & p{
            font-size: 1rem;
        }
    }
}


/* gif according to weather */
.weather_icon{
    display: flex;
    align-items: center;
    justify-content: center;
    .weather-gif{
        height: 11rem;
    }
}

/* temp  part  */
.weather_temp{
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 550;
    margin: 0rem;
}
.weather_minmax{
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    font-weight: 550;
}


/* speed feelslike pressure  */
.weather_info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1rem;

    & .weather_card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        width: 6rem;
        background-color: #687991;
        color: #fff;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        border-radius: 1rem;

        img{
            height: 2.8rem;
            width: auto;
        }
        &p{
            font-size: 1.8rem;
        }
    }
}


/* preloader  */
@import "compass/css3";
.preloader {
	position: absolute;
	margin-left: -55px;
	margin-top: -100px;
	height: 110px;
	width: 110px;
	left: 50%;
	top: 50%;
}

svg {
  width: 110px;
  height: 110px;
}

path {
  stroke: #3d3f41;
  stroke-width: 0.25;
  fill: #241E20;
}

#cloud {
  position: relative;
  z-index: 2;
}

#cloud path {
  fill: #efefef;
}

#sun {
  margin-left: -10px;
  margin-top: 6px;
  opacity: 0;
  width: 60px;
  height: 60px;
  position: absolute;
  left: 45px;
  top: 15px;
  z-index: 1;
  
  animation-name: rotate;
  animation-duration: 16000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

#sun path {
  stroke-width: 0.18;
  fill: #faa907;
}


@keyframes rotate {
  0% {
    transform: rotateZ(0deg);
  }

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

/* Rain */
.rain {
  position: absolute;
  width: 70px;
  height: 70px;
  margin-top: -32px;
  margin-left: 19px;
}

.drop {
  opacity: 1;
  background: #2e88e3;
  display: block;
  float: left;
  width: 3px;
  height: 10px;
  margin-left: 4px;
  border-radius: 0px 0px 6px 6px;
  
  animation-name: drop;
  animation-duration: 350ms;
  animation-iteration-count: infinite;
}

.drop:nth-child(1) {
  animation-delay: -130ms;
}
.drop:nth-child(2) {
  animation-delay: -240ms;
}
.drop:nth-child(3) {
  animation-delay: -390ms;
}
.drop:nth-child(4) {
  animation-delay: -525ms;
}
.drop:nth-child(5) {
  animation-delay: -640ms;
}
.drop:nth-child(6) {
  animation-delay: -790ms;
}
.drop:nth-child(7) {
  animation-delay: -900ms;
}
.drop:nth-child(8) {
  animation-delay: -1050ms;
}
.drop:nth-child(9) {
  animation-delay: -1130ms;
}
.drop:nth-child(10) {
  animation-delay: -1300ms;
}

.preloader {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.preloader.show {
  opacity: 1;
  visibility: visible;
}

@keyframes drop {
  50% {
    height: 45px;
    opacity: 0;
  }
  51% {
    opacity: 0;
  }
  100% {
    height: 1px;
    opacity: 0;
  }
}

.text {
	font-family: Helvetica, 'Helvetica Neue', sans-serif;
	letter-spacing: 1px;
	text-align: center;
	margin-left: -43px;
	font-weight: bold;
	margin-top: 20px;
	font-size: 11px;
	color: #201f1f;
	width: 200px;
}


/* responsive site  */
@media (max-width: 600px) {
  body {
    height: auto;
  }

  .container {
    width: 80%;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .weather_search:focus-within {
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
  }
  .weather_temp {
    margin: 0.5rem;
  }

  .weather_minmax p {
    margin: 0.5rem;
  }

  .weather_info {
    grid-template-columns: 1fr;
    gap: 0;

    .weather_card {
      width: auto;
      display: flex;
      padding: 0.4rem;
      margin: 0.4rem;

      p {
        margin: 0.2rem;
        width: auto;
      }
    }
  }
}