@import url("reset.css");

/****** Настройки *******/

html, body {
    height: 100%;
}

.lock,
.lock2 {
    overflow: auto;
}

img {
    max-width: 100%;
    height: auto;
    width: auto\9;
}

.wrapper {
    display: table;
    height: 100%;
    width: 100%;
}

.content {
    display: table-row;
    height: 100%;
}

body {
    font-family: 'Verdana';
    font-weight: normal;
    font-size: 14px;
    line-height: 18px;
    background: #0f172a;
    min-width: 300px;
    overflow-x: auto;
    color: #94a9c9;
}

.container, .container2, .container3 {
    margin: 0 auto;
    width: 100%;
    max-width: 1360px;
}

.container2 {
    max-width: 1160px;
}

.container3 {
    max-width: 100%;
    padding: 0 30px;
}

/* Шапка */

header {
    width: 100%;
    padding: 20px 0;
    background: #0f172a;
    border-bottom: 1px solid #222f43;
}

#header {
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    width: 100%;
}

#logo a {
    display: flex;
    align-items: center;
    align-content: center;
    text-decoration: none;
}

#logo_img img {
    height: 37px;
    margin: 0 10px 0 0;
}

#logo_text {
    color: #c2cce2;
    font-size: 32px;
    font-weight: bold;
}

#logo_text span {
    font-weight: bold;
    color: #00728f;
}

.btn, .btn2 {
    background: #0ea5ea;
    background: linear-gradient(90deg, #0ea5ea, #0bd1d1 51%, #0ea5ea) var(--x, 0) / 200%;
    color: #fff;
    transition: .5s;
    border-radius: 6px;
    padding: 10px 16px;
    font-family: Noto Sans, sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    display: inline-block;
    border: 0;
}

.btn:hover, .btn2:hover {
    --x: 100%;
    transition: .5s;
}

/* Контент */

#content {
    display: flex;
    padding: 120px 0 0 0;
    border-bottom: 1px solid #222f43;
    overflow: hidden;
    width: 100%;
}

#content_block {
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: space-between;
    width: 100%;
}

#content #content_bg {
    content: "";
    position: absolute;
    top: 4%;
    right: 15%;
    height: 500px;
    width: 500px;
    background: url(../img/shadow-center.svg) no-repeat 50%;
    background-size: contain;
    z-index: 1;
}

#content #content_bg_left {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: url(../img/shadow-right.svg) no-repeat 100% 100%;
    transform: scale(-1, 1);
    z-index: 1;
    left: 0%;
    top: 81.4px;
}

#content #banner {
    margin: 0 100px 0 0;
    position: relative;
}

#content #banner img {
    float: right;
    max-width: 750px;
    width: 750px;
    display: block;
    z-index: 2;
    position: relative;
}

#content_text {
    margin: -50px 0 0 0;
}

#content_text_static {
    font-weight: 800;
    font-size: 54px;
    line-height: 77px;
    color: white;
    margin: 0 0 0 100px;
}

#content_text_random {
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    margin: 20px 0 0 100px;
    font-size: 54px;
    line-height: 77px;
}

#content_text_random_span {
    font-weight: 800;
    background: linear-gradient(90deg,#0ea5ea,#0bd1d1 51%,#0ea5ea) var(--x,0)/200%;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-fill-color: transparent;
}

#content_text_random_cursor {
    color: white;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

#pattern1, #pattern2, #pattern3, #pattern4 {
    position: absolute;
}

#pattern1 {
    top: -40%;
    left: 5%;
}

#pattern1 img {
    animation: animationFramesOne 20s linear infinite alternate;
}

@keyframes animationFramesOne {
    0% {
        transform: translate(0) rotate(0deg);
    }
    20% {
        transform: translate(73px, -1px) rotate(36deg);
    }
    40% {
        transform: translate(141px, 72px) rotate(72deg);
    }
    60% {
        transform: translate(83px, 122px) rotate(108deg);
    }
    80% {
        transform: translate(-40px, 72px) rotate(144deg);
    }
    100% {
        transform: translate(0) rotate(0deg);
    }
}

#pattern2 {
    top: -15%;
    right: 15%;
    animation: hero-thumb-animation 2s linear infinite alternate;
}

@keyframes hero-thumb-animation {
    0% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

#pattern2 img {
    animation: rotateMe 10s linear infinite alternate;
}

@keyframes rotateMe {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(1turn);
    }
}

#pattern3 {
    top: 45%;
    left: 5%;
    animation: hero-thumb-animation 2s linear infinite alternate;
}

#pattern4 {
    bottom: 38%;
    right: 5%;
    animation: wiggle 2s linear infinite alternate;
}

@keyframes wiggle {
    0%, 100% {
        transform: scale(1.2) rotate(7deg);
    }
    50% {
        transform: scale(.8) rotate(-7deg);
    }
}

#pattern1 img, #pattern4 img {
    width: 22px !important;
    height: 22px !important;
}

#pattern2 img, #pattern3 img {
    width: 27px !important;
    height: 26px !important;
}

/* Новостной блок */

#news_block {
    position: relative;
    width: 100%;
}

#news_block::before {
    content: "";
    position: absolute;
    top: -300px;
    right: 32%;
    height: 500px;
    width: 500px;
    background: url(../img/shadow-center.svg) no-repeat 50%;
    background-size: contain;
    z-index: 1;
}

