/*!
 * olga.css v1.1
 *
 * Copyright (c) 2017 Chessgames Services LLC
 * Written and developed by Christopher Dean
 *
 * Date: 25 July 2017
 * Modified: 25 Sep 2017
 */


/********************  chesboard.js css ************************/
/* clearfix */
.clearfix-7da63 {
  clear: both;
}

/* board */
.board-b72b1 {
  border: 2px solid #404040;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  margin:auto;
}


/* square */
.square-55d63 {
  float: left;
  position: relative;

  /* disable any native browser highlighting */
  -webkit-touch-callout: none;
    -webkit-user-select: none;
     -khtml-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

/* white square */
.white-1e1d7 {
  background-color: #FFCC99;
  color: #CC9966;
}

/* black square */
.black-3c85d {
  background-color: #CC9966;
  color: #FFCC99;
}

/* highlighted square */
.highlight1-32417, .highlight2-9c5d2 {
    -webkit-box-shadow: inset 0 0 3px 3px yellow;
    -moz-box-shadow: inset 0 0 3px 3px yellow;
    box-shadow: inset 0 0 3px 3px yellow;
}


/* notation */
.notation-322f9 {
  cursor: default;
  font-family: Helvetica, Helvetica Neue, Verdana, Arial;
  font-size: 0.95em;
  position: absolute;
}
.alpha-d2270 {
  bottom: 1px;
  right: 3px;
}
.numeric-fc462 {
  top: 2px;
  left: 2px;
  font-size: 0.95em;
}


/********************* olga css **********************/

@media only screen and (orientation: landscape) {

    /* Start of Score CSS */
 
    #board{
        width:45%;
        margin:auto;
    }
    /********* variation defintions ******/
    
     /* current selected variation */
    .pgn_var_select{
        background-color: lightgrey;
        border: solid 1px black;
        font-size: 1.4em;
        font-family: chessFont;
        vertical-align: bottom;
        text-align: center;
        padding:1px;
    }
    /* non-selected variation */
    .pgn_variation{
        background-color: #FFFFEE;
        border: 1px solid #FFFFEE;
        font-size: 1.4em;
        font-family: chessFont;
        vertical-align: bottom;
        text-align: center;
        padding:1px;
    }
    /* Container around variation links */
    .variation_box{
        width:100%;
        height:auto;
        margin:auto;
        background-color: #FFFFEE;
        border-radius: 4px;
        line-height: 1.4em;
        padding: .2em;
        float:left;
        border: solid black 2px;
        font-family: sans-serif;
    }

    /* Text displaying "ANALYSIS" */
    .analysis_t{
        float:left;
        margin-left: 0px;
        margin-right: 0px;
        padding:1px;  
        font-size:1.4em; 
        font-family: Helvetica, Helvetica Neue, Verdana, Arial;
    }
    
    /* The entire Variation Div */
    #variations{
        clear:both;
        width:68%;
        margin:auto;
        margin-top: 2px;
        margin-bottom: 4px;
        display:none;
        font-family:Helvetica, Helvetica Neue, Verdana, Arial;
    }
    /*   End CSS Analysis/Variation */

    .button_row{
        width: 45.5%;
        padding-top: .5vmin;
        text-align: center;
        margin:auto;
        height: auto;
        font-size: 2em;
    }
    #lower_container{
        width:80%;
        margin:auto;
    }
    
    #board-options{
        width:100%;
        height:auto;
        border: 2px solid black;
        text-align: center;
        margin: auto;
        background-color:lightgrey;
        border-radius: 1%;
        margin-top: 8px;
        margin-bottom:10px;
        background-color: #FFFFEE;
        display:table;
        font-family:  Helvetica, Helvetica Neue, Verdana, Arial;
    }

    #status_t{
        font-size:1em;
        float:left;
        width:17%;
        margin-left:10%;
        height:1.4em;
        line-height:1.4em;
        font-weight:bold;
        vertical-align: bottom;
        font-family: "georgia", garamond, palatino, bookman, "Times New Roman", times;
    }


}

