/*background*/
body {
  background-color: #ffffff;
  color: #ffffff;
  font-family: 'Raleway', sans-serif;
}

main img {
  transition: transform 0.5s ease-in-out;
}

main img:hover {
  transform: scale(1.1);
}

/*header*/

#screen-navbar {
  width: 100vm;
  margin-inline: auto;
  padding: 16px;
  align-items: center;
  display: flex;
  justify-content:space-between;
}


.logo img {
  width: 200px;
  height: auto;
  transition: transform 0.1s ease-in-out;
}

.logo:hover img {
  transform: scale(1.1);
}

link {
  color: #4f4b92;
  font-family: 'Raleway', sans-serif;
  font-size: 30px;
}

.search-view {
  background-color: #4f4b92;
  height: 50px;
  width: 250px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  cursor: text;
  background-color: (270, red, blue);
}

header button {
  display: none;
}

.search-bar {
  display: flex;
  align-items: center;
}

.icon {
  padding: 5px 0px 0px 15px;
}

.icon .iconify {
  color: #fff;
  padding: 0 16px;
  display: flex;
  align-items: center;
  font-size: 30px;
}

.input {
  flex: 1;
}

.input input {
  background-color: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  outline: none;
  width: 90%;
}

.my-location-button {
  background-color: #4f4b92;
  color: #131214;
  padding: 1em;
  border-radius: 20px;
  transition: background-color 0.3s ease-in-out;
  cursor: pointer;
}

.my-location-button .iconify {
  font-size: 40px;
}

/*mobile*/


.nav-icon {
  position: relative;
  height: 3rem;
  width: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  cursor: pointer;
  z-index: 1001;
}

.nav-icon div {
  width: 2.5rem;
  height: 0.3rem;
  background: #ffffff;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.overlay {
  height: 0%;
  width: 100%;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  background-color: #366d9d;
  overflow-y: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: relative;
  top: 25%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.overlay-content a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: white;
  display: block;
  transition: 0.3s;
}


/*loader*/

.loader-div {
  background: #4f4b92;
  height: 100%;
  z-index: 10;
  top: 0;
  overflow: hidden;
  left: 0;
  bottom: 0;
  position: fixed;
  width: 100%;
}

.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  animation-name: beesandbombs;
  animation-duration: 4s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.82, 0.01, 0.15, 1.01);
}

.loading .circle {
  position: relative;
  background: white;
  width: 100px;
  height: 100px;
  border-radius: 100%;
  margin: 10px;
  float: right;
  animation-name: beesandbombscircle;
  animation-duration: 4s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.82, 0.01, 0.15, 1.01);
}

.loading .circle:before {
  content: "";
  position: absolute;
  background: #4f4b92;
  width: 50px;
  height: 50px;
  animation-name: beesandbombscirclebox;
  animation-duration: 4s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.82, 0.01, 0.15, 1.01);
}

.loading .circle:nth-child(1)::before {
  left: 0;
  bottom: 0;
  border-bottom-left-radius: 40px;
}

.loading .circle:nth-child(2)::before {
  right: 0;
  bottom: 0;
  border-bottom-right-radius: 40px;
}

.loading .circle:nth-child(3)::before {
  top: 0;
  left: 0;
  border-top-left-radius: 40px;
}

.loading .circle:nth-child(4)::before {
  top: 0;
  right: 0;
  border-top-right-radius: 40px;
}

.loading:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  background: #4f4b92;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  animation-name: beesandbombsrev;
  animation-duration: 4s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.82, 0.01, 0.15, 1.01);
}

@keyframes beesandbombs {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -50%) rotate(90deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

@keyframes beesandbombsrev {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -50%) rotate(90deg);
  }
  52% {
    visibility: hidden;
  }
  100% {
    transform: translate(-50%, -50%) rotate(0deg);
    visibility: hidden;
  }
}

