/*! chessboard.js v1.0.0 | (c) 2019 Chris Oakman | MIT License chessboardjs.com/license */

:root {
  --color_1: #f0d9b5;  		/* Hell Schachbrett */
  --color_2: #b58863;  		/* Dunkel Schachbrett */ 
  
  --color_Dark: DarkRed; 	/* Dunkel für Button, Switch, NavBar */
  --color_Hell: seashell; 	/* Hell für Schrift */
}

body{
	font-family: arial;
	font-size: 14px;
	color: var(--color_Dark);
	
	background-image: url("../img/chess-bg3.png");
	background-position: center; /* Center the image */
	background-repeat: no-repeat; /* Do not repeat the image */
	background-size: cover; /* Resize the background image to cover the entire container */
	background-blend-mode: lighten;
	
	height: 100vh; /*> 91vh nicht gut weil sonst bei handy der bildschirm scrollt*/
	padding: 0;
	margin: 0;
	overflow: hidden;
	
	-webkit-touch-callout: none;                /* prevent callout to copy image, etc when tap to hold */
    -webkit-user-select: none;                  /* prevent copy paste, to allow, change 'none' to 'text' */
}

img{
	-webkit-touch-callout: none;                /* prevent callout to copy image, etc when tap to hold */
    -webkit-user-select: none;                  /* prevent copy paste, to allow, change 'none' to 'text' */
}

a {
	text-align: center;
	padding: 2px;
	text-decoration: none;
	color: var(--color_Dark);
	font-size: 12px;
}

#infoBtn{
	display: none;
}

#status {
	/* background: grey; */
	color: var(--color_Dark);
	padding: 5px;
	font-size: 18px;
	font-weight: bold;
	/* border: 2px solid DarkCyan; */
	/* border-radius: 5px; */
	width: auto;
}

#rahmen {
	max-width:400px;
	margin:auto;
	width:100%;
	background:var(--color_Hell);
	height:96%;
	overflow:hidden;
	position: relative;
	top:10px;
}
#rahmen-left{
	float:left;
	width:auto;
	padding:10px;
}
#rahmen-right{
	float:right;
	width:auto;
	padding:10px;
}

.roundDiv{
	/*background-color: var(--color_Hell);*/
	background-color: rgba(255, 255, 255, .4);    /*  255, 235, 218, .1 */ 
	border: 1px solid var(--color_Dark);
	padding: 9px;
	border-radius: 3px;
	display: inline-block;
	/*
	filter: alpha(opacity=80);
	-moz-opacity: 0.8;
	opacity: 0.8;*/
}

.hell {
	color: var(--color_Hell);
}

.hell_bg {
	background-color: var(--color_Hell);
}

.oben_unten {
	background-color: var(--color_Dark);
	/*      top right bottom left */
	padding: 3px 8px 3px 8px;
}

.untertitel {
	font-size:12px;
	margin-left:-2px;
}

/* +++ Board +++++++ */
.clearfix-7da63 {
  clear: both;
}

.board-b72b1 {
  border: 2px solid white; /*#404040*/
  box-sizing: content-box;
}
/* aussen HOFFI*/
.chessboard-63f37 {
  display: flex;
  justify-content: center;
  background-color: var(--color_Dark);
}
/* innen */
.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-1e1d7 {
  background-color: var(--color_1);
  color: var(--color_2);
}

.black-3c85d {
  background-color: var(--color_2);
  color: var(--color_1);
}

.highlight1-32417, .highlight2-9c5d2 {
  box-shadow: inset 0 0 3px 3px yellow;
}

.notation-322f9 {
  cursor: default;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  position: absolute;
}

.alpha-d2270 {
  bottom: 1px;
  right: 3px;
}

.numeric-fc462 {
  top: 2px;
  left: 2px;
}

/* Extra Highlight Move */
.highlight-white {
    box-shadow: inset 0 0 3px 3px yellow;
}

.highlight-black {
    box-shadow: inset 0 0 3px 3px blue;
}

.highlight-hint {
    box-shadow: inset 0 0 3px 3px red;
}
/* ++++++++++++++++++++++++++++++++++++++++ */

/* Table */
#tblMenu1 {
  border-collapse: collapse;
}
#tblMenu1 td, #tblMenu1 th {
  padding: 8px;
}

#tblHistory {
  font-family: Courier, "Lucida Console", monospace;
  font-size: 18px;
  color: var(--color_Dark);
  border-collapse: collapse;
  width: 100%;
}
#tblHistory td, #tblHistory th {
  border: 1px solid #ddd;
  padding: 2px;
  text-align: left;
  font-family: Courier, "Lucida Console", monospace;
}
#tblHistory tr:nth-child(even){background-color: #f2f2f2;}

