*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    background-image: url(../image/f.jpg);
}


.login {
    padding: 5px;
    margin: 30px auto;
    width: 350px;
    text-align: center;
}

.text-login {
    color: #070e48;
    font-size: 20pt;
}

.window-box {
    padding: 20px;
    margin: 70px auto;
    width: 355px;
    background-color: rgba(255, 255, 255, 0.74);
    border-radius: 30px;
    box-shadow: 0.4em 0.4em 5px rgba(122, 122, 122, 0.5);
}

.button-box {
    padding: 5px;
    margin: 30px auto;
    width: 350px;
    text-align: center;
}

span.error {
    text-shadow: 2px 3px 5px gray;
    font-family: ptxt, serif;
    font-size: 11pt;
    color: red;
}


/*button*/
.btn-white {
    display: inline-block;
    box-sizing: border-box;
    padding: 0 25px;
    margin: 0 15px 15px 0;
    outline: none;
    border: 1px solid #fff;
    border-radius: 50px;
    height: 46px;
    line-height: 46px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #444;
    background-color: #fff;
    box-shadow: 0 4px 6px rgb(65 132 144 / 10%), 0 1px 3px rgb(0 0 0 / 8%);
    cursor: pointer;
    user-select: none;
    appearance: none;
    touch-action: manipulation;
    vertical-align: top;
    transition: box-shadow 0.2s;
}

.btn-white:focus-visible {
    border: 1px solid #4c51f9;
    outline: none;
}

.btn-white:hover {
    transition: all 0.2s;
    box-shadow: 0 7px 14px rgb(65 132 144 / 10%), 0 3px 6px rgb(0 0 0 / 8%);
}

.btn-white:active {
    background-color: #808080;
}

.btn-white:disabled {
    background-color: #eee;
    border-color: #eee;
    color: #444;
    cursor: not-allowed;
}

.btn-green {
    display: inline-block;
    box-sizing: border-box;
    padding: 0 24px;
    margin: 0 15px 15px 0;
    outline: none;
    border: none;
    border-radius: 3px;
    height: 37px;
    line-height: 37px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: normal;
    text-decoration: none;
    color: #fff;
    background-color: #05cd51;
    cursor: pointer;
    user-select: none;
    appearance: none;
    touch-action: manipulation;
    transition: box-shadow .18s ease-out, background .18s ease-out, color .18s ease-out;
}

.btn-green:focus-visible {
    box-shadow: 0 0 0 3px lightskyblue;
}

.btn-green:hover {
    box-shadow: 0 1px 1px 0 #cfcfcf, 0 2px 5px 0 #cfcfcf;
}

.btn-green:active {
    background-color: #058c38 !important;
}

.btn-green:disabled {
    background-color: #aed2bc;
    color: #444;
    pointer-events: none;
}

/*end button*/


/* text-field */
.text-field {
    margin-bottom: 0.3rem;
}

.text-field__label {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 9pt;
}

.text-field__input {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #bdbdbd;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.text-field__input::placeholder {
    color: #212529;
    opacity: 0.4;
}

.text-field__input:focus {
    color: #212529;
    background-color: #fff;
    border-color: #bdbdbd;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(158, 158, 158, 0.25);
}

.text-field__input:disabled,
.text-field__input[readonly] {
    background-color: #f5f5f5;
    opacity: 1;
}

.text-field__counter {
    font-size: .75rem;
    margin-top: 0.15rem;
    text-align: right;
    padding-right: 15px;
    color: #363636;
}

/* page chat */

.main-table {
    width: 100%;
    height: 100%;
    border-collapse: collapse;
}

.left-side {
    width: 25%;
    vertical-align: top;
    text-align: center;
    font-size: 16pt;
    color: #0b1ae6;
    font-weight: bold;
    background-color: #fbfbfc;
}

.right-side {
    width: 25%;
    vertical-align: top;
    text-align: center;
    font-size: 16pt;
    color: #0b1ae6;
    font-weight: bold;
    background-color: #fbfbfc;
}