.news_block {
    display: grid;
    grid-template-columns: 555.2px auto;
    align-items: flex-start;
    align-content: flex-start;
    width: 100%;
    min-height: 300px;
    margin: 0 0 20px 0;
    border-radius: 8px;
    padding: 24px;
    border-width: 1px;
    border-style: solid;
    border-color: #222f43;
    background-color: #131c31;
    position: relative;
    z-index: 2;
}

.news_block:first-child {
    margin: 50px 0 20px 0;
}

.news_block__img_block {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    max-height: 315px;
}

.news_block_img {
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    width: 100%;
    position: relative;
    z-index: 5;
}

.news_block_img__img {
    min-width: 555.2px;
}

.post-type {
    background: url(../img/post-type.svg) no-repeat 50%;
    height: 42px;
    width: 42px;
    position: absolute;
    top: 15px;
    right: 15px;
}

.news_block_text {
    margin: 0 0 0 20px;
}

.news_block_text_tags {
    width: 100%;
    max-height: 68px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 15px;
}

.news_block_text_tags_hash {
    border-radius: 50px;
    padding: 6px 15px;
    font-size: 13px;
    line-height: 16px;
    color: #fff;
    white-space: no-wrap;
    background-color: #222f43;
}

.news_block_text_h1 {
    margin: 15px 0 20px 0;
    max-height: 64px;
    overflow: hidden;
}

.news_block_text_h1 a {
    color: #b9e0f2;
    text-decoration: none;
    font-size: 24px;
    line-height: 33px;
    font-weight: bold;
}

.news_block_text_h1 a:hover {
    color: #1cc2e7;
}

.news_block_text_list {
    width: 100%;
    height: 120px;
    overflow: hidden;
    margin: 0 0 30px 0;
    padding: 0 18px 0 0;
}

.news_block_text_list p {
    color: #94a9c9;
}

.news_block_text_more {
    display: grid;
    align-items: center;
    align-content: center;
    grid-template-columns: 1fr 177px;
}

.news_block_text_more_date_p {
    background: url(../img/clock.svg) no-repeat 0;
    display: inline-block;
    padding: 0 0 0 23px;
    color: #66768f;
}

.news_block_text_more_btn {
    position: relative;
}

.news_block_text_more_btn a {
    position: relative;
    color: #94a9c9;
    text-decoration: none;
    padding: 0 0 0 25px;
}

.news_block_text_more_btn a:hover {
    color: #0ea5ea
}

.news_block_text_more_btn a span {
    position: relative;
    z-index: 2;
}

.news_block_text_more_btn a::before {
    content: "";
    position: absolute;
    height: 48px;
    width: 48px;
    border-radius: 50%;
    left: 0;
    top: -13.5px;
    background-color: #0f172a;
    z-index: 1;
}

/* Страница новостей */

#new_block {
    width: 100%;
    position: relative;
    margin: 30px 0 0 0;
}

#new_block_photo {
    width: 100%;
    max-width: 700px;
    margin: 15px auto;
}

#new_block_photo img {
    width: 100%;
    border-radius: 10px;
}

#new_block_title {
    width: 100%;
    color: #b9e0f2;
    text-decoration: none;
    font-size: 24px;
    line-height: 33px;
    font-weight: bold;
}

#new_block_desc {
    width: 100%;
    border-bottom: 1px solid #222f43;
    padding: 0 0 10px 0;
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 24px;
}

#new_block_date_pub {
    width: 100%;
    padding: 0 0 0 23px;
    background: url(../img/clock.svg) no-repeat 0;
    display: inline-block;
    color: #66768f;
}

/* Страница входа  */

#auth_block {
    width: 100%;
    text-align: center;
    margin: 50px 0 0 0;
}

#auth_block h2 {
    background: linear-gradient(90deg, #0ea5ea, #0bd1d1 51%, #0ea5ea) var(--x, 0) / 200%;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-fill-color: transparent;
    font-weight: 700;
    font-size: 45px;
    line-height: 61px;
    margin: 0 0 50px 0;
}

#auth_block_form {
    display: inline-block;
    max-width: 405px;
    width: 100%;
    border-radius: 16px;
    margin: auto;
    border-width: 1px;
    border-style: solid;
    padding: 30px;
    background-color: #131c31;
    border-color: #222f43;
}

.input:last-child {
    margin-bottom: 0;
}

.input {
    margin-bottom: 25px;
    position: relative;
}

.input input {
    border-radius: 8px;
    padding: 20px;
    border-width: 1px;
    border-style: solid;
    color: #7f92b0;
    width: 100%;
    border-color: #222f43;
    background-color: #131c31;
    font-size: 1rem;
}

.input input:focus {
    border-color: #66768f;
    background-color: #131c31;
    color: #7f92b0;
    outline: none;
}

.viewpass {
    position: absolute;
    top: -3px;
    right: 0;
    padding-right: 30px;
    background-image: url(../img/view.svg);
    background-position: 50%;
    background-repeat: no-repeat;
    height: 65px;
    width: 50px;
    cursor: pointer;
}

#btn_auth, #btn_forgot {
    width: 100%;
    color: #212529;
    height: 50px;
}

#btn_auth:hover, #btn_forgot:hover {
    color: white;
}

#forgot_pass {
    width: 100%;
    text-align: left;
}

#forgot_pass a {
    color: #b9e0f2;
    text-decoration: none;
}

#auth_pass, #new_pass, #return_new_pass, .pass {
    padding-right: 50px !important;
}

.system_message, .system_message2 {
    color: red;
    display: none;
    width: 100%;
    text-align: left;
}

.system_message2 {
    display: block;
    margin-top: 20px;
}

