/* RESET */
* {margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; box-sizing: border-box;} *, ::before, ::after {box-sizing: border-box;} article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display: block;} body {line-height: 1;} a {text-decoration:none;} ol, ul {list-style: none;} *:active, *:focus {border: none; outline: none;} strong {font-weight: bold;} em {font-style: italic;}
/* RESET */

@font-face {
	font-family: 'ParqueChas-ExpandedBlack';
	src: url('fonts/ParqueChas-ExpandedBlack.woff2') format('woff2'),
		url('fonts/ParqueChas-ExpandedBlack.ttf') format('truetype');
	font-display: swap;
}

body {
	margin: 0;
	font-family: 'ParqueChas-ExpandedBlack', sans-serif;
	background-color: #999;
	font-smooth: never;
	-webkit-font-smoothing : none;
	-moz-osx-font-smoothing: unset;
}

#container {
	width: min(100%, 720px);
	margin: 0 auto;
}

header {
	width: 100%;
	padding: 0 0.5rem;
	margin: 1rem auto 1.5rem;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	column-gap: 1.5rem;
}
header #logo {
	width: min(43%, 195px);
	min-width: 110px;
}
header #logo img {
	max-width: 100%;
	display: block;
}
header #wrapperSocials, 
header #wrapperSocials .a2a_kit {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: end;
	column-gap: 0.8rem;
}
header #wrapperSocials {
	flex-wrap: wrap;
}
header #wrapperSocials .a2a_kit > div:last-child {
	display: none;
}
header #wrapperSocials a {
	padding: 0;
	background-color: #ccc;
}
header #wrapperSocials a:hover {
	background-color: #fff;
}

#startScreen {
	width: 100%;
	height: 100%;
	position: absolute;
	padding-top: min(10%, 80px);
	top: 0;
	left: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: start;
	flex-direction: column;
}
#startScreen h1 {
	font-size: clamp(22px, 3.7vw, 32px);
	color: #666;
	text-align: center;
	line-height: 1.4;
	text-transform: uppercase; 
	text-shadow: 1px 1px 1px #fff;
}
#startButton {
	padding: 0;
	margin-top: 32px;
	font-size: 18px;
	cursor: pointer;
	color: white;
	border: none;
	border-radius: 5px;
	background-color: transparent;
}
#startButton img {
	display: block;
}

#wrapperCanvas {
	width: 100%;
	padding: 0 0.5rem;
	margin: 0 auto;
	position: relative;
}

#score {
	position: absolute;
	top: 11px;
	right: 16px;
	font-size: 22px;
	color: #666;
	font-smooth: never;
	-webkit-font-smoothing : none;
	-moz-osx-font-smoothing: unset;
}

canvas {
	max-width: 100%;
	margin: 0 auto;
	display: block;
	background-color: #ccc;
}
body[data-game-state="running"] canvas {
	animation: changeBkgColor 20s infinite alternate;
	animation-delay: 10s;
}
@keyframes changeBkgColor {
	from { background-color: #ccc; }
	to { background-color: #8d8d8d; }
}

#btnReplay {
	position: absolute;
	padding: 10px 20px;
	bottom: 32px;
	left: 50%;
	translate: -50% 0;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	column-gap: 10px;
	font-size: 20px;
	color: #fefefe;
	text-wrap: nowrap;
	text-transform: uppercase;
	border: none;
	cursor: pointer;
	border-radius: 10px;
	background-color: #999;
	transition: background-color 0.3s ease;
	font-smooth: never;
	-webkit-font-smoothing : none;
	-moz-osx-font-smoothing: unset;
}
#btnReplay:hover {
	background-color: #666;
}
#btnReplay img {
	transition: rotate 0.3s ease;
}
#btnReplay:hover img {
	rotate: -360deg;
}

#gameFinishedMessage {
	width: max-content;
	max-width: 80%;
	position: absolute;
	top: 50%;
	left: 50%;
	translate: -50% calc(-50% - 15px);
}


footer {
	width: 100%;
	padding: 1.5rem 0 1.875rem;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	row-gap: 1.25rem;
}
footer img {
	max-width: 100%;
	display: block;
}
footer > a {
	max-width: 70%;
	display: block;
}