@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

:root {
    --primary-color: white;
    --text-color: black;
    --body-color: #f2f5fc;
    --load-color: white;
}



* {
    margin: 0;
    margin-top: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
}
::placeholder {
    color: white;
}
.title {
    font-size: 20px;
}
.theme {
    display: none;
}
body {
    text-align: center;
    margin: 0;
    padding: 0;
    height: 100vh;
    background-image: url('https://i.ibb.co/Qc5Yv3G/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    background-attachment: fixed;
    color: var(--text-color);
    height: 100%;
    width: 100%;
    padding-bottom: 7rem;
}
.header {
    border-bottom: solid 1px none;
    border-radius: 1.4rem;
    height: 3rem;
    position: fixed;
    width: 90%;
    padding: 5px;
    bottom: 15px;
    backdrop-filter: blur(9px);
    left: 50%;
   transform: translateX(-50%);
    box-shadow: 10px 10px 58px 0px rgba(0,0,0,0.68);
-webkit-box-shadow: 10px 10px 58px 0px rgba(0,0,0,0.68);
-moz-box-shadow: 10px 10px 58px 0px rgba(0,0,0,0.68);
    z-index: 996;
}

.header a {
    text-decoration: none;
    margin-top: 5px;
    color: white;
}

.header img {
    height: 25px;
    margin-top: 9px;
    margin-right: 3px;
}

.search {
    width: 100%;
    display: flex;
    gap: 5px;
    justify-content: center;
    
}

#location {
    border: solid 1px white;
    padding: 10px;
    border-radius: 25px;
    height: 23px;
    width: 50%;
    outline: none;
}

input {
    background-color: transparent;
    color: white;
}

select option {
  font-size: 14px;
}

button {
  padding: 10px 20px;
  background: transparent;
  color: #fff;
  border: solid 1px white;
  height: 45px;
  width: 45px;
  border-radius: 22.5px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}
button i {
    font-size: 20px;
}
button:hover {
  background-color: #0055CC;
}

.container {
    margin: auto;
    width: 17rem;
  /*  background: linear-gradient(135deg, RGB(108, 100, 251), RGB(116, 140, 241)); */
    backdrop-filter: blur(9px);
    padding: 20px;
    padding-top: 30px;
    padding-bottom: 30px;
    border-radius: 13px;
    color: #fff;
    box-shadow: 10px 10px 58px 0px rgba(0,0,0,0.68);
-webkit-box-shadow: 10px 10px 58px 0px rgba(0,0,0,0.68);
-moz-box-shadow: 10px 10px 58px 0px rgba(0,0,0,0.68);
}

#location-text {
    padding: 0;
    margin-top: 15px;
    margin-bottom: 20px;
    margin-right: 20px;
    margin-left: 20px;
    text-align: center;
    font-size: 30px;
    font-weight: bold;
}

#weather-info {
    
    padding: 0;
    margin-top: 15px;
    margin-right: 10px;
    margin-left: 10px;
    text-align: center;
    border-radius: 12px;
}

#weather-info p {
    color: #fff;
}

.weather-image {
    height: 80px;
    width: 80px;
    animation: fadeIn 1s ease-in-out;
}

.weather-image img {
  
}
#forecast {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    
}
.forecast-result {
    background: #5b548a;
    max-width: 80px;
    color: white;
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    border-radius: 8px;
    margin: 5px;
    justify-content: center;
}
.forecast-result p {
    margin-bottom: 10px;
    margin-top: 5px;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.loader-3 {
  width: 48px;
  height: 48px;
  margin-right: auto;
  margin-left: auto;
  border: 5px solid #FFF;
  border-radius: 50%;
  display: none;
  box-sizing: border-box;
  position: relative;
  animation: pulse 1s linear infinite;
}
.loader-3:after {
  content: '';
  position: absolute;
  width: 48px;
  height: 48px;
  border: 5px solid #FFF;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: scaleUp 1s linear infinite;
}

@keyframes scaleUp {
  0% { transform: translate(-50%, -50%) scale(0) }
  60% , 100% { transform: translate(-50%, -50%)  scale(1)}
}
@keyframes pulse {
  0% , 60% , 100%{ transform:  scale(1) }
  80% { transform:  scale(1.2)}
}


.load {
    height: 100%;
    width: 100%;
    position: fixed;
    background-color: var(--load-color);
    justify-content: center;
    align-items: center;
    z-index: 998;
    display: block;
}
.loader-4 {
  width: 48px;
  height: 48px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 45vh;
  border: 5px solid var(--text-color);
  border-radius: 50%;
  display: block;
  z-index: 999;
  box-sizing: border-box;
  position: relative;
  animation: pulse 1s linear infinite;
}
.loader-4:after {
  content: '';
  position: absolute;
  width: 48px;
  height: 48px;
  border: 5px solid var(--text-color);
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: scaleUp 1s linear infinite;
}

@keyframes scaleUp {
  0% { transform: translate(-50%, -50%) scale(0) }
  60% , 100% { transform: translate(-50%, -50%)  scale(1)}
}
@keyframes pulse {
  0% , 60% , 100%{ transform:  scale(1) }
  80% { transform:  scale(1.2)}
}


/* Fade in animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Fade out animation */
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    display: none;
  }
}

/* Small screens (phones) */
@media only screen and (max-width: 600px) {
    body {
        background-image: url('https://i.ibb.co/Qc5Yv3G/background.jpg');
    }
    .container {
        color: white;
    }
  
}

/* Medium screens (tablets) */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
    body {
        background-image: url('https://i.ibb.co/Rg93VyQ/background-large.jpg');
    }
    .container {
        color: #1e1e1e;
        width: 18rem;
    }
    #location {
        border: solid 1px #1e1e1e;
        color: #1e1e1e;
    }
    button {
        border: solid 1px #1e1e1e;
        color: #1e1e1e;
    }
    ::placeholder {
    color: #1e1e1e;
    }
   
}

/* Large screens (desktops) */
@media only screen and (min-width: 1025px) {
    body {
        background-image: url('https://i.ibb.co/Rg93VyQ/background-large.jpg');
    }
    .container {
        color: #1e1e1e;
        width: 19rem;
    }
    }
    #location {
        border: solid 1px #1e1e1e;
        color: #1e1e1e;
    }
    button {
        border: solid 1px #1e1e1e;
        color: #1e1e1e;
    }
    ::placeholder {
    color: #1e1e1e;
    }
}

