#windows {
    height: 100%;
    width: 100%;
    z-index: 0;
}

.window {
    position: absolute;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: center;
    border-radius: 4px;
    box-shadow: 0 0 12px #00000080;
}

.window.invisible {
    box-shadow: none;
}

.window .resizeHandle {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 24px;
    width: 24px;
    background: url("/handle.png");
    cursor: se-resize;
}

.window .viewPort {
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-flow: column nowrap;
    align-items: stretch;
    justify-content: stretch;
}

.window .canvasViewPort {
    display: flex;
    flex-flow: column nowrap;
    align-items: stretch;
    justify-content: stretch;
}

.window .canvasViewPort .loadingText {
    display: none;
    text-align: center;
    font-size: 18px;
    margin: 12px;
}

.window .buttonTray {
    position: absolute;
    top: 30px;
    left: 0;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
}

.popout.window .buttonTray {
    top: 0;
}

.window .buttonTray button {
    width: 24px;
    height: 24px;
    margin: 2px;
    opacity: 50%;
}

.window .buttonTray button.active {
    opacity: 100%;
    margin: 2px;
}

.window .titleBar {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    background-color: #4d6681a8;
    border-radius: 4px;
}

.window .titleBar .group {
    font-family: "Prompt", sans-serif;
    color: white;
    margin: 2px;
    margin-left: 4px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
}

.window .titleBar .group .button {
    margin: 2px;
}

.window .titleBar .group .button:hover svg,
.window .titleBar .group .button:hover i {
    color: #114e94;
}

.window .content {
    margin: 2px;
}

.window .content button {
    padding: 2px 8px;
}

.chat.window .turn-start {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    margin: 4px;
    padding: 2px;
    background: #00000040;
    border-radius: 4px;
}

.chat.window .jump-to-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 0;
    text-align: center;
    background: #0c121a;
    border-radius: 4px;
    cursor: pointer;
}

.chat.window .content {
    display: flex;
    flex-flow: column nowrap;
    align-items: stretch;
    justify-content: space-between;
    height: 100%;
}

.chat.window .input-section {
    display: flex;
    flex-flow: column nowrap;
}

.chat.window .messages {
    display: flex;
    flex-flow: column nowrap;
}

.chat.window .message {
    display: flex;
    flex-flow: column nowrap;
    background: #00000036;
    margin: 4px;
    padding: 0px 4px;
    border-radius: 4px;
}

.chat.window .message .header {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
}

.chat.window .message .speaker {
    font-weight: bold;
}

.chat.window .message .timestamp {
    font-style: italic;
}

.message .emote,
.message .narrate {
    color: green;
    font-style: italic;
}

.message .story {
    color: crimson;
    text-shadow: 1px 1px 0 black;
}

.message .ooc {
    color: grey;
    font-style: italic;
}

.message .system * {
    font-family: monospace;
}

.window .input-section textarea {
    margin: 4px;
    height: 4em;
}

.combat-tracker .combatants .combatant {
    display: flex;
    cursor: pointer;
    border-radius: 2px;
    flex-flow: row nowrap;
    margin: 2px;
    padding: 1px 2px;
}

.combat-tracker .combatants .combatant .image {
    flex: 0;
    height: 24px;
    width: 24px;
}

.combat-tracker .combatants .combatant .name {
    margin: 0 2px;
    flex: 1;
}

.combat-tracker .combatants .combatant:hover {
    background-color: #ffffff4f;
}

.combat-tracker .combatants .combatant .shield {
    margin: 0 4px;
}

.combat-tracker .combatants .combatant .hp {
    margin: 0 4px;
}

.combat-tracker .combatants .combatant .actions {
    margin: 0 4px;
}

.combat-tracker .combatants .combatant .reactions {
    margin: 0 4px;
}

.combat-tracker .combatants .combatant .initiative {
    flex: 0 24px;
    text-align: right;
}

.combat-tracker .combatants .combatant .initiative {
    flex: 0 24px;
    text-align: right;
}

.entry-list .entry {
    display: flex;
    flex-flow: row nowrap;
    justify-content: start;
    align-items: center;
    cursor: pointer;
    border-radius: 2px;
    margin: 2px;
    padding: 1px 2px;
}

.entry-list .entry i,
.entry-list .entry svg {
    margin: 2px;
    width: 16px;
    height: 16px;
}

.entry-list .entry:hover {
    background-color: #ffffff4f;
}

.map-list-window .maps .map {
    cursor: pointer;
    border-radius: 2px;
    margin: 2px;
    padding: 1px 2px;
}

.map-list-window .maps .map:hover {
    background-color: #ffffff4f;
}

.content.sheet .tab-selector {
    display: flex;
    flex-flow: row nowrap;
}

.content.sheet .tab-selector .tab-button {
    opacity: 75%;
    cursor: pointer;
    padding: 4px;
    background-color: #55585e47;
    border-radius: 4px;
}

.content.sheet .tab-selector .tab-button:hover {
    opacity: 87%;
    text-decoration: underline;
}

.content.sheet .tab-selector .tab-button.active {
    opacity: 100%;
    font-weight: bold;
    text-decoration: underline;
    background-color: #55585ec7;
    box-shadow: inset 2px 2px 2px #00000063;
}

