[class*="entypo-"]:before {
	font-family: 'entypo', sans-serif;
}

:root {
  --main-font-color: #171717;

  --dfs-blue-300: #b5c5db;
  --dfs-blue-700: #08387F;
  --dfs-blue-800: #062c64;

  --dfs-light-blue-700: #0F5AD2;

  --dfs-green-400: #c3f519;
  --dfs-green-500: #B7E817;
  --dfs-green-600: #A4D015;

  --dfs-red-700: #EB1914;

  --dfs-grey-400: #9F9F9F;

  --city-grey: #4F4F51;

  --white: #fff;
}

html {
	width: 100%;
	height: 100%;
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
	-webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
   user-select: none;
}
body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	background: #fff;
	color: var(--main-font-color);
	box-sizing: border-box;
	font-size: 16px;
	line-height: 30px;
}
body * {
	box-sizing: border-box;
}
h1, h2, h3, h4 {
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 2px;
}
header {
	text-align: center;
}
header .logo {
	height: 50px;
	vertical-align: top;
	display: inline-block;
}
.hide {
	display: none !important;
}
.links {
	text-align: center;
}
.links a {
	color: var(--dfs-blue-800);
	text-decoration: none;
	line-height: 30px;
	padding: 0 10px;
	display: inline-block;
}
.links a:hover {
	color: var(--dfs-green-500);
}
.button {
	display: inline-block;
	line-height: 30px;
	padding: 10px 40px;
	min-width: 220px;
	text-align: center;
	color: var(--main-font-color);
	background: var(--dfs-blue-300);
	border-radius: 25px;
	cursor: pointer;
	font-weight: 500;
	margin: 10px;
	position: relative;
}
.button.primary {
	background: var(--dfs-green-400);
}
.button.outline {
	background: none;
	color: var(--white);
	border: 1px solid var(--white);
}
.button.outline:hover {
	background: var(--white);
	color: var(--city-grey);
}
.button:hover {
	color: var(--white);
	background: var(--dfs-blue-700);
}
.button [class*="entypo-"] {
	position: absolute;
	left: 20px;
}
.wrapper {
	height: 100%;
	max-width: 1000px;
	margin: 0 auto;
	padding: 20px;
}
.container {
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	align-content: center;
}
.game .text {
	margin: 0 auto;
	width: 100%;
	max-width: 900px;
	max-height: 100%;
	overflow: auto;
	position: relative;
}
.game .text * {
	text-align: center;
}
.game .text h1 {
	margin-bottom: 40px;
}
.game .text p {
	margin: 20px auto;
	max-width: 600px;
}
.game .text .button {
	margin-top: 20px;
}


/* Game Init */
.game {
	position: relative;
	width: 100%;
	min-height: calc(100% - 90px - 70px);
}
.game.init > .splash {
	opacity: 1;
	visibility: visible;
}
.game > .splash {
	opacity: 0;
	visibility: hidden;
	position: fixed;
	width: 100%;
	height: 100%;
	z-index: 1000;
	
	transition: opacity 0.5s, visibility 0.5s;
	background: #fff;
}
.game > .splash .no-support {
	display: none;
	color: var(--dfs-red-700);
}
.game.show-no-support .support {
	display: none;
}
.game.show-no-support.invalid-link .no-support.invalid-link {
	display: block;
}

.game > .pause {
	opacity: 0;
	visibility: hidden;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 500;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	background: rgba(255,255,255,0.8);
	transition: all 0.3s;
}
.game > .pause .text {
	margin-bottom: 90px;
}
.game.pause > .pause {
	opacity: 1;
	visibility: visible;
}
.game > .pause-btn {
	position: fixed;
	top: 50%;
	margin-top: 50px;
	right: -250px;
	z-index: 500;
	transition: all 0.3s;
}
.game[data-mode='introduction'] > .pause-btn {
	right: -180px;
}
.game.pause > .pause-btn {
	right: 50%;
	margin-right: -110px;
}
/* Game Slider */
.game .game-slider {
	display: block;
	height: auto;
	background-color: transparent;
}
.game.init .game-slider {
	display: none;
}
.game .slide-container {
	width: 100%;
	overflow: hidden;
	transition: height 0.5s;
}
.game .slide-container ul {
	width: 10000%;
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	left: 0;
	transition: left 0.5s;
}
.game .slide-container ul:after {
	content: "";
	clear: both;
	display: table;
}
.game .slide-container ul li {
	width: 1%;
	display: block;
	float: left;
}
.game .game-slider .game-controls {
	text-align: center;
	display: none;
}
.game[data-mode='introduction'] .game-slider .game-controls {
	display: block;
}
.game[data-mode='test'] .game-slider .text,
.game[data-mode='done'] .game-slider .text {
	visibility: hidden;
}

