/* =============== НОВОСТИ =============== */

#main_generate_news_id {
    width: 95vw;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-around;
    gap: 2vw;
    padding-bottom: 25vh;
}

.news_block_cl {
    width: 15vw;
    height: auto;
    padding-left: 1%;
    padding-right: 1%;
    padding-top: 0.5vh;
    padding-bottom: 0.5vh;
    border-radius: 2%;
    box-shadow: 2px 2px 4px rgb(90, 89, 89);
}

.news_block_cl > article {
    width: 98%;
    height: auto;
}

.news_block_cl > article:hover {
    cursor: pointer;
}

.news_block_cl > article > div {
    margin-top: 1.5vh;
    margin-bottom: 1.5vh;
    width: 100%;
    height: 150px;
    background-size: cover;
}

.news_block_cl > article > h2 {
    margin: 0;
    font-size: 2vh;
    height: 12vh;
    font-weight: normal;
}

@media (max-width: 1200px) {
    #main_generate_news_id {
        align-items: center;
        justify-content: center;
    }
    .news_block_cl {
        width: 25vw;
        height: 57.5vh;
    }
    .news_block_cl > article > div {
        height: 30vh;
    }
}

@media (max-width: 900px) {
    .news_block_cl {
        width: 90vw;
    }
    .news_block_cl > article > div {
        height: 50vh;
    }
    .news_block_cl > article > h2 {
        font-size: 2.2vh;
    }
}

@media (max-width: 700px) {
    .news_block_cl > article > div {
        height: 30vh;
    }
}

@media (max-width: 600px) {
    .news_block_cl {
        width: 90vw;
    }
    .news_block_cl > article > h2 {
        font-size: 2.4vh;
    }
}

.news_block_cl > aside {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    width: 100%;
}

.info_news_block_cl {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 0.25vw;
}

.info_news_block_cl > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1vw;
}

.info_news_block_cl > div {
    width: 30px;
    height: 30px;
    border: 1px solid black;
    border-radius: 15px;
    background-image: url(./Image/logotype.png);
    background-size: cover;
}

.info_news_block_cl > label > span {
    font-size: 1.8vh;
}

.info_news_block_cl > label > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 1vw;
}

.info_news_block_cl > label > div > span {
    font-size: 1.8vh;
}

.button_news_block_cl {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 0.5vw;
}

.button_news_block_cl > div {
    width: 30px;
    height: 30px;
    background-size: cover;
}

.button_news_block_cl > div:hover {
    cursor: pointer;
}

.button_news_block_cl > div:nth-child(1) {
    background-size: contain;
    background-image: url(./Image/button_like.png);
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
}

.button_news_block_cl > span:nth-child(2) {
    font-size: 2vh;
    font-weight: bold;
    color: #565151;
}

.button_news_block_cl > div:nth-child(3) {
    background-size: contain;
    background-image: url(./Image/diz_like.png);
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
}

.button_news_block_cl > span:nth-child(4) {
    font-size: 2vh;
    font-weight: bold;
    color: #565151;
}


.button_news_block_cl > div:nth-child(6) {
    width: 22.5px;
    height: 18px;
    background-size: contain;
    background-image: url(./Image/button_settings.png);
    background-repeat: no-repeat;
}

.button_news_block_cl > span:nth-child(7) {
    width: 8%;
    font-size: 2vh;
    font-weight: bold;
    color: #565151;
}

.button_news_block_cl > div:nth-child(8) {
    width: 22.5px;
    height: 22.5px;
    background-size: contain;
    background-image: url(./Image/button_share.png);
    background-repeat: no-repeat;
}

.news_block_cl > aside {
    gap: 1.5vh;
    margin-bottom: 1.5vh;
}

/* =============== НОВОСТИ =============== */

#up_button_id {
    width: 16vw;
    height: 10vh;
    position: fixed;
    right: 5vw;
    bottom: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#up_button_id > div {
    width: 8vw;
    height: 6vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 500ms all;
    border-radius: 1vw;
    background: linear-gradient(45deg, rgba(0, 0, 255, 0.6), rgba(0, 0, 255, 0.3), rgba(0, 0, 255, 0.1));
}

