@import url('https://fonts.googleapis.com/css?family=Princess+Sofia|MedievalSharp');

html {
	font-family: 'MedievalSharp', cursive;
	min-height:100%;
  	background:linear-gradient(0deg,rgba(44, 62,80,0.4),rgba(44, 62,80,0.4)),url(../img/dark_brick_wall_@2X.png);
	color: #ecf0f1;
}


footer {	
	color: #95a5a6;
	margin-top: 150px;
	text-align: center;
	
}

footer > * {
	margin: 20px;
}

footer a {
	text-decoration: none;
	color: #ecf0f1;
	transition: all .2s ease-in;
}

.copyright a {
	color: #f1c40f;
	text-shadow: -1px 0 0 #e74c3c;
	transition: all .3s ease-in;
	letter-spacing: 1px;
}

footer a:hover {
	text-shadow: -1px 0 0 #ecf0f1;
	transition: all .3s ease-out;	
}


table {
  	border-collapse: collapse;
  	font-size: 30px;
}


table td, table th {
	display: inline-block;
	width: 100px;
	max-width: 200px;
	height: 100px;
	max-height: 200px;
	border: 1px solid #202020;
	box-shadow: 0 0 50px 1px rgba(0, 0, 0, 0.3); 

}

table td {
	text-align: center;
	vertical-align: middle;
	line-height: 100px;
}


table tr:first-child td {
	border-top: 0;
}

table tr:last-child td {
	border-bottom: 0;
}

table tr td:first-child,
table tr th:first-child {
	border-left: 0;
}

table tr td:last-child,
table tr th:last-child {
	border-right: 0;
}

h1 {	
	background-image: radial-gradient( circle closest-side, rgba(140, 56, 48, 0.2), rgba(0,0,0,0));
}

.game-area{
	position: relative;
	z-index: 1;
}

.result {
	position: absolute;
	top: 0;
	left: 0;
	height: 90%;
	width: 100%;
	z-index: 99;
	
	
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;

	
	font-size: 32px;


	transition: all .5s linear;
}

.result span {

	font-size: 22px;
}

.result_lose {
	text-shadow: 0 0 10px #f1c40f;
}

.result_lose span {
	color: #f1c40f;
	
}

.result_tie {
	text-shadow: 0 0 10px #e74c3c;
}

.result_tie span {
	color: #e74c3c;
	
}

.lil-title {
	font-family: 'Princess Sofia', cursive;
	font-size: 32px;
	font-weight: normal;
	display: block;
	text-align: center;
}

.big-title {
	display: block;
	font-size: 58px;
	font-weight: bold;
	color: #f1c40f;
	text-shadow: -2px 1px 0 Crimson;
	letter-spacing: 3px;
	/*margin-right: 50px;	*/
}

.other-title {
	color: #7f8c8d;
	letter-spacing: 3px;
	word-spacing: 2px;
	margin-left: 50px;
}

.skull-title {
	display: inline-block;
	background: url(../img/skull.svg);
	min-width: 50px;
	min-height: 50px;
}

.main-frame {
	display: flex;
	flex-direction: column;	
	justify-content: center;
	align-items: center;
}

.weapon-area h3 {
	font-family: 'Princess Sofia', cursive;
	font-size: 28px;
	font-weight: normal;
	letter-spacing: 3px;
	color: #e74c3c;
}

.weapon-area {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.weapon-choose {
	display: flex;
	color: #95a5a6;
	justify-content: space-around;
	border-radius: 10px;

}

.weapon__selected {
	box-sizing: border-box;
	border: 1px solid #f39c12;
}

.weapon-button {
	border-radius: 12px;

}

.weapon-button:hover {
	cursor: pointer;
}

button {
	font-family: 'MedievalSharp', cursive;
}

.play-button:hover {
	cursor: pointer;
	background-color: #e74c3c;
	box-shadow: 0 0 150px rgba(0,0,0,0.5);	
	transition: all .3s ease-out;
}

.play-button {	
	background-color: #e67e22;
	color: #ecf0f1;		
	border-radius: 30px;
	border: none;
	padding: 10px;
	font-size: 20px;
	margin-top: 40px;
	box-shadow: 0 0 80px 1px rgba(0, 20, 20, 0.5);
	transition: all .2s linear;
}

.oClass:hover,
.xClass:hover {
	box-shadow: inset 0 0 10px 1px rgba(200, 50, 50, 0.3); 	
}

.oClass {
	background-image: url(../img/defense.svg);
	background-repeat: no-repeat;
	min-width: 60px;
	min-height: 60px;
}

.xClass {
	background-image: url(../img/swords.svg);
	background-repeat: no-repeat;
	min-width: 60px;
	min-height: 60px;
}

.noWeaponClass {	
	/*background-image: none;*/
}

.noWeaponClass:hover {
	cursor: pointer;
	box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.3); 	
	background-color: rgba(30, 100, 50, 0.5);
	transition: all .2s ease-out;
}

.invalid-move {
	background-color: rgba(200, 20, 0, 0.3);
	transition: all 0.3s linear;
}

.hide {
	display: none;
}

.score-area {
	overflow: hidden;
	font-size: 16px;
}

.score-area div {
	margin: 10px;
}
.game-area {
	word-spacing: 2px;
	text-align: center;
}

.game-area .score-area {
	text-align: left;
}


.move-out {
	transform: translate(-1000px, 0px);
	transition: all 1s ease-in;
}

.move-in {
	transform: translate(500px, 0px);
	transition: all 1s ease-in;
}

.copyright {
	font-size: 20px;
}

/* shake animation thanks to https://css-tricks.com/snippets/css/shake-css-keyframe-animation/ */
.shake-it {
  animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

@keyframes shake {
  10%, 90% {
    transform: translate3d(0, -1px, 0);
  }
  
  20%, 80% {
    transform: translate3d(0, 2px, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(0, -4px, 0);
  }

  40%, 60% {
    transform: translate3d(0, 4px, 0);
  }
}
