/* ========================================
   game.css - 游戏主界面样式
   ======================================== */

.channel {
    max-height: 5em;
    overflow-y: auto;
}

.channel-dialog {
    height: 15em;
    max-height: 15em;
    overflow-y: auto;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
}

.channel>pre {
    margin: 0px;
    white-space: pre-line;
}

.container {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    position: relative;
    line-height: 1.25em;
}

.container>.content-message {
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.content-message>pre {
    margin: 0px;
    white-space: pre-line;
}

.scroll-flag {
    background-color: #222;
    text-align: center;
    position: absolute;
    line-height: 2.5em;
    color: #555;
    border-radius: 0.5em;
    width: 2.5em;
    height: 2.5em;
    margin-right: 0.15em;
    cursor: pointer;
}

.chat-panel {
    height: 4em;
    margin: auto;
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    z-index: 999;
}

.chat-panel>.channel-emotes {

    background-color: #000;
    padding: 0.3em;
    max-height: 20em;
    overflow-y: auto;
    margin-top: 1px;
}

.chat-panel>.channel-emotes>span {
    line-height: 2em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    border: 1px solid #808080;
    margin-right: 0.5em;
    margin-bottom: 0.5em;
    display: inline-block;
    cursor: pointer;
    border-radius: 4px;
}

.chat-panel>.channel-box {}

.chat-panel>.channel-box>span {
    line-height: 1.5em;
    padding: 0.2em 0.3em;
    border: 1px solid #C0C0C0;
    display: inline-block;
    border-bottom: none;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    background-color: black;
}

.chat-panel>.channel-box>.selected {
    background-color: #bebebe;
    color: #343434
}

.chat-panel>.channel-box>.close {
    float: right;
    background-color: #ababab;
    color: #343434
}

.chat-panel>.chat-input {
    display: flex;
    flex-direction: row;
    height: 2.8em;
    line-height: 2.8em;
    box-sizing: border-box;
}

.chat-panel>.chat-input>.sender-box {
    flex: 1;
    border: none;
    outline: none;
    background-color: #bebebe;
    border-radius: 0px;
    height: 100%;
    padding-left: 2px;
    line-height: 2.8em;
    margin: 0px;
    padding: 0px
}

.chat-panel>.chat-input>.sender-btn {
    width: 4em;
    height: 100%;
    cursor: pointer;
    background-color: #ababab;
    text-align: center;
    color: #343434;
    font-weight: bold;
    line-height: 2.8em;
    top: 0px;
    margin: 0px;
    padding: 0px;

}



.combat-panel {}

.charac-status {
    display: inline-block;
}

.charac-status>.title {}

.hp>.progress-bar {
    background-color: darkred;
    transition-duration: 1s;
    transition-property: width;
    transition-timing-function: ease-out;
}

.item-damage {}

.mp>.progress-bar {
    background-color: darkblue;
}

.progress {
    border: 1px solid #343434;
    display: block;
    height: 0.3em;
    width: 6.25em;
    position: relative;
    margin-top: 2px;

    box-sizing: content-box;
}

.progress-num {
    display: inline-block;
}

.progress>.progress-bar {
    height: 100%;
    border: 1px solid transparent;
    float: right;
}

/*.progress>.progress-text {
    color:#898989;
    position:absolute;
    line-height:4px;
    height:4px;
    font-size:0.5em;
    width:100%;
    text-align:center;
 }*/
.tool-bar {
    position: absolute;
    z-index: 11;
}

.right-bar {
    right: 0px;
    bottom: 3em;
}

.left-bar {
    left: 0px;
    transition-property: bottom;
    transition-duration: 0.2s;
    transition-timing-function: ease-in;
}

.left-bar>.tool-item {
    border-top-right-radius: 0.25em;
    border-bottom-right-radius: 0.25em;
    border-left: none;
    margin-bottom: 0.25rem;
    font-size: 1em;
    line-height: 1.25em;
    width: 3em;
    height: 3em;
}

.tool-bar>.tool-item {
    text-align: center;
    background-color: gray;
    color: #111;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    border: solid 1px #222;
}

.tool-bar>.tool-item:hover {

    background-color: #666;
}

.tool-bar>.tool-item>.tag {
    background-color: red;
    color: white;
    border-radius: 0.6em;
    width: 1em;
    height: 1em;
    position: absolute;
    right: -0.2em;
    top: -0.3em;
}



.bottom-bar {
    display: block;
    position: relative;
    white-space: nowrap;
    display: flex;
    margin-top: 0.5em;
    margin-bottom: 4px;
}

.right-bar>.tool-item>.tool-icon,
.bottom-bar>.tool-item>.tool-icon {
    display: block;
    line-height: 1.25em;
}

.tool-item>.tool-text,
.tool-item>.tool-text {
    line-height: 1.5em;
    font-weight: bold;
    display: block;
    font-size: 0.8em;
}

.bottom-bar>.tool-item,
.right-bar>.tool-item {
    display: block;
    width: 2.5em;
    height: 2.5em;
    border-radius: 0.5em;
    margin-bottom: 0.15em;
    margin-right: 0.15em;
}



.bottom-bar>.br-tool {
    line-height: 2.5em;
    top: 0px;
    font-family: 'Glyphicons Halflings';
}

.bottom-bar>.br-tool::before {
    content: "\e234";
}


.room-commands,
.combat-commands {
    white-space: nowrap;
    overflow-x: auto;
    display: block;
    line-height: 2em;
    margin-bottom: 0.25em;
}

.obj-money {
    float: right;
    padding-right: 10px;
    color: #C0C0C0;
}

.obj-money>span {
    margin-left: 1em;
    padding-left: 1em;
    color: #C0C0C0;
    border-left: 1px solid gray;
    color: #808080;
    line-height: 1.8em;
    cursor: pointer;
    user-select: none;
}

.combat-wrap {
    white-space: pre-wrap;
    position: relative;
}


.combat-wrap::before {
    position: absolute;
    height: 100%;
    left: 0px;
    top: 0px;
}

.room-commands>.act-item,
.combat-commands>.pfm-item {
    display: inline-block;
    border: solid 1px gray;
    color: gray;
    background-color: black;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    min-width: 2.5em;
    margin-right: 0.5em;
    position: relative;
    padding-left: 0.4em;
    padding-right: 0.4em;
    margin-bottom: 2px;
    /* transition: background-size 0.2s linear; */
    background: linear-gradient(to top, rgba(128, 128, 128, 0.5) 0%, rgba(128, 128, 128, 0.5) 100%);
    background-size: 0% 100%;
    background-position: 100% 100%;
    background-repeat: no-repeat;
}



.room-commands>.act-item:active,
.combat-commands>.pfm-item:active {
    background-color: gray;
    color: black;
}

/* .room-commands>span>.shadow,
.combat-commands>.pfm-item>.shadow {
    position: absolute;
    left: 0px;
    top: 0px;
    bottom: 0px;
    right: 0px;
    opacity: 0.5;
    background-color: white;
    display: none;
    border: none;
    border-radius: 0.45em;
} */

.item-commands {
    white-space: normal;
    display: block;
    user-select: none;
    padding-bottom: 0.315em;
}

.item-commands>span {
    display: inline-block;
    border: solid 1px gray;
    color: gray;
    background-color: black;
    text-align: center;
    cursor: pointer;
    border-radius: 0.25em;
    min-width: 2.5em;
    margin-right: 0.625em;
    padding: 0.25em 1em;
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

.item-commands>span:active {
    background-color: gray;
    color: black;
}

.room_exits {}

.room_exits>.exits-item {
    color: #FFFF00;
}

.room-item {
    cursor: pointer;
    display: block;
    clear: both;
    position: relative;
}

.room-item>.item-name {
    margin-left: 2em;

}

.room-item>.item-icon {
    opacity: 0.3;
    width: 2em;
    text-align: center;
}

.room-item>.item-status {
    display: inline-block;
    float: right;
}

.room-item>.item-status-bar {
    display: inline-block;
    float: right;
}

.room_items>.item-commands {
    margin-left: 2em;
}

.map-panel {
    width: 100%;
    max-height: 6em;
    overflow: auto;
}

.room-title {
    color: #ffff00;
    line-height: 1.875em;
    height: 1.875em;
}

.room-title>.map-icon {
    color: gray;
    padding-left: 1em;
    padding-right: 1em;
    float: right;
    line-height: 1.875em;
    cursor: pointer;
}

.room-commands>.empty-msg,
.combat-commands>.empty-msg {
    border: none;
}

.state-bar {
    flex: 1;
    white-space: nowrap;
    overflow-x: scroll;
    overflow-y: hidden;
    padding-left: .5em;
    border-radius: .5em;
    border-left-width: 2px;
    border-left-style: solid;
    white-space: nowrap;
    overflow-x: auto;
    background-color: #111;
    cursor: pointer;
    height: 2.5em;
    margin-right: 0.15em;
}


.state-bar>.title {
    line-height: 2.5em;
}

.state-bar>.stop {
    display: inline-block;
    color: #808080;
    text-align: center;
    cursor: pointer;
    width: 3.75em;
    text-decoration: underline;
}

.state-bar>.item-command {
    display: inline-block;
    border: solid 1px gray;
    color: gray;
    background-color: black;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    min-width: 2.5em;
    margin-right: 0.6em;
    padding: 0px 0.4em;
    margin-top: 0.2em;
    line-height: 2em;
}


.dialog-confirm {
    position: absolute;
    left: 0px;
    bottom: 0px;
    width: 100%;
    background-color: #111;
    border-left: 4px solid #108ee9;
    border-radius: 4px;
    z-index: 99;
    user-select: none;

    overflow-y: hidden;
    height: 6em;
    line-height: 6em;
    display: flex;
    flex-direction: row;
}

.dialog-confirm>.dialog-btn>.btn-icon {
    margin-right: 0.4em;
}

.dialog-confirm>.dialog-btn {
    height: 100%;
    text-align: center;
    padding-left: 1em;
    padding-right: 1em;
}

.dialog-confirm>.dialog-content {
    color: #ababab;
    padding-left: 1em;
    flex: 1
}

.dialog-confirm>.btn-ok {
    background-color: #108ee9;
    color: white;
    cursor: pointer;
}

.confirm-count {
    text-align: center;
    white-space: nowrap;
    overflow-x: auto;
    width: 100%;
}

.confirm-count>.btn {
    display: inline-block;
    border: solid 1px gray;
    color: gray;
    background-color: black;
    text-align: center;
    cursor: pointer;
    border-radius: 0.25em;
    width: 5em;
    margin-right: 0.625em;
    margin-top: 0.25em;
    height: 2.5em;
    line-height: 2.5em;
}

.confirm-count>input {
    background-color: transparent;
    outline: none;
    border: 1px solid #666666;
    border-radius: 0.25em;
    width: 5em;
    height: 2.5em;
    line-height: 2.5em;
    color: inherit;
    text-align: center;
    font-weight: bold;
    margin-right: 0.625em;
}

.room-item>.item-status {
    display: inline-block;
    float: right;
}

.room-item>.item-status-bar {
    display: inline-block;
    float: right;
}

.room_items>.item-commands {
    margin-left: 2em;
}

.warn-dialog {

    position: absolute;
    left: auto;
    right: 3.5em;
    z-index: 20;
    min-width: 20em;
    max-width: 100%;
    padding: 0.5em;

    transition-property: bottom;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    border-top-width: 4px;
    border-top-style: solid;
}

.warn-dialog>.warn-content {
    color: #bdc3c7;
    white-space: pre-wrap;
}

.warn-dialog>.item-commands {
    float: right;
    padding-bottom: 0px;
}

.item-status-bar>.status-item {
    position: relative;
    cursor: pointer;
    margin-right: 0.75em;
    background-color: #008000;
    border-radius: 0.25em;
    color: white;
    line-height: 1.25em;
    padding-left: 0.25em;
    padding-right: 0.25em;
    height: 1.25em;
    display: inline-block;
    zoom: 0.8;
}

.item-status-bar>.downside {
    background-color: #800000;
}

.item-status-bar>.status-item>.status-bg {
    padding-left: 4px;
    padding-right: 4px;
    padding-top: 1px;
    padding-bottom: 1px;
    display: inline;
    border-radius: 4px;
}

.item-status-bar>.status-item>.shadow {
    position: absolute;
    left: 0px;
    top: 0px;
    right: 100%;
    bottom: 0px;
    background-color: black;
    opacity: 0.5;
    height: 100%;
    border-radius: 0.25em;
    border-radius: 0.25em;
}