#menu {
    display: inline-block;
    width: 100%;
}

#menu a {
    font-family: Noto Sans, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    display: inline-block;
    padding: 13px 17px;
    text-decoration: none;
    position: relative;
    color: #94a9c9;
    text-decoration: none;
    position: relative;
}

#menu a:hover, #menu a.active {
    color: #1cc2e7;
}

#menu a span {
    display: none;
    align-items: center;
    align-content: center;
    justify-content: center;
    font-size: 7px;
    position: absolute;
    top: 0;
    right: -3px;
    background: red;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
}

#menu a:last-child {
    display: none;
    text-indent: 0%;
    text-align: center;
    color: #212529;
}

#probel {
    width: 100%;
    height: 1px;
    display: block;
}

#profile, #invites_block {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 50px 0;
}

#profile_user, #change_pass, #invites_block {
    display: flex;
    align-items: flex-start;
    border-radius: 16px;
    border-width: 1px;
    border-style: solid;
    padding: 30px;
    border-color: #222f43;
    background-color: #131c31;
}

#profile_user {
    min-width: 700px;
    flex-wrap: wrap;
}

#change_pass {
    flex-wrap: wrap;
}

#profile_user_block {
    display: flex;
}

#profile_user_block_photo {
    max-width: 250px;
    width: 100%;
    margin: 0 20px 0 0;
}

#profile_user_block_photo_img {
    width: 250px;
    height: 250px;
    margin: 0 0 20px 0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

#profile_user_block_photo img {
    border-radius: 20px;
    max-width: 250px;
    width: 100%;
}

#profile_user_block_display_name {
    width: 100%;
}

.profile_user_block_display_name_items {
    white-space: nowrap;
    margin: 0 0 15px 0;
}

.profile_user_block_display_name_items:last-child {
    margin: 0;
    white-space: normal;
}

.profile_user_block_display_name_items span {
    font-weight: bold;
}

.admin, .off {
    color: red;
}

.on {
    color: green;
}

#change_pass_h2 {
    width: 100%;
}

#change_pass_h2 {
    display: inline-block;
    font-size: 25px;
    line-height: 25px;
    padding: 0 0 15px 0;
    border-bottom: 1px solid #222f43;
    margin: 0 0 30px 0;
}

#change_pass_block, #change_pass_block form, #change_pass_block form .input, #change_pass_block form .input input {
    width: 100%;
}

/* Приглашения */

#invites_block {
    display: block;
    width: 100%;
}

#invites_block_h2 {
    display: flex;
    width: 100%;
    padding: 0 0 15px 0;
    border-bottom: 1px solid #222f43;
    margin: 0 0 30px 0;
}

#invites_block_h2_text {
    width: 100%;
    font-size: 22px;
    line-height: 25px;
}

#invites_block_h2_btn {
    position: relative;
    display: block;
}

#invites_block_content_table_not, #users_block_content_table_not {
    width: 100%;
    text-align: center;
}

#invites_block_content_table_header {
    display: grid;
    grid-template-columns: 250px 1fr 1fr 1fr 1fr 1fr;
    border: 2px solid #0ea5ea;
    border-radius: 5px;
    align-items: center;
    justify-items: center;
}

.invites_block_content_table_header_item {
    padding: 10px 15px;
}

#invites_block_content_table_items {
    display: grid;
    grid-template-columns: 250px 1fr 1fr 1fr 1fr 1fr;
    align-items: center;
    justify-items: center;
    background-color: #b9e0f2;
    color: #0f172a;
    margin: 5px 0 0 0;
    gap: 5px;
}

.invites_block_content_table_items_item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    border-right: 1px solid #66768f;
    width: 100%;
    height: 100%;
    padding: 10px;
}

.invites_block_content_table_items_item:first-child {
    word-break: break-all;
}

.invites_block_content_table_items_item img {
    width: 15px;
    height: 15px;
    cursor: pointer;
    margin: 0 10px;
}

#popup {
    display: none;
    z-index: 99;
    border: 1px solid #131c31;
    border-radius: 10px;
    background: #00728f;
    position: absolute;
    top: 15px;
    left: 25px;
    width: 250px;
    color: white;
    padding: 10px 15px;
}

.wait {
    color: rgb(146, 95, 0);
}

#users_block_content_table_header {
    display: grid;
    grid-template-columns: 90px 1fr 1fr 1fr 1fr 200px;
    border: 2px solid #0ea5ea;
    border-radius: 5px;
    align-items: center;
    justify-items: center;
}

.users_block_content_table_header_item {
    padding: 10px 15px;
}

#users_block_content_table_items {
    display: grid;
    grid-template-columns: 90px 1fr 1fr 1fr 1fr 200px;
    align-items: center;
    justify-items: center;
    background-color: #b9e0f2;
    color: #0f172a;
    margin: 5px 0 0 0;
}

.users_block_content_table_items_item {
    display: block;
    text-align: center;
    padding: 15px 0;
    border-right: 1px solid #66768f;
    width: 100%;
    height: 100%;
    padding: 10px;
}

.users_block_content_table_items_item span {
    margin: 0 0 0 5px;
}

.users_block_content_table_items_item a img {
    width: 100%;
}

.active_on {
    width: 10px;
    height: 10px;
    background-color: green;
    border-radius: 50%;
    display: inline-block;
}

.active_off {
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
    display: inline-block;
}

