/*@import url('https://fonts.googleapis.com/css?family=Oswald:400,700');*/
@import url('https://fonts.googleapis.com/css?family=Roboto+Condensed');

body {
	/*background: linear-gradient( #bbb, transparent 1px), linear-gradient( 90deg, #bbb, transparent 1px);
	background-size: 15px 15px;
	background-position: center center;*/
	height: 100vh;
	display: flex;
	flex-direction: column;

	font-family: 'Roboto Condensed', sans-serif;
	background: url('../img/v7.png');
}


.wrapper {

	flex: auto;

	/*background-color: #fff;*/

}

/*
	Хидер
*/
.header {
	display: flex;
	flex-direction: row;
	justify-content: center;


	margin: 0 auto;
}
	.header-block {
		width: 360px;
		margin: 30px 30px 0;
	}	

/*

	Информационный блок

*/

.info-bar {

	display: flex;
	flex-direction: column;
	align-items: center;

}
	.ib-header {
		font-size: 2rem;
		margin-bottom: 5px;
	}
	.ib-wait {
		border: 1px solid #fff;
	}
	.ib-msg {
		margin: 5px;
	}

.table-info {
	margin-bottom: 10px;
}
.table-info td {
	padding: 5px;
}

/*
	Описательный блок
*/

.desc {
	max-width: 360px;
}
.desc-header {

}

.desc-p {

}

/*
	Отображение данных о игроках
*/
.player__list {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: center;
	width: 100%;
}

.player {
	padding: 5px;
	margin-bottom: 10px;
	height: 60px;
	border: 1px solid #ccc;
	background-color: rgba(255,255,255,.75);

	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: left;

	transition: 1s ease;
}
/* анимация для окна игрок */
.player {
  animation: animationFrames linear 1s;
  animation-iteration-count: 1;
  transform-origin: 50% 50%;
  -webkit-animation: animationFrames linear 1s;
  -webkit-animation-iteration-count: 1;
  -webkit-transform-origin: 50% 50%;
  -moz-animation: animationFrames linear 1s;
  -moz-animation-iteration-count: 1;
  -moz-transform-origin: 50% 50%;
  -o-animation: animationFrames linear 1s;
  -o-animation-iteration-count: 1;
  -o-transform-origin: 50% 50%;
  -ms-animation: animationFrames linear 1s;
  -ms-animation-iteration-count: 1;
  -ms-transform-origin: 50% 50%;
}

@keyframes animationFrames{
  0% {
    transform:  rotate(0deg) scaleX(1.00) scaleY(1.00) ;
  }
  10% {
    transform:  rotate(-3deg) scaleX(0.80) scaleY(0.80) ;
  }
  20% {
    transform:  rotate(-3deg) scaleX(0.80) scaleY(0.80) ;
  }
  30% {
    transform:  rotate(3deg) scaleX(1.20) scaleY(1.20) ;
  }
  40% {
    transform:  rotate(-3deg) scaleX(1.20) scaleY(1.20) ;
  }
  50% {
    transform:  rotate(3deg) scaleX(1.20) scaleY(1.20) ;
  }
  60% {
    transform:  rotate(-3deg) scaleX(1.20) scaleY(1.20) ;
  }
  70% {
    transform:  rotate(3deg) scaleX(1.20) scaleY(1.20) ;
  }
  80% {
    transform:  rotate(-3deg) scaleX(1.20) scaleY(1.20) ;
  }
  90% {
    transform:  rotate(3deg) scaleX(1.20) scaleY(1.20) ;
  }
  100% {
    transform:  rotate(0deg) scaleX(1.20) scaleY(1.20) ;
  }
}

.player:nth-child(2) {
	background-color: rgb(255,220,220,.5);
	flex-direction: row-reverse;
	justify-content: right;
}
.player__img {
	max-width: 50px;
	margin: 0 10px;
}
.player__wrapper {

}
	.player__name {
		padding: 0 5px;
		display: inline-block;
		font-size: 1rem;
		color: #888;
	}
	.player__phone {
		padding: 5px;
		display: inline-block;
		font-size: 0.9rem;
	}
	.player__exp {
		font-size: 0.9rem;
		color: #666;
		text-align: center;
	}

	.player__win-exp {
		margin: 5px;
		font-size: 0.9rem;
		color: #6DD5ED;
		text-align: center;
	}

