/* reset */
p, h1 {
	margin: 0;
}
/* style */
#goodgame {
	width: 300px;
	margin: 0 auto;
	background-color: #fff;
}

#information {
	display: flex;
	align-items: center;
	position: relative;
	z-index: 1;
	height: 50px;
	background-color: inherit;
}

#banner {
	margin: 0 auto;
}

.heart {
	background-color: red;
	display: inline-block;
	height: 10px;
	margin: 0 10px;
	position: relative;
	top: 0;
	transform: rotate(-45deg);
	width: 10px;
}

.heart:before,
.heart:after {
	content: "";
	background-color: red;
	border-radius: 50%;
	height: 10px;
	position: absolute;
	width: 10px;
}

.heart:before {
	top: -5px;
	left: 0;
}

.heart:after {
	left: 5px;
	top: 0;
}

.score {
	margin-left: 10px;
	color: #fff;
	font-size: 20px;
	font-weight: bold;
	text-shadow: 0 0 2px #000, 0 0 3px #00f;
}

#speed {
	margin-left: 10px;
	color: #fff;
	font-size: 20px;
	font-weight: bold;
	text-shadow: 0 0 2px #000, 0 0 3px #ccc;
}

/* playzone */

#playzone {
	position: relative;
	height: 300px;
	background-image: linear-gradient(45deg, #7ec0ee, #fff 110%);
}

#bird {
	position: absolute;
	bottom: 0;
	width: 50px;
	height: 25px;
	background-color: transparent;
}

#birdWings {
	position: absolute;
	top: 8px;
	width: 50px;
	height: 35px;
	border-radius: 15% 15% 0 0;
	box-shadow: inset 0 10px 0 0 #000;
	animation: moveWings 2s infinite;
}

#birdBody {
	position: absolute;
	left: 20px;
	width: 0px;
	height: 15px;
	border-radius: 25% 25% 0 0;
	border: 5px solid #000;
	border-color: #000 #000 transparent #000;
}

#bird > div {
	height: 35px;
}

.introBird {
	top: 170px;
	left: 125px;
	transform: scale(2);
}

.playBird {
	top: 270px;
	left: 125px;
}

.anStartPlayBird {
	animation-name: startPlayBird;
	animation-duration: 1s;
}

.anDriftBirdRight > div {
	animation: driftBird 2s linear;
}

.anDriftBirdLeft > div {
	animation: driftBird 2s linear reverse;
}

#cloud {
	position: absolute;
	top: -25px;
	left: 0px;
	width: 100px;
	height: 25px;
	border-radius: 15px; 
	background-color: #777;
}

#cloud:after {
	content: "";
	position: absolute;
	top: -10px;
	left: 17px;
	width: 32px;
	height: 32px;
	border-radius: 100%; 
	background-color: #777;
}

#cloud:before {
	content: "";
	position: absolute;
	top: -17px;
	left: 40px;
	width: 42px;
	height: 42px;
	border-radius: 100%; 
	background-color: #777;
}

#modalWindow {
	display: none;
	flex-direction: column;
	align-items: center;
	position: relative;
	top: 25px;
	left: 25px;
	z-index: 1;
	width: 250px;
	height: 250px;
	border-radius: 5px;
	background-color: #555;
}

#modalGrid {
	display: none;
	justify-content: center;
	align-items: center;
	position: absolute;
	left: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	background-color: #000;
	opacity: 0.8;
}

#loading {
	width: 50px;
	height: 50px;
	border-radius: 100%;
	border: 3px solid #fff;
	border-color: #fff #fff transparent transparent;
	animation: loading 750ms linear infinite;
}

#windowName,
#windowScore {
	text-align: center;
}

#windowName *,
#windowScore * {
	margin: 10px 0;
}

#bOK,
#bMainMenu {
	width: 140px;
}

#windowName > p,
#windowScore > p {
	color: #fff;
	font-size: 24px;
}

#tName {
	width: 200px;
}

#tbScore {
	width: 100%;
	text-align: left;
}

#tbScore td,
#tbScore th {
	color: #fff;
}
/* controls */
#controls {
	display: flex;
	align-items: center;
	position: relative;
	z-index: 1;
	height: 50px;
	background-color: inherit;
}

#bPlay {
	display: block;
	width: 100px;
	height: 40px;
	margin: 0px auto;
}

#bLeft {
	position: absolute;
	top: 5px;
	left: 5px;
	width: 75px;
	height: 40px;
}

#bRight {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 75px;
	height: 40px;
}

.buttonControls {
	border-style: none;
	border-radius: 5px;
	background-image: linear-gradient(45deg, #7ec0ee, #fff 120%);
	font-weight: bold;
	font-size: 16px;
}

.buttonControls:hover {
	background-image: linear-gradient(45deg, #7ec0ee, #fff 80%);
}
/* animation */
@keyframes moveWings {
	0% { transform: scaleY(1); }
	50% { transform: scaleY(1.2); }
	100% { transform: scaleY(1); }
}

@keyframes startPlayBird {
	from { top: 170px; transform: scale(2); }
	to { top: 270px; transform: scale(1); }
}

@keyframes driftBird {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

@keyframes loading {
	0% { border-color: #fff #fff transparent transparent; }
	25% { border-color: #fff  transparent transparent #fff; }
	50% { border-color: transparent transparent #fff #fff; }
	75% { border-color: transparent #fff #fff transparent; }
}