.block_btn {
    background: #a21c02;
    background: linear-gradient(90deg, #d50606, #531014 51%, #af4242) var(--x, 0) / 200%;
    color: #fff;
    transition: .5s;
    border-radius: 6px;
    padding: 10px 16px;
    font-family: Noto Sans, sans-serif;
    font-size: 12px;
    line-height: 20px;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    display: inline-block;
    border: 0;
    margin: 15px 0 0 0;
}

.block_btn:hover {
    --x: 100%;
    transition: .5s;
}

.add_btn {
    background: #cae502;
    background: linear-gradient(90deg, #868b00, #dcb103 51%, #7c5700) var(--x, 0) / 200%;
    color: #fff;
    transition: .5s;
    border-radius: 6px;
    padding: 10px 16px;
    font-family: Noto Sans, sans-serif;
    font-size: 12px;
    line-height: 20px;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    display: inline-block;
    border: 0;
    margin: 15px 0 0 0;
}

.add_btn:hover {
    --x: 100%;
    transition: .5s;
}

/* Сообщения */

#messages_block {
    margin: 50px 0;
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: start;
    align-content: start;
    gap: 20px;
    width: 100%;
    height: 100%;
}

#messages_block_chats {
    display: flex;
    width: 300px;
    min-height: 500px;
    max-height: 838px;
    overflow-x: auto;
    border: 1px solid #222f43;
    background-color: #131c31;
    border-radius: 10px;
}

#messages_block_chats::-webkit-scrollbar {
    width: 10px; /* Ширина всего элемента навигации */
}
  
#messages_block_chats::-webkit-scrollbar-track {
    background: #131c31; /* Цвет дорожки */
    border-radius: 10px;
  }
  
#messages_block_chats::-webkit-scrollbar-thumb {
    background-color: #7f92b0; /* Цвет бегунка */
    border-radius: 10px; /* Округление бегунка */
    border: 2px solid #7f92b0; /* Оформление границ бегунка */
}

#messages_block_chats_content {
    width: 100%;
}

#messages_block_content {
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
    min-height: 500px;
    border: 1px solid #222f43;
    background-color: #131c31;
    border-radius: 10px;
    padding: 15px;
}

#messages_block_chats_content_not {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#messages_block_content_header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    min-height: 50px;
    overflow: hidden;
    border-bottom: 1px solid #222f43;
    padding: 0 0 15px 0;
    margin-bottom: 15px;
}

#messages_block_content_header_text {
    line-height: 30px;
    display: flex;
    gap: 20px;
}

#messages_block_content_header_content {
    width: 100%;
}

#messages_block_content_header_btn svg {
    cursor: pointer;
    user-select: none;
}

#messages_block_content_header_content_text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 350px;
}

#messages_block_content_header_content_invite {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: center;
    margin: 0 auto;
    width: 450px;
    min-height: 345px;
}

#messages_block_content_header_content_invite .btn2 {
    margin: 15px 0 0 15px;
}

#sound_on {
    display: none;
    width: 24px;
    height: 24px;
}

#sound_off {
    display: none;
    width: 24px;
    height: 24px;
}

#sound_on.active,
#sound_off.active {
    display: block;
}

#messages_block_content_chat_users {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    clear: both;
    width: 100%;
    margin: 7px 0 0 0;
    cursor: default;
    gap: 10px;
}

#messages_block_content_chat_users span {
    position: relative;
    background-color: #222f43;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: default;
}

#messages_block_content_chat_users span .delete_user_in_chat {
    position: absolute;
    user-select: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    padding: 2px;
    top: -8px;
    right: -4px;
}

#messages_block_content_chat_users span:hover .delete_user_in_chat {
    display: flex;
}

#popupWindow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    overflow-x: auto;
    width: 100%;
    height: 100%;
    z-index: 999;
    padding: 0 0 20px 0;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

#popupWindowCon {
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    flex-wrap: wrap;
    padding: 15px;
    width: 300px;
    min-height: 200px;
    background: #131c31;
    border: 1px solid #00728f;
    border-radius: 15px;
}

#popupWindowConHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    width: 100%;
    padding: 0 0 15px 0;
    margin: 0 0 15px 0;
    border-bottom: 1px solid #66768f;
}

#popupWindowConHeaderBtn {
    font-size: 12px;
    cursor: pointer;
}

#popupWindowConHeaderBtn span {
    background-color: #66768f;
    padding: 5px 10px;
    color: white;
}

#popupWindowConText {
    width: 100%;
    height: 100%;
    display: block;
}

.popupWindowConTextItem {
    width: 100%;
    display: block;
    margin: 15px 0 0 0;
}

.popupWindowConTextItem:first-child {
    margin: 0;
}

.popupWindowConTextItem p {
    margin: 10px 0 0 0;
    width: 100%;
}

.popupWindowConTextItem p:first-child {
    margin: 0;
}

.popupWindowConTextItem p select {
    width: 100%;
    padding: 8px 0;
}

.popupWindowConTextItem p .input {
    padding: 8px 5px;
    width: 100%;
}

#createChat {
    width: 100%;
    margin-top: 15px;
}

#addUserBtn, #addNoteBtn {
    width: 100%;
    margin-top: 15px;
}

.popupWindowConTextItemErr {
    color: red;
    display: none;
}

.block {
    overflow: hidden !important;
}

.messages_block_chats_content_item {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    width: 100%;
    height: 65px;
    padding: 10px;
    overflow: hidden;
    border-bottom: 1px solid #222f43;
    cursor: pointer;
    user-select: none;
}

.messages_block_chats_content_item:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.messages_block_chats_content_item:hover,
.messages_block_chats_content_item.active {
    background:  #222f43;
}

