p {
    margin-top: 8px;
    margin-bottom: 8px;
}
input {
    outline: none;
}

.bold {
    font-weight: bold;
}
.mb-0 {
    margin-bottom: 0;
}
.mb, .mb-1 {
    margin-bottom: 4px;
}
.mb-2 {
    margin-bottom: 8px;
}
.mb-4 {
    margin-bottom: 16px;
}
.pointer {
    cursor: pointer;
}
.shadow {
    box-shadow: rgba(0, 0, 0, 0.1) 0 10px 50px;
}
.shadow-top {
    box-shadow: rgba(0, 0, 0, 0.1) 0 -10px 50px;
}


.w3-bar-item a {
    text-decoration: none;
    display: inline-block;
}
header .w3-bar-item {
    height: 80px;
}
header .w3-bar-item.bar-txt-item {
    padding-top: 25px;
    font-size: 18px;
    font-weight: bold;
}


#boardCanvas {
    display: block;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    border: 1px solid #d3d3d3;
}

#toaster {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 40%;
}


#chatPopup {
    position: fixed;
    bottom: 4%;
    left: 90%;
    width: 60px;
    height: 60px;
    padding: 2px 12px 4px 12px;
    font-size: 36px;
    color: white;
    background-color: green;
    border-radius: 50%;
    cursor: pointer;
}

#chatBox {
    position: fixed;
    bottom: 5%;
    right: 5%;
    width: 350px;
}
#chatBox .hide-btn {
    display: inline-block;
    position: relative;
    height: 40px;
    width: 40px;
    float: right;
    color: white;
    font-size: 36px;
    text-align: center;
    cursor: pointer;
}
#chatBox .hide-btn:hover {
    background: rgba(50, 50, 50, 0.9);
}

#chatBox .message-area {
    height: 350px;
    background-color: white;
    overflow-y: auto;
}
#chatBox .message-area > li {
    width: 100%;
    display: block;
    padding: 8px;
    list-style-type: none;
    clear: both;
}
#chatBox .message-area > li > .sender {
    width: 100%;
    overflow: hidden;
    color: #555;
    font-size: 12px;
    font-style: oblique;
}
#chatBox .message-area > li > .msg {
    display: inline-block;
    width: auto;
    max-width: 90%;
    padding: 4px 8px;
    background-color: #37b35db5;
    border-radius: 0 8px 8px 8px;
}
#chatBox .message-area > li.own > .sender {
    text-align: right;
}
#chatBox .message-area > li.own > .msg {
    float: right;
    text-align: right;
    background-color: #5278b1ba;
    border-radius: 8px 0 8px 8px;
}

#chatBox textarea.typer {
    max-height: 48px;
    width: calc(100% - 60px);
}

/* Chatbox scrollbar*/
#chatBox ::-webkit-scrollbar {
    width: 12px;
}
#chatBox ::-webkit-scrollbar-track {
    background: #f1f1f1;
}
#chatBox ::-webkit-scrollbar-thumb {
    background: #999;
}
#chatBox ::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Media queries */
@media only screen and (max-height: 500px) {
    #chatBox h2 {
        margin: 2px;
    }

    #chatBox .message-area {
        height: 150px;
    }

    #chatBox textarea.typer {
        max-height: 32px;
    }

    #chatBox ::-webkit-scrollbar {
        width: 8px;
    }
}

@media only screen and (max-width: 450px) {
    header .w3-bar-item {
        height: 40px;
    }
    header .w3-bar-item.bar-txt-item {
        padding-top: 10px;
        font-size: 14px;
        font-weight: bold;
    }

    #toaster {
        width: 90%;
    }

    #chatPopup {
        left: 4%;
        width: 50px;
        height: 50px;
        padding: 1px 9px 1px 9px;
        font-size: 32px;
    }

    #chatBox {
        left: 5%;
        width: 250px;
    }
}
