* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: #1c2c4c;
    margin: 0;
    padding-bottom: 3rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#form {
    background: rgba(0, 0, 0, 0.15);
    padding: 0.25rem 2rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    height: 3rem;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    align-items: center;
}

#input {
    border: none;
    padding: .8rem;
    flex-grow: 1;
    border-radius: 2rem;
    margin: 0.25rem;
}

#input:focus {
    outline: none;
}

#form>button {
    background: #333;
    border: none;
    padding: .8rem 1.5rem;
    margin: 0.25rem;
    border-radius: 3px;
    outline: none;
    color: #fff;
    cursor: pointer;
}

#messages {
    padding: 20px 2rem;
    backdrop-filter: blur(10px);
    background-color: #1c2c4c;
}
#messages p:nth-child(1){
    margin-bottom: 10px;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    max-width: calc(100% - 200px);
    width: max-content;
    width: -webkit-max-content;
    background-color: #7cc5d9;
    border-radius: 0px 20px 20px 20px;
    box-shadow: -2px 2px 1px 1px #4c768d;
    color: black;
    padding: 15px;
    margin-bottom: 15px;
}

.chat-message.right {
    background-color: #ffffff;
    border-radius: 20px 0px 20px 20px;
    box-shadow: -2px 2px 1px 1px #88dded;
    margin-left: auto;
}

span.timeStamp {
    margin-top: .5rem;
    font-size: 13px;
    margin-left: auto;
}


#typing-status {
    visibility: hidden;
    text-align: center;
    color: white;
}

.header {
    display: flex;
    background-color: #7cc5d9;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 2rem;
}

.joined {
    text-align: center;
    color: white;
}
.user-connected{
    color:white;
    margin-bottom: 10px;

}

@media screen and (max-width:400px){
    .chat-message {
        max-width: calc(100% - 10px);
        border-radius: 0px 10px 10px 10px;
        padding: 5px;
    }
    .header h2{
        text-align: center;
    }

}
    