.messages_block_chats_content_item_name {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.messages_block_chats_content_item_name_img {
    display: flex;
    width: 60px;
    min-width: 60px;
    overflow: hidden;
    margin: 0 15px 0 0;
}

.messages_block_chats_content_item_name_img_photo {
    width: 30px;
    height: 30px;
    overflow: hidden;
    border-radius: 50%;
    margin: 0 0 0 -17px;
}

.messages_block_chats_content_item_name_img_photo:first-child {
    margin: 0;
}

.messages_block_chats_content_item_name_img_photo img {
    width: 30px;
    height: 100%;
    vertical-align: top;
    object-fit: cover;
}

.messages_block_chats_content_item_name_text {
    display: flex;
    white-space: nowrap;
    text-align: left;
    text-overflow: clip;
}

.messages_block_chats_content_item_date {
    width: 100%;
    text-align: right;
    font-size: 10px;
}

.messages_block_chats_content_item_name_alert {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 8px;
    left: 55px;
    background-color: red;
    font-size: 8px;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

#messages_block_content_header_content_chat {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    width: 100%;
    min-height: 300px;
    max-height: 500px;
    overflow-x: auto;
    padding: 0 10px 0 0;
}

#messages_block_content_header_content_chat::-webkit-scrollbar {
    width: 10px; /* Ширина всего элемента навигации */
}
  
#messages_block_content_header_content_chat::-webkit-scrollbar-track {
    background: #131c31; /* Цвет дорожки */
  }
  
#messages_block_content_header_content_chat::-webkit-scrollbar-thumb {
    background-color: #7f92b0; /* Цвет бегунка */
    border-radius: 10px; /* Округление бегунка */
    border: 2px solid #7f92b0; /* Оформление границ бегунка */
}

.messages_block_content_header_content_chat_item_system {
    height: 40px;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    background: #7388ab;
    border-radius: 10px;
    font-size: 12px;
    color:  black;
}

.messages_block_content_header_content_chat_item_system b {
    font-weight: bold;
    margin: 0 5px;
}

.messages_block_content_header_content_chat_item {
    position: relative;
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: flex-start;
    width: 100%;
    margin: 15px 0 0 0;
}

.messages_block_content_header_content_chat_item.self {
    flex-direction: row-reverse;
}

.messages_block_content_header_content_chat_item:first-child {
    margin: 0;
}

.messages_block_content_header_content_chat_item_avatar_active_on {
    display: block;
    width: 10px;
    height: 10px;
    position: absolute;
    top: 0;
    left: 0;
    background-color: green;
    border-radius: 50%;
    z-index: 10;
}

.messages_block_content_header_content_chat_item_avatar_active_off {
    display: block;
    width: 10px;
    height: 10px;
    position: absolute;
    top: 0;
    left: 0;
    background-color: red;
    border-radius: 50%;
    z-index: 10;
}

.messages_block_content_header_content_chat_item.self .messages_block_content_header_content_chat_item_avatar_active_on,
.messages_block_content_header_content_chat_item.self .messages_block_content_header_content_chat_item_avatar_active_off {
    left: auto;
    right: 0;
}

.messages_block_content_header_content_chat_item_display_name {
    width: 100%;
    font-size: 14px;
    margin-bottom: 10px;
}

.messages_block_content_header_content_chat_item.self .messages_block_content_header_content_chat_item_display_name {
    display: none;
}

.messages_block_content_header_content_chat_item_display_name span {
    font-weight: bold;
}

.messages_block_content_header_content_chat_item_avatar {
    position: relative;
    width: 50px;
    min-width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 50%;
    margin: 0 15px 0 0;
}

.messages_block_content_header_content_chat_item.self .messages_block_content_header_content_chat_item_avatar {
    margin: 0 0 0 15px;
}

.messages_block_content_header_content_chat_item_avatar img {
    width: 100%;
    height: 100%;
    vertical-align: top;
    margin: 0;
    object-fit: cover;
}

.messages_block_content_header_content_chat_item_text {
    width: 100%;
    padding: 10px;
    min-height: 50px;
    font-size: 12px;
    background: #222f43;
    border-top-left-radius: 0;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    box-sizing: border-box;
}

.messages_block_content_header_content_chat_item.self .messages_block_content_header_content_chat_item_text {
    border-top-left-radius: 10px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}

.messages_block_content_header_content_chat_item_text__desc {
    overflow: hidden;
    word-wrap: break-word;
}

.messages_block_content_header_content_chat_item.self .messages_block_content_header_content_chat_item_text {
    background: #384e6e;
}

.messages_block_content_header_content_chat_item_photo {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: flex-start;
    gap: 15px;
    clear: both;
    width: 100%;
    margin-top: 15px;
}

.messages_block_content_header_content_chat_item_photo a {
    display: inline-block;
    max-width: 70px;
    max-height: 70px;
    overflow: hidden;
}

.messages_block_content_header_content_chat_item_photo a:hover {
    box-shadow: 0 0 8px #51CBEE;
}

.messages_block_content_header_content_chat_item_photo a img {
    width: 100%;
    vertical-align: top;
}

.messages_block_content_header_content_chat_item_date {
    font-size: 10px;
    text-align: right;
}

#messages_block_content_header_content_chat_input,
#messages_block_content_header_content_chat_input form,
#messages_block_content_header_content_chat_input_textarea,
#messages_block_content_header_content_chat_input_textarea textarea {
    width: 100%;
}