@keyframes beesandbombscircle {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

@keyframes beesandbombscirclebox {
  0% {
    visibility: hidden;
  }
  50% {
    visibility: hidden;
  }
  51% {
    visibility: visible;
  }
  100% {
    visibility: visible;
  }
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

@media (max-width: 850px) {
  .display {
    display: block;
  }
  .display-yes,
  nav ul {
    display: none;
  }
  .landing-main,.gotten-back {
    flex-direction: column;
  }
  .landing-main img,.gotten-back .logo-gotten {
    width: 85%;
  }
  .search {
    width: auto;
  }
  .other {
    flex-wrap: wrap;
  }
  .fresh .content {
    flex-direction: column;
  }
  .details {
    width: 50%;
  }
  .weather {
    padding: 0;
  }
  .gotten-back .details1 p{
    font-size: initial;
  }
  .gotten-back h1{
    font-size: 3.5rem;
  }
}

/*main*/

main {
  width: 100vm;
}

main .container {
  width: 95%;
  margin-inline: auto;
  padding: 16px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
}

.content-left {
  width: 17.5%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.current-weather {
  background-color: #000000;
  color: #ffffff;
  width: 115%;
  height: 326px;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.content-right {
  width: 65%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/*cuw*/

.current-weather {
  background-color: #4f4b92;
  transition: background-color 0.5s ease;
}

.current-weather .card {
  padding: 2rem;
  height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.current-weather .card h2 {
  font-size: 3rem;
}

.current-weather .card .weather p {
  font-size: 8rem;
}

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

.weather img {
  width: 30%;
  height: auto;
}

.current-weather .card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #ffffff;
  padding-top: 15px;
}

.current-weather .card ul li {
  display: flex;
  align-items: center;
  color: #ffffff;
}

.current-weather .card ul li .iconify {
  font-size: 50px;
  margin-right: 10px;
  color: #ffffff;
}

/*df*/

.daily-forecast {
  background-color: #4f4b92;
  color: #ffffff;
  width: 115%;
  border-radius: 50px;
  transition: background-color 0.5s ease;
}

.daily-forecast .card {
  padding: 2rem;
}

.h2 {
  font-size: 20px;
  padding-left: 15px;
}

.daily-forecast .card ul {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.daily-forecast .card ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.daily-forecast .card ul li span {
  color: #ffffff;
}

.daily-forecast .card ul img {
  width: 16%;
  height: auto;
}

/*highlights*/

.air-condition {
  background-color: #4f4b92;
  color: #ffffff;
  width: 100%;
  border-radius: 50px;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.air-condition .container {
  width: 97%;
  display: flex;
}

.air-condition .container h2 {
  font-size: 30px;
}

.air-condition h2 {
  font-size: 20px;
  padding-bottom: 10px;
  padding-left: 10px;
}

.long {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.long li {
  background-color: #4f4b92;
  width: 50%;
  height: 200px;
  margin: 10px;
  border-radius: 50px;
  transition: background-color 0.5s ease;
}

.sunrise,
.sunset {
  padding: 5px;
  font-size: 25px;
}

.sunrise .card .iconify,
.sunset .card .iconify {
  font-size: 100px;
}

.sunrise p,
.sunset p {
  font-size: 80px;
}

.sunrise h3,
.sunset h3 {
  color: #ffffff;
  font-size: 30px;
}

.sunrise .card,
.sunset .card {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: 9rem;
}

.short {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.short li {
  background-color: #4f4b92;
  width: 25%;
  height: 150px;
  margin: 10px;
  border-radius: 50px;
  transition: background-color 0.5s ease;
}

.short li .card {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  height: 130px;
}

.short h3 {
  font-size: 17px;
  color: #ffffff;
}

.short .iconify {
  font-size: 50px;
}

.short p {
  font-size: 30px;
}

.box {
  padding: 15px;
}

/*hf*/

.hourly-forecast {
  width: 100%;
  border-radius: 50px;
}

.hourly-forecast .container {
  width: 100%;
  padding: 0;
}

.hourly-forecast .container ul {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
}

.hourly-forecast ul li {
  background-color: #4f4b92;
  font-size: 20px;
  width: 14.28%;
  height: 168px;
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  transition: background-color 0.5s ease;
}

.hourly-forecast img {
  max-width: 50%;
  height: auto;
}

/*dt*/

@media all and (min-width: 1729px) {
  #mobile-navbar {
    display: none;
  }

  main .container {
    justify-content: space-evenly;
  }

  .hourly-forecast .container{
    margin-top: 20px;
  }


}

@media all and (max-width: 1729px) {
  #mobile-navbar {
    display: none;
  }

  main .container {
    width: 95%;
    justify-content: space-evenly;
  }
}

/* TABLET LANDSCAPE */

@media all and (min-width: 768px) and (max-width: 1024px) {
  #mobile-navbar {
    display: none;
  }

  main .container {
    width: 100%;
  }

  .content-left {
    width: 100%;
    flex-direction: row;
  }

  .content-right {
    width: 100%;
    margin-top: 30px;
  }
}

/* TABLET */
@media all and (min-width: 480px) and (max-width: 768px) {
  #screen-navbar {
    display: none;
  }

  main .container {
    width: 95%;
  }

  .content-left {
    width: 100%;
    flex-direction: row;
  }

  .content-right {
    width: 100%;
    margin-top: 30px;
  }
}

/* PHONE */
@media all and (max-width: 480px) {
  #screen-navbar {
    display: none;
  }

  #mobile-navbar {
    display: flex;
  }

  .search-view {
    width: 90%;
  }


  main .container {
    width: 90%;
    margin: 0;
  }

  .content-left {
    width: 60%;
  }

  .content-right {
    width: 100%;
    margin-top: 8%;
  }

  .long {
    flex-wrap: wrap;
  }

  .long li {
    width: 100%;
  }

  .air-condition .container {
    padding: 0;
  }

  .sunrise .card p,
  .sunset .card p {
    font-size: 10px;
  }

  .short {
    flex-wrap: wrap;
  }

  .short li {
    width: 100%;
  }

  .hourly-forecast {
    margin-top: 20px;
  }

  .hourly-forecast .container {
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
  }

  .hourly-forecast .container ul li {
    width: 100px;
  }

  .daily-forecast {
    display: none;
  }
}
