/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove FireFox inner padding and border on buttons */
button::-moz-focus-inner,
input[type="button"]::-moz-focus-inner,
input[type="submit"]::-moz-focus-inner,
input[type="reset"]::-moz-focus-inner {
    padding: 0 !important;
    border: 0 none !important;
}


html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px;
    background-color: grey;
    color: black;
    height: 100%;
}

form {
    height: 100%;
}

p {
    margin-bottom: 0.5em;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

h1 {
    font-size: 1.7em;
    text-align: center;
    margin-top: 1.0em;
    margin-bottom: 0.5em;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

h2 {
    font-size: 1.5em;
    text-align: center;
    margin-top: 1.0em;
    margin-bottom: 0.5em;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

h3 {
    font-size: 1.2em;
    text-align: left;
    margin-top: 1.0em;
    margin-bottom: 0.5em;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

.divHeader {
    display: block;
    background-color: black;
}

    .divHeader a {
        text-decoration: none;
    }

    .divHeader h1 {
        font-size: 30px;
        color: yellow;
        margin: 0;
        text-shadow: none;
    }

.divUserInfo {
    position: absolute;
    top: 0;
    right: 0;
}

.divContent {
    padding: 1px;
    box-shadow: 0 0 10px black inset;
    height: calc(100% - 41px);
    overflow: auto;
}

.divCode {
    background-color: black;
    color: green;
    font-family: Courier New, Courier, monospace;
    text-shadow: none;
    overflow: auto;
    margin: 5px;
    padding: 2px;
    box-shadow: 0 0 10px rgb(0,0,0);
}

.formColumn {
    display: inline-block;
    font-size: 0;
}

.formRow {
    display: block;
    font-size: 0;
    margin: 10px;
}

.formLabel {
    display: inline-block;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
    text-align: right;
    padding-right: 20px;
    vertical-align: top;
}

    .formLabel span:last-child::after {
        content: ':';
    }

.formField {
    display: inline-block;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px;
}

.textbox {
    background: white;
    border: solid 1px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    line-height: 13px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 11px;
    padding: 3px;
    box-shadow: inset 0 -2px 5px rgba(255,255,255,1), inset 0 2px 5px rgba(128,128,128,1);
}

    .textbox:focus {
        border: solid 1px black;
        box-shadow: 0 0 10px rgba(255,255,255,0.5), inset 0 -2px 5px rgba(255,255,255,1), inset 0 2px 5px rgba(0,0,0,0.5);
    }

textarea.textbox {
    height: 64px;
    resize: vertical;
    min-height: 21px;
}

.textboxInvalid {
    box-shadow: 0 0 10px rgba(255,0,0,1), inset 0 -2px 5px rgba(255,255,255,1), inset 0 2px 5px rgba(0,0,0,0.5);
    border: solid 1px rgb(255,0,0);
}

    .textboxInvalid:focus {
        box-shadow: 0 0 10px rgba(255,0,0,1), inset 0 -2px 5px rgba(255,255,255,1), inset 0 2px 5px rgba(0,0,0,0.5);
        border: solid 1px black;
    }

.button {
    box-shadow: 0 2px 10px rgba(0,0,0,0.5), inset 0 2px 5px rgba(255,255,255,1), inset 0 -2px 5px rgba(128,128,128,1);
    vertical-align: top;
    border-radius: 5px;
    border: solid 1px rgba(0, 0, 0, 0.5);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 11px;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
    text-align: center;
    cursor: pointer;
    background-color: rgb(192,192,192);
    margin-left: 5px;
    padding-bottom: 2px;
    padding-top: 2px;
    padding-left: 10px;
    padding-right: 10px;
}

    .button:first-child {
        margin-left: 0;
    }

    .button:hover {
        background-color: rgb(220,220,220);
    }
    .button:focus {
        border: solid 1px black;
    }
    
    .button:active {
        background-color: rgb(220,220,220);
        box-shadow: inset 0 2px 5px rgba(255,255,255,1), inset 0 -2px 5px rgba(128,128,128,1);
    }

.width25pc {
    width: 25% !important;
}

.width50pc {
    width: 50% !important;
}

.width75pc {
    width: 75% !important;
}

.width100pc {
    width: 100% !important;
}

.width70px {
    width: 70px !important;
    max-width: 100% !important;
}

.width100px {
    width: 100px !important;
    max-width: 100% !important;
}

.width150px {
    width: 150px !important;
    max-width: 100% !important;
}

.width200px {
    width: 200px !important;
    max-width: 100% !important;
}

.width300px {
    width: 300px !important;
    max-width: 100% !important;
}


.boardBanner {
    border: solid 1px rgb(32, 32, 32);
    border-radius: 5px;
    display: inline-block;
    width: 300px;
    margin: 15px;
    padding: 10px;
    vertical-align: top;
    background-color: rgb(250,250,200);
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

    .boardBanner a {
        text-decoration: none;
        color: black;
        display: block;
        height: 30px;
    }

    .boardBanner .title {
        font-size: 20px;
        padding-bottom: 5px;
    }

    .boardBanner .description {
        font-size: 14px;
        display: block;
        overflow: auto;
    }

    .boardBanner .formRow {
        margin: 0;
        margin-top: 10px;
        padding: 0;
    }

        .boardBanner .formRow:first-child {
            margin: 0;
        }


.divBoard {
    position: relative;
    height: 100%;
    background-image: url(Images/BGCork.png);
    box-shadow: 0 0 10px black inset;
    overflow: auto;
}

.divToolbox {
    position: absolute;
    background-color: rgb(127,127,255);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    width: 200px;
    padding: 5px;
    border-radius: 2px;
}

    .divToolbox .divTitle {
        font-family: "Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
        font-size: 12px;
        font-weight: bold;
        text-align: center;
        display: block;
        height: 20px;
        line-height: 20px;
        background-color: rgb(0,0,128);
        color: rgb(128,128,255);
        border-radius: 3px;
        margin-bottom: 5px;
    }

    .divToolbox .divOverlay {
        opacity: 0;
        background-color: rgb(127,127,255);
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 30px;
        -ms-touch-action: none;
        touch-action: none;
    }

    .divToolbox .btnToolbox {
        margin-top: 5px;
        margin-right: 5px;
        border: none;
        border-radius: 3px;
        box-shadow: 0 -2px 4px rgba(0,0,0,0.4) inset, 0 2px 3px rgba(255,255,255,1) inset;
        color: rgb(0,0,128);
        background-color: transparent;
        font-family: "Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
        font-size: 12px;
        cursor: pointer;
        padding-bottom: 2px;
        padding-top: 2px;
        padding-left: 10px;
        padding-right: 10px;
    }

        .divToolbox .btnToolbox:hover {
            color: rgb(127,127,255);
            background-color: rgb(0,0,128);
        }

        .divToolbox .btnToolbox:active {
            box-shadow: 0 2px 4px rgba(0,0,0,0.4) inset, 0 -2px 3px rgba(255,255,255,1) inset;
        }

.divCard {
    position: absolute;
    background-color: rgb(255,255,127);
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
    padding: 5px;
    border-radius: 2px;
    overflow: auto;
}

    .divCard .divTitle {
        padding-right: 17px;
        font-family: "Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
        font-size: 12px;
        font-weight: bold;
        text-align: center;
        height: 17px;
        box-sizing: content-box;
    }

    .divCard .txtTitle {
        width: 100%;
        font-family: "Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
        font-size: 12px;
        background-color: transparent;
        border: none;
        font-weight: bold;
        text-align: center;
    }

    .divCard .divBody {
        font-family: "Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
        font-size: 12px;
        height: calc(100% - 17px);
    }

    .divCard .txtBody {
        height: 100%;
        width: 100%;
        font-family: "Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
        font-size: 12px;
        background-color: transparent;
        border: none;
        resize: none;
    }

    .divCard .divOverlay {
        opacity: 0;
        background-color: rgb(255,255,0);
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        -ms-touch-action: none;
        touch-action: none;
    }

    .divCard .divOverlayTouchable {
        opacity: 0;
        background-color: rgb(255,255,0);
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .divCard .divResize {
        opacity: 0;
        background-color: rgb(255,0,255);
        position: absolute;
        width: 30px;
        height: 30px;
        bottom: 0;
        right: 0;
        -ms-touch-action: none;
        touch-action: none;
        cursor: se-resize;
    }

    .divCard .btnCard {
        padding: 0;
        border: none;
        border-radius: 3px;
        box-shadow: 0 -2px 4px rgba(0,0,0,0.4) inset, 0 2px 3px rgba(255,255,255,1) inset;
        color: black;
        background-color: transparent;
        font-family: "Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
        font-size: 12px;
        cursor: pointer;
    }

        .divCard .btnCard:hover {
            color: yellow;
            background-color: black;
        }

        .divCard .btnCard:active {
            box-shadow: 0 2px 4px rgba(0,0,0,0.4) inset, 0 -2px 3px rgba(255,255,255,1) inset;
        }

    .divCard .btnEdit {
        margin: 0;
        top: 4px;
        position: absolute;
        width: 16px;
        height: 16px;
        right: 24px;
        line-height: 16px;
    }

    .divCard .btnDelete {
        margin: 0;
        top: 4px;
        position: absolute;
        width: 16px;
        height: 16px;
        right: 4px;
        line-height: 16px;
    }

    .divCard .btnLock {
        margin: 0;
        top: 4px;
        position: absolute;
        width: 16px;
        height: 16px;
        right: 44px;
        line-height: 16px;
    }

    .divCard .btnUnlock {
        margin: 0;
        top: 4px;
        position: absolute;
        width: 16px;
        height: 16px;
        right: 4px;
        line-height: 16px;
    }

.divRegion {
    position: absolute;
    background-color: rgba(0,0,0,0.5);
    box-shadow: 0 0 0 5px rgba(0,0,0,0.5);
    padding: 5px;
    border-radius: 10px;
    border: dashed 5px rgba(255, 255, 255, 0.5);
    overflow: auto;
}

    .divRegion .divTitle {
        padding-bottom: 5px;
        padding-right: 17px;
        font-family: "Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
        font-size: 12px;
        font-weight: bold;
        text-align: center;
        height: 17px;
        box-sizing: content-box;
    }

    .divRegion .txtTitle {
        width: 100%;
        font-family: "Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
        font-size: 30px;
        color: rgba(255, 255, 255, 0.5);
        background-color: transparent;
        border: none;
        font-weight: bold;
        text-align: center;
    }

    .divRegion .divOverlay {
        opacity: 0;
        background-color: rgb(255,255,0);
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        -ms-touch-action: none;
        touch-action: none;
    }

    .divRegion .divOverlayTouchable {
        opacity: 0;
        background-color: rgb(255,255,0);
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .divRegion .divResize {
        opacity: 0;
        background-color: rgb(255,0,255);
        position: absolute;
        width: 30px;
        height: 30px;
        bottom: 0;
        right: 0;
        -ms-touch-action: none;
        touch-action: none;
        cursor: se-resize;
    }

    .divRegion .btnRegion {
        padding: 0;
        border: none;
        border-radius: 3px;
        box-shadow: 0 -2px 4px rgba(0,0,0,0.4) inset, 0 2px 3px rgba(255,255,255,1) inset;
        color: black;
        background-color: transparent;
        font-family: "Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
        font-size: 12px;
        cursor: pointer;
    }

        .divRegion .btnRegion:hover {
            color: yellow;
            background-color: black;
        }

        .divRegion .btnRegion:active {
            box-shadow: 0 2px 4px rgba(0,0,0,0.4) inset, 0 -2px 3px rgba(255,255,255,1) inset;
        }

    .divRegion .btnEdit {
        margin: 0;
        top: 4px;
        position: absolute;
        width: 16px;
        height: 16px;
        right: 24px;
        line-height: 16px;
    }

    .divRegion .btnDelete {
        margin: 0;
        top: 4px;
        position: absolute;
        width: 16px;
        height: 16px;
        right: 4px;
        line-height: 16px;
    }

    .divRegion .btnLock {
        margin: 0;
        top: 4px;
        position: absolute;
        width: 16px;
        height: 16px;
        right: 44px;
        line-height: 16px;
    }

    .divRegion .btnUnlock {
        margin: 0;
        top: 4px;
        position: absolute;
        width: 16px;
        height: 16px;
        right: 4px;
        line-height: 16px;
    }

.divEditBackground {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.3);
}


.divChatWindow {
    box-sizing: border-box;
    overflow: hidden;
    border: solid 1px rgba(0,0,0,0.5);
    padding: 5px;
    border-radius: 5px;
    background-color: rgb(64,64,64);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    position: fixed;
    bottom: 15px;
    right: 15px;
}

.divChatTitleBar {
    text-align: right;
}

.titleChatNormal {
    color: white;
    background-color: rgb(64,64,64);
    cursor: pointer;
    display: inline-block;
    border-radius: 5px;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 5px;
    padding-right: 5px;
}

@keyframes alert {
    0% {
        background-color: red;
    }

    50% {
        background-color: rgb(64,64,64);
    }

    100% {
        background-color: red;
    }
}

.titleChatAlert {
    color: white;
    background-color: red;
    animation-name: alert;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    cursor: pointer;
    display: inline-block;
    border-radius: 5px;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 5px;
    padding-right: 5px;
}

.titleChatDisconnected {
    color: rgb(192,192,192);
    background-color: rgb(64,64,64);
    cursor: pointer;
    display: inline-block;
    border-radius: 5px;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 5px;
    padding-right: 5px;
}

.divChatContainer {
    transition-property: width, height, opacity;
    transition-duration: 0.3s;
    overflow: hidden;
    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 55px);
}

.divChat {
    box-sizing: border-box;
    overflow: auto;
    height: calc(100% - 29px);
    margin-bottom: 5px;
    border-radius: 5px;
    border: solid 1px rgba(0,0,0,0.5);
    box-shadow: inset 0 1px 5px rgba(0,0,0,0.5);
    background-color: rgb(128,128,128);
}

.messageRow,
.selfMessageRow {
    display: block;
}

.messageRow {
    text-align: left;
}

.selfMessageRow {
    text-align: right;
}

.message {
    box-sizing: border-box;
    display: inline-block;
    vertical-align: top;
    border: solid 1px rgba(32, 32, 32, 0.5);
    background-color: rgb(220,220,220);
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.5), inset 0 -2px 5px rgba(128,128,128,0.5);
    margin: 2px;
    padding: 5px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.messageRow .message {
    background-color: rgb(220,255,220);
}

.selfMessageRow .message {
    background-color: rgb(255,255,220);
}

.message .user {
    box-sizing: border-box;
    color: rgb(64,64,64);
    text-shadow: 0 0 1px rgba(0,0,0,0.3);
    font-size: 10px;
    font-weight: bold;
}

.message .text {
    box-sizing: border-box;
    color: rgb(32,32,32);
    text-shadow: 0 0 1px rgba(0,0,0,0.3);
    font-size: 12px;
}

.divChatControls {
    font-size: 0;
}

.chatTextBox {
    box-sizing: border-box;
    padding-top: 2px;
    padding-left: 5px;
    padding-bottom: 2px;
    padding-right: 5px;
    box-shadow: inset 0 1px 5px rgba(0,0,0,0.5);
    width: calc(100% - 52px);
    border-radius: 5px;
    border: solid 1px rgba(0,0,0,0.5);
    margin: 0 2px 0 0;
    vertical-align: top;
    height: 24px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px;
    text-align: left;
}

.chatButton {
    box-sizing: border-box;
    padding-top: 2px;
    padding-left: 5px;
    padding-bottom: 2px;
    padding-right: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5), inset 0 0px 6px rgba(0,0,0,0.5), inset 0 5px 10px rgba(255,255,255,0.4);
    width: 50px;
    vertical-align: top;
    border-radius: 5px;
    border: solid 1px rgba(0,0,0,0.5);
    height: 24px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    background-color: rgb(64,64,64);
    color: white;
}

    .chatButton:hover {
        background-color: rgb(92,92,92);
    }

    .chatButton:active {
        background-color: rgb(64,64,64);
        box-shadow: inset 0 0px 6px rgba(0,0,0,0.9), inset 0 5px 10px rgba(255,255,255,0.2);
    }