#messages_block_content_header_content_chat_input {
    margin: 15px 0 0 0;
    padding: 15px 0 0 0;
    border-top: 1px solid #222f43;
    width: 100%;
}

#messages_block_content_header_content_chat_input form {
    display: flex;
    align-items: flex-end;
    width: 100%;
}

#messages_block_content_header_content_chat_input_photos,
#messages_block_content_header_content_chat_input_sent {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    width: 51px;
    height: 51px;
    min-width: 51px;
    min-height: 51px;
    transition: background 0.5s ease;
    cursor: pointer;
    user-select: none;
}

#messages_block_content_header_content_chat_input_photos:hover,
#messages_block_content_header_content_chat_input_sent:hover {
    background: #222f43;
}

#messages_block_content_header_content_chat_input_photos svg,
#messages_block_content_header_content_chat_input_sent svg {
    height: 20px;
    cursor: pointer;
}

#messages_block_content_header_content_chat_input_photos {
    margin: 0 10px 0 0;
}

#messages_block_content_header_content_chat_input_sent {
    margin: 0 0 0 10px;
}

#messages_block_content_header_content_chat_input_textarea {
    width: 100%;
    background: #222f43;
    border-radius: 10px;
    padding: 15px 45px 15px 15px;
    position: relative;
}

#emojiBtn {
    position: absolute;
    cursor: pointer;
    right: 15px;
    user-select: none;
}

#emojiPicker {
    display: none;
    position: absolute;
    border: 1px solid #0f172a;
    top: -140px;
    right: 15px;
    width: 100%;
    max-width: 235px;
    height: 150px;
    background: #384e6e;
    border-radius: 10px;
    padding: 10px;
    overflow: hidden;
}

#emojiPickerEnter {
    width: 100%;
    height: 100%;
    user-select: none;
    overflow-y: auto;
}

#emojiPickerEnter::-webkit-scrollbar {
    width: 10px; /* Ширина всего элемента навигации */
}
  
#emojiPickerEnter::-webkit-scrollbar-track {
    background: #222f43; /* Цвет дорожки */
}

#emojiPickerEnter::-webkit-scrollbar-thumb {
    background-color: #7f92b0; /* Цвет бегунка */
    border-radius: 10px; /* Округление бегунка */
    border: 2px solid #7f92b0; /* Оформление границ бегунка */
}

.emoji {
    cursor: pointer;
    font-size: 18px;
    line-height: 24px;
}

#messages_block_content_header_content_chat_input_textarea textarea {
    height: 10px;
    max-height: 148px;
    background: #222f43;
    resize: none;
    outline: none;
    border: none;
    color: white;
    vertical-align: top;
}

#messages_block_content_header_content_chat_input_textarea textarea::-webkit-scrollbar {
    width: 10px; /* Ширина всего элемента навигации */
}
  
#messages_block_content_header_content_chat_input_textarea textarea::-webkit-scrollbar-track {
    background: #222f43; /* Цвет дорожки */
  }
  #messages_block_content_header_content_chat_input_textarea textarea::-webkit-scrollbar-thumb {
    background-color: #7f92b0; /* Цвет бегунка */
    border-radius: 10px; /* Округление бегунка */
    border: 2px solid #7f92b0; /* Оформление границ бегунка */
}

#messages_block_content_header_content_chat_input_textarea textarea::placeholder {
    color: white;
}

#admin_panel {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgb(196, 138, 31);
    border-radius: 5px;
    width: 100px;
    height: 28px;
    padding: 12px 10px;
    margin-left: 8px;
}

#admin_panel:hover {
    box-shadow: 0 0 8px rgb(196, 138, 31);
}

#admin_panel a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 50%;
    text-decoration: none;
    color: white;
}

#admin_panel a:first-child {
    border-right: 1px solid rgb(196, 138, 31);
}

#admin_panel a:last-child {
    justify-content: flex-end;
}

.system_messages {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    position: absolute;
    top: 0;
    z-index: 99;
    cursor: default;
}

.system_messages span {
    max-width: 300px;
    min-width: 300px;
    padding: 10px;
    justify-content: center;
    display: flex;
    background: white;
    border: 1px solid #51CBEE;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

#error_message {
    display: none;
    color: red;
    font-size: 12px;
    line-height: 30px;
    margin: 0 0 0 60px;
}

.loader {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.loader svg {
    width: 55px;
    height: auto;
}

#filesInput {
    display: none;
}

#uploadPhotos {
    display: none;
    align-items: flex-start;
    align-content: flex-start;
    flex-wrap: break-all;
    margin: 15px 0 0 60px;
    gap: 10px;
    max-width: 986px;
}

.uploadPhotosImg {
    display: block;
    width: 70px;
    height: 70px;
    overflow: hidden;
    background: black;
}

.uploadPhotosImg img {
    width: 100%;
    vertical-align: top;
}

#messages_block_content_back {
    display: none;
    width: 100%;
    border-bottom: 1px solid #222f43;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

#messages_block_content_back_block a {
    display: flex;
    width: 180px;
    align-items: center;
    color: white;
    font-weight: bold;
    text-decoration: none;
    background-color: white;
    padding: 10px;
}

#messages_block_content_back_block a svg {
    width: 18px;
    height: 18px;
    margin: 0 5px 0 0;
}

#messages_block_content_back_block a svg path {
    fill: white;
}

#addChatBlock {
    display: none;
}