#pl-enemy .player-wrapper .player__win-exp {
	display: none;
}

/*

	Поле боя

*/
.game-field {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
}

.grid {
	display: flex;
	flex-flow: row wrap;
	
	width: 360px;
	height: 360px;
	margin: 30px;
	border: 1px solid #002B4D;
	/*background-color: #bbb;*/
}

	.grid-cell {
		width: 34px;
		height: 34px;
		border: 1px solid #080808;
		/*background-color: #fff;*/
		background-color: rgba(0,191,255,.1);
		border-radius: 5%;
	}

	.active-field {
		transition: .3s ease;
		/*margin-top: 20px;
		margin-bottom: 40px;*/
		/*box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(255, 68, 0, 0.19);*/
		/*box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(255, 68, 0, 1);*/
		box-shadow: 0px 0px 8px 2px #5FC0CE;

	}

	.example .active,
	#enemy .active {
		/*background-color: #e8e8e8;*/
		transition: .3s ease;
	}

	#enemy .active:hover {
		background-color: #2193b0;
		background-color: rgba(33,147,176,.3);

		transition: .3s ease;
		/*cursor: pointer;*/
		cursor: url('../img/aim.png') 16 16, auto;
	}
/*
	Список кораблей для расстановки
*/
.ship-list {

	display: flex;
	flex-flow: column;

	width: 360px;
	height: 360px;
	margin: 30px;
}
.ship-list__block {
	/*transform: rotate(90deg);*/
}
.ship-list__row {
	display: flex;
	flex-direction: row;
	justify-content: left;

	padding: 5px 0;
}
.ship-list__text {
	margin: 0;
}
	.rotate {
		display: block;
		max-width: 30px;
		max-height: 30px;

		margin: 5px 0;

		cursor: pointer;
		transition: .3s ease;
	}
	.rotate:hover {
		transition: .3s ease;
		transform: rotate(90deg);

	}

	.rotate-text {
		line-height: 40px;
		padding: 0 10px;
	}

	.direction {
		display: block;
		max-width: 30px;
		max-height: 30px;

		margin: 5px 0;
	}
	.direction-x {
		transition: .3s ease;
		transform: rotate(180deg);
	}
	.direction-y {
		transition: .3s ease;
		transform: rotate(270deg);
	}


	.sl-ship {
		display: flex;
		flex-flow: row wrap;
		
		max-width: 360px;
		margin-right: 10px;

		border: 1px solid #080808;
		background-color: #fff;

		transition: .3s ease;
		cursor: pointer;
	}

	.sl-ship:hover .grid-cell {
		background-color: rgba(0,255,176,.5);
		transition: .3s ease;
	}
	.sl-ship .grid-cell {
		/*margin-right: 1px;*/
	}

	.ship-located .grid-cell {
		background-color: rgba(106,106,106,.3);
	}
	.ship-active .grid-cell {
		background-color: #abffe3;
	}
/*
	.ship {
		border: 1px solid black;
	}*/

/*
	Информационный блок
*/
.game-info {
	display: flex;
	flex-direction: column;
	align-items: center;

	min-width: 480px;
	max-width: 740px;
	margin: 0 auto;
}
	.gi-text {
		display: block;
		width: 200px;
		height: 100px;
		padding: 10px;
		margin-bottom: 10px;
		border: 2px solid #000;

		text-align: center;
	}

	.gi-timer {
		background-color:#6dd5ed;
		color: #fff;
		padding: 10px;

	}


	.ready {
		display: flex;
		flex-direction: row;
		justify-content: space-around;

		width: 300px;
		margin-bottom: 10px;



	}
		.ready-text {
			display: block;
		}
		.btn,
		.ready-btn {
			display: block;
			height: 25px;
			padding: 10px 20px;
			margin-bottom: 10px;
			/*border-radius: 10px;*/
			box-shadow: 0px 0px 5px 2px #6dd5ed;;

			background-color: #6dd5ed;;
			color: #fff;

			text-align: center;
			line-height: 25px;

			cursor: pointer;
			transition: .3s ease;
		}
		.btn:hover,
		.ready-btn:hover {
			box-shadow: none;
			transition: .3s ease;

		}

		.ready-text {
			padding: 10px;
		}