.content.sheet .tab {
    display: none;
    flex-flow: column nowrap;
    justify-content: flex-start;
    padding: 4px;
    box-shadow: inset 0px 0px 2px #00000063;
}

.content.sheet .tab.active {
    display: flex;
}

.character.window .character.sheet {
    display: flex;
    flex-flow: column nowrap;
}

.note.window .content {
    display: flex;
    flex-flow: column nowrap;
    justify-content: stretch;
    align-items: stretch;
    height: 100%;
}

.note.window .content textarea {
    flex: 1;
}

.note.window .text :first-child {
    margin-top: 4px;
}

.note.window .text h1 {
    margin-top: 24px;
}

.note.window .text h2 {
    margin-top: 16px;
}

.note.window .text h3 {
    margin-top: 8px;
}

.note.window .text ol,
.note.window .text ul {
    padding: revert;
}

.note.window .text li {
    margin: 8px 0;
}

.files.images {
    display: flex;
    flex-flow: row wrap;
}

.files .item {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 2px;
}

.files.images .item {
    flex-flow: column nowrap;
    width: 164px;
    height: 200px;
    margin: 4px;
}

.files .item .name {
    flex: 1;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: start;
}

.files.images .item .name {
    flex-flow: column nowrap;
    word-break: break-word;
}

.files .item:hover {
    background-color: #ffffff4f;
}

.thumbnail {
    margin: 2px;
    width: 16px;
    height: 16px;
}

.files.detail .thumbnail {
    width: 16px;
    height: 16px;
}

.files.images .thumbnail {
    width: 128px;
    height: 128px;
}

.files .item svg,
.files .item i {
    margin: 2px;
}

.files.detail .item svg,
.files.detail .item i {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.files.images .item svg,
.files.images .item i {
    text-align: center;
    font-size: 128px;
    width: 164px;
    height: 128px;
}

.file-viewer .content {
    margin: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: stretch;
    align-items: stretch;
    resize: both;
}

.file-viewer .content iframe {
    flex: 1;
    border: none;
}

input,
textarea,
select {
    background: #42484d64;
    color: #d5dde2;
    border: solid 1px #5b6e7978;
}

option {
    color: #d5dde2;
    background: #52585d;
}

button {
    background-color: #17202780;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
    margin: 1px;
    border: 1px solid #8393a15c;
}

button:hover {
    color: #ddeeff;
    text-shadow: 0 0 10px #c6def8;
}

svg.button:hover,
i.button:hover,
button:hover svg,
button:hover i {
    cursor: pointer;
    color: #ddeeff;
    filter: drop-shadow(0 0 4px #c6def8);
}

.object-reference {
    text-decoration: underline;
    cursor: pointer;
}

.dialog .label {
    margin-right: 6px;
}

.dialog .description {
    margin: 2px;
    padding: 2px;
    text-align: center;
}

.dialog textarea {
    height: 6em;
    width: 400px;
}

.dialog .row {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    margin: 2px;
}

.dialog .column {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    margin: 2px;
}

.dialog button {
    margin: 4px;
}

.contextMenu {
    position: absolute;
    display: flex;
    flex-flow: column nowrap;
    background-color: #324051;
    border-radius: 2px;
    box-shadow: 0 0 12px #00000080;
    z-index: 1;
}

.contextMenu .title {
    color: white;
    font-family: "Prompt", sans-serif;
    background-color: #4d6681a8;
    padding: 0 2px;
}

.contextMenu .choice {
    padding-left: 8px;
    padding-right: 4px;
}

.contextMenu .choice:hover {
    background-color: #ffffff4f;
}

.watermark {
    text-align: center;
    margin: 24px;
    color: #ffffff4f;
}

.template {
    background: #d0e9ff14;
    padding: 2px;
    margin: 4px;
    border-radius: 4px;
}

.template .chat-rolls {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
}

.template .roll {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    background: #00000024;
    border-radius: 8px;
    padding: 2px;
    margin: 2px;
}

.template .roll .label {
    margin: 2px;
    padding: 4px;
    background: #00000024;
    border-radius: 8px;
}

.template .roll .result {
    margin: 4px;
}

.permissions.window .content .buttons {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
}

.permissions.window .content .group {
    padding: 4px;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
}

.permissions.window .content .group .label {
    text-align: center;
}

.permissions.window .content .group .pair {
    display: flex;
    flex-flow: row nowrap;
    justify-content: stretch;
    align-items: stretch;
    width: 100%;
}

.permissions.window .content .group .pair .scope {
    flex: 1;
}

.presence.window .content {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
}

.presence.window .portrait {
    display: flex;
    flex-flow: column nowrap;
    margin: 4px 8px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.presence.window .portrait img {
    width: 48px;
    height: 48px;
}

.presence.window .content.hideImages .portrait img {
    display: none;
}

.presence.window .content.hideOffline .portrait {
    display: none;
}

.presence.window .content.hideOffline .portrait.online {
    display: flex;
}

.presence.window .portrait {
    opacity: 25%;
}

.presence.window .portrait.online {
    opacity: 100%;
}

.settings.window .content {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
}

.settings.window .content .group {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
}

.settings.window .content .group>* {
    margin: 4px;
}

.settings.window .content .category {
    font-weight: bold;
    text-decoration: underline;
    margin-top: 12px;
}

.settings.window .content label {
    margin-left: 2px;
}
