html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 10px;
}

.loading {
    background: #F1BA0A;
    text-align: center;
    font-size: 1.6em;
    padding: 3em;
    margin: 3em;
}

.loader {
    border: 10px solid #0b0e34;
    border-top: 10px solid #f4793f;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
    margin: 1em auto 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nav {
    font-family: 'Gloria Hallelujah', cursive;
    padding: 0.1em;
    background: #0b0e34;
    text-transform: uppercase;
}

.nav-bottom {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5em 0.7em 1.5em;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.4em;
}

.top {
    max-width: 900px;
    margin: 0 auto 0 auto;
}

.nav h1 {
    font-weight: 700;
    font-size: 4em;
    letter-spacing: 1.6px;
    color: #F1BA0A;
    padding: 1em;
    z-index: 1;
}

/* .sun-psudo:before {
        content: '☀️';
        font-size: 2em;
        position: absolute;
        color: #f4793f;
        z-index: 0;
        white-space: nowrap;
        left: 26%;
        top: 2%;
    } */
    
.credits {
    max-width: 900px;
    margin: 0 auto 0 auto;
    text-align: right;
    font-size: 1.4em;
    padding: 0 2.5em;
}

.container {
    font-family: 'Josefin Sans', sans-serif;
    padding: 2em;
    background: #ffffff;
    font-size: 1.6em;
    color: #01011f;
    max-width: 900px;
    margin: 0 auto 0 auto;
    
}


.top {
    margin-top: 0;
    padding-top: 0;
}

.top__heading {

}

.location-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7em;
    color: #F1BA0A;
    padding: 0.5em 0;
    justify-content: space-between;
}

.location-box-col2 {
    display: flex;
    justify-content: space-between;
}

.location-box__pin {
    font-size: 1.1em;
    flex-shrink: 0;
    line-height: 1;
}

.location-box__name {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: none;
}

.location-box__search {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    /* border-left: 1px solid rgba(241, 186, 10, 0.2); */
    padding-left: 1em;
    margin-left: 0.5em;
}

.location-box__search-input {
    background: transparent;
    border: 1px solid rgba(241, 186, 10, 0.3);
    color: #F1BA0A;
    padding: 0.4em 0.75em;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.85em;
    letter-spacing: 0.3px;
    outline: none;
    width: 190px;
    text-transform: none;
}

.location-box__search-input::placeholder {
    color: rgba(241, 186, 10, 0.4);
}