.header {
    height: 66px;
    background-color: #eed88f;
    background-image: url("../image/header_fon.jpg");
}

.center-box {
    /*background-color: #fbfbfc;*/
    width: 50%;
}

.footer {
    height: 55px;
    background-color: #e4ee8b;
    background-image: url("../image/footer_fon2.jpg");
}

.cur {
    cursor: pointer;
}

.smiles-chat {
    max-width: 40px;
}

/*loader*/


.text-load {
    position: absolute;
    bottom: -5px;
    left: -70px;
}

.loader {
    width: 80px;
    height: 67px;
    margin: auto;
    position: relative;
}

.loader .square {
    background: #009dff;
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border-radius: 4px;
    animation-fill-mode: both;
    animation: motion 2.5s infinite cubic-bezier(0.89, 0.03, 0.06, 1.5);
}

.loader .path {
    height: 10px;
    width: 110px;
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
}

.loader .path > div {
    background: #444;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin: 0 15px;
    position: absolute;
    top: 0;
    left: 0;
    animation-fill-mode: both;
    animation: dynamic 5s infinite cubic-bezier(0.89, 0.03, 0.06, 1.5);
}

.loader .path > div:nth-child(1) {
    left: 40px;
}

.loader .path > div:nth-child(2) {
    left: 80px;
}

.loader .path > div:nth-child(3) {
    left: 120px;
}

.loader .path > div:nth-child(4) {
    left: 160px;
}

.loader .path > div:nth-child(5) {
    left: 200px;
}

.loader .path > div:nth-child(6) {
    left: 240px;
}

.loader .path > div:nth-child(7) {
    left: 280px;
}

@keyframes motion {
    50% {
        transform: rotate(90deg);
    }
    100% {
        transform: rotate(180deg);
    }
}

@keyframes dynamic {
    0% {
        transform: translateX(-40px);
    }
    25% {
        transform: translateX(-80px);
    }
    50% {
        transform: translateX(-120px);
    }
    75% {
        transform: translateX(-160px);
    }
    100% {
        transform: translateX(-200px);
    }
}

.box-message {
    margin: 8px;
    max-height: 68px;

}

.logo-name {
    display: inline-block;
    background-color: rgba(101, 107, 115, 0.29);
    padding: 3px;
    border-radius: 10px 0 0 10px;
    color: #eff1f5;
    font-size: 9pt;
    font-style: italic;
    float: left;
    max-height: 68px;
    /*border: 1px solid purple;*/
}

.chat-tex-logo {
    display: flex;
}

.chat-text-message {
    display: inline-block;
    max-width: 90%;
    flex: 1;
    padding: 3px 12px;
    border-radius: 0 10px 10px 0;
    position: relative;
}

.chat-text-message .del-ico {
    position: absolute;
    right: 5px;
    display: inline-block;

}

.chat-text-message .edit-ico {
    position: absolute;
    right: 5px;
    display: none;
}
.chat-text-message:hover .edit-ico{
    display: inline-block;
}


.message-user {
    background-color: rgba(245, 242, 242, 0.53);
    color: #0a0b17;
}

.message-system {
    background-color: rgba(128, 128, 128, 0.13);
    color: #46464f;
    font-style: italic;
    font-size: 10pt;
}

.img-logo {
    margin: 3px;
    max-width: 28px;
    max-height: 40px;
    float: left;
}

.header-cat {
    background-color: #C49A7E;
    text-align: left;
    padding: 2px 15px;
}

.header-switch {
    background-color: #C49A7E;
    text-align: right;
    padding: 2px 15px;
}

.menu-ico {
    height: 44px;
    margin: 0 20px;
}

.menu > .active {
    height: 64px;
    margin: 0 10px;
}


.title-group {
    background-color: rgba(128, 128, 128, 0.34);
    border-radius: 8px;
    margin: 2px;
    padding: 2px;
    font-size: 14pt;
    color: #2d3748;
}

.color-group-full {
    background-color: rgba(128, 128, 128, 0.34);
}

.color-group-my {
    background-color: rgba(211, 209, 126, 0.34);
}