#up_button_id > div > div {
    width: 8vw;
    height: 6vh;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 1vw;
    font-size: 2.5vh;
    font-weight: bold;
    background: linear-gradient(45deg, rgba(0, 0, 255, 0.8), rgba(0, 0, 255, 0.5), rgba(0, 0, 255, 0.2));
}

#up_button_id > div > div:hover {
    cursor: pointer;
}

#up_button_id>div:hover {
    width: 12vw;
    height: 8vh;
    border-radius: 2vw;
}

@media (max-width: 900px) {
    #up_button_id {
        width: 22vh;
        height: 10vh;
    }
    #up_button_id > div {
        width: 10vh;
        height: 6vh;
    }
    #up_button_id > div > div {
        width: 10vh;
        height: 6vh;
    }
    
    #up_button_id>div:hover {
        width: 16vh;
        height: 8vh;
        border-radius: 2vw;
    }
}

@media (max-width: 700px) {
    #up_button_id>div:hover {
        width: 10vh;
        height: 6vh;
    }
}

/* =============== БЛОК_КОММЕНТАРИЕВ =============== */

#comment_block_id {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* background: rgb(231, 219, 219); */
    background-color: white;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: center;
}

/*-----Под блок информации новости-----*/

.news_info_block_cl {
    width: 40%;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    padding-left: 5%;
    padding-top: 2.5%;
}

.news_info_block_cl > div:nth-child(2) {
    /*--иконка новости--*/
    width: 35vw;
    height: 25vw;
    border: 2px black solid;
    background-size: cover;
    background-position: 50% 50%;
}

.news_info_block_cl > div:nth-child(2):hover {
    cursor: pointer;
}

.news_info_block_cl > span:nth-child(3) {
    /*--название новости--*/
    width: 90%;
    height: 15%;
    font-size: 3vh;
    font-weight: bold;
}

.news_info_block_cl > span:nth-child(4) {
    /*--Дата--*/
    font-size: 3vh;
}

.news_info_block_cl > label {
    width: 88%;
    display: flex;
    flex-direction: row;
    justify-content: end;
    margin-bottom: 2vh;
}

.news_info_block_cl > label > div {
    border: 2px solid black;
    padding: 1vw;
    padding-top: 0.5vw;
    padding-bottom: 0.5vw;
    border-radius: 1vw;
    font-size: 2vh;
    font-weight: bold;
}

.news_info_block_cl > label > div:hover {
    cursor: pointer;
}

.block_like_news_cl {
    /*--лайки--*/
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2vw;
}

.block_like_news_cl > div:nth-child(1) {
    width: 3vw;
    height: 3vw;
    background-image: url(./Image/button_like.png);
    background-size: cover;
}

.block_like_news_cl > div:nth-child(1):hover {
    cursor: pointer;
}

.block_like_news_cl > span:nth-child(2) {
    font-size: 4vh;
    font-weight: bolder;
}

.block_like_news_cl > div:nth-child(3) {
    width: 3vw;
    height: 3vw;
    background-image: url(./Image/diz_like.png);
    background-size: cover;
}

.block_like_news_cl > div:nth-child(3):hover {
    cursor: pointer;
}

.block_like_news_cl > span:nth-child(4) {
    font-size: 4vh;
    font-weight: bolder;
}

/*-----Под блок комментариев-----*/

.news_comm_block_cl {
    width: 40%;
    height: 90%;
    padding-left: 5%;
    padding-top: 2.5%;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
}

.main_loading_cl {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1vw;
}

.main_loading_cl > img {
    width: 3vh;
    height: 3vh;
}

.main_loading_cl > span {
    font-size: 3vh;
    color: #565151;
}

.dec_comm_cl {
    width: 90%;
    height: auto;
    /* background: linear-gradient(45deg, rgba(78, 233, 233, 1), rgba(78, 233, 233, 0.5), rgba(78, 233, 233, 0)); */
    border-radius: 2vw;
    border-bottom-right-radius: 1vw;
    overflow: hidden;
    padding-left: 1vw;
    margin-top: 0.5vw;
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: start;
    gap: 1vw;
}

.dec_comm_cl > div:nth-child(1) {
    width: 2.5vw;
    height: 2.5vw;
    border-radius: 50%;
    border: 2px black solid;
    overflow: hidden;
    background-size: cover;
}

.dec_comm_cl > div:nth-child(2) {
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
}