.location-box__search-input:focus {
    border-color: rgba(241, 186, 10, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

.location-search-results {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #0b0e34;
    border: 1px solid rgba(241, 186, 10, 0.3);
    border-top: none;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 100;
    min-width: 280px;
    max-width: 420px;
}

.location-search-results__item {
    padding: 0.75em 1em;
    color: #F1BA0A;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px solid rgba(241, 186, 10, 0.1);
}

.location-search-results__item:last-child {
    border-bottom: none;
}

.location-search-results__item:hover,
.location-search-results__item--focused {
    background: rgba(244, 121, 63, 0.15);
    color: #f4793f;
}

.location-box__fav-save-btn {
    background: none;
    border: none;
    color: rgba(241, 186, 10, 0.45);
    font-size: 1.1em;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s;
    flex: 1;
}

.location-box__fav-save-btn:hover,
.location-box__fav-save-btn--saved {
    color: #F1BA0A;
}

.location-box__favs-toggle-btn {
    background: none;
    border: 1px solid rgba(241, 186, 10, 0.3);
    color: #F1BA0A;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 0.3em 0.7em;
    flex-shrink: 0;
    white-space: nowrap;
}

.location-box__favs-toggle-btn:hover {
    border-color: #F1BA0A;
    background: rgba(241, 186, 10, 0.06);
}

.fav-save-form {
    position: absolute;
    top: 100%;
    left: 0;
    background: #0b0e34;
    border: 1px solid rgba(241, 186, 10, 0.3);
    padding: 0.7em 1em;
    z-index: 100;
    align-items: center;
    gap: 0.5em;
    min-width: 320px;
}

.fav-save-form__label {
    color: rgba(241, 186, 10, 0.65);
    font-size: 0.8em;
    white-space: nowrap;
    flex-shrink: 0;
}

.fav-save-form__input {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(241, 186, 10, 0.35);
    color: #F1BA0A;
    padding: 0.35em 0.65em;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.85em;
    outline: none;
    flex: 1;
    min-width: 100px;
}

.fav-save-form__input::placeholder {
    color: rgba(241, 186, 10, 0.4);
}

.fav-save-form__input:focus {
    border-color: rgba(241, 186, 10, 0.7);
}

.fav-save-form__btn {
    background: #f4793f;
    border: none;
    color: #fff;
    padding: 0.35em 0.75em;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.fav-save-form__btn:hover {
    background: #F1BA0A;
    color: #0b0e34;
}

.fav-save-form__btn--cancel {
    background: rgba(255, 255, 255, 0.1);
    font-size: 1em;
    padding: 0.2em 0.6em;
}

.fav-save-form__btn--cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.favorites-list {
    position: absolute;
    top: 100%;
    right: 0;
    background: #0b0e34;
    border: 1px solid rgba(241, 186, 10, 0.3);
    border-top: none;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 100;
    min-width: 200px;
    max-width: 340px;
}

.favorites-list__item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(241, 186, 10, 0.1);
}

.favorites-list__item:last-child {
    border-bottom: none;
}

.favorites-list__item-name {
    flex: 1;
    padding: 0.7em 1em;
    color: #F1BA0A;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorites-list__item-name:hover {
    color: #f4793f;
}

.favorites-list__item-delete {
    background: none;
    border: none;
    color: rgba(241, 186, 10, 0.35);
    cursor: pointer;
    padding: 0.5em 0.8em;
    font-size: 1em;
    line-height: 1;
    flex-shrink: 0;
}

.favorites-list__item-delete:hover {
    color: #f4793f;
}

.favorites-list__empty {
    padding: 0.8em 1em;
    color: rgba(241, 186, 10, 0.5);
    font-size: 0.8em;
    text-align: center;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
}

@media (max-width: 600px) {
    .location-box__favs-label {
        display: none;
    }
    .location-box__search-input {
        width: 120px;
    }
    .fav-save-form {
        min-width: 0;
        right: 0;
        left: 0;
    }
}


/* Header nav media */

@media (max-width: 400px) {
        .location-box {
            flex-wrap: wrap;
        }

        .location-box-col1,
        .location-box-col2 {
            min-width: 100%;
    }

        .location-box-col2 {
            justify-content: start!important;
            justify-content: end;
    }

    .location-box__search {
        margin-left: 0!important;
        padding-left: 0!important;
    }
}



.section-one--now {
    padding: 2em 3em 3em 2em;
    background: #f4793f;
    color: #0b0e34;
    box-shadow: 5.7px 11.4px 11.4px hsl(0deg 0% 0% / 0.15);
    margin-top: 0.8em;
    margin-bottom: 4em;
    display: flex;
}

.section-one--now__col1 {
    order: 2;
    margin-right: 2em;
    margin-left: 1em;
}

.section-one--now__col2 {
    order: 1;
}

.section-one--now__img {
    height: 150px;
    margin: 1em 2em 0 2em;
}

.section-one--now__group {
    display: flex;
    column-gap: 1em;
    align-items: center;
}

.section-one--now__heading {
    
}

.section-one--now__need {
    font-size: 2.5em;
    /* margin-top: 3em;
    margin-left: -1em; */
      
}

.section-one--now__msg {
    margin-top: -1em;
    padding-top: -1em;
}




.section-two--hours {
    display: flex;
    column-gap: 2em;
    background: #f8c426;
    margin: 1em 0px 2em 0px;
    padding: 1.5em;
    box-shadow: 5.7px 11.4px 11.4px hsl(0deg 0% 0% / 0.15);
}

.section-two--hours__heading {
    text-transform: uppercase;
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 1.1px;
}

.section-two--hours__time {
    font-size: 1.8em;
    font-weight: 700;
    text-align: center;
}

.section-two--hours__need {
    font-size: 1.8em;
    font-weight: 700;
    text-align: center;
}

.section-two--hours__index {
    
}

.section-two--hours__msg {
    
}

.section-two--hours__weather__icon {
    margin-top: -2em;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-two--hours__weather__desc {
    font-size: 0.8em;
    margin-top: -1.7em;
    text-transform: capitalize;
    text-align: center;
}

.footer {
    background: #0B0E34;
    /* color: #F4793F; */
    color: #F1BA0A;
    text-align: center;
    font-weight: 300;
    font-size: 1.5em;
}

.footer--container {
    margin: 0 auto 0 auto;
    max-width: 900px;
    padding: 3em;
}

.footer a {
    /* color: #F4793F; */
    color: #F1BA0A;
}

@media (max-width: 750px) {
    
        .section-two--hours {
            display: grid;
        }
        
        .section-two--hours__timegroup {
            grid-column: 1/2;
            grid-row: 1/2;
            width: 50%;
        }
        
        .section-two--hours__needgroup {
            grid-column: 2/3;    
            grid-row: 1/2;
            width: 50%
        }
        
        section-two--hours__msggroup {
            grid-column: 1/2;
            grid-row: 2/3;
            
        }
        
        .section-two--hours__weathergroup {
            grid-column: 2/3;
            grid-row: 2/3;
            margin-top: 2em;
        }

        .section-two--hours__heading {
            text-align: left;
        }

        .section-two--hours__time {
            text-align: left;
            margin-top: 0;
        }

        .section-two--hours__need {
            margin-top: 0;            
        }

        .section-two--hours__index {
            
        }

        .section-two--hours__msg {
            
        }

        .section-two--hours__weather__icon {
            
        }

        .section-two--hours__weather__desc {
            
        }
}

@media (max-width: 400px) {
    
        .nav h1 {
            font-size: 2.7em;
        }
        
        .credits {
            text-align: center;
        }
    
        .section-two--hours {
            display: flex;
            flex-direction: column;
        }
        
        .section-two--hours__heading {
            text-align: left;
        }

        .section-two--hours__time {
            text-align: left;
            margin-top: 0;
        }

        .section-two--hours__need {
            text-align: left;
            margin-top: 0;            
        }

        .section-two--hours__index {
            
        }

        .section-two--hours__msg {
            
        }
        
        img {
            /* align-self: center; */
        }
        
        .section-two--hours__weather__icon {
            /* margin-left: auto; */
            /* margin-right: auto; */
            /* justify-content: space-around; */
            /* text-align: center; */
            /* width: 100% */
            
        }

        .section-two--hours__weather__desc {
            
        }
}

@media (max-width: 500px) {
    .nav h1 {
        font-size: 2.9em;
    }

.section-one--now {
    display: flex;
    flex-direction: column;
}

.section-one--now__heading {
    font-size: 1.3em;
    margin-bottom: 1.5em;
}

.section-one--now__need {
    font-size: 1.7em;
    margin-bottom: 1.3em;
} 
   
.section-one--now__col2 {
    margin: 0 auto 0 auto;
    width: 100%;
    text-align: center;
}

.section-one--now__img {
    height: 100px;
    margin: 1.5em  auto 1.2em auto;
}

}