:root{
    --tile-white: #d5c9c9;
    --tile-black: #979494;
    --tile-dark-white: #473c3c;
    --tile-dark-black: #231919;
    --tile-destination: #585c64;
    --tile-destination-dark: #0d0e12;
    --tile-origin: #585c64;
    --tile-origin-dark: #0d0e12;
}

#content{
    margin-top: 0px;
    /* border: 2px solid green; */
}
#header{
    display: none;
}

.dark .chess-tile.origin-tile{
    background: var(--tile-origin-dark);
}

#chess-init-config{
    border: 1px solid;
    display: inline-block;
    padding: 20px;
    width: 100%;
}
#chess-init-config label{
    display: block;
}
#chess-init-config input[type=submit]{
    margin-top: 10px;
}

#chess-init-config .input-wrap{
    margin: 20px 0;
}

#chess-nav{
    margin-bottom: 20px;
    display: inline-block;
    width: 200px;
    /* border: 2px solid; */
    height: 100vh;
    position: fixed;
    top: 0;
    left: 180;
    background: rgba(0, 0, 0, .1);
    padding: 10px;
}
.menu-hidden #chess-nav{
    left: 60;
}
#chess-nav .button.new-game{
    vertical-align: top;
    margin-bottom: 20px;
    
}

#hall{
    position: fixed;
    /* border: 2px solid red; */
    left: 380px;
    top: 0;
    height: 100vh;
    overflow: auto;
    width: calc( 100% - 442px);
}
.menu-hidden #hall{
    left: 260px;
    width: calc( 100% - 325px);
}

.chess-wrapper{
    position: relative;
    margin: 0 20px 120px 20px;
    vertical-align: top;
    display: inline-block;
    padding: 10px;
    padding-top: 90px;
    border-bottom: 1px solid;
    padding-bottom: 20px;
    /* border: 1px solid; */
}
.dark .chess-wrapper{
    /* background: rgba(0, 0, 0, .1); */
}
.chess-frame{
    position: relative;
    display: inline-block;
    padding: 5px;
    background: #ffffff;
    border-radius: 4px;
    user-select: none;
    margin: 20px 0;
}
.dark .chess-frame{
    background: #b58585;
}

.chess-meta{
    position: absolute;
    /* border: 1px solid; */
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    padding: 10px;
}
.chess-local-indicator,
.chess-turn-indicator{
    display: inline-block;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0);
    border: 1px solid;
    border-radius: 50px;
}
.chess-meta *{
    vertical-align: middle;
}
.chess-board{
    /* border: 2px solid red; */
    box-shadow: 0px 0px 10px black;
    position: relative;
}
.dark .chess-board{
    box-shadow: 0px 0px 100px black, 0px 0px 10px black;
}
.chess-board *{
    /* border: 2px solid yellow; */
}
.chess-tile{
    /* border: 2px solid green; */
    /* margin: 2px; */
    display: inline-block;
    position: absolute;
}
.chess-tile.white{
    background: var(--tile-white);
}
.chess-tile.black{
    background: var(--tile-black);
}
.dark .chess-tile.white{
    background: var(--tile-dark-white);
}
.dark .chess-tile.black{
    background: var(--tile-dark-black);
}
.player-area{
    border: 2px solid;
    padding: 5px 10px;
    /* height: 70px; */
    position: relative;
}


.player-area .button{
    margin: 5px;
}
.tile-count{
    position: absolute;
    opacity: .7;
    top: 5%;
    font-size: .8rem;
}
.tile-x.tile-column{
    left: 10%;
}
.tile-y.tile-row{
    left: 30%;
}

.tile-y.tile-row,
.tile-y.tile-column{
    color: #9a0a9a;
}
.dark .tile-x.tile-column,
.dark .tile-y.tile-row{
    color: #ef39ef;
}

.doorway{
    top: 10px;
}
.doorway .join{
    margin-right: 10px;
    /* display: none; */
}

.chess-admin{
    /* border: 2px solid; */
    /* min-height: 250px; */
    display: inline-block;
    vertical-align: top;
    padding: 10px;
    max-width: 150px;
}

.chess-admin .bot-public-label{
    margin-top: 30px;
}

.piece-wrapper{
    text-align: center;
    opacity: 1;
    text-shadow: 0px 0px 3px black, 0px 0px 7px black;
    /* font-size: 30px; */
}

#hand{
    position: fixed;
    z-index: 9;
    pointer-events: none;
}

.chess-tile.hovered{
    /* opacity: .5; */
    transform: scale(1.1);
    z-index: 9;
    box-shadow: 0px 0px 5px black;
}

.env-local .team-squad{
    border: 3px solid var(--local-line);
}


.profile{
    border: 3px solid purple;
}

.team-label{
    position: absolute;
    top: 10;
    right: 10;
}

.chess-spectators{
    /* border: 2px solid blue; */
    display: inline-block;
    width: 170px;
    vertical-align: top;
    padding-top: 12px;
}
.player-profile{
    border: 2px solid;
    padding: 5px;
    border-radius: 5px;
    margin: 2px 1px 2px 8px;
    display: inline-block;
}

.chess-tile.destination-tile{
    background: var(--tile-destination);
}
.dark .chess-tile.destination-tile{
    background: var(--tile-destination-dark);
}

.chess-tile.origin-tile{
    background: var(--tile-origin);
}
.dark .chess-tile.origin-tile{
    background: var(--tile-origin-dark);
}
#ongoing-games{
    /* border: 2px solid; */
    /* display: inline-block; */
    position: relative;
    border-radius: 5px;
    display: inline-block;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
#ongoing-games .button.toggle{
    position: absolute;
    top: 10px;
    right: 10px;
}
#ongoing-games .content{
    display: none;
}
#ongoing-games.toggled .content{
    display: inline-block;
}
#ongoing-games h3{
    margin: 5px 0;
}

.game-listing{
    display: inline-block;
    padding: 10px;
    background: rgba(0, 0, 0, .1);
    border-radius: 4px;
    margin: 5px 0;
    vertical-align: top;
}


.modal.bot-chess option.is-friend{
    color: var(--friend);
}
.dark .modal.bot-chess option.is-friend{
    color: var(--friend-dark);
}
.modal.bot-chess option.is-system{
    color: var(--system);
}
.dark .modal.bot-chess option.is-system{
    color: var(--system-dark);
}

.chess-wrapper .button.leave{
    position: absolute;
    top: 60px;
    right: 10px;
    font-size: .8rem;
}



.prompt-custom-area select{
    margin: 10px 0;
}

.total-times{
    
}
.remaining-bar{
    height: 20px;
    display: inline-block;
    width: 100px;
    border: 1px solid;
}
.remaining-bar .liner{
    display: inline-block;
    height: 100%;
    width: 10px;
    background: red;
}

.alert-msg{
    font-size: 1.3rem;
}

.open-leader.button{
    margin-bottom: 10px;
}

.game-total{
    margin: 10px 0;
    padding: 5px;
    border-radius: 4px;
    font-size: .9rem;
}
.game-total.is-win{
    background: lightgreen;
}
.game-total.is-win *{
    color: black;
}

.score-row{
    position: relative;
}
.leaderboard .score{
    position: absolute;
    top: 0;
    right: 0;
}
.leaderboard .score span{
    font-size: .8rem;
}


.game-players,
.others-header{
    font-size: .8rem;
}