/*==============================================================*/
/*========================= ПЕРЕМЕННЫЕ =========================*/
/*VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV*/

:root {
    --milk_col: rgb(115, 109, 109);
}


/*==============================================================*/
/*========================= СТИЛИЦАЦИЯ =========================*/
/*VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV*/
body, html {
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    font-family: 'Courier New', Courier, monospace;
    /* background-color: rgb(231, 219, 219); */
    background-color: white;
}

/*===============ЗАГОЛОВОК_САЙТА===============*/

header {
    width: 100vw;
    height: 10vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.head_icin_block_cl {
    width: 25vw;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1vw;
    margin-left: 1vw;
}

.head_icin_block_cl > img {
    width: auto;
    height: 100%;
}

.head_icin_block_cl > div {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-around;
}

.head_icin_block_cl > div > h1 {
    margin: 0;
    font-size: 5vh;
    font-weight: normal;
}

.head_icin_block_cl > div > h2 {
    margin: 0;
    font-size: 1.8vh;
}

.head_navigation_cl {
    width: calc(100vw - 20vw);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    gap: 1.5vw;
    flex-wrap: wrap;
    padding-right: 5vw;
}

#button_reg_open_id {
    width: auto;
    padding-left: 1vw;
    padding-right: 1vw;
    height: 4vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgb(93, 89, 89);
    border-radius: 1vh;
    font-size: 2.5vh;
    /* font-weight: bold; */
    /* box-shadow: 2px 2px 4px black; */
    margin-left: 0.2vw;
    margin-right: 0.2vw;
    transition: 500ms;
}

#button_reg_open_id:hover {
    cursor: pointer;
}

@media (max-width: 800px) {
    header {
        height: 20vh;
    }

    .head_icin_block_cl {
        align-items: start;
        padding-top: 6vh;
    }

    .head_navigation_cl {
        display: flex;
        flex-direction: column;
        align-items: end;
        justify-content: center;
        width: calc(100vw - 23vw);
        padding-right: 2vw;
    }

    .head_navigation_cl>div:nth-child(1) {
        order: 3;
    }

    .head_navigation_cl>div:nth-child(2) {
        order: 1
    }

    .head_navigation_cl>div:nth-child(3) {
        order: 2;
    }

    .head_icin_block_cl>div>h1 {
        font-size: 3.5vh;
    }

    .head_icin_block_cl>div>h2 {
        font-size: 2vh;
    }

    #button_reg_open_id {
        font-size: 2vh;
        margin-right: 5vw;
    }
}

/* ================ РАЗДЕЛ ПРОФИЛЯ ================ */
#button_profile_id {
    width: 20vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 1vw;
}

#button_profile_id:hover {
    cursor: pointer;
}

#img_profile_id {
    width: 7vh;
    height: 7vh;
    border: 2px solid black;
    border-radius: 50%;
    overflow: hidden;
    background-size: cover;
}

#button_profile_id > div:nth-child(2) {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-around;
}

#button_profile_id > div:nth-child(2) > b, #button_profile_id > div:nth-child(2) > span {
    height: 3vh;
    font-size: 2.5vh;
}

@media (max-width: 800px) {
    #button_profile_id {
        width: 80%;
    }
    .head_icin_block_cl > div > h2 {
        font-size: 1.5vh;
    }
}

@media (max-width: 450px) {
    .head_icin_block_cl > div > h2 {
        font-size: 1.3vh;
    }
}

/*--------------------Модальное окно профиля--------------------*/
#profile_modal_window_fog_id {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
}

#profile_modal_window_id {
    position: fixed;
    top: 10%;
    left: 20%;
    width: 60%;
    height: 80%;
    background-color: rgb(56, 53, 53);
    border-radius: 1vw;
    box-shadow: 2px 2px 2px 4px black;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

#profile_modal_window_id > div:nth-child(1) {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 2vh;
}

#img_main_profile_id {
    width: 45vh;
    height: 45vh;
    box-shadow: 2px 2px 4px black;
    background-size: cover;
}

#profile_modal_window_id > div:nth-child(1) > span {
    margin-left: 1vw;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

#profile_modal_window_id > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    gap: 2vh;
}

#textarea_main_profile_id {
    width: 50vh;
    height: 40vh;
    resize: none;
    box-shadow: 2px 2px 4px black;
    font-size: 2.5vh;
}

.text_1_cl {
    font-size: 2.5vh;
    color:  var(--milk_col);
}

.text_2_cl {
    font-size: 3vh;
    font-weight: bold;
    color:  var(--milk_col);
}

.text_3_cl {
    font-size: 4vh;
    font-weight: bold;
    color:  var(--milk_col);
}

