* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins',sans-serif;
    box-sizing: border-box;
}

body{
    height: 100vh;
    /* background: linear-gradient(145deg,#00feba,#5b548a) ; */
    background: linear-gradient(-145deg,#00feba,#5b548a) ;
}
.search{
    display: flex;
    justify-content: center;
    color: black;
    width: 50%;
    height: 2rem;
    margin: auto;
    margin-top: 1rem;
    /* border-radius: .5rem; */
}
.search-input {
    width: 100%;
    border: 1px solid black;
    border-color: #222;
    border-radius: 24px 0 0 24px;
    text-transform: capitalize;
    padding-left: 1rem;
}
.search-icon {
    width: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    background-color: rgb(28, 26, 26);
    color: white;
    border: 1px solid transparent;
    border-color: #222;
    border-radius: 0 24px 24px 0;
    cursor: pointer;
}
@media (max-width:400px){
    .search{
        width: 80%;
    }
    .search-input {
        border-radius: 2px 0 0 2px;
    }
    .details {
        flex-wrap: wrap;
        margin: 3rem;
    }
    .humidity{
        margin: 1rem;
    }
    .wind{
        margin: 1rem;
    }
}

.weather-forcast{
    text-align: center;
    color: #fff;
}
.weather-forcast img {
    height: 8.5rem;
    width: 8.5rem;
}
.weather-forcast h1{
    font-size: 3rem;
    font-weight: 500;
}
.weather-forcast h2{
    font-size: 2rem;
    font-weight: 400;
    font-style: italic;
    text-transform: capitalize;
}

.details {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    color: #fff;
    text-align: center;
    margin: 2rem;
}
.details h4 + p{
    font-size: 1.5rem;
    font-weight: 300;
}
.city-name{
    display: flex;
    justify-content: center;
    align-items: center;
}
.country{
    margin: 1rem;
    font-size: 1rem;
    border: 2px solid #fff;
    border-radius: 50% ;
    padding: .5rem;
}
.humidity{
    display: flex;
    align-items: start;
    justify-content: baseline;
}
.wind{
    display: flex;
    align-items: start;
    justify-content: baseline;
}


.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}
.slider {
    position: relative;
    display: inline-block;
    width: 5rem;
    height: 2.5rem;
    background-color: #000;
    border-radius: 40px;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.3s ease-in-out;
}

.slider input {
    display: none;
}

.slider-btn {
    position: absolute;
    height: 40px;
    width: 40px;
    background-color: #fff;
    border-radius: 50%;
    left: 0;
    transition: transform 0.3s ease-in-out;
}

.slider-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 600;
    user-select: none;
    pointer-events: none;
    transition: left 0.3s ease-in-out, color 0.3s ease-in-out;
}

.slider input:checked + .slider-btn {
    transform: translateX(40px);
}

.slider input:checked + .slider-text {
    left: 40px;
}


.slider-text::before {
    content: "°F ";
    font-size: 1.25rem;
}
/* input:checked + .slider {
    background-color: #2196F3;
} */


/* .slider input:checked + .slider-text::before {
    content: "ON";
    color: #2196F3;
} */

#currentDateTime{
    margin-top: 1rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    font-family: 'Times New Roman', Times, serif;
    color: #fff;
}