/* City */
.city {
	border-radius: 5px;
	overflow: hidden;
}
.game .city {
	width: 638px;
	height: 488px;
	margin: 0 auto;
	position: relative;
}
.game .city > * {
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	visibility: visible;
	opacity: 1;
}
.game .city .splash {
	z-index: 100;
	transition: all 0.5s;
	background-color: var(--city-grey);
}
.game .city .finish {
	z-index: 100;
	background-color: var(--city-grey);
	color: var(--white);
}
.game .city .finish p {
	text-align: center;
	width: 100%;
}
.game .city .finish .waiter {
	top: 0;
	margin-bottom: 20px;
}
.game .city .finish .waiter .waiter-circle:before {
	background-color: var(--white);
}
.game .city .animations {
	background-image: url('game/map.svg');
	background-size: 630px;
	background-position: center;
	background-repeat: no-repeat;
	background-color: var(--city-grey);
}
.game .city .animations * {
	position: absolute;
}
.game .city:not(.init) .splash,
.game .city:not(.finished) .finish {
	visibility: hidden;
	opacity: 0;
}
.game .city .finish .save-status.green {
	color: var(--dfs-green-400);
}
.game .city .finish .save-status.red {
	color: var(--dfs-red-700);
}
.game .city .point {
	display: block;
	width: 8px;
	height: 8px;
	background: var(--white);
	border-radius: 100%;
	box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.game .city .point:before {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	z-index: 10;
	border-radius: 100%;
	border: 1px solid var(--white);
	background: var(--dfs-light-blue-700);
	box-sizing: border-box;
}
.game .city .point:after {
	content: "";
	position: absolute;
	width: 200%;
	height: 200%;
	left: -50%;
	top: -50%;
	border-radius: 100%;
	z-index: 0;
	background-color: var(--white);
	animation: pulsate 1s ease-out;
	animation-iteration-count: infinite;
}
.game .city .ghost {
	display: block;
	width: 20px;
	height: 20px;
	padding: 5px;
	margin-left: -5px;
	margin-top: -5px;
	cursor: pointer;
	text-align: center;
}
.game .city .ghost:after {
	content: attr(data-index);
	display: block;
	background: #fff;
	color: var(--dfs-red-700);
	width: 10px;
	height: 10px;
	font-size: 6px;
	line-height: 10px;
	border-radius: 5px;
}
.game .city .ghost:hover:after {
	background: var(--dfs-red-700);
	color: var(--white);
}
.game .city .arrow {
	display: block;
	width: 8px;
	height: 8px;
}
.game .city .arrow:after {
	content: "";
	display: block;
	position: absolute;
	bottom: 0;
	width: 8px;
	height: 18px;
	background-image: url('game/arrow.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}
.game .city .circle {
	border: 2px solid #000;
	display: block;
	width: 30px;
	height: 30px;
	margin-left: -11px;
	margin-top: -11px;
	border-radius: 100%;
}
.game .city .circle.red {
	border-color: var(--dfs-red-700);
}
.game .city .circle.green {
	border-color: var(--dfs-green-400);
}
.game .indicator {
	margin: 20px 0;
	text-align: center;
}
.game .indicator.keyboard .key {
	width: 60px;
	height: 50px;
	line-height: 50px;
	display: inline-block;
	margin: 5px;
	position: relative;
}
.game .indicator.keyboard .key.red span {
	background: var(--dfs-red-700);
}
.game .indicator.keyboard .key.green span {
	background: var(--dfs-green-500);
}
.game .indicator.keyboard .key.faded {
	opacity: 0.5;
}
.game .indicator.keyboard .key span {
	position: relative;
	z-index: 10;
	width: 100%;
	height: 100%;
	background: var(--dfs-grey-400);
	display: block;
	border-radius: 5px;
	transition: background 0.3s;
	text-align: center;
	color: #fff;
}
.game .indicator.keyboard .key.pulsate:after {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	border-radius: 5px;
	z-index: 0;
	background-color: var(--dfs-green-400);
}
.game .indicator.keyboard .key.pulsate:after {
	animation: pulsate 1s ease-out;
	animation-iteration-count: infinite;
}
.game .indicator.score > span {
	display: inline-block;
	line-height: 30px;
	padding: 10px 40px;
	text-align: center;
	border-radius: 25px;
	margin: 10px;
	border: 1px solid var(--main-font-color);
}
.game .indicator.score > .wrong {
	color: var(--dfs-red-700);
	border: 1px solid var(--dfs-red-700);
}
.game .indicator.score > .correct {
	color: var(--dfs-green-600);
	border: 1px solid var(--dfs-green-600);
}

/* Draw tool */
.game .lines {
	margin-left: 4px;
	margin-right: 4px;
}
.game .lines .line {
	padding: 0px;
	margin: 0px;
	height: 2px;
	line-height: 1px;
	position: absolute;
	background-color: var(--dfs-light-blue-700);
	transition: background 1s;
}
.game .lines .line.new {
	background-color: var(--dfs-red-700);
}

/* No browser support */
@supports not (display: flex) {

	.game .support {
		display: none;
	}
	.game .no-support.browser {
		display: block;
	}
}

/* Small screen */
@media screen and (max-width: 1200px),(max-height: 600px) {
	
	.game .support {
		display: none;
	}
	.game .no-support.screen-size {
		display: block;
	}
}

@keyframes pulsate {
	0% {transform: scale(0.1, 0.1); opacity: 0.0;}
	50% {opacity: 1.0;}
	100% {transform: scale(1.3, 1.3); opacity: 0.0;}
}