.dec_comm_cl > div:nth-child(2) > div:nth-child(1) {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 1vw;
}

.dec_comm_cl > div:nth-child(2) > div:nth-child(1) > span:nth-child(1) {
    font-size: 2vh;
    font-weight: bold;
    color: rgb(69, 67, 67);
}

.dec_comm_cl > div:nth-child(2) > div:nth-child(1) > span:nth-child(1):hover {
    cursor: pointer;
}

.dec_comm_cl > div:nth-child(2) > div:nth-child(1) > span:nth-child(2) {
    font-size: 2vh;
    font-weight: bold;
    color: rgb(69, 67, 67);
    text-decoration: underline;
}

.dec_comm_cl > div:nth-child(2) > div:nth-child(1) > span:nth-child(2):hover {
    cursor: pointer;
}

.dec_comm_cl > div:nth-child(2) > span {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: start;
}

.dec_comm_cl > div:nth-child(2) > span > span {
    width: 80%;
    font-size: 2vh;
    font-weight: 500;
    text-align: start;
}

.dec_comm_cl > div:nth-child(2) > span > div {
    width: 10%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
}

.dec_comm_cl > div:nth-child(2) > span > div:nth-child(2) > div:nth-child(1) {
    width: 1.65vw;
    height: 1.65vw;
    background-image: url(./Image/button_like.png);
    background-size: cover;
}

.dec_comm_cl > div:nth-child(2) > span > div:nth-child(2) > div:nth-child(1):hover {
    cursor: pointer;
}

.dec_comm_cl > div:nth-child(2) > span > div:nth-child(2) > span:nth-child(2) {
    font-size: 2vh;
    font-weight: bold;
}

.dec_comm_cl > div:nth-child(2) > span > div:nth-child(3) > div:nth-child(1) {
    width: 1.65vw;
    height: 1.65vw;
    background-image: url(./Image/diz_like.png);
    background-size: cover;
}

.dec_comm_cl > div:nth-child(2) > span > div:nth-child(3) > div:nth-child(1):hover {
    cursor: pointer;
}

.dec_comm_cl > div:nth-child(2) > span > div:nth-child(3) > span:nth-child(2) {
    font-size: 2vh;
    font-weight: bold;
}

@media (max-width: 700px) {
    .dec_comm_cl > div:nth-child(2) > span > div:nth-child(2) > div:nth-child(1) {
        width: 3.25vw;
        height: 3.25vw;
    }
    .dec_comm_cl > div:nth-child(2) > span > div:nth-child(3) > div:nth-child(1) {
        width: 3.25vw;
        height: 3.25vw;
    }
}


.dec_comm_cl > div:nth-child(2) > div:nth-child(3) {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 20%;
}

.dec_comm_cl > div:nth-child(2) > div:nth-child(3) > span:nth-child(1) {
    font-size: 2vh;
    font-weight: bold;
    color: rgb(69, 67, 67);
}

.dec_comm_cl > div:nth-child(2) > div:nth-child(3) > span:nth-child(1):hover {
    cursor: pointer;
}

.dec_comm_cl > div:nth-child(2) > div:nth-child(3) > span:nth-child(2) {
    font-size: 2vh;
    font-weight: bold;
    color: rgb(69, 67, 67);
    text-decoration: underline;
}

.dec_comm_cl > div:nth-child(2) > div:nth-child(3) > span:nth-child(2):hover {
    cursor: pointer;
}

.dec_comm_cl > div:nth-child(2) > div:nth-child(3) > span:nth-child(3) {
    font-size: 2vh;
    font-weight: bold;
    color: rgb(69, 67, 67);
    text-decoration: underline;
}

.dec_comm_cl > div:nth-child(2) > div:nth-child(3) > span:nth-child(3):hover {
    cursor: pointer;
}

/* === подкомментарии === */

.dec_comm_lab_cl {
    width: 95.8%;
    height: auto;
    /* background: linear-gradient(45deg, rgba(78, 233, 233, 1), rgba(78, 233, 233, 0.5), rgba(78, 233, 233, 0)); */
    border-radius: 2vw;
    border-bottom-right-radius: 1vw;
    overflow: hidden;
    padding-left: 1vw;
    margin-top: 0.5vw;
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: start;
    gap: 1vw;
}