.hosting_block_content_table_items {
    width: 100%;
    display: grid;
    grid-template-columns: 20px 100px 250px 250px 150px 1fr;
    align-items: center;
    align-content: center;
    gap: 20px;
    background-color: #b9e0f2;
    padding: 10px;
    color: black;
    border-bottom: 1px solid #66768f;
}

.hosting_block_content_table_items_item.link,
.hosting_block_content_table_items_item.description {
    word-break: break-all;
}

.hosting_block_content_table_items_item.link img {
    width: 15px;
    height: 15px;
    cursor: pointer;
    margin: 0 10px;
}

.hosting_block_content_table_items_item {
    display: flex;
    align-items: center;
    align-content: center;
}

.hosting_block_content_table_items_item:last-child {
    justify-self: end;
    gap: 15px;
}

.hosting_block_content_table_items_item .block_btn {
    margin: 0;
}

.hosting_block_content_table_items_item_img {
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 50%;
    margin: 0 0 0 -30px;
}

.hosting_block_content_table_items_item_img:first-child {
    margin: 0;
}

.hosting_block_content_table_items_item_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: top;
}

#users_gallery_count {
    width: 100%;
}

.users_gallery_count_item {
    width: 100%;
    display: grid;
    grid-template-columns: 20px 1fr 1fr 100px;
    align-items: center;
    align-content: center;
    gap: 20px;
    background-color: #b9e0f2;
    padding: 10px;
    color: black;
    border-bottom: 1px solid #66768f;
    word-break: break-all;
}

.unviewGallerys {
    color: red;
    font-size: 10px;
    animation: blink 1s step-end infinite; /* Позволяет тексту постоянно мигать */
}

@keyframes blink {
    0%, 100% { opacity: 1; } /* Элемент виден */
    50% { opacity: 0; }      /* Элемент мерцает и становится невидимым! */
}

.users_gallery_count_item_val:last-child {
    text-align: right;
}

#form_add_gallery {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
}

.form_add_gallery_item {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    margin: 15px 0 0 0;
}

.form_add_gallery_item:first-child {
    margin: 0;
}

.form_add_gallery_item p {
    width: 100%;
    margin: 15px 0 0 0;
}

.form_add_gallery_item p:first-child {
    margin: 0;
}

#description_gallery {
    border-radius: 8px;
    padding: 20px;
    border-width: 1px;
    border-style: solid;
    color: #7f92b0;
    width: 100%;
    border-color: #222f43;
    background-color: #131c31;
    font-size: 1rem;
}

#description_gallery:focus {
    border-color: #66768f;
    background-color: #131c31;
    color: #7f92b0;
    outline: none;
}

#add_files_block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    border: 1px dotted #384e6e;
    border-radius: 10px;
    padding: 15px;
    width: 100%;
    min-height: 300px;
    margin: 30px auto 0 auto;
}

#add_files_block p {
    text-align: center;
    margin: 15px 0 0 0;
}

#add_files_block p:first-child {
    margin: 0 0 15px 0;
    font-size: 18px;
}

#add_files_block p:last-child input {
    font-size: 24px;
    padding: 20px 26px;
}

#upload_files_gallery {
    display: none;
}

#add_files_block p span {
    line-height: 28px;
}

#add_files_block_preview {
    display: none;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    border: 1px dotted #384e6e;
    border-radius: 10px;
    padding: 15px;
    width: 100%;
    min-height: 300px;
    margin: 30px auto 0 auto;
}

.add_files_block_preview_item {
    width: 100%;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    border-bottom: 1px solid #384e6e;
    padding: 20px 0;
    gap: 20px;
}

.add_files_block_preview_item:first-child {
    padding-top: 0 !important;
}

.add_files_block_preview_item p {
    width: auto;
    min-width: 20px;
    margin: 0;
}

.add_files_block_preview_item p img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    vertical-align: top;
    margin: 0;
}

.add_files_block_preview_item_name {
    max-width: 200px;
    width: 100% !important;
    overflow: hidden;
}

#progressBar {
    width: 450px;
}

progress {
    height: 10px;
    margin: 4px 0 0 0;
    vertical-align: top;
    border: 1px solid #00728f;
    background-color: #00728f;
}
  
progress::-webkit-progress-bar {
    border: 1px solid #00728f;
    background-color: #00728f;
}

progress::-webkit-progress-value {
    background-color: #0bd1d1;
}

progress::-moz-progress-bar {
    border: none;
    background-color: #0bd1d1;
}

#btn_upload_files_block {
    margin: 40px auto 0 auto;
}

.add_files_block_preview_item_progress {
    width: 150px !important;
}

#all_upload_size {
    width: 100%;
    margin: 20px 0 0 0;
}

.add_files_block_preview_item_name_system_message {
    display: block;
    font-size: 10px;
    line-height: 12px;
    margin: 5px 0 0 0;
    color: red;
}

.hosting_block_content_table_items_item_examination {
    flex-wrap: wrap; 
    gap: 5px;
}

.examination_btn {
    color: #00728f;
}

.examination_btn:hover {
    text-decoration: none;
}

.contentExamin {
    background: #0f172a;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
}

.contentExamin:last-child {
    margin: 0;
}

.contentExaminSearch {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #222f43;
    flex-wrap: wrap;
}

.contentExaminSearchParagraph {
    display: block;
    width: 100%;
    text-align: center;
    font-style: italic;
    margin: 0 0 10px;
    background: #33497c;
    color: white;
    padding: 5px;
}

.contentExaminSearch img {
    max-width: 150px;
    max-height: 150px;
    height: auto;
    border: 2px solid #333;
    margin-bottom: 10px;
    object-fit: cover;
    transition: 0.3s;
    cursor: pointer;
}

