/* Copyright (c) 2017 MIT 6.813/6.831 course staff, all rights reserved.
 * Redistribution of original or derived work requires permission of course staff.
 */

/* REMOVE ME - dashed lines and height for debugging */
/*
#mainColumn {
  outline: 1px dashed orange;
  height: 200px;
}
*/
/* Your css code here! */

div {
	/*border: 1px solid green;*/
}

body {
	margin: auto;
	vertical-align: middle;
	font-weight: bold;
	text-align: center;
	 background: url(background.jpg) no-repeat top left / cover;
}

#gameBoard img { position: absolute;}
@-webkit-keyframes pulse {
  0% { box-shadow:0 0 8px #0076CB, inset 0 0 6px #0076CB; }
  50% { box-shadow:0 0 26px #0076CB, inset 0 0 10px #0076CB; }
  100% { box-shadow:0 0 8px #0076CB, inset 0 0 6px #0076CB; }
}
@-webkit-keyframes pulse1 {
  0% { box-shadow:0 0 8px #FDB913, inset 0 0 6px #FDB913; }
  50% { box-shadow:0 0 26px #FDB913, inset 0 0 10px #FDB913; }
  100% { box-shadow:0 0 8px #FDB913, inset 0 0 6px #FDB913; }
}
.inner {
  background-color:transparent;
  width:100px;
  height:100px;
	position: relative;
}
@-webkit-keyframes scaleimg {
  0% { -webkit-transform: scale(0.6); opacity: 1;} 
  100% { -webkit-transform: scale(2.6);opacity: 0; }
}
@keyframes scaleimg {
  0% { transform: scale(0.6); opacity: 1;} 
  100% { transform: scale(2.6);opacity: 0;  }
}
.testsho{-webkit-animation: scaleimg 1000ms forwards 0s;
  -moz-animation: scaleimg 1000ms forwards 0s;
  -ms-animation: scaleimg 1000ms forwards 0s;
  animation: scaleimg 1000ms forwards 0s;}

.crushani{width:50px; height:50px;  position: absolute;  z-index: 111; text-align: center; top:95px; left:95px;}
.explode-wrapper{top:-30px !important; left:-6px !important;}
.crushboard .explode-wrapper{top:0px !important; left:px !important;}
.crushani img{left: -20px !important; top:0px !important;  width: 100%;}
.crushdatag .crushani{display:block; 
	/*-webkit-animation: fadein1 1000ms forwards 0.3s;  
  -moz-animation: fadein1 1000ms forwards 0.3s;
  -ms-animation: fadein1 1000ms forwards 0.3s;
  animation: fadein1 1000ms forwards 0.3s;*/}

.crushboard{ position: absolute; left: 0; top:0; width: 100%;height: auto;}
.crushboard img{position: absolute; left: 0; top:0; width: 100%; height: auto;}
@keyframes fadein1{0%{opacity:0;}100%{ opacity:1;}}
@-webkit-keyframes fadein1{0%{ -khtml-opacity:0;opacity:0;}100%{-khtml-opacity:1;opacity:1;}}
@-moz-keyframes fadein1{0%{ -moz-opacity:0;opacity:0;}100%{-moz-opacity:1;opacity:1;}}
@-ms-keyframes fadein1{0%{ filter: alpha(opacity=0);opacity:0;}100%{filter: alpha(opacity=1);opacity:1;}}
@-o-keyframes fadein1{0%{ opacity:0;}100%{opacity:1;}}
.fadeani {  opacity: 0;}
.fade1{
	-webkit-animation: fadein1 200ms linear 0.2s both;
    -moz-animation: fadein1 200ms linear 0.2s both;
    -o-animation: fadein1 200ms linear 0.2s both;
    -ms-animation: fadein1 200ms linear 0.2s both;
    animation: fadein1 200ms linear 0.2s both; 
}
.fade2{
	-webkit-animation: fadein1 200ms linear 0.4s both;
    -moz-animation: fadein1 200ms linear 0.4s both;
    -o-animation: fadein1 200ms linear 0.4s both;
    -ms-animation: fadein1 200ms linear 0.4s both;
    animation: fadein1 200ms linear 0.4s both; 
}
@keyframes breakdata1 {
    from {   transform: rotate(0deg); }
    to {     transform:rotate(-14deg);  }
}
@keyframes breakdata2 {
    from {   transform: rotate(0deg); }
    to {     transform:rotate(14deg);  }
}
.cboard1{animation: breakdata1 1s 1 0s both;transform-origin: center bottom;}
.cboard2{animation: breakdata2 1s 1 0s both;transform-origin: center bottom;}
@-webkit-keyframes crushdata1 {
  0% { -webkit-transform: scale(1); } 
  100% { -webkit-transform: scale(0.8); }
}
@keyframes crushdata1 {
  0% { transform: scale(1); } 
  100% { transform: scale(0.8);  }
}
.crushicons{width:100%; left:0; top:0;/*animation: crushdata1 1s 1 0s both;transform-origin: center center;*/ }
/*.crushani:before{ position: absolute; left:0; top:0; content:" "; 
	background-color:transparent;
  width:80px;
  height:80px;
  border-radius:50px;
  box-shadow: 0 0 6px #0076CB, inset 0 0 6px #0076CB;
  -webkit-animation: pulse 2s linear 0s infinite;}

.crushani:after{ position: absolute; left:10px; top:10px; content:" ";
	background-color:transparent;
  width:60px;
  height:60px;
  border-radius:50px;
  box-shadow: 0 0 6px #FDB913, inset 0 0 6px #FDB913;
  -webkit-animation: pulse1 2s linear 0s infinite;}*/

.btn {
	margin: 5px;
	border: 1px solid #666666;
	box-shadow: 1px 1px 5px gray;
}

.btn:hover {
	background-color: #8c8c8c;
}

.arrow {
	margin: 0;
	color: white;
}

.arrow:disabled {
	background-color: grey;
}

.arrow:enabled {
	background-color: #4889f0;
}

#firstColumn, #mainColumn, #lastColumn {
	margin: auto;
	padding: 10px; /*height: 427px;*/
}

#firstColumn {
	z-index: 3;
}

#gameTitle {
	font-weight: bold;
	color: red;
}

#gameBoard {
	z-index: 1;
	margin: 6px 0 0px 4px;
	width: 820px;
	height: 820px;
	table-layout: fixed;
	position: relative;   overflow: hidden;
}

#moveInput {
	width: 50px;
}

#moveInput:hover, #moveInput:focus {
	box-shadow: 0 0 5px blue;
}

#arrowContainer {
	margin: 20px auto;
}

#canvas {
	z-index: 10;
	position: absolute;
	top: 10px; left:10px;
	/*left: calc(50% - 160px);*/
	opacity: 0.7;
}

#scoreLabel, .moveLabel {
		width: 100%;margin-bottom: 0px; font-weight: normal; 
}

#cover {
	z-index: 2;
	position: absolute;
	top: -500px;
	left: calc(50% - 160px);
	background-color: white;
	width: 820px;
	height: 820px;
}

#newGame, #showMove {
	width: 10em;
}

#DEBUG {
	z-index: 100;
	position: fixed;
	top: 50px;
	left: 25px;
	background-color: #ff4d4d;
	opacity: 0.85;
}