@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    /* font-family: "Rubik", sans-serif; */
}
body{

    font-family: Arial, sans-serif;
    /* background-color: lightgray; */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Rubik", sans-serif;
}

.container{
    background-color: white;
    box-shadow: 0px 0px 20px 3px #aeaeae60;
    width: 375px;
    height: 800px;
    border-radius: 50px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
}
nav{
    /* height: 10vh; */
    /* background-color:bisque; */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 16px;
}
.search{
    padding: 0 20px 0px 10px;
    background-color: rgba(249, 249, 250, 1);
    width: 327px;
    height: 46px;
    border-radius: 15px;
    display: flex;
    font-family: "Poppins", sans-serif;
    justify-content: space-between;
    align-items: center;
    /* margin-top: 20px; */
    position: relative;  /* Add this */
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 15px;
    margin-top: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.search-result-item {
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: rgba(249, 249, 250, 1);
}

.search input{
    height: 90%;
    width: 90%;
    font-size: 15px;
    /* color: black; */
    border: none;
    outline: none;
    background-color: transparent;
}
.search input::placeholder{
    color: rgba(196, 196, 196, 1);
}

.city_wrapper{
    width: 100%;
    font-size: 30px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.main-info-wrapper{
    width: 345px;
    height: 152px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(249, 249, 250, 1);
    border-radius: 30px;
}

.main-info{
    width: 295px;
    height: 88px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background-color: salmon; */
}

.condition-info{
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.date{
    font-size: 10px;
    font-weight: 400;
    color: rgba(158, 158, 158, 1);
}

.condition{
    font-weight: 500;
    font-size: 14px;
    color: rgba(117, 117, 117, 1);
}

.temperature{
    font-size: 40px;
    font-weight: 500;
    color: rgba(97, 97, 97, 1);
}
.details{
    width: 345px;
    height: 95px;
    background-color: rgba(249, 249, 250, 1);
    /* background-color: aqua; */
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 29px;
    padding: 16px 50px;
}

.details-item{
    color: rgba(117, 117, 117, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.info-items{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.info-text{
    font-size: 14px;
    font-weight: 600;
}

.info-name{
    font-size: 10px;
    font-weight: 300;
}

.hourly-forecast {
    width: 345px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}
.forecast_title{
    font-size: 14px;
    font-weight: 500;
    color: rgba(117, 117, 117, 1);
}


.hour-item{
    color: rgba(117, 117, 117, 1);
    background-color: rgba(138, 141, 147, 0.05);
    width: 78px;
    height: 101x;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 16px;
    text-align: center;
}

.hour-time{
    font-size: 10px;
    font-weight: 400;
}

.hour-temp{
    font-size: 14px;
    font-weight: 600;
}

.hour-item-wrapper{
    width: 345px;
    display: flex;
    justify-content: space-between;
}

@media screen and (max-width: 430px) {
    
    .container{
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
}