#tblHelp {
  font-size: 16px;
  color: var(--color_Dark);
  border-collapse: collapse;
  width: 100%;
}
#tblHelp td, #tblHelp th {
  border: 1px solid #ddd;
  padding: 2px;
  text-align: left;
}
#tblHelp tr:nth-child(even){background-color: #f2f2f2;}

#tblRobot{
  margin-top:9px;
  font-size: 13px;
  color: var(--color_Dark);
  border-collapse: collapse;
  /*width: 70%;*/
}
#tblRobot td, #tblRobot th {
  border: 1px solid #ddd;
  /*      top right bottom left */
  padding: 3px 6px 3px 6px;
  text-align: left;
}
#tblRobot tr:nth-child(even){background-color: #f2f2f2;}

.divInfo {
	background-color: var(--color_Dark);
	color: white;
	margin-top: 5px;
	margin-bottom: 5px;
	padding: 5px;
}

/* +++ The Modal (background) +++ */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 90; /* Sit on top */
  padding-top: 80px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Modal Content */
.modal-content {
  background-color: var(--color_Hell);
  color: var(--color_Dark);
  margin: auto;
  padding: 5px 20px 5px 20px;
  border: 1px solid var(--color_Dark);
  border-radius: 3px;
  width: 80%;
  max-width:340px;
}
#modalMenu1{
	position:fixed;
	left: 10px;
}
/* +++++++++++++++++++++++++++++++ */

/* +++ Bottom Navigation Bar +++ */
.navbar {
  overflow: hidden;
  background-color: var(--color_Dark); /* #333 */
  position: fixed;
  bottom: 10px;
  width: 100%;
}
.navbar a {
  float: left;
  display: block;
  /*color: #f2f2f2;*/
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--color_Hell);
  font-size: 22px;
}
/*
.navbar a:hover {
  background: grey;
  color: white;
}
*/
.navbar a.active {
  background-color: #04AA6D;
  color: var(--color_Hell);
}
/* +++++++++++++++++++++++++++++++ */

/* +++ Buttons +++++++++++++++++++ */
.button {
  background-color: var(--color_Dark); /* Green */
  border: none;
  color: var(--color_Hell);
  padding: 8px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 4px 2px;
  cursor: pointer;
}
.button1 {border-radius: 2px;}
.button2 {border-radius: 4px;}
/* +++++++++++++++++++++++++++++++ */

/* +++ Toggle Switch +++++++++++++++++++ */
.switch {
  position: relative;
  display: inline-block;
  width: 46px; /*60*/
  height: 24px; /*34*/
}
.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px; /*26*/
  width: 16px; /*26*/
  left: 4px;/*4*/
  bottom: 4px;/*4*/
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}
input:checked + .slider {
  background-color: var(--color_Dark); /*#2196F3;*/
}
input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
  -webkit-transform: translateX(22px);/*26*/
  -ms-transform: translateX(22px);/*26*/
  transform: translateX(22px);/*26*/
}
/* Rounded sliders */
.slider.round {
  border-radius: 24px; /*34*/
}
.slider.round:before {
  border-radius: 50%;
}
/* +++++++++++++++++++++++++++++++ */

/* +++ RadioButton +++++++++++++++ */
/* The container */
.containerR {
  display: block;
  position: relative;
  padding-top: 2px;
  padding-left: 30px; /*35px*/
  margin-bottom: 12px; /*12px*/
  cursor: pointer;
  font-size: 16px; /*22px*/
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default radio button */
.containerR input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Create a custom radio button */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px; /*25px*/
  width: 20px;  /*25px*/
  background-color: #eee;
  border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.containerR:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the radio button is checked, add a blue background */
.containerR input:checked ~ .checkmark {
  background-color: var(--color_Dark); /*#2196F3*/
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the indicator (dot/circle) when checked */
.containerR input:checked ~ .checkmark:after {
  display: block;
}

/* Style the indicator (dot/circle) */
.containerR .checkmark:after {
 	top: 7px; /*9px*/
	left: 7px; /*9px*/
	width: 6px;  /*8px*/
	height: 6px; /*8px*/
	border-radius: 50%;
	background: white;
}
/* +++++++++++++++++++++++++++++++ */

/* SmartPhone */
@media screen and (max-width: 600px) {
	#rahmen {
		position: fixed;
		height: 100%;
		top: 0px;
	}
	body{
		height: auto; /*> 91vh nicht gut weil sonst bei handy der bildschirm scrollt*/
	}
	#tblHistory {
		font-size: 15px;
	}
	#tblHelp {
		font-size: 15px;
	}
	#status {
		font-size: 17px;
	}
	.modal {
		padding-top: 10px; /* Location of the box */
	}
	.untertitel {
		font-size:12px;
		margin-left:-30px;
	}
	.navbar {
		bottom:0;
	}
	
	#modalMenu1{
		position:initial;
	}
}
@media screen and (max-width: 800px) {
	#rahmen-left, #rahmen-right{
		display: none;
	}
	#infoBtn{
		display: block;
	}
}