:root{
    --backgroundColor: rgb(29, 29, 29);
}

body{
    color: white;
    background-color: var(--backgroundColor);
    box-sizing: border-box;
    margin:0;
    font-family: Arial, Helvetica, sans-serif;
}
a{
    color: white;
}

::selection{
    color: black;
    background: rgba(102, 255, 0, 0.918);
}

a:visited{
    color: white;
}

nav{
    background-color:greenyellow;
    height: 30px;
    display:inline-block;
    justify-content: center;
    width:100%;
    position: sticky;
    top:0;
    z-index: 2;
    
}

nav a, nav a:visited{
    color: black;
    text-decoration: none;
    box-sizing: border-box;
    justify-content: center;
    align-content: center;
    float: left;
    margin-top:0;
    padding:5px;
}
.rightNav{
    float: right;
    justify-content: right;
    align-content: right;
}
nav a:hover{
    background-color: white;
}


form#messageForm{
    position: fixed;
    bottom:0;
    padding-left: 20px;
    width: 100%;
    background-color: black;
    height: 10%;
    padding-bottom: 50px;
}
@media (max-width: 610px) {
    form#messageForm{
        height: 15%;
    }
    #messageForm input[type="text"]{
        width: 30%;
    }
}
#messageForm input[type="text"]{
    outline: none;
    justify-content: center;
    align-content: center;
    align-self: center;
    width: 80%;
    height: 30px;
    font-size: 20px;
    border-radius: 15px;
    padding-left: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 10px;
}
#messageForm input[type="submit"]{
    width: 100px;
    height: 40px;
    padding: 5px;
    font-size: 20px;
    align-content: center;
    box-sizing: border-box;
    text-align: center;
    border-radius: 11px;
    color: white;
    background-color: black;
    border-style: solid;
    border-color: white;
}
#messageForm input[type="submit"]:hover {
    background-color: greenyellow;
    color: black;
}
#messageForm input[type="submit"]:active {
    background-color: white;
    color: black;
}
#chat-h1{
    height:auto;
    padding-top:15px;
    padding-bottom:15px;
    margin:0;
    background-color: var(--backgroundColor);
}
#message_board{
    display: block;
    width:100%;
    position:relative;
    overflow: auto;
    margin-bottom: 0px;
    background-color: var(--backgroundColor);
}
.mesageContainer{
    width:100%;
    height: 30px;
    margin-top: 10px;
    display:inline;
    /*
    display: flex;
    flex-direction: column;*/
}
.textMessage{
    border: none;
    border-color: black;
    /*border-radius: 12px;*/
    padding:5px;
    margin-top:5px;
    width:40%;
    display: block;
}
.textMessageText{
    background-color: rgba(255, 0, 0, 0);
    font-weight: bold;
    padding: 2px;
}

.textMessageDateAndTime{
    background-color: rgba(255, 255, 255, 0);
    font-size: 10px;
    clear: right;
    padding: 2px;
}

[user="otherUser"] div.textMessage{
    /*background-color: rgba(255, 0, 0, 0.603);*/
    background-color: rgba(128, 128, 128, 0.603);
    /*clear: left;*/
    border-radius: 0px 12px 12px 12px;
}
[user="otherUser"]{
    width:100%;
    clear: right;
    float: left;
}

[user="currentUser"]{
    width:100%;
    float:right;

    align-self: right;
    margin:auto;
    
    display:flex;
    flex-direction: column;

    /*display: block;*/
    }
[user = "currentUser"] div.textMessage{
    /*background-color: rgba(0, 0, 255, 0.603);*/
    background-color: rgb(154, 255, 2);
    color: black;
    text-align: left;
    float: right;
    margin-left: auto;
    justify-content: right;
    border-radius: 12px 0px 12px 12px;
}
.messageUsername{
    font-weight: bold;
    
}
[user = "currentUser"] .messageUsername{
    float: right;
    margin-left: auto;
}