:root {
    --nf_size: 0.7rem;
}
body{
    background-image: url(weather_photo/background.webp);
    background-size: cover;
}
.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.27rem;
}
.main_head {
    font-size: 2.5rem;
    text-shadow: 0px 0px 5px rgb(101, 9, 9);
    margin: 1.1rem 0px;
    font-weight: bold;
}
.weather_label {
    padding: 1rem;
    border: 1px solid black;
    border-radius: 5px;
    margin: 0px 5.5rem;
    background-color: rgb(245, 1, 9, 0.5);
    font-size: 1.2rem;
    box-shadow: 0px 0px 10px rgb(0, 0, 0, 0.5);
}
.search_bar {
    border-radius: 5px;
    padding: 4px, 8px;
    font-size: var(--nf_size);
    color: white;
    background-color: #0C50F0;
    margin: 8px 0px;
}
.search_bar::placeholder {
    color: white;
    font-size: var(--nf_size);
    font-style: italic;
    /* Фонтын стиль (заавал биш) */
    padding-left: 5px;
}
.button {
    border-radius: 5px;
    padding: 4px 8px;
    background-color: rgb(48, 76, 230);
    color: white;
    font-size: var(--nf_size);
    cursor: pointer;
}
.button:hover {
    scale: 1.05;
}
.menu_extend .link:hover {
    transform: scale(1.05);
    font-weight: bold;
}
.devil_say{
    position: absolute;
    font-size: 14px;
    color: white;
    width: 200px;
    height: 55px;
    top: -70px;
    left: 70px;
    padding: 10px;
    background-color: red;
    border: 3px solid black;
    border-radius: 5px;
}
.devil{
    display: none;   
}
.devi_container{
    display: flex;
    flex-direction: column;
    width: 100px;
}

@media (min-width: 770px) {
    .main_head {
        font-size: 4rem;
    }

    .city {
        font-size: 2.5rem;
    }

    .search_bar::placeholder {
        font-size: 1rem;

    }

    .search_bar {
        height: 2rem;
        width: 12rem;
        border-radius: 15px;
    }

    .button {
        font-size: 1.1rem;
        padding: 7px 13px;
        border-radius: 25px;
    }

    .weather_label {
        padding: 2rem;
    }
}

@media (min-width: 505px) and (max-width: 770px) {
    .main_head {
        font-size: 3.5rem;
    }

    .city {
        font-size: 1.8rem;
    }

    .search_bar::placeholder {
        font-size: 1rem;
    }

    .search_bar {
        height: 1.6rem;
        width: 11rem;
        border-radius: 15px;
    }

    .button {
        font-size: 1rem;
        padding: 7px 10px;
        border-radius: 25px;
    }

    .weather_label {
        padding: 1.5rem;
    }
    body{
        background-image: url(weather_photo/background_p2.webp);
        background-size: cover;
    }
}

@media (max-width: 505px) {
    .main_head {
        font-size: 2.5rem;
    }

    .city {
        font-size: 1.5rem;
    }

    .search_bar::placeholder {
        font-size: 0.9rem;
    }
    .search_bar {
        height: 1.3rem;
        width: 10rem;
        border-radius: 15px;
    }

    .button {
        font-size: 0.8rem;
        padding: 5px 10px;
        border-radius: 25px;
    }

    .weather_label {
        padding: 1rem;
        width: 70%;
    }
    body{
        background-image: url(weather_photo/background_p3.jpg);
        background-size:cover;
    }
}