.dec_comm_lab_cl > div:nth-child(1) {
    width: 2.5vw;
    height: 2.5vw;
    border-radius: 50%;
    border: 2px black solid;
    overflow: hidden;
    background-size: cover;
}

.dec_comm_lab_cl > div:nth-child(2) {
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
}

.dec_comm_lab_cl > div:nth-child(2) > div:nth-child(1) {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 1vw;
}

.dec_comm_lab_cl > div:nth-child(2) > div:nth-child(1) > span:nth-child(1) {
    font-size: 2vh;
    font-weight: bold;
    color: rgb(69, 67, 67);
}

.dec_comm_lab_cl > div:nth-child(2) > div:nth-child(1) > span:nth-child(1):hover {
    cursor: pointer;
}

.dec_comm_lab_cl > div:nth-child(2) > div:nth-child(1) > span:nth-child(2) {
    font-size: 2vh;
    font-weight: bold;
    color: rgb(69, 67, 67);
    text-decoration: underline;
}

.dec_comm_lab_cl > div:nth-child(2) > div:nth-child(1) > span:nth-child(2):hover {
    cursor: pointer;
}

.dec_comm_lab_cl > div:nth-child(2) > span {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: start;
}

.dec_comm_lab_cl > div:nth-child(2) > span > span {
    width: 75%;
    font-size: 2vh;
    font-weight: 500;
    text-align: start;
}

.to_who_cl {
    width: 100%;
    font-size: 2vh;
    font-weight: bold;
    text-align: start;
    color: rgb(37, 37, 243);
}

.dec_comm_lab_cl > div:nth-child(2) > span > div {
    width: 12.5%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
}

.dec_comm_lab_cl > div:nth-child(2) > span > div:nth-child(2) > div:nth-child(1) {
    width: 1.65vw;
    height: 1.65vw;
    background-image: url(./Image/button_like.png);
    background-size: cover;
}

.dec_comm_lab_cl > div:nth-child(2) > span > div:nth-child(2) > div:nth-child(1):hover {
    cursor: pointer;
}


.dec_comm_lab_cl > div:nth-child(2) > span > div:nth-child(2) > span:nth-child(2) {
    font-size: 2vh;
    font-weight: bold;
}

.dec_comm_lab_cl > div:nth-child(2) > span > div:nth-child(3) > div:nth-child(1) {
    width: 1.65vw;
    height: 1.65vw;
    background-image: url(./Image/diz_like.png);
    background-size: cover;
}

.dec_comm_lab_cl > div:nth-child(2) > span > div:nth-child(3) > div:nth-child(1):hover {
    cursor: pointer;
}


.dec_comm_lab_cl > div:nth-child(2) > span > div:nth-child(3) > span:nth-child(2) {
    font-size: 2vh;
    font-weight: bold;
}

@media (max-width: 700px) {
    .dec_comm_lab_cl > div:nth-child(2) > span > div:nth-child(2) > div:nth-child(1) {
        width: 3.25vw;
        height: 3.25vw;
    }
    .dec_comm_lab_cl > div:nth-child(2) > span > div:nth-child(3) > div:nth-child(1) {
        width: 3.25vw;
        height: 3.25vw;
    }
}



.dec_comm_lab_cl > div:nth-child(2) > div:nth-child(3) {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 20%;
}

.dec_comm_lab_cl > div:nth-child(2) > div:nth-child(3) > span:nth-child(1) {
    font-size: 2vh;
    font-weight: bold;
    color: rgb(69, 67, 67);
}

.dec_comm_lab_cl > div:nth-child(2) > div:nth-child(3) > span:nth-child(1):hover {
    cursor: pointer;
}

.dec_comm_lab_cl > div:nth-child(2) > div:nth-child(3) > span:nth-child(2) {
    font-size: 2vh;
    font-weight: bold;
    color: rgb(69, 67, 67);
    text-decoration: underline;
}

.dec_comm_lab_cl > div:nth-child(2) > div:nth-child(3) > span:nth-child(2):hover {
    cursor: pointer;
}


/*----- блок ответа -----*/

#response_comm_block_id {
    position: absolute;
    bottom: 12vh;
    padding: 1vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 0.5vw;
    z-index: 1010;
    backdrop-filter: blur(8px);
}