.contentExaminSearch img:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.contentExaminDuplicates {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.contentExaminDuplicatesParagraph {
    display: block;
    width: 100%;
    font-style: italic;
    background: #33497c;
    color: white;
    padding: 5px;
}

.contentExaminDuplicatesParagraph span {
    float: right;
}

.contentExaminDuplicatesParagraph span a {
    color: red;
    text-decoration: underline;
}

.contentExaminDuplicatesParagraph span a:hover {
    text-decoration: none;
}

.contentExaminDuplicatesImg {
    max-width: 100px;
    max-height: 100px;
    vertical-align: top;
    position: relative;
}

.contentExaminDuplicates img {
    max-width: 100px;
    max-height: 100px;
    height: auto;
    border: 2px solid #aaa;
    transition: 0.3s;
    cursor: pointer;
    object-fit: cover;
    vertical-align: top;
}

.contentExaminDuplicates img:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.deleteFile {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: red;
    border-radius: 50%;
    font-size: 14px;
    width: 20px;
    height: 20px;
    position: absolute;
    top: -5px;
    right: -5px;
    text-decoration: none;
}

.deleteFile span {
    height: 20px;
}

/* Пагинация */

.pagination {
    margin: 20px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    gap: 10px;
}

.pagination a {
    background: #0ea5ea;
    background: linear-gradient(90deg, #0ea5ea, #0bd1d1 51%, #0ea5ea) var(--x, 0) / 200%;
    color: #fff;
    transition: .5s;
    border-radius: 6px;
    padding: 10px 16px;
    font-family: Noto Sans, sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    display: inline-block;
    border: 0;
}

.pagination a:hover {
    --x: 100%;
    transition: .5s;
}

.pagination span {
    background: #b9e0f2;
    color: black;
    transition: .5s;
    border-radius: 6px;
    padding: 10px 16px;
    font-family: Noto Sans, sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    display: inline-block;
    border: 0;
    cursor: default;
}

.delete_mess, .edit_mess {
    position: absolute;
    user-select: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    padding: 2px;
    top: -8px;
    right: -4px;
}

.edit_mess {
    right: 18px;
}

.edit_mess svg {
    fill: rgb(182, 119, 2);
}

.messages_block_content_header_content_chat_item:hover .delete_mess,
.messages_block_content_header_content_chat_item:hover .edit_mess {
    display: flex;
}

.messages_block_content_header_content_chat_item.self .delete_mess {
    left: 0px;
    right: auto;
}

.messages_block_content_header_content_chat_item.self .edit_mess {
    left: 22px;
    right: auto;
}

.editMessTextarea {
    width: 100%;
    min-height: 50px;
    padding: 5px;
    margin: 5px 0 0 0;
    resize: none;
    outline: none;
}

.editMessTextareaBtn {
    margin: 5px 0 0 0;
}

.editMessTextareaBtnSave {
    background: #00cb00;
    background: linear-gradient(90deg, #00cb00, #4df141 51%, #00cb00) var(--x, 0) / 200%;
    color: #fff;
    transition: .5s;
    border-radius: 6px;
    padding: 10px 16px;
    font-family: Noto Sans, sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    display: inline-block;
    border: 0;
    cursor: pointer;
    margin: 0 7px 0 0;
    text-align: center;
    min-width: 107px;
}

.editMessTextareaBtnSave:hover {
    --x: 100%;
    transition: .5s;
}

.editMessTextareaBtnSave svg {
    width: 30px;
    height: 14px;
}

.editMessTextareaBtnCansel {
    text-decoration: underline;
    cursor: pointer;
}

.editMessTextareaBtnCansel:hover {
    text-decoration: none;
}

/* Блок заметок */

.notes_alert {
    width: 16px;
    height: 16px;
    vertical-align: bottom;
    margin: 0 5px 0 0;
    animation: fade 1000ms infinite;
}

@keyframes fade {
    0% { fill-opacity: 0.5; }
    50% { fill-opacity: 1; }
    100% { fill-opacity: 0.5; }
}

.notes_alert path {
    fill: orange;
}

#nodes_svg {
    width: 18px;
    height: 15px;
}

#nodes_svg path {
    fill: green;
}

#admin_panel a:last-child {
    border-left: 1px solid rgb(196, 138, 31);
}

#notes_block {
    width: 100%;
    font-size: 12px;
    margin: 20px 0 0 0;
    border-top: 2px solid orange;
    border-bottom: 2px solid orange;
}

.notes_block_item {
    width: 100%;
    border-top: 1px dotted gray;
    clear: both;
    padding: 10px 0;
    cursor: default;
    position: relative;
    word-wrap: break-word;
}

.notes_block_item .delete_note {
    display: none;
}

.notes_block_item:hover .delete_note {
    display: flex;
    position: absolute;
    user-select: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    padding: 2px;
    top: 4px;
    right: 0;
}

.notes_block_item:first-child {
    border: none;
}

/* Футер */

footer {
    width: 100%;
    border-top: 1px solid #222f43;
    margin: 50px 0 0 0;
}

#footer {
    padding: 20px 0;
}

#footer_text {
    width: 100%;
    color: #94a9c9;
    margin: 20px 0 0 0;
    padding: 0 0 20px 0;
    font-size: 12px;
    border-bottom: 1px solid #222f43;
}

#footer_copyright {
    width: 100%;
    text-align: center;
    padding: 20px 0 0 0;
}