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

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('images/background.png');
    height: 100vh;
    width: 100vw;
}

.search-box {
    display: flex;
    width: 490px;
    align-items: center;    
}

#search-bar {
    width: 100%;
    position: relative;
    left: 5px;
    font-family: 'Jetbrains Mono','Courier New', Courier, monospace;
    font-size: 18px;
    padding: 8px;
    background-color: rgba(29, 28, 28, 0.077);
    backdrop-filter: blur(10px); 
    outline: none;
    border: 2px solid rgba(255, 255, 255, 0.079);
    padding-left: 28px;
    border-radius: 7px;
    padding-right: 35px;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: 7px 10px 20px rgba(9, 9, 9, 0.647);
    z-index: 100;
}

#search-bar:focus {
  box-shadow: 0 4px 16px rgba(33,150,243,0.16);
  border-color: #2196f3;
}

.fa-location-dot {
    position: relative;
    left: 32px;
    color: #f1f1f1d0;
    z-index: 1000;
}

.search-btn {
    position: relative;
    right: 35px;
    font-size: 22px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
    outline: none;
}

.search-btn:active {
    transform: scale(1.2);
}

.container {
    background: rgba(29, 28, 28, 0.077);
    backdrop-filter: blur(10px); 
    width: 450px;
    border-radius: 10px;
    border: 3px solid rgba(255, 255, 255, 0.079);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;  
    margin-top: 1.5em;
    z-index: 10;
    box-shadow: 7px 10px 20px rgba(9, 9, 9, 0.647);
    height: 10px;
    transition: height 0.8s ease;
    overflow: hidden;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container.fade-animate > * {
  opacity: 0;
  animation-name: fadeIn;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  animation-delay: 0.5s;
}

.container.fade-animate > *:nth-child(1) { animation-delay: 0.4s; }
.container.fade-animate > *:nth-child(2) { animation-delay: .6s; }
.container.fade-animate > *:nth-child(3) { animation-delay: .8s; }
.container.fade-animate > *:nth-child(4) { animation-delay: 1s; }
.container.fade-animate > *:nth-child(5) { animation-delay: 1.2s; }
.container.fade-animate > *:nth-child(6) { animation-delay: 1.4s; }
.container.fade-animate > *:nth-child(7) { animation-delay: 1.6s; }
.container.fade-animate > *:nth-child(8) { animation-delay: 1.8s; }
.container.fade-animate > *:nth-child(9) { animation-delay: 1.8s; }
.container.fade-animate > *:nth-child(10) { animation-delay: 1.8s; }



.city-name {
    font-family: 'Poppins','Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 30px;
    font-weight: 550;
    margin-top: 10px;
    text-transform: capitalize;
    text-decoration: none;
}

.date {
    font-family: 'JetBrains Mono', Courier, monospace;
    font-weight: 400;
    font-size: 15px;
    margin-top: 7px;
    margin-bottom: 10px;
    color: #e0e6f0ea;
}

.weather-img {
    width: 200px;
}

.temp-box {
    display: flex;
    margin-top: 5px;
}

.temp-box p {
    font-size: 25px;
    font-family: 'Jetbrains mono','Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 600;
    color: #e0e6f0f3;
}

.temp {
    font-family: 'Inter','Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 55px;
    margin-left: 30px;
}

.weather-desc {
    font-family: 'Poppins','Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-transform: capitalize;
    font-weight: 450;
    font-size: 20px;
    margin-top: 5px;
    margin-bottom: 45px;
    letter-spacing: 1px;
}

.more-desc {
    font-family: 'Inter','Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-style: italic;
    margin-top: -10px;
    margin-bottom: 2em;
}

.weather-data {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 35px;
}

.humidity {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.humidity i {
    font-size: 55px;
    padding-right: 65px;
}

.humidity p {
    font-family: 'poppins',Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 16px;
    color: #e0e6f0ea;
    font-style: italic;
}

.humidity-data {
    display: flex;
    flex-direction: column;
}

.humidity-text {
    font-family: 'Inter','Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 25px;
}

.wind-speed {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wind-speed p {
    font-family: 'poppins',Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 16px;
    color: #e0e6f0ea;
    font-style: italic;
}

.wind-speed i {
    font-size: 45px;
    padding-right: 55px;
}

.wind-speed-data {
    display: flex;
    flex-direction: column;
}

.wind-speed-text {
    font-family: 'Inter','Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 25px;   
}

footer {
    position: absolute;
    bottom: 10px;
}

footer span p {
    font-family: 'JetBrains Mono','Courier New', Courier, monospace;
    font-style: italic;
    font-size: 12px;
    color: #e0e6f0b6;
}

footer span p a {
    text-decoration: none;
    color: #e0e6f0;
}

footer span p a:hover {
    text-decoration: underline;
    text-shadow: 1px 1px 10px #000000;
}

@media only screen and (min-width: 320px) and (max-width: 530px) {

    body {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .search-box {
        width: 100vw;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #search-bar {
        width: 95vw;
        margin-right: -12px;
        margin-left: -15px;
    }

    .container {
        width: 96vw;
    }

    .search-btn {
    position: relative;
    right: 18px;
    top: 0.5px;
    font-size: 22px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    }

    .fa-location-dot {
    position: relative;
    left: 16px;
    }

}

.none {
    visibility: collapse;
}