.buttons_block_profile_cl {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.buttons_block_profile_cl > div {
    width: 7vw;
    height: 4vh;
    border: 3px solid var(--milk_col);
    border-radius: 2vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 500ms all;
}

.buttons_block_profile_cl > div:hover {
    cursor: pointer;
}

.buttons_block_profile_cl > div > span {
    font-size: 2vh;
    font-weight: bold;
    color:  var(--milk_col);
}

#profile_picture_changes_id {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 500ms;
}

#profile_picture_changes_id:hover {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.4);
}

#profile_picture_changes_id > span {
    font-size: 10vw;
    color: white;
    opacity: 0;
    transition: 500ms;
}

#profile_picture_changes_id:hover > span {
    opacity: 1;
}

#profile_picture_changes_file_id {
    display: none;
}

#button_account_logout_id {
    width: 12vw;
}

#button_profile_save_id {
    width: 12vw;
}

@media (max-width: 1300px) {
    #profile_modal_window_id {
        top: 5%;
        left: 10%;
        width: 80%;
        height: 90%;
    }
}

@media (max-width: 1100px) {
    #profile_modal_window_id {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    #button_account_logout_id {
        width: 15vw;
    }
}

@media (max-width: 900px) {
    #profile_modal_window_id {
        height: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        overflow-y: scroll;
        gap: 5vh;
    }

    #profile_modal_window_id > div:nth-child(1) {
        margin-top: 10vh;
        align-items: center;
    }

    #profile_modal_window_id > div:nth-child(1) > span {
        width: 90%;
    }

    #profile_modal_window_id > div:nth-child(1) > span:nth-child(4),
    #profile_modal_window_id > div:nth-child(1) > span:nth-child(5) {
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: center;
    }

    #profile_modal_window_id > div:nth-child(2) {
        margin-bottom: 10vh;
        width: 100%;
    }

    #textarea_main_profile_id {
        width: 90%;
        height: 30vh;
    }

    #button_profile_back_id {
        width: 12.5vw;
    }
    #button_account_logout_id {
        width: 40vw;
        margin-right: 5vw;
    }
    #button_profile_save_id {
        width: 30vw;
        margin-right: 5vw;
    }
}

@media (max-width: 550px) {
    .buttons_block_profile_cl > div > span {
        font-size: 1.7vh;
    }
}

/* === Модальное окно выхода === */

#logout_option_id {
    width: 25vw;
    height: 10vw;
    position: fixed;
    top: 40vh;
    left: 37.5vw;
    border: 4px solid var(--milk_col);
    border-radius: 2vw;
    display: flex;
    flex-direction: column;
    gap: 2vw;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    z-index: 10;
}

#logout_option_id > span {
    font-size: 2.5vh;
    font-weight: bold;
    text-shadow: 2px 2px 4px white;
    text-align: center;
}

#logout_option_id > div {
    width: 20vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

#logout_option_id > div > div {
    width: 6vw;
    height: 2vw;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--milk_col);
    border-radius: 1vw;
}

#logout_option_id > div > div:hover {
    cursor: pointer;
}

#logout_option_id > div > div > span {
    font-size: 3vh;
    font-weight: bolder;
}

@media (max-width: 1000px) {
    #logout_option_id {
        width: 50vw;
        height: 20vw;
        top: 30vh;
        left: 25vw;
    }
    #logout_option_id > div {
        width: 40vw;
    }
    #logout_option_id > div > div {
        width: 10vw;
        height: 4vw;
    }
}

@media (max-width: 700px) {
    #logout_option_id {
        width: 75vw;
        height: 30vw;
        top: 20vh;
        left: 12.5vw;
    }
    #logout_option_id > div {
        width: 60vw;
    }
    #logout_option_id > div > div {
        width: 15vw;
        height: 6vw;
    }
}

/* === блок поиска === */
.shortcut_loading_block_cl {
    width: 83vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    gap: 10px;
    padding-right: 17vw;
}

.shortcut_loading_block_cl > div {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* border: 2px solid black; */
    background-image: url(./Image/load_arrow.png);
    background-size: cover;
}

.shortcut_loading_block_cl > div:hover {
    cursor: pointer;
}

.shortcut_loading_block_cl > span {
    font-size: 12px;
    font-weight: bold;
}

/* === блок поиска === */
.search_cl {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    gap: 1vw;
    padding: 0.5vw;
    border: 2px solid #565151;
    border-radius: 1vw;
    overflow: hidden;
    transition: 1000ms all;
}

.search_cl > input {
    width: 35vw;
    height: 3vh;
    border-radius: 1vh;
    padding-left: 0.5vw;
    font-size: 2vh;
    display: none;
    opacity: 0;
    transition: 1000ms all;
}

.search_cl > div {
    width: 2vw;
    height: 2vw;
    background: url(./Image/search.png);
    background-size: cover;
}

.search_cl > div:hover {
    cursor: pointer;
}

#search_id {
    transition: width 1000ms;
}

@media (max-width: 800px) {
    .search_cl > div {
        width: 2.5vw;
        height: 2.5vw;
    }
}

