/**
 * The MIT License (MIT)
 *
 * Copyright (C) 2013-2020 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
/** main chess style **/
#apptitle {
    font-size: 20px;
}
.log {
    margin-bottom: 10px;
}

.jumbotron {
    background-color: #fafafa;
}

table {
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    table-layout: fixed;
}

table.field {
    position: relative;
}
table.field td {
    border-color: #e5e5e5;
    border-style: ridge;
    vertical-align: middle;
    text-align: center;
}

#navbar-vertical {
    position: absolute;
}

@media screen and (orientation: landscape){
    #navbar-horizontal {
        display: none;
    }
    table.field td {
        width: 6vh;
        height: 6vh;
        font-size: 6vh;
        padding: 1vh;
        border-width: 1vh;
    }
}
@media screen and (orientation: portrait){
    #navbar-vertical {
        display: none;
    }
    table.field td {
        width: 6vw;
        height: 6vw;
        font-size: 6vw;
        padding: 1vw;
        border-width: 1vw;
    }
}

.navbar-topleft {
    position: relative;
    top: 0px;
    left: 0px;
    width: 10vh;
    height: 10vh;
    font-size: 10vh;
}

.navbar-topleft button {
    width: 10vh;
    height: 10vh;
    font-size: 50%;
}

.navbar-topright {
    position: relative;
    top: 0px;
    right: 0px;
    width: 10vh;
    height: 10vh;
    font-size: 10vh;
}
.navbar-topright button {
    width: 10vh;
    height: 10vh;
    font-size: 50%;
}

.navbar-bottomleft {
    position: relative;
    bottom: 0px;
    left: 0px;
    width: 10vh;
    height: 10vh;
    font-size: 10vh;
}

.navbar-bottomleft button {
    width: 10vh;
    height: 10vh;
    font-size: 50%;
}

.navbar-bottomright button {
    width: 10vh;
    height: 10vh;
    font-size: 50%;
}

.navbar-bottomright {
    position: relative;
    bottom: 0px;
    right: 0px;
    width: 10vh;
    height: 10vh;
    font-size: 10vh;
}

table.field td div {
    position: relative;
    left: 0;
    top: 0;
}

@-moz-keyframes blinker {  
    0% { opacity: 0.9; }
    50% { opacity: 0.1; }
    100% { opacity: 0.9; }
}

@-webkit-keyframes blinker {  
    0% { opacity: 0.9; }
    50% { opacity: 0.1; }
    100% { opacity: 0.9; }
}

@keyframes blinker {  
    0% { opacity: 0.9; }
    50% { opacity: 0.1; }
    100% { opacity: 0.9; }
} 
table.MARKING td.UNKNOWN div.sign:before {
    content: "\002730";
    color: #802420;
    
    -webkit-animation-name: blinker;
    -webkit-animation-duration: 3s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;

    -moz-animation-name: blinker;
    -moz-animation-duration: 3s;
    -moz-animation-timing-function: linear;
    -moz-animation-iteration-count: infinite;

    animation-name: blinker;
    animation-duration: 3s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

table.field td.UNKNOWN {
    background-color: #D6E4E1;
    color: #D6E4E1;
    cursor: pointer;
}
table.field td.MARKED {
    background-color: #D6E4E1;
    cursor: pointer;
}
table.field td.EXPLOSION {
    background-color: #A31E39;
}
table.field td.DISCOVERED {
    background-color: #9DB2B1;
}

table td div.cell::after {
    position: relative;
    left: 0px;
    top: 0px;
}
table td div.fill {
    position: relative;
    left: 0px;
    top: 0px;
}
table td div.sign {
    position: absolute;
    left: 0px;
    top: 0px;
}
table td div.fill::after {
    content: "\002780";
    visibility: hidden;
}
table.field td.EXPLOSION div.sign::after {
    content: "\002717";
}
table.field td.DISCOVERED div.sign::after {
    content: "\002714";
}
table.field td.MARKED div.sign::after {
    content: "\002730";
}
table.field td.N_1 div.sign::after {
    content: "\002780";
}
table.field td.N_2 div.sign::after {
    content: "\002781";
}
table.field td.N_3 div.sign::after {
    content: "\002782";
}
table.field td.N_4 div.sign::after {
    content: "\002783";
}
table.field td.N_5 div.sign::after {
    content: "\002784";
}
table.field td.N_6 div.sign::after {
    content: "\002785";
}
table.field td.N_7 div.sign::after {
    content: "\002786";
}
table.field td.N_8 div.sign::after {
    content: "\002787";
}
.but-orientation {
    margin-top:20px;
}
h3.log-h {
    border-top:1px solid silver;
}
.badge-status {
    display:inline-block;
    margin-left:20px;
    padding:5px;
    font-size:1em;
    text-shadow: none;
}
.btn {text-shadow: none;}
.select {line-height: inherit;}
.uneditable-input {
    margin-left: 0;
    color: black;
}
span.myturn {
    display: inline-block;
    position:relative;
    left:23px;
    padding:3px;
}
.whitePiece {
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    color: white;
}
