/* ~ GLOBAL ~ */

body{
	font-family:helvetica;
	text-align: center;
}



html {
	-moz-user-select: none;
  	-webkit-user-select: none;
  	-ms-user-select: none;
}


.popup .alert {
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
}

#handle_error textarea{
	font-size:2vh;
	width:90%;
	height:20%;
	margin-left:2%;
	margin-right:8%;
}

.load-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  width: 120px;
  height: 120px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.container-fluid{
	text-align:center;
}

.headertext {
	color: black;
}

.gamecount {
	float: left;
	font-size: 20px;
}

.tryout_gamecount {
	float: left;
	font-size: 20px;
}

.clickprompt {
	display: none;
	position: absolute;
	top: 20px;
	font-size: 30px;
	text-align: center;
	width: 100%;
}

.tryout_clickprompt {
	display: none;
	position: absolute;
	top: 20px;
	font-size: 30px;
	text-align: center;
	width: 100%;
}

.overlayed{
  opacity:0.4; 
  background:black; 
  width:100%;
  height:100%; 
  z-index:10;
  position:fixed;
}

.popup{
	display:none;
	position:absolute;
	width:90%;
	height:90%;
	top:5%;
	right:5%;
	background-color:white;
	border-radius:20px;
	border:2px solid #666666;
	z-index:20;
}

.popup > * {
	text-align:left;
	margin-left:2%;
	margin-right:2%;
	margin-top:1.5%;
	margin-bottom:1.5%;
	font-size:3vh;
}

#credentials_input{
	margin-left:2%;	
}

#credentials_input [type=text]{
	position:relative;
	vertical-align: middle;
	border-radius: 4px;
	border: 2px solid #666666;
	padding: 0vh 1vh;
	width: 25vw;
	font-size:4vh;
	height: 6vh;
	margin: 0;
}

#credentials_input [type=submit]{
	position:relative;
	vertical-align: middle;
	cursor:pointer;
	color:#ffffff;
	border-radius:4px;
	border: 2px solid #666666;
	background-color:#999999;
	font-size: 2vh;
	padding: 1vh 1vh;
	margin: 0 auto;
	height:6vh;
	width:8vw;
	text-decoration:none;
	background-repeat:no-repeat;
}

.canvas-container{ padding:0%; }

.canvas-smaller-container{ padding: 15% 10%; }

.canvas {
	display:inline-block;
	line-height:0px;
	border-radius:1%;
	background-color: #000000;
	padding: .13vw;
	z-index:4;
	overflow: hidden;
	white-space: nowrap;
	margin-top: 10vh;
}

.tryout-canvas {
	display:inline-block;
	line-height:0px;
	border-radius:1%;
	background-color: #000000;
	padding: .13vw;
	z-index:4;
	overflow: hidden;
	white-space: nowrap;
	margin-top: 10vh;
}

.usedTile, .tile {
	display:inline-block;
	height:6vw; /* 8.95 for 30-column, 10.20 for 24-col, 7.1 for 24-col*/
	width:6vw; /* 7.1 for 26 (?) col */
	background-color: #999999;
	margin:.14vw;
	z-index:5;
	overflow: hidden;
	white-space: nowrap;
}

.tile {	cursor:pointer; }

.usedTileTryout, .tileTryout {
	display:inline-block;
	height:4vw; /* 8.95 for 30-column, 10.20 for 24-col, 7.1 for 24-col*/
	width:4vw; /* 7.1 for 26 (?) col */
	background-color: #999999;
	margin:.14vw;
	z-index:5;
	overflow: hidden;
	white-space: nowrap;
}

.tileTryout {	cursor:pointer; }

.blackPiece, .whitePiece {
	vertical-align:middle;
	position: relative;
	margin: 12.5% auto 0% auto;
	border-radius:100%;
	height:75%;
	width:75%;
	z-index:7;
}

.blackPiece { background-color:black; }

.whitePiece { background-color: white; }

.blackShadow, .whiteShadow {
	vertical-align:middle;
	position: relative;
	margin-right:auto;
	margin-left:auto;
	margin-top:-75%;
	border-radius:100%;
	height:75%;
	width:75%;
	z-index:6;
}

.blackShadow { box-shadow: 0px 0px 3vw .7vw white; }

.whiteShadow { box-shadow: 0px 0px 3vw .7vw #333333; }

._blank_ { min-height:1.6vh;}

.mybutton {
	position:absolute;
	cursor:pointer;
	color:#ffffff;
	transform: translate(-50%, 50%);
	border-radius:4px;
	border: 2px solid #666666;
	background-color:#999999;
	font-size:2.25vh;
	padding: 10px 10px; 
	text-decoration:none;
	background-repeat:no-repeat;
}
.mybutton:hover {
	background-color:#aaaaaa;
}










/* Dongjae's tryout placeholder */
/* The Modal (background) */
.modal {
	display: none; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 10; /* Sit on top */
	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/Box */
  .modal-content {
	background-color: #fefefe;
	margin: 3% auto; /* 15% from the top and centered */
	padding: 10px;
	border: 1px solid #888;
	width: 80%; /* Could be more or less, depending on screen size */
  }
  
  /* The Close Button */
  .close {
	color: #aaa;
	float: right;
	font-size: 50px;
	font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
  }
  