.color-group-invitation {
    background-color: rgba(116, 182, 203, 0.34);
    display: inline-block;
    width: 80%;
    /*border: 1px solid darkcyan;*/
}

.remove-ico {
    width: 12%;
    display: inline-block;
}

.color-group-private {
    background-color: rgba(171, 110, 215, 0.34);
    display: inline-block;
    width: 80%;
}

.number {
    height: 33px;
    width: 33px;
    background-color: #d63031;
    border-radius: 20px;
    color: white;
    text-align: center;
    top: 23px;
    left: 60px;
    padding: 3px;
    border-style: solid;
    border-width: 2px;
}

.number:empty {
    display: none;
}


.chain-br {
    background-image: url("../image/chain_br.png");
    background-position: right;
    height: 40px;
}

.chain-br-l {
    background-image: url("../image/chain_br.png");
    height: 40px;
}

.text-name-room {
    font-size: 14pt;
}


/*switcher*/
.mid {
    display: inline-block;
    align-items: center;
    justify-content: center;
    width: 125px;
    text-align: center;
}


/* Switch starts here */
.rocker {
    display: inline-block;
    position: relative;
    /*
    SIZE OF SWITCH
    ==============
    All sizes are in em - therefore
    changing the font-size here
    will change the size of the switch.
    See .rocker-small below as example.
    */
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    color: #888;
    width: 7em;
    height: 4em;
    overflow: hidden;
    border-bottom: 0.5em solid #eee;
}

.rocker-small {
    font-size: 0.75em; /* Sizes the switch */
    margin: 1em;
}

.rocker::before {
    content: "";
    position: absolute;
    top: 0.5em;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #999;
    border: 0.5em solid #eee;
    border-bottom: 0;
}

.rocker input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-left,
.switch-right {
    cursor: pointer;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5em;
    width: 3em;
    transition: 0.2s;
}

.switch-left {
    height: 2.4em;
    width: 2.75em;
    left: 0.85em;
    bottom: 0.4em;
    background-color: #ddd;
    transform: rotate(15deg) skewX(15deg);
}

.switch-right {
    right: 0.5em;
    bottom: 0;
    background-color: #bd5757;
    color: #fff;
}

.switch-left::before,
.switch-right::before {
    content: "";
    position: absolute;
    width: 0.4em;
    height: 2.45em;
    bottom: -0.45em;
    background-color: #ccc;
    transform: skewY(-65deg);
}

.switch-left::before {
    left: -0.4em;
}

.switch-right::before {
    right: -0.375em;
    background-color: transparent;
    transform: skewY(65deg);
}

input:checked + .switch-left {
    background-color: #0084d0;
    color: #fff;
    bottom: 0;
    left: 0.5em;
    height: 2.5em;
    width: 3em;
    transform: rotate(0deg) skewX(0deg);
}

input:checked + .switch-left::before {
    background-color: transparent;
    width: 3.0833em;
}

input:checked + .switch-left + .switch-right {
    background-color: #ddd;
    color: #888;
    bottom: 0.4em;
    right: 0.8em;
    height: 2.4em;
    width: 2.75em;
    transform: rotate(-15deg) skewX(-15deg);
}

input:checked + .switch-left + .switch-right::before {
    background-color: #ccc;
}

/* Keyboard Users */
input:focus + .switch-left {
    color: #333;
}

input:checked:focus + .switch-left {
    color: #fff;
}

input:focus + .switch-left + .switch-right {
    color: #fff;
}

input:checked:focus + .switch-left + .switch-right {
    color: #333;
}

.rating-mini {
    display: inline-block;
    font-size: 0;
}
.rating-mini span {
    padding: 0;
    font-size: 10px;
    line-height: 1;
    color: rgba(148, 142, 142, 0.40);
}
.rating-mini > span:before {
    content: '★';
}
.rating-mini > span.full {
    color: gold;
}
.rating-mini > span.half {
    color: rgba(232, 224, 192, 0.85);
}
.rating-mini > span.quarter {
    color: rgba(148, 142, 142, 0.70);
}