#response_comm_block_id > div:nth-child(1) {
    width: 2.5vw;
    height: 2.5vw;
    border: 1.5px black solid;
    border-radius: 50%;
    background-size: cover;
}

#response_comm_block_id > span:nth-child(2) {
    font-size: 2vh;
    font-weight: bold;
}

#response_comm_block_id > span:nth-child(3) {
    font-size: 2vh;
}

#response_comm_block_id > div:nth-child(4) {
    font-size: 2vh;
    font-weight: bold;
    color: rgb(69, 67, 67);
    padding: 0.5vw;
    padding-top: 0.25vw;
    padding-bottom: 0.25vw;
    border: 1px black solid;
    border-radius: 0.25vw;
}

#response_comm_block_id > div:nth-child(4):hover {
    cursor: pointer;
}

/*----- комментарии к новости -----*/
.commet_start_block_cl {
    position: absolute;
    width: 35vw;
    display: flex;
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    bottom: 5vh;
    z-index: 1010;
}

.commet_start_block_cl > textarea {
    width: 80%;
    height: 3vh;
    resize: none;
    font-size: 2.5vh;
    font-weight: bold;
    margin-bottom: 0.3vw;
    padding-left: 0.5vw;
}

.commet_start_block_cl > div {
    padding: 1vw;
    padding-top: 0.5vw;
    padding-bottom: 0.5vw;
    border: 2px solid black;
    border-radius: 1vw;
    margin-left: 1vw;
    font-size: 2vh;
    font-weight: bolder;
    transition: 500ms all;
}

.commet_start_block_cl > div:hover {
    cursor: pointer;
}

@media (max-width: 1000px) {
    #comment_block_id {
        height: 100vh;
        flex-direction: column;
        align-items: start;
        justify-content: center;
        overflow-y: scroll;
    }
    .commet_start_block_cl {
        width: 70vw;
    }
    .news_info_block_cl > span:nth-child(3) {
        font-size: 2vh;
    }
    .news_info_block_cl > span:nth-child(4) {
        font-size: 2vh;
    }
    .news_info_block_cl > div:nth-child(5) > span {
        font-size: 2vh;
    }
    .news_info_block_cl {
        width: 90%;
        height: 90vh;
        margin-left: 5%;
    }
    .news_comm_block_cl {
        width: 90%;
        height: 90vh;
        margin-left: 5%;
    }
}

@media (max-width: 700px) {
    #response_comm_block_id {
        bottom: 24vh;
    }
    .commet_start_block_cl {
        bottom: 17vh;
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: start;
        gap: 1vh;
    }
    .commet_start_block_cl > textarea {
        width: 100%;
    }
}

/* === кнопка закрытия === */

#comment_mat_list_close_main_id {
    width: 6vw;
    height: 6vw;
    position: fixed;
    top: 3vh;
    left: 3vw;
    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;
}

#comment_mat_list_close_main_id:hover {
    cursor: pointer;
}

/* === НАЧАЛЬНАЯ ЗАГРУЗКА === */
#load_modal_block_n_b_id {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgb(231, 219, 219, 0.4);
    z-index: 40000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#load_modal_block_n_b_id > div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2vw;
}

#load_modal_block_n_b_id > div > img {
    width: 8vh;
    height: 8vh;
}

#load_modal_block_n_b_id > div > span {
    font-size: 3vh;
    font-weight: bold;
}

/* === загрузка новостей === */
#news_download_id {
    width: 100vw;
    height: 10vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3vw;
}

#news_download_id > img {
    width: 3vw;
    height: 3vw;
}

#news_download_id > span {
    font-size: 3vh;
    font-weight: bold;
}

/* --- меню поделиться --- */
.share_menu_cl {
    position: absolute;
    transform: translateY(-250px) translateX(-50px);
    width: 250px;
    height: 250px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-evenly;
    box-shadow: 4px 4px 8px black;
    border-radius: 15px;
    background-color: white;
}

@media (max-width: 600px) {
    .share_menu_cl {
        transform: translateY(-250px) translateX(20px);
    }
}

.share_menu_cl > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 16px;
}

.share_menu_cl > div:hover {
    cursor: pointer;
}

.share_menu_cl > div > div {
    width: 40px;
    height: 40px;
    background-size: cover;
}

.share_menu_cl > div > span {
    font-size: 18px;
    font-weight: bold;
    color: #565151;
}