body {
  height: 100vh;
  font-size: 2em;
  /*background-color: #E4D6A6;*/
  /*background-image: url('../img/paper_texture.png');*/
  background: #495f65;
  position: relative;
}
#RG {
	position: relative;
	top: -20px;
	left: 30px;
	width: 150px;
	height: 30px;
}
canvas {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  /* z-index to make canvas layer appear below span grids */
  z-index: 1;
}
h3.game-font {
  margin-top: 5px;
}
/**************/
/* GAMEPLAY IMAGES START */
.img1a {
  background-image: url('../img/img1a.png');
}
.img1b {
  background-image: url('../img/img1b.png');
}
.img2a {
  background-image: url('../img/img2a.png');
}
.img2b {
  background-image: url('../img/img2b.png');
}
.img3a {
  background-image: url('../img/img3a.png');
}
.img3b {
  background-image: url('../img/img3b.png');
}
.img4a {
  background-image: url('../img/img4a.png');
}
.img4b {
  background-image: url('../img/img4b.png');
}
.img5a {
  background-image: url('../img/img5a.png');
}
.img5b {
  background-image: url('../img/img5b.png');
}

/* END */
/**************/

.tight-fit {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  height: 400px;
  width: 400px;
  border-radius: 0.5em;
  /*outline: 3px solid red;*/
  border: 2px black solid;
  box-shadow: inset 0 0 15px 2px black, 0 0 10px black;
}
.icon {
  max-width: 1.5em;
}
.centered {
  margin: 0 auto;
}

#dashboard.restrict-height {
  min-height: 30vh;
}

#images-area.restrict-height {
  min-height: 40vh;
}

.score-ui {
  border: 1px solid black;
  border-radius: 0.6em;
  padding: 0.3em 0.5em;
  margin-bottom: 1em;
  background: rgb(147, 162, 185);
  box-shadow: inset 0 0 15px 2px black, 0 0 5px black;
}
.score-ui.dark {
  background: rgb(100, 100, 100);
  color: white;
}

#highscore {
  color: yellow;
}


#game-stage {
  /*margin: 0 auto 0 1.2em;*/
 margin: 0 auto;
    height: 410px;
    width: 810px;
}
#countdown-timer {
  display: inline-block;
  font-size: 18em;
  color:#7b0305;
  position: absolute;
  top: 15%;
  left: 30%;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 15px 2px black, 0 0 10px black;
  border-radius: 0.6em;
  width: 40%;
}
#left-pane {
  margin-right: 10px;
}
/*#right-pane {
  margin-left: 10px;
}*/


/* ===== BOOTSTRAP ===== */
.row {
  padding-top: 1px;
}
.game-font {
  font-family: 'Chango', cursive;
  color:#000;
}
.progress {
  height: 50px;
  border-radius: 0.6em;
  border: 2px solid black;
  box-shadow: inset 0 0 15px 2px black, 0 0 5px black;
}
#time-bar {
  border-radius: 0.6em;
  box-shadow: inset 0 0 15px black, 0 0 20px black;
}
#g8games{
	margin:0px;
	position: relative;
    top: 120px;
    left: -90px;
}
#logo {
	position: relative;
    top: -30px;
	
}
.modalDialog {
	position: fixed;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0,0,0,0.8);
	z-index: 99999999999;
	opacity:0;
	-webkit-transition: opacity 400ms ease-in;
	-moz-transition: opacity 400ms ease-in;
	transition: opacity 400ms ease-in;
	pointer-events: none;
}
.modalDialog:target {
	opacity:1;
	pointer-events: auto;
}
.modalDialog > div {
	width: 300px;
	position: relative;
	margin: 18% auto;
	text-align: center;
	background: #222;
}
.close {
	background: #000000;
	color: #ddd;
	line-height: 20px;
	position: absolute;
	right: 0px;
	text-align: center;
	padding-top: 4px;
	bottom: -25px;
	width: 300px;
	height: 24px;
	text-decoration: none;
	font-weight: bold;
	z-index: 9999999999;
}
.close:hover { background: #505050; color: #fff; }