@media (max-width: 800px) {
    .search_cl {
        margin-right: 4vw;
    }
    .search_cl > input {
        width: 50vw;
    }
    .search_cl > div {
        width: 3vw;
        height: 3vw;
    }
}

@media (max-width: 600px) {
    .search_cl > div {
        width: 6.5vw;
        height: 6.5vw;
    }
}

/* === Выбор языка новости === */
.lan_select_cl {
    width: 100vw;
    height: 10vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1vw;
}

.lan_select_cl > span {
    font-weight: 2.5vh;
    font-weight: bold;
}

.lan_select_cl > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1vw;
}

.lan_select_cl > div > div {
    width: 12.5vw;
    height: 4vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* border: 2px black solid; */
    box-shadow: 2px 2px 4px black;
    border-radius: 1vw;
    padding-left: 2vw;
    padding-right: 2vw;
    font-size: 2vh;
    /* font-weight: bold; */
    transition: 300ms all;
    text-align: center;
}

.lan_select_cl > div > div:hover {
    cursor: pointer;
    background-color: rgba(107, 226, 43, 0.4);
}

@media (max-width: 1300px) {
    .lan_select_cl > div > div {
        font-size: 2vh;
    }
}

@media (max-width: 1200px) {
    .lan_select_cl > div > div {
        width: 18vw;
    }
}

@media (max-width: 915px) {
    .lan_select_cl {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .lan_select_cl > div > div {
        width: 22vw;
        font-size: 1.5vh;
        border-radius: 3vw;
    }
}

/* === БАН ПОЛЕ === */
#ban_block_id {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

#ban_block_id > span {
    font-size: 8vh;
    font-weight: bold;
    color: red;
    text-shadow: 8px 8px 16px black;
}

/* === НАЧАЛЬНАЯ ЗАГРУЗКА === */
#start_loading_main_id {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* background-color: rgb(231, 219, 219); */
    background-color: white;
    z-index: 40000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#start_loading_main_id > div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2vw;
}

#start_loading_main_id > div > img {
    width: 8vh;
    height: 8vh;
}

#start_loading_main_id > div > span {
    font-size: 3vh;
    font-weight: bold;
}

/* === кнопка закрытия профиля === */

#button_profile_back_id {
    width: 6vw;
    height: 6vw;
    position: fixed;
    top: 5vh;
    right: 15vw;
    font-size: 5vh;
    color: white;
    text-shadow: 4px 4px 8px black;
    background-color: black;
    border-radius: 3vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#button_profile_back_id:hover {
    cursor: pointer;
}

/* =============== МОДАЛЬНОЕ ОКНО ВЫБОРА =============== */

#add_icon_modal_window_id {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

#add_icon_modal_window_id > div {
    width: 350px;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    border-radius: 10px;
    box-shadow: 4px 4px 8px black;
    backdrop-filter: blur(12px);
}

#add_icon_modal_window_id > div > span {
    text-align: center;
    font-size: 25px;
    font-weight: bold;
    color: rgb(67, 67, 207);
    text-shadow: 2px 2px 4px black;
    padding-left: 10px;
    padding-right: 10px;
}

#add_icon_modal_window_id > div > div {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}

#add_icon_modal_window_yes_id {
    width: 50px;
    height: 25px;
    border-radius: 5px;
    background-color: rgba(0, 128, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 4px black;
    font-size: 16px;
    font-weight: bold;
}

#add_icon_modal_window_yes_id:hover {
    cursor: pointer;
}

#add_icon_modal_window_no_id {
    width: 50px;
    height: 25px;
    border-radius: 5px;
    background-color: rgba(0, 0, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 4px black;
    font-size: 16px;
    font-weight: bold;
}

#add_icon_modal_window_no_id:hover {
    cursor: pointer;
}


/* ========== МОДАЛЬНОЕ ПОДСКАЗКИ УСТАНОВКИ ЯРЛЫКА ========== */

#shortcut_install_modal_window_id {
    position: fixed;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
}

#shortcut_install_modal_window_id > div {
    width: 40vw;
    height: 30vh;
    background-color: rgb(176, 194, 198);
    border: 4px dashed rgb(85, 81, 81);
    padding: 2.5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

#shortcut_install_modal_window_id > div > span {
    font-size: 2.5vh;
    color: black;
    text-align: center;
}

#shortcut_install_modal_window_id > div > div {
    width: 10vw;
    height: 5vh;
    border: 1px solid black;
    border-radius: 1vw;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3vh;
    font-weight: bold;
    color: black;
}

#shortcut_install_modal_window_id > div > div:hover {
    cursor: pointer;
}

@media (max-width: 600px) {

    #shortcut_install_modal_window_id > div {
        width: 80vw;
        height: 20vh;
    }

    #shortcut_install_modal_window_id > div > span {
        font-size: 1.8vh;
    }

    #shortcut_install_modal_window_id > div > div {
        height: 5vh;
        font-size: 2vh;
    }

};