* {
    margin: 0;
    padding: 0;
}

body,
html {
    width: 100%;
    height: 100%;
    cursor: url("/icons/cursor1.ico"), default;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #c0c0c0;
}

.chat {
    width: 95%;
    height: 90%;
    background: #c0c0cc0;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-evenly;
    border-radius:5px;
    overflow: hidden;

    & ::-webkit-scrollbar {
        background: #fff;
        width: 7px;
    }

    & ::-webkit-scrollbar-thumb {
        background: #909ce9;
    }
}

.messages {
    width: 90%;
    height: 80%;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-y: scroll;
    box-shadow: 1px 1px 5px #c0c0c0;
}

form {
    margin: 20px;
    width: 90%;
    display: flex;
    background: red;
    position: relative;
}

.input {
    position: absolute;
    right: 0;
    align-self: center;

    & input {
        padding: 10px;
        border: none;
        outline: none;
        border-radius: 10px;
        transition: all 0.2s ease;
    }
    & input[type="submit"]:active {
        scale: 0.9;
    }
}

.msg {
    display: flex;
    flex-direction: column;
    background: #ffff;
    box-shadow: 0px 0px 5px #c0c0c0;
    width: max-content;
    padding: 5px 20px;
    border-radius: 10px;
    margin: 40px;
    position: relative;
    max-width: 40%;
    height: max-content;
}

.user {
    width: max-content;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0px 0px 5px #c0c0c0;
    background: #909ce9;
    color: #fff;
    padding: 2px 10px;
    border-radius: 10px;
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(-130%);
}
