@charset "UTF-8";
/* CSS Document */

#error .container {
	padding-top: 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 50px;
}

#error h1 {
	background: none;
	color: var(--cnx-black);
	font-size: 5rem;
	text-align: center;
}

#error h2 {
	font-size: 1.25rem;
	font-family: var(--font-basic);
	color: var(--cnx-main);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 15px;
	text-align: center;
}

#error h2 span {
	font-weight: var(--semibold);
}

#error p {
	max-width: 600px;
	text-align: center;
	padding: 30px 0;
}

#textDesktop {
	display: block;
}

#textResponz {
	display: none;
}



#dinosaurGame .container {
	display: flex;
	justify-content: center;
}

.game {
	display: block;
	width: 100%;
	max-width: 1200px;
	height: 320px;
	background-color: #ffffff;
	overflow: hidden;
	position: relative;
	border: 1px solid #eeeeee;
	border-bottom: 3px solid var(--cnx-greylight);
	margin-bottom: 80px;
}

#score {
	position: absolute;
	top: 22px;
	left: 22px;
	text-align: right;
	font-weight: var(--semibold);
	color: var(--cnx-greydark);
}

#gameOverlay {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

#playButton {
	padding: 10px;
	background: none;
	border: none;
	cursor: pointer;
}

#playButton:hover img {
	transform: scale(1.12);
}

#playButton img {
	background-color: var(--cnx-main);
	border-radius: 99rem;
	height: 40px;
	transition: 0.2s;
}

#playButton h4 {
	font-size: 1.5rem;
	padding-top: 12px;
}

#dino {
	width: 40px;
	height: 55px;
	background-image: url(/imgs/404game/player_idle.gif);
	background-position: center;
	background-size: cover;
	position: absolute;
	bottom: 0;
	left: 50px;
	top: auto;
}

#dino.run {
	background-image: url(/imgs/404game/player_run.gif);
}

#dino.jump {
	background-image: url(/imgs/404game/player_jump.gif);
}

#cactus {
  width: 36px;
  height: 40px;
  background-image: url(/imgs/404game/barrier.png);
  position: absolute;
  bottom: 0;
  left: 100%;
}

.move {
  animation: moveCactus 2s linear infinite;
}

@keyframes moveCactus {
	0% { left: 100%; }
	100% { left: -25px; }
}

.jump {
	animation: jump 0.4s ease;
}

@keyframes jump {
	0%   { bottom: 0; }
	50%  { bottom: 80px; }
	100% { bottom: 0; }
}

#gameOverScreen {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: white;
	color: white;
	display: flex;
	flex-direction: column;
	align-items: center;
	z-index: 10;
	font-family: sans-serif;
}

#gameOverScreen h2 {
	color: var(--cnx-black);
	font-size: 3rem;
	padding-top: 70px;
	margin-bottom: 25px;
	text-transform: uppercase;
}

#gameOverScreen p:first-of-type {
	font-size: 1.5rem;
	margin-bottom: 8px;
}

#gameOverScreen p {
	font-size: 1rem;
	margin: 0 0 30px;
	color: var(--cnx-greydark);
}

#restartButton {
	width: 130px;
	height: 40px;
	border-radius: 20px;
	background-color: var(--cnx-background);
	border: 1px solid var(--cnx-main);
	font-size: 0.875rem;
	cursor: pointer;
}

#restartButton:hover {
	color: #ffffff;
	background-color: var(--cnx-main);
}

#gameOverScreen.gameOver {
	display: none;
}




/* ----- Responz – Not desktop ----- */


@media screen and (max-width: 1199px) {

	#dinosaurGame .container {
		display: none;
	}

	#error h1 {
		font-size: 3rem;
		line-height: 3.5rem;
	}

	#error h2 {
		font-size: 1rem;
		margin-bottom: 0;
	}

	#textDesktop {
		display: none;
	}

	#textResponz {
		display: block;
		margin: 0;
	}
	
	
}