.chat {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 111;
    height: 100%;
    backdrop-filter: blur(4px);
    background-color: #303E53A3;
    flex-direction: column;
    justify-content: flex-end;
    overflow-y: auto;
}

.chat.active {
    display: flex;
}

.messages-wrapper {
    overflow-y: scroll;
    margin-bottom: 8px;
    height: 100%;
    position: relative;
    width: 100%;
}

.messages-wrapper:before {
    position: absolute;
    top: 0;
    background: linear-gradient(to top, transparent, #303E53);
    height: 20%;
    width: 100%;
}

.messages-wrapper:after {
    position: absolute;
    bottom: 64px;
    background: linear-gradient(to bottom, transparent, #303E53);
    height: 5%;
    width: 100%;
}

.chat-messages-container {
    padding: 4px;
    display: flex;
    margin-top: 64px;
    margin-bottom: 32px;
    flex-direction: column;
    justify-content: flex-end;
}

.chat-messages-container > div {
    box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.2);
    border-radius: 32px;
    background-color: #ffffff;
    padding: 16px;
    margin: 8px 4px;
}

.chat-messages-container > div.sender{
    margin-left: 32px;
    color: white;
    background-color: #1A5CC0;
}

.chat-messages-container > div.reciever{
    margin-right: 32px;
}

.chat-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row;
    padding: 8px 0px 8px 0px;
    background-color: #303E53;
}

.chat-input-wrapper textarea {
    flex: 9;
    background-color: #ffffff;    
    margin: 0 4px 0 8px;
    border: solid 1px #ccc;
    border-radius: 10px;
    resize: vertical; 
    max-height: 20vh;
    font-size: 16px;
    padding: 8px;
}

.chat-button {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: none;
    margin: 4px;
    background-color: #ffffff;
    background-position: center;
    background-repeat: no-repeat;
}

.chat-button.send {
    margin-right: 8px;
    background-position: center;
    color: #000000;
    background-size: 20px;
    background-image: url("../images/send-solid.svg");
}

.chat-button.record {
    position: absolute;
    right: 0;
    top: -56px;
    margin-right: 8px;
    background-size: 24px;
    background-image: url("../images/mic-solid.svg");
    outline: #ffffff solid;
    outline-width: 0px;
    transition: outline-width 200ms ease-in-out;
    transform: translate(0%,0);
}
.chat-button.record.active {
    color: #ffffff;
    background-color: #1a5cc0;
}

.chat-button.stop {
    position: absolute;
    top: -56px;
    right: 40px;
    background-size: 24px;
    background-image: url("../images/volume-xmark-solid.svg");
    display: none;
    transform: translate(-50%,0);
}

.chat-button.stop.active {
    display: block;
}

/* recording indicator */

.record-indicator {
    position: absolute;
    right: 16px;
    bottom: 64px;
    right: 50%;
    width: 200px;
    height: 200px;
    background-image: linear-gradient(0deg, #007bff 16px, transparent 16px);
}
