* {
    margin: 0;
    font-family: "Open Sans", sans-serif;
    box-sizing: border-box;
    cursor: default;
}

#my-location {
    position: absolute;
    display: flex;
    align-items: center;
    top: 0;
    right: 0;
    height: 100%;
    background-color: transparent;
    border: none;
    appearance: none;
    color: rgba(57, 57, 57, 0.557);
    cursor: pointer;
    z-index: 3;
}

#my-location span {
    cursor: pointer;
}

body {
    background-image: url("./images/background.webp");
    background-size: cover;
    background-position: center;
    padding-block: 50px;
}

.container {
    display: flex;
    padding-left: 350px;
    justify-content: center;
    height: calc(100vh - 100px);
}

#search, #search-list {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 30px;
    padding: 8px 8px 8px 35px;
    width: 400px;
    font-size: 14px;
    cursor: initial;
}

#search-list div {
    padding: 2px 20px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

#search-list div span {
    font-size: 14px;
    opacity: 0.5;
}

#search:focus, #search-list div:hover {
outline: 0;
background-color: rgba(125, 125, 125, 0.4);
}

#search-list {
    position: absolute;
    width: 100%;
    overflow: hidden;
    padding-inline: 0;
    padding-block: 17px;
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.5;
}

.timeToday {
border-bottom: 1px solid rgba(255, 255, 255, 0.607);
width: 100%;
text-align: center;
padding-bottom: 5px;
}

.city-search{
    position: relative;
    margin: auto;
    width: max-content;
}

.search-icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
    left: 5px;
}

.dark-background {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 25px;
    border-radius: 30px;
    padding: 10px;
    width: max-content;
    min-width: 300px;
    margin: auto;
    margin-bottom: 10px;
}

#today-forecast {
    display: flex;
    gap: 40px;
}

.right-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}


.todaysWeather {
    display: flex;
    flex-direction: column;
    min-width: 70px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1;
}

.todaysWeather img {
width: 30px;
}

#forecast {
    display: flex;
    flex-direction: column;
    width: 350px;
    position: fixed;
    left: 0;
    top: 50px;
    bottom: 50px;
    border-radius: 0 30px 30px 0;
    }

#forecast-days {
    font-size: 16px;
    font-weight: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#forecast-days > div {
    display: flex; 
    align-items: center;
    gap: 20px;
}

.frameDate {
    display: flex;
    align-items: center;
    background-color: rgba(150, 150, 150, 0.26);
    border-radius: 10px;
    min-width: 220px;
}


.frameTemp {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 1px solid rgba(156, 156, 156, 0.553);
    padding-left: 8px;
}

img {
    width: 50px;
}

#search-list {
    display: none;
    z-index: 2;
}

input:focus ~ #search-list:not(:empty), #search-list:hover {
display: block;
}

#day-temperature {
    font-size: 60px;
    font-weight: 800;
}

#date {
    font-size: 18px;
    font-weight: 300;
}

.climate {
    font-size: 14px;
    font-weight: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: help;
}

.climate span {
    cursor: help;
}

.climate .material-symbols-outlined {
    font-weight: 200;
}

#climate {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-block: 20px;
}

#climate-wind, #climate-feels, #climate-humi {
    margin-top: 5px;
}

@media (width < 1220px) {
    #today-forecast {
        gap: 10px;
    }
}

@media (width < 1024px) {
    .right-side {
        justify-content: flex-start;
        gap: 20px;
    }

    #forecast {
        position: static;
        border-radius: 30px;;
    }

    .container {
        flex-direction: column-reverse;
        padding: 0;
        height: auto;
    }
}

@media (width < 678px) {
#today-forecast {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

#search {
    width: 300px;
}

#selected-city {
    font-size: 18px;
}
}