.visually-hidden:not(:focus):not(:active),
input[type=checkbox].visually-hidden,
input[type=radio].visually-hidden{
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    -webkit-clip-path: inset(100%);
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

body {
    font-family: sans-serif;
    margin: 0;
    height: 100vh;
}

.chat__wrapper {
    box-sizing: border-box;
    height: 100%;
    background-color: #696969;
    padding: 30px 100px;
}

.chat__messages-box {
    display: flex;
    flex-direction: column;
    height: 90%;
    overflow-y: scroll;
    background-color: #575757;
    background-image: url("chat-background.jpg");
    background-position: center;
    background-size: cover;
    border-radius: 14px;
    padding: 10px;
}

.chat__message-wrap {
    align-self: flex-start;
    background: linear-gradient(to bottom right, #483D8B, #9400D3);
    border-radius: 14px;
    padding: 10px;
}

.chat__message-wrap + .chat__message-wrap {
    margin-top: 10px;
}

.chat__message-head {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.chat__user-nick {
    font-size: 14px;
    font-weight: 600;
}

.chat__timespan {
    color: #a39a8a;
    font-size: 10px;
    font-weight: 600;
}

.chat__user-message {
    color: #ffffff;
    font-size: 18px;
    margin: 0;
}

.chat__inputs-wrapp {
    display: flex;
    flex-wrap: nowrap;
    background-color: #575757;
    padding: 10px 15px;
    border-radius: 12px;
}

.chat__input {
    color: white;
    font-size: 16px;
    outline: none;
    border: none;
    background-color: #575757;
}

.chat__input::placeholder {
    color: white;
}

.chat__input--nick {
    width: 140px;
}

.chat__input--message {
    flex-grow: 1;
}

.chat__send-button {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 40px;
    background: linear-gradient(to bottom right, #483D8B, #9400D3);
    border: none;
    border-radius: 50%;
    margin: 0;
    padding: 0;
}

.chat__send-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("send.svg");
    background-position: center;
    background-repeat: no-repeat;
}