/*
	Блок сообщений
*/
	.message-field {
		display: flex;
		flex-direction: column;
		align-items: center;
		margin: 0 auto;
		height: 120px;
		max-width: 640px;
	}
/*

	Отдельные элементы

*/




	.bar {
		width: 100%;
		height: 20px;
		border: 1px solid #080808;
		background-image: 
		repeating-linear-gradient(
			-45deg,
			#6dd5ed,
			#6dd5ed 11px,
			#fff 10px,
			#fff 20px
		);
		background-size: 28px 28px;
		animation: move .5s linear infinite;
	}

	@keyframes move {
		0% {
			background-position: 0 0;
		}
		100% {
			background-position: 28px 0;
		}
	}

/*
	ships
*/


	/*
		x-axis
	*/

	.ship-one-x {
		background: url('../img/ship.svg');
		background-size: contain;
		background-color: rgba(0,191,255,.1);
	}

	.ship-start-x {
		background: url('../img/ship_2.svg');
		background-size: contain;
		background-color: rgba(0,191,255,.1);

	}

	.ship-mid-x {
		background: url('../img/ship_3.svg');
		background-size: contain;
		background-color: rgba(0,191,255,.1);
	}

	.ship-end-x {
		background: url('../img/ship_4.svg');
		background-size: contain;
		background-color: rgba(0,191,255,.1);

	}

	/*

		y-axis

	*/

	.ship-one-y {
		background: url('../img/ship.svg');
		background-size: contain;
		transform: rotate(90deg);
		background-color: rgba(0,191,255,.1);
	}

	.ship-start-y {
		background: url('../img/ship_2.svg');
		background-size: contain;
		transform: rotate(90deg);
		background-color: rgba(0,191,255,.1);

	}

	.ship-mid-y {
		background: url('../img/ship_3.svg');
		background-size: contain;
		transform: rotate(90deg);
		background-color: rgba(0,191,255,.1);
	}

	.ship-end-y {
		background: url('../img/ship_4.svg');
		background-size: contain;
		transform: rotate(90deg);
		background-color: rgba(0,191,255,.1);

	}
/*
	end example
*/

/*
	Colors
*/

	.destroy {
		/*background-color: #FF4000;*/
		background: url('../img/hit.svg');
		background-color: rgba(244, 92, 67,.25);
		cursor: default;
	}
	.hit {
		/*background-color: #ffd060;*/
		background: url('../img/hit.svg');
		opacity: .7;
		background-size: contain;
		cursor: default;
		background-color: rgba(0,191,255,.1);
	}
	.miss {
		background: url('../img/miss.svg');
		background-size: contain;
		cursor: default;
		background-color: rgba(0,191,255,.1);
	}
	.own {
		cursor: default;
	}
	.unbroken {
		background-color: rgba(100,255,100,.3);
	}
	.pre-show {
		opacity: .3;

	}
	.error-cell {
		background-color: #FF9073;

	}

.hidden {
	display: none;
}

.footer {
	    
	display: flex;
	flex-direction: row;
	justify-content: center;
	flex-shrink: 0;

	padding: 20px;

	color: #fff;

	background: rgb(33,147,176);
	/*background: linear-gradient(90deg, rgba(33,147,176,1) 0%, rgba(109,213,237,1) 100%);*/
	background: linear-gradient(90deg, rgba(33,147,176,1) 0%, rgba(109,213,237,1) 100%);

}

.btns-absolute {
	position: absolute;
	top: 10px;
	right: 10px;

	display: flex;
	flex-direction: column;
}

.btn-absolute {
	margin: 5px;
	padding: 10px 15px;
	width: 100px;

	font-size: 0.9rem;
	text-decoration: none;
}


 /* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* 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: 10px auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  max-width: 640px; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
} 

.hide {
	display: none;
}