/* style.css */

/* Begin HTML element styling */
* {
  color:#ccc;
  font-family:Arial;
  font-size:3vh;
}

html {
  height:100%;
}

body {
  background-color:#001b33;
  margin:0;
  max-height:100%;
  overflow:hidden;

  /* Begin disable text-selection */
  -webkit-user-select: none;
  -moz-user-select: -moz-none;
  -ms-user-select: none;
  user-select: none;
  /* End disable text-selection */
}

p {
  margin:1vh;
}

a {
  font-family:'Source Sans Pro', cursive;
  text-decoration:none;
  font-size:4.5vh;
  color:#fff;
}

a:hover {
  color:#00cc00;
}

/* End HTML element styling */


/* Begin IDs */

#title {
  font-size:4.5vh;
  margin-top:4vh;
  margin-bottom:5vh;
  color:#888;
}
#logo {
	padding-top:3vh;
	text-align:center;
}
#container {
  margin:0 auto;
  width:65vh;
}

#box {
  background-color:#001b33;
  overflow:hidden;
  height:69vh;
}

#level {
  font-size:3.5vh;
}

#loader {
  height:69vh;
  text-align:center;
}

#loader p {
  font-family:'Source Sans Pro', cursive;
}

#image-container {
  position:relative;
  top:50%;
  -webkit-transform:translateY(-50%);
  -ms-transform:translateY(-50%);
  transform:translateY(-50%);
}


/* The Tutorial overlay that shows on Level 1 of the game */
#introtutorial {
  background-image:url('../images/introtutorial.png');
  width:66vh;
  height:59vh;
  background-position: center center;
  background-size:contain;
  background-repeat:no-repeat;
  position: fixed;
  display:none;
  opacity:0.5;
}

/* A giant transparent overlay for swiping. It simplifies everything */
#swipeArea {
  width:66vh;
  height:59vh;
  background-position: center center;
  background-size:contain;
  background-repeat:no-repeat;
  position: fixed;
  z-index:99999998;
}

#board {
  border-spacing:0;
  margin:0 auto;
  display:none;
}

#overlay {
  position:relative;
  min-height:65vh;
/*  width:351px;
  padding:15px; */
  margin:0 auto;
  text-align:center;
  overflow: auto;
  display:none;
}

#overlay h1 {
  color:#bbb;
  padding:3vh;
  font-family:'Source Sans Pro', cursive;
  font-size:5vh;
}

#overlay #holder {
  position:absolute;
  bottom:30px;
  left:0px;
  width:100%;
}

#overlay p {
  padding:10px;
  color:#ddd;
  font-family:'Source Sans Pro', sans-serif;
}

#overlay button {
	-moz-box-shadow:inset 0px 1px 0px 0px #b3b3b3;
	-webkit-box-shadow:inset 0px 1px 0px 0px #b3b3b3;
	box-shadow:inset 0px 1px 0px 0px #b3b3b3;
	background-color:#707070;
	-webkit-border-top-left-radius:0px;
	-moz-border-radius-topleft:0px;
	border-top-left-radius:0px;
	-webkit-border-top-right-radius:0px;
	-moz-border-radius-topright:0px;
	border-top-right-radius:0px;
	-webkit-border-bottom-right-radius:0px;
	-moz-border-radius-bottomright:0px;
	border-bottom-right-radius:0px;
	-webkit-border-bottom-left-radius:0px;
	-moz-border-radius-bottomleft:0px;
	border-bottom-left-radius:0px;
	text-indent:0;
	border:1px solid #000000;
	display:inline-block;
	color:#ffffff;
	font-family:Arial;
	font-size:3vh;
	font-weight:bold;
	font-style:normal;
	height:10vh;
  min-width:26vh;
	line-height:2.4vh;
	text-decoration:none;
	text-align:center;
	text-shadow:1px 1px 0px #2e4d6b;
}

#overlay button:hover {
	background-color:#3e474f;
}

#overlay button:active, .active {
  bottom:10vh;
}
/* This button was generated using CSSButtonGenerator.com */

#overlay #content {
  color:#ddd;
  font-size:4vh;
  font-family:'Source Sans Pro', sans-serif;
}
/* End IDs */

/* Begin Classes */
.cell {
  font-family: 'Open Sans', sans-serif;
  font-size:6.6vh;
  color:#555;
  width:20vh; /* Not 120px because otherwise cells are different widths */
  height:20vh;
  background-color:#999;
  padding:0;
  border:1px solid #001b33;
  box-sizing:border-box;
}

.selected {
  /*background-color:#444;*/
  box-sizing:border-box;
  font-size:6.8vh;
  font-weight:bold;
  color:#fff;
}

.selected.white {
  color:#000;
}

.poiret {
  font-family: 'Source Sans Pro', cursive;
}

.center {
  text-align:center;
}

.light {
  color:#ddd;
}

.black {
  background-color:#292929; /* one shade darker than #333 */
}

.white {
  background-color:#ccc;
}

.left {
  text-align:left;
  float:left;
}

.right {
  text-align:right;
  float:right;
}

#selector {
  z-index:50000;
  float: left;
  height:20vh;
  width:20vh;
  text-align: center;
  position:absolute;
  top:0;
  left:0;
}

.dSelected {
  border: 3px solid #227687;
  box-sizing:border-box;
  font-weight:bold;
  color:#fff;
  -moz-box-shadow: inset 0 0 10px #227687;
  -webkit-box-shadow: inset 0 0 10px #227687;
  box-shadow: inset 0 0 10px #227687;
  display:none;
}

.fb-like {
  position:absolute !important;
  bottom:20px;
  left:20px;
}

/* Hides the "flyout" comment box when Facebook like button is clicked */
.fb_edge_widget_with_comment span.fb_edge_comment_widget iframe.fb_ltr {
  display: none !important;
}


		*, *:after, *:before {
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
		}
		.popup .close {
		position: absolute;
		top: 250px;
		font-size: 15px;
		font-weight: bold;
		text-decoration: none;
		color: #fff;
		background-color: #990000;
		width: 300px;
		padding: 3px;
		text-align: center;
		z-index:99999999;		
		}
		.popup .close:hover {
		color: #fff;
		background-color: #CC0000;
		}
		.popup .content {
		max-height: 30%;
		overflow: auto;
		}

		/*Let's make it appear when the page loads*/
		.overlay:target:before {
		display: none;
		}
		.overlay:before {
		content:"";
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		display: block;
		background: rgba(0, 0, 0, 0.6);
		position: fixed;
		z-index:99999999;
		}
		.overlay .popup {
		width: 100%;
		position: fixed;
		top: 120px;
		z-index:99999999;
		text-align: center;
		}
		.overlay:target .popup {
		top: -100%;
		left: -100%;
		}