* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI",Tahoma,sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg,#3b82f6,#38bdf8,#7dd3fc);
    overflow-x: hidden;
    color: white;
}

.background {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top,#ffffff33,transparent 60%);
    z-index: -1;
}

/************************************************/
/*                Головна картка                */
/************************************************/

.weather-card {
    width: 1200px;
    max-width: 96%;
    background: rgba(255,255,255,.16);
    backdrop-filter: blur(18px);
    border-radius: 28px;
    padding: 35px;
    box-shadow: 0 20px 45px rgba(0,0,0,.25);
    animation: fadeIn .6s;
}

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 30px;
}

/************************************************/
/*                 Пошук                         */
/************************************************/

.search {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
    position: relative;
    z-index: 10000;
}

.search-box {
    position: relative;
    flex: 1;
    z-index: 10001;
}

.search input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    outline: none;
}

.search button {
    width: 65px;
    height: 60px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 28px;
    background: #fff;
    transition: .25s;
    flex-shrink: 0;
}

    .search button:hover {
        transform: scale(1.06);
        box-shadow: 0 8px 20px rgba(0,0,0,.2);
    }

/************************************************/
/*             Підказки пошуку                  */
/************************************************/

#suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #fff;
    color: #222;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,.25);
    display: none;
    overflow: hidden;
    max-height: 320px;
    overflow-y: auto;
    z-index: 99999;
}

.suggestion {
    padding: 14px 18px;
    cursor: pointer;
    transition: .2s;
    border-bottom: 1px solid #eee;
}

    .suggestion:last-child {
        border-bottom: none;
    }

    .suggestion:hover,
    .suggestion:active {
        background: #eaf6ff;
    }

.suggestion-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.suggestion-region {
    margin-top: 4px;
    color: #777;
    font-size: 13px;
}

/************************************************/
/*             Поточна погода                   */
/************************************************/

.weather {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 35px 0;
    flex-wrap: wrap;
}

.icon {
    font-size: 90px;
    flex: none;
}

@keyframes float {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

.temp {
    font-size: 80px;
    font-weight: bold;
    margin-top: 5px;
}

.city {
    font-size: 36px;
    margin-top: 10px;
}

.description {
    font-size: 28px;
    white-space: nowrap;
}

.feelsLike {
    font-size: 22px;
    opacity: .85;
    white-space: nowrap;
}

/************************************************/
/*               Детальна інформація            */
/************************************************/

.info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: nowrap;
}

.item {
    flex: 1;
    background: rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 15px;
    text-align: center;
    transition: .3s;
}

    .item:hover {
        transform: translateY(-5px);
        background: rgba(255,255,255,.22);
    }
    .item span {
        font-size: 32px;
        display: block;
        margin-bottom: 8px;
    }

    .item h4 {
        font-size: 15px;
        font-weight: 500;
        margin-bottom: 6px;
        opacity: .8;
    }

    .item p {
        font-size: 20px;
        font-weight: bold;
    }

/************************************************/
/*            Прогноз на 7 днів                 */
/************************************************/

.forecast {
    margin-top: 15px;
}

    .forecast h2 {
        margin-bottom: 20px;
        text-align: center;
    }

#forecastList {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.day {
    flex: 1;
    background: rgba(255,255,255,.12);
    border-radius: 18px;
    text-align: center;
    padding: 15px;
    transition: .3s;
}

    .day:hover {
        transform: translateY(-8px);
        background: rgba(255,255,255,.22);
    }

    .day:active {
        transform: translateY(-8px);
        background: rgba(255,255,255,.22);
    }

    .day.active {
        transform: translateY(-8px);
        background: rgba(255,255,255,.22);
        box-shadow: 0 10px 20px rgba(0,0,0,.18);
    }

.dayName {
    font-size: 18px;
    font-weight: bold;
}

.dayIcon {
    font-size: 42px;
    margin: 10px 0;
    display: block;
}

.dayTemp {
    font-size: 22px;
    font-weight: bold;
    white-space: nowrap;
    margin-bottom: 10px;
}

.dayWind,
.dayHumidity {
    font-size: 15px;
    opacity: .85;
    margin-top: 6px;
}
.dayDirection,
.daySunrise,
.daySunset {
    margin-top: 6px;
    font-size: 14px;
    opacity: .9;
}

/************************************************/
/*          Погодинний прогноз                  */
/************************************************/

.hourly {
    margin-top: 45px;
}

    .hourly h2 {
        text-align: center;
        margin-bottom: 20px;
    }

#hourlyList {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.hour {
    min-width: 95px;
    text-align: center;
    background: rgba(255,255,255,.12);
    border-radius: 15px;
    padding: 12px;
    transition: .3s;
}

    .hour:hover {
        background: rgba(255,255,255,.22);
        transform: translateY(-5px);
    }

    .hour::-webkit-scrollbar {
        display: none;
    }

/************************************************/
/*                 Scrollbar                    */
/************************************************/

::-webkit-scrollbar {
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: white;
    border-radius: 20px;
}

/************************************************/
/*                Телефон                       */
/************************************************/

@media(max-width:1100px) {

    .info {
        grid-template-columns: repeat(3,1fr);
    }

    #forecastList {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .day {
        min-width: 130px;
    }
}

@media (max-width:700px) {

    .weather-card {
        width: 95%;
        padding: 20px;
    }

    h1 {
        font-size: 30px;
    }

    /********************/
    /* Поточна погода   */
    /********************/

    .weather {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        text-align: center;
        margin: 25px 0;
    }

    .icon {
        font-size: 90px;
    }

    .temp {
        font-size: 72px;
        margin: 0;
    }

    .city {
        font-size: 32px;
        margin: 0;
    }

    .description {
        font-size: 28px;
    }

    .feelsLike {
        font-size: 22px;
    }

    /********************/
    /* Деталі           */
    /********************/

    .info {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 15px;
        padding-bottom: 10px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .item {
        min-width: 140px;
        flex: 0 0 auto;
    }

    /********************/
    /* 7 днів           */
    /********************/

    #forecastList {
        overflow-x: auto;
        justify-content: flex-start;
        gap: 15px;
        padding-bottom: 10px;
    }

    .day {
        min-width: 170px;
        flex: 0 0 auto;
    }

    /********************/
    /* Погодинний       */
    /********************/

    #hourlyList {
        overflow-x: auto;
        justify-content: flex-start;
        gap: 15px;
        padding-bottom: 10px;
    }

    .hour {
        min-width: 110px;
        flex: 0 0 auto;
    }

    .weather-icon {
        width: 120px;
        height: 120px;
        object-fit: contain;
    }

