
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,sans-serif;
}

html,body{
    width:100%;
    height:100%;
    overflow:hidden;
    background-image: linear-gradient(to left, #6a4bad, #9168e8), url('your-image.jpg');
}

/* LOGIN */

#loginScreen{
    position:fixed;
    inset:0;
    display:flex;
    justify-content:center;
    align-items:center;
    background-image: linear-gradient(to left, #6a4bad, #9168e8), url('your-image.jpg');
    z-index:1000;
}

#loginBox{
    width:350px;
    background:white;
    padding:20px;
    border-radius:0px;
    box-shadow:0 5px 20px rgba(0,0,0,.3);
}

#loginBox h1{
    margin-bottom:15px;
}

#loginBox input{
    width:100%;
    margin-bottom:10px;
    padding:10px;
    font-size:16px;
}

#join{
    width:100%;
    padding:10px;
    cursor:pointer;
}

/* CHAT */

#chatPage{
    display:none;
    width:100vw;
    height:100vh;
}
/*

#chat{
    position:fixed;
    inset:0;
    overflow-y:auto;
    overflow-x:hidden;
    padding:10px;
    padding-bottom:60px;
    background:rgba(0, 0, 0,0.6);
}

/* MESSAGE *

.message{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin-bottom:8px;
    word-break:break-word;
    color: white;
}
*/
.pfp{
    width:40px;
    height:40px;
    border-radius:0%;
    object-fit:cover;
    flex-shrink:0;
    border:1px solid #bbb;
}
/*
.content{
    display:flex;
    flex-direction:column;
}

.username{
    font-weight:bold;
    color:#a6a6a6;
}

.text{
    margin-top:2px;
}

/* CHAT BAR *

#chatBar{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    height:50px;
    display:flex;
    background:#ffffff;
    border-top:1px solid #aaa;
}

#message{
    flex:1;
    border:none;
    outline:none;
    padding:10px;
    font-size:16px;
}

#send{
    width:90px;
    cursor:pointer;
}

#chatPage {
    display: none;
    width: 100vw;
    height: 100vh;
}
*/
/* Left side */
#chat {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 50px;
    right: 220px;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 10px;
        background-image: linear-gradient(to left, #463061, #330047), url('your-image.jpg');
    color: white;
}

/* Right user box */
#userBox {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;

    width: 220px;

    overflow-y: auto;

    background: #350f54;
    border-left: 1px solid #aaa;
    color: white;
}

/* User box title */
#userTitle {
    padding: 12px;
    font-weight: bold;
    border-bottom: 1px solid #aaa;
    color: white;
}

/* Individual users */
.user {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px;
    cursor: pointer;
}

.user:hover {
    background: #ddd;
}

.userPfp {
    width: 32px;
    height: 32px;
    object-fit: cover;
    flex-shrink: 0;
}

.userName {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Chat bar */
#chatBar {
    position: fixed;
    left: 0;
    right: 220px;
    bottom: 0;

    height: 50px;

    display: flex;

    background: #eee;
    border-top: 1px solid #aaa;
}

#message {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 16px;
}

#send {
    width: 90px;
}