@media only screen and (orientation: portrait){

    #board{
        width:100%;
        margin:auto;
    }
    
    /********* variation defintions ******/
    
     /* current selected variation */
    .pgn_var_select{
        background-color: lightgrey;
        border: 1px solid black;
        font-family: chessFont;
        font-size: 1.24em;
        padding: 1px;
        vertical-align: bottom;
        text-align: center;
    }
    /* non-selected variation */
    .pgn_variation{
        background-color: #FFFFEE;
        border: 1px solid #FFFFEE;
        font-size: 1.24em;
        padding: 1px;
        font-family: chessFont;
        vertical-align: bottom;
        text-align: center;
    }
    /* Container around variation links */
    .variation_box{
        width:98%;
        height:auto;
        margin:auto;
        margin-right:2px;
        background-color: #FFFFEE;
        border-radius: 4px;
        padding: .2em;
        float:left;
        border: solid black 2px;
        font-family: sans-serif;
    }

    /* Text displaying "ANALYSIS" */
    .analysis_t{
        float:left;
        margin-left: 0px;
        margin-right: 0px;
        padding:1px;  
        font-size:1.8em;
        font-family: Helvetica, Helvetica Neue, Verdana, Arial;
    }

    /* The entire Variation Div */
    #variations{
        clear:both;
        width:100%;
        margin:auto;
        margin-top: 2px;
        margin-bottom: 4px;
        display:none;
        font-family:Helvetica, Helvetica Neue, Verdana, Arial;
    }
    
    /*   End CSS Analysis/Variation */
    .button_row{
        width: 100%;
        padding-top: .5vmin;
        text-align: center;
        margin:auto;
        font-size: 2.5em;
    }
    #lower_container{
        width:98%;
        margin:auto;
    }
    

    #board-options{
        width:100%;
        height:auto;
        border: 2px solid black;
        text-align: center;
        margin: auto;
        background-color:lightgrey;
        border-radius: 4px;
        margin-top: 8px;
        margin-bottom:6px;
        background-color: #FFFFEE;
        font-family:  Helvetica, Helvetica Neue, Verdana, Arial;
        display:table;
    }


    /**************** Definition of Status area **********/
    #status_t{
        font-size:1em;
        float:left;
        width:auto;
        height:1.6em;
        line-height:1.6em;
        font-weight:bold;
        vertical-align: bottom;
        font-family: "georgia", garamond, palatino, bookman, "Times New Roman", times;
    }

    
}


/**************** Global CSS for OLGA  ****************/
html, body {
    top:0;
    bottom:0;
    left:0;
    right:0;
    min-height: 320px;
    min-width:320px;
    -webkit-overflow-scrolling:auto;
    overflow:auto;
}

.totem{
    clear:both;
    width:100%;
    margin:auto;
    display:block;
}

.option_item{
    width:6vmin;
    height:6vmin;
    margin-bottom:6px;
    color:#0000ff;
    text-align: left;
    font-size:2vmin;
}
.copy_button{
    width:6vmin;
    border-radius: 8px;
    border: darkgrey solid 1px;
    color: #0000ff;
    height:6vmin;
    font-size:2vmin;
    text-align: left;
}
#cpy_fen_btn{
    background-color:aliceblue;
}

.fen_box{
    width:0px;
    height:0px;
    padding: 0px;
    float:left;
    font-size: 0px;
    border: solid black 0px;
}

.pgn_buttona {
   border-radius: 4px;
   border: 1px solid #000000;
   padding: 0.25em 0.0em;
   margin-right: 1px;
   float:left;
   width: 20%;
   color:#0000ff;
   height: inherit;
   font-size: inherit;
   background-color: #ccccdd;
   -webkit-appearance: none;
   -webkit-border-radius: 4px;
   -webkit-transition-duration: 0.6s; /* Safari */
   transition-duration: 0.6s;
}
.pgn_buttonb {
   border-radius: 4px;
   border: 1px solid #000000;
   padding: 0.25em 0.0em;
   margin-right: 1px;
   float:left;
   width: 39%;
   color:#0000ff;
   height: inherit;
   font-size: inherit;
   background-color: #ccccdd;
   -webkit-appearance: none;
   -webkit-border-radius: 4px;
   -webkit-transition-duration: 0.6s; /* Safari */
   transition-duration: 0.6s;
}
.pgn_buttonc {
   border-radius: 4px;
   border: 1px solid #000000;
   padding: 0.25em 0.0em;
   margin-right: 1px;
   float:left;
   width: 13%;
   color:#0000ff;
   height: inherit;
   font-size: inherit;
   background-color: #ccccdd;
   font-weight:bold;
   -webkit-appearance: none;
   -webkit-border-radius: 4px;
   -webkit-transition-duration: 0.6s; /* Safari */
   transition-duration: 0.6s;
}
.pgn_buttona:hover{
   background-color: #eeeeff;
}
.pgn_buttonb:hover{
   background-color: #eeeeff;
}
.pgn_buttonc:hover{
   background-color: #eeeeff;
}

.note_box{ 
    margin-top: 4px;
    height:auto;
    float:left;
    padding-top:.2em;
    padding-bottom:.2em;
    padding-left: 1em;
    padding-right: .2em;
    background-color: #FFFFEE;
    border: black 1px solid;
    border-radius: 6px;
    font-size: 1.45em;
    width:96%;
    margin-left: -.2em;
    color:black;
    text-align:left;
    display:none;
    font-family: "Georgia", garamond, palatino, bookman, "Times New Roman", times;
}
/** variation defintions **/
.variations a{
    float:left;
    margin-left: 0px;
    
}
    
/* Text displaying "[x]" */
#ab{
    font-size:.6em;
    float:right;
}

/* move font */
@font-face
{
font-family: chessFont;
src: url('font/ChessSansMerida.woff');
}

#board_container{
    width:100%;
    margin:auto;
}

.totem-toggle{
    padding-top: 8px;
    width:100%;
    margin:auto;
    height:auto;
    text-align:left;
    display: none;
}
.status_toggle{
    width:100%;
    margin:auto;
    vertical-align: bottom;
}

.score_box{
    display:block;
    word-wrap: normal;
    float:none;
    padding-top: .5em;
    width:100%;
    overflow-wrap: normal;
    color:black;
    line-height: 1.5em;
    font-size: 1.35em;
}
.score_box>font{
    clear:both;
    color:grey;
    font-size: 1em;
    line-height: 1.5em;
    margin:0;
    padding:0;
    vertical-align: bottom;
    margin-right: 3px;
    font-family: Helvetica, Helvetica Neue, Verdana, Arial;
}
.score_box>.current_scorew{
    background-color: #ddddff;
    border: 1px dotted black;
    font-family: chessFont;
    font-size: 1em;
    vertical-align: bottom;
    text-align: center;
    margin:0px;
    margin-right: 3px;
    padding:0px;
}

.score_box>.pgn_scorew{
    background-color: white;
    border: 1px solid white;
    font-family: chessFont;
    font-size: 1em;
    vertical-align: bottom;
    text-align: center;
    margin:0px;
    margin-right: 3px;
    padding:0px;
}
.score_box>.current_scoreb{
    background-color: #ddddff;
    border: 1px dotted black;
    font-family: chessFont;
    font-size: 1em;
    vertical-align: bottom;
    text-align: center;
    margin:0px;
    margin-right: 10px;
    margin-left: 3px;
    padding:0px;
}

.score_box>.pgn_scoreb{
    background-color: white;
    border: 1px solid white;
    font-family: chessFont;
    font-size: 1em;
    vertical-align: bottom;
    text-align: center;
    margin:0px;
    margin-right: 10px;
    margin-left: 3px;
    padding:0px;
}


    .options_link{
        line-height: 1.1em;
        font-size: 1.1em;
        color:blue;
        width:auto;
        margin-right:0;
        float:right;
        border:none;
        margin-bottom:6px;
        background-color:white;
        vertical-align:middle;
        text-align: right;
    }
    .options_link>img{
        height: 1.1em;
        line-height: 1.1em;
        vertical-align: middle;
        text-align: right;
    }
    
    .engine_button{
        clear:both;
        float:right;
        line-height: 1.1em;
        font-size: 1.1em;
        color:blue;
        width:auto;
        margin-right:0;
        background-color:white;
        vertical-align:middle;
        text-align: right;
        margin-bottom:6px;
        border:none;
    }
    .engine_button>img{
        height: 1.1em;
        line-height: 1.1em;
        vertical-align: middle;
        text-align: right;
    }

/******** Snackbar CSS ********/
#snackbar {
    visibility: hidden; /* Hidden by default. Visible on click */
    min-width: 300px; /* Set a default minimum width */
    margin-left: -150px; /* Divide value of min-width by 2 */
    background-color: #333; /* Black background color */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 1; /* Add a z-index if needed */
    left: 50%; /* Center the snackbar */
    bottom: 30px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
    visibility: visible; /* Show the snackbar */

/* Add animation: Take 0.5 seconds to fade in and out the snackbar. 
However, delay the fade out process for 2.5 seconds */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;} 
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;} 
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}
