*{
	box-sizing:border-box;
}
body{
	margin:0px;
	background-color:#3f593c;
	background-image:
    radial-gradient(
      #3f593c,
      #182f1f
    );
	background-size: 100% 100%;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: center; 
	font-family: 'Cabin Sketch', cursive;
	color:#fff;
	user-select: none;
	-webkit-user-select: none; /* Safari */
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}
#game-border{
	border:0px solid #fff;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
#game-area{
	
}
#sec{
	display:none;
	position: absolute;
	width:20vw;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border:0px solid #000;
	opacity: 0;
	transition: all 0.5s;
	z-index:98;
}
#sec-1{
	background-color:#b30f00;
	float:left;
	width:49%;
	text-align:center;
	cursor:pointer;
	border:0.5px solid #333;
	border-radius: 2%;
	box-shadow: -6px 6px 5px 0px rgba(0,0,0,0.75);
}
#sec-2{
	background-color:#b30f00;
	float:right;
	width:49%;
	text-align:center;
	cursor:pointer;
	border:1px solid #333;
	border-radius: 2%;
	box-shadow: -6px 6px 5px 0px rgba(0,0,0,0.75);
}
#close{
	position:absolute;
	width:6vh;
	height:6vh;
	line-height:6vh;
	right:3px;
	top:3px;
	background-color:#b36e00;
	cursor:pointer;
	font-size:4vh;
	font-weight:bold;
	text-align:center;
	border:1px solid #fff;
	border-radius: 3px;
	padding:0px;
}
.piece{
	box-sizing:border-box;
	background-repeat: no-repeat;
	position: absolute;
	display:inline-block;
	width:100px;
	height:100px;
	font-size:25px;
	color:#ccc;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
	margin:0px;
	border: 1px solid #fff;
	text-align: center;
	cursor: pointer;
	transition: all 0s;
}
.full{
	position:absolute;
	top:0;
	bottom:0;
	left:0;
	right:0;
}
#game{
	display:block;
	width:100vw;
	height:100vh;
	overflow:hidden;
}

#game-div{
	position:relative;
	border:1px solid #333;
	display:inline-block;
}
#menu{
	font-size:17px;
	line-height:25px;
	background-color:#4a4b4a;
	width:100%;
	position:relative;
	border:1px solid #333;
	display:inline-block;
	margin:0 0 5px 0;
	padding:2px 0px;
}
#menu div{
	padding:0px 2px;
	margin:0 2px;
	border-radius: 3px;
}
#button-p1{
	float:left;
	background:#b30f00;
}
#button-p2{
	float:left;
	background:#b36e00;
}
#button-ai{
	float:left;
	height:25px;
	background:#403f43;
	cursor:pointer;
}
#button-ai img{
	display:inline-block;
	height:calc(100% - 6px);
	margin:0px;
	padding:0px;
	filter: opacity(20%);
	
}
#button-ai span{
	display:inline-block;
	padding:2px 5px;
	margin:1px 0;
}
.active{
	background:#00b313;
	border-radius: 3px;
}
.active img{
	filter: opacity(100%) !important;
}
#button-reload{
	float:right;
	height:25px;
	width:25px;
	background: URL("../img/refresh.png") #333949;
	background-size: 75% 75%;
	background-repeat: no-repeat;
	background-position: center;
	cursor:pointer;
}
#button-size{
	background:#333949;
	float:right;
	cursor:pointer;
}
#message-box{
	visibility:hidden;
	background:#222123;
	position: absolute;
	width:10vh;
	height:10vh;
	font-size:1vh;
	line-height:1vh;
	text-align:center;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border:1px solid #000;
	border-radius: 1vw;
	box-shadow: -10px 10px 5px 0px rgba(0,0,0,0.75);
	opacity: 0;
	transition: all 0s;
	z-index:99;
}
#title{
	color:#b36e00;
}
#body{
	color:#fff;
}
#footer{
}
#button-new{
	display:inline-block;
	background:#333949;
	padding:0px 5px;
	border-radius: 5px;
	cursor:pointer;
}
#button-yes{
	display:inline-block;
	background:#00b313;
	padding:0px 5px;
	margin:0 5px;
	border-radius: 5px;
	cursor:pointer;
}
#button-no{
	display:inline-block;
	background:#b30f00;
	padding:0px 5px;
	margin:0 5px;
	border-radius: 5px;
	cursor:pointer;
}
.line{
	position:absolute;
	top:0;
	left:0;
	height:5px;
	width:0;
	background:#1e3523;
	transform:rotate(45deg);
	transform-origin:left;
	transition: width 1s ease;
}
#intro{
	background: URL("../img/logo.png") #333;
	background-size: 40%;
	background-repeat: no-repeat;
	background-position: center;
	z-index:99;
	position:absolute;
	left:0px;
	top:0px;
	margin:0px;
	right:0px;
	width: 100%;
	height: 100%;
	text-align:center;
	font-size:22px;
	font-weight:bold;
	color:#fff;
    display: flex;
    justify-content: center;
    height: 100vh;
	animation: fadeOut ease-in 2s;
	animation-fill-mode: forwards;
}
@keyframes fadeOut{
  0% {
    opacity:1;
  }
  100% {
    opacity:0.2;
	visibility:hidden;
  }
}