.chat {
    display: flex;
    flex-direction: column-reverse;
}

#chatInterface {
    display: flex;
    align-items: center;
    margin: 20px;
    font-size: 16px;
    font-family: "Roboto", sans-serif;
}

#chatWindow {
    display: flex;
    flex-direction: column;
    width: 60vw;
    height: 80vh;
    background-color: rgb(235, 233, 233);
    border: 1px solid #99a3ba;
    margin-bottom: 15px;
    overflow-y: scroll;
    overflow-x: hidden;
}

#chatWindow div {
    display: flex;
    flex-direction: column;
    border: 1px solid rgb(185, 185, 185);
    max-width: fit-content;
    padding: 10px;
    margin: 10px;
    border-radius: 15px 15px 15px 0px;
    background-color: #fff;
}

#chatWindow div span:first-child {
    font-weight: bold;
}

#chatWindow div span:last-child {
    margin-top: 10px;
    font-size: 12px;
}

.nickname,
.message {
    position: relative;
}

label {
    position: absolute;
    top: 12%;
    left: 5%;
    color: rgba(8, 8, 8, 0.4);
    transition: all 0.5s ease-in-out;
}

input:focus ~ label,
input:valid ~ label {
    top: -40%;
    font-size: 12px;
}

input {
    padding: 5px 15px;
    margin-right: 10px;
}

input[type="text"] {
    border: 2px solid #99a3ba;
    border-radius: 8px;
    outline: none;
}

input[type="text"]:focus {
    box-shadow: 0 0 3px 1px rgb(163, 186, 199);
}

#btn {
    width: 70px;
    height: 30px;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 8px;
    background-color: #99a3ba;
    transition: 0.2s ease-in-out;
}

#btn:hover {
    background-color: #798cb6;
    transform: scale(1.05);
}

#btn:active {
    background-color: #607cb8;
    transform: scale(0.95);
}
