body {
    background: url(weather.png);
    margin: 0;
    padding: 0;
    font-family: "Permanent Marker", cursive;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    overflow-x: hidden;
}

.container {
    margin-left: 10%;
    margin-right: 10%;
    max-width: 80%;
}

h1 {
    color: #333333;
    font-size: 45px;
}

.weather__loading {
    margin-top: 30px;
}

.enter-text {
    display: inline-block;
    font-size: 28px;
    margin-bottom: 20px;
}
.weather__loading img {
    width: 90px;
    height: 90px;
    display: inline-block;
}

.search-container {
    position: relative;
    display: inline-block;
}

.icon {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.icon img {
    width: 50px;
    height: 50px;
    transition: 0.6s;
}

.icon img:hover {
    scale: 1.3;
}

.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.7);
    transition: all 0.5s ease;
}

form.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: all 0.5s ease;
}

input[type="text"] {
    padding: 10px 20px 10px 20px;
    font-size: 18px;
    border-radius: 10px;
    border: 2px solid #23b4d6;
    margin-bottom: 10px;
}

button {
    padding: 10px 20px;
    font-size: 18px;
    color: #fff;
    background-color: #333;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.6s;
}

button:hover {
    background-color: rgb(108, 105, 105);
}

.current-temp {
    color: #2b88e2;
}

.date {
    color: #2a41a5;
}

.city-img {
    width: 470px;
    height: 300px;
    border-radius: 10px;
    object-fit: cover;
}

.weather-description {
    color: #001fff;
}

.weather-word {
    color: #7c3eab;
}

.weather-days-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.curr-weather {
    font-size: 20px;
}

.weather-day {
    font-size: 25px;
}

.curr-place {
    font-size: 21px;
}

.city-suggestions {
    list-style-type: none;
    padding: 0;
    margin: 0;
    position: absolute;
    background: white;
    max-height: 150px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
}

.city-suggestions li {
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.city-suggestions li:hover {
    background-color: #f0f0f0;
}

header {
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    padding: 20px 0 0 0;
}
.animation {
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center;
    position: relative;
    -webkit-animation: weatherCycle 10s infinite;
    animation: weatherCycle 10s infinite;
    opacity: 1;
    transition: opacity 2s ease-in-out;
}

@-webkit-keyframes weatherCycle {
    0% {
        background-image: url("sun.png");
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    20% {
        background-image: url("sun.png");
    }
    25% {
        opacity: 0;
    }
    30% {
        background-image: url("cloud.png");
        opacity: 1;
    }
    45% {
        background-image: url("cloud.png");
    }
    50% {
        opacity: 0;
    }
    55% {
        background-image: url("rain.png");
        opacity: 1;
    }
    70% {
        background-image: url("rain.png");
    }
    75% {
        opacity: 0;
    }
    80% {
        background-image: url("wind.png");
        opacity: 1;
    }
    95% {
        background-image: url("wind.png");
    }
    100% {
        background-image: url("snow.png");
        opacity: 1;
    }
}

@keyframes weatherCycle {
    0% {
        background-image: url("sun.png");
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    20% {
        background-image: url("sun.png");
    }
    25% {
        opacity: 0;
    }
    30% {
        background-image: url("cloud.png");
        opacity: 1;
    }
    45% {
        background-image: url("cloud.png");
    }
    50% {
        opacity: 0;
    }
    55% {
        background-image: url("rain.png");
        opacity: 1;
    }
    70% {
        background-image: url("rain.png");
    }
    75% {
        opacity: 0;
    }
    80% {
        background-image: url("wind.png");
        opacity: 1;
    }
    95% {
        background-image: url("wind.png");
    }
    100% {
        background-image: url("snow.png");
        opacity: 1;
    }
}

@media screen and (max-width: 900px) {
    .weather-days-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .weather-day {
        font-size: 20px;
    }
}

@media screen and (max-width: 620px) {
    .city-img {
        width: 350px;
        height: 200px;
    }
    .weather-days-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
    .weather-day {
        font-size: 25px;
    }
}

@media screen and (max-width: 460px) {
    .city-img {
        width: 260px;
        height: 150px;
    }
    h1 {
        padding-bottom: 0px;
    }
}


