@font-face {
    font-family: GoodTime;
    src: url("Fonts/normal.otf") format("opentype");
}

body{
    margin: 0;
    padding: 0;
    font-family: GoodTime;
    background-repeat: no-repeat;
    background-position: -10em -50em;
    color: white;
}
#title{
    font-size: 3rem;
    text-align: center;
    margin: 0;
    padding-top: 1rem;
    
}

#search-bar{
    margin: 2em 0;
    padding-bottom: 2em;
    display: flex;
    gap: 1em;
    justify-content: center;
    align-items:center;
    border-bottom: 1px solid white;
}
#search-button{
    position: relative;
    padding: 0.7em;
 
}
#search-input{
    margin: 0.5em 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid white;
    outline: none;
    color: white;
    font-family: inherit;
}
#search-input::placeholder{
    color: transparent;
}

#search-input:focus, #search-input:valid{
    border: none;
    border-bottom: 2px solid white;
    outline: none;
    
}
 #search-label{
    cursor: text;
    font-size: 1rem;
    z-index: -999;
 }

#input-div{
    display: flex;
    flex-direction: column;
    gap: 5px;
}
#weather{
    text-align: center;
}
#current-img{
    width: 7em;
    margin-bottom: 15px;
    animation: 1s ease-out 0s 1 slideInFromtop;
}

#current-temp{
    font-size: 38px;
    animation: 1s ease-out 0s 1 slideInFromtop;
}
#feels-like{
    animation: 1s ease-out 0s 1 slideInFromtop;
}

button {
    border: none;
    color: white;
    padding: 1em;
    border: 2px solid white;
    border-radius: 1em;
    background-color: transparent;
    letter-spacing: 0.1em;
    font-weight: 500;
    font-size: 1em;

}
button:focus {
    border: none;
    outline: none;
    border: 2px solid white;
}


#feels-like{
    font-size: 1em;
    margin: 1em 0;
}

#city-name{
    font-size: 2rem;
    animation: 1s ease-out 0s 1 slideInFromtop;
}

#forcast{
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    gap: 1em;
    justify-content: space-around;
}
.forcast-temp{
    font-size: 1.3em;
}
.forcast-day{
    font-size: 1.3em;
}
.day-cast{
    display: flex;
    flex-direction: column;
    margin-bottom: 1em;
    align-items: center;
    animation: 1s ease-in 0s 1 slideInFromtop;

}
.day-cast > img{
    width: 5em;
}
@keyframes slideInFromtop {
    0% {
      transform: translateY(-100%);
    }
    100% {
      transform: translateY(0);
    }
  }
  @keyframes slideInFromLeft {
    0% {
      transform: translateX(-100%);
    }
    100% {
      transform: translateX(0);
    }
  }

@media (max-width: 600px){
    body{
        background-position: -40em -40em;
    }
    #forcast{
        flex-direction: column;
        position: relative;
        margin-top: 3em;
        align-items: center;
    }
    .day-cast{
        flex-direction: row;
        gap: 3em;
        margin-left: 1em;
        margin-bottom: 1em;
        animation: 1s ease-out 0s 1 slideInFromLeft;
    
    }
    .forcast-temp{
        font-size: 1em;
    }
    .forcast-day{
        font-size: 1.3em;
    }
    #current-temp{
        animation: 1s ease-out 0s 1 slideInFromLeft;
    }
    #feels-like{
        animation: 1s ease-out 0s 1 slideInFromLeft;
    }
    #current-img{
        animation: 1s ease-in 0s 1 slideInFromLeft;
    }
    #city-name{
        animation: 1s ease-out 0s 1 slideInFromLeft;
    }
    
    
    
}

/*
@keyframes slideOutTotop {
    0% {
      transform: translateY(-100%);
    }
    100% {
      transform: translateY(0);
    }
  }
  @keyframes slideOutTotop {
    0% {
      transform: translateY(-100%);
    }
    100% {
      transform: translateY(0);
    }
  }
  @keyframes slideOutTotop {
    0% {
      transform: translateY(-100);
    }
    100% {
      transform: translateY();
    }
  }
*/