* {
	box-sizing:border-box;
	padding: 0;
	margin: 0;
	font-family: 'Open Sans', sans-serif;
	font-size: 12px;
}

body, html {
	height: 100%;
	width: 100%;
}

body.nightMode {
	background-color: #000;
	color: #ccc;
}

/* --------------------------------------------*/

#menu {
	text-align: center;
	border-bottom: 1px solid;
	background-color: #fff;
	z-index: 100;
	position: relative;
}

.nightMode #menu {
	border-color: #ccc;
	background-color: #000;
}

#menu a {
	text-decoration: none;
	color: #000;
	display: inline-block;
	padding: 5px;
}

.nightMode #menu a {
	color: #ccc;
}

#menu a:hover, #donate a:hover, #menu span:last-child:hover, #languages span:first-child:hover {
	text-decoration: underline;
	cursor: pointer;
}

#languages {
	display: none;
	position: absolute;
	margin-top: -5px;
	margin-left: 5px;
	background: #fff;
	border: 1px solid #000;
	border-top: 1px solid #fff;
	text-align: left;
	padding: 10px;
	padding-top: 5px;
	z-index: 101;
}

.nightMode #languages {
	background-color: #000;
	color: #fff;
	border-color: #ccc;
}

#languages span:first-child {
	opacity: .5;
	display: inline-block;
	padding: 5px;
}

#worldSelection, #error, #donateBox, #mapSelection, #errorReport {
	position: absolute;
	bottom: 0;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99;
	background-image: linear-gradient( to left top, transparent 0%, transparent 49%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 50%, transparent 51%, transparent 100% );
	background-size: 10px 10px;
	background-color: rgb(255, 255, 255);
	display: none;
	opacity: 0;
}

.nightMode #worldSelection, .nightMode #error, .nightMode #donateBox, .nightMode #mapSelection, .nightMode #errorReport {
	background-color: #000;
	background-image: linear-gradient( to left top, transparent 0%, transparent 49%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 50%, transparent 51%, transparent 100% );
}

#worldSelection.display, #error.display, #donateBox.display, #mapSelection.display, #errorReport.display {
	display: block;
	-webkit-animation: waitingAppear .3s linear forwards;
	-moz-animation: waitingAppear .3s linear forwards;
	-o-animation: waitingAppear .3s linear forwards;
	animation: waitingAppear .3s linear forwards;
}

#worldSelection > div, #donateBox > div, #errorReport > div {
	width: 300px;
	margin: auto;
	margin-top: 30px;
	background: #fff;
	border: 1px solid #ccc;
	padding: 10px 0 20px 0;
	text-align: center;
	font-size: 14px;
	box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.26);
	position: relative;
}

#error > div {
	width: 300px;
	margin: auto;
	margin-top: 30px;
	background: #fff;
	border: 2px solid #f00;
	padding: 10px 0 20px 0;
	text-align: center;
	font-size: 14px;
	box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.26);
}

#mapSelection > div {
	background: #fff;
	border: 1px solid #ccc;
	padding: 10px 0 20px 0;
	text-align: center;
	font-size: 14px;
	margin: 30px 20px 0 20px;
	box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.26);
}

#worldSelection.display > div, #error.display > div, #donateBox.display > div, #mapSelection.display > div, #errorReport.display > div {
	-webkit-animation: worldSelectionMove .5s ease-out forwards;
	-moz-animation: worldSelectionMove .5s ease-out forwards;
	-o-animation: worldSelectionMove .5s ease-out forwards;
	animation: worldSelectionMove .5s ease-out forwards;
}

.nightMode #worldSelection.display > div, .nightMode #error.display > div, .nightMode #donateBox.display > div, .nightMode #mapSelection.display > div, .nightMode #errorReport.display > div {
	background-color: #000;
	box-shadow: 0 0 20px 0px rgba(255, 255, 255, 0.5);
}

@-webkit-keyframes worldSelectionMove {
	0%   { margin-top: 30px; }
	100% { margin-top: 50px; }
}

@-moz-keyframes worldSelectionMove {
	0%   { margin-top: 30px; }
	100% { margin-top: 50px; }
}

@-o-keyframes worldSelectionMove {
	0%   { margin-top: 30px; }
	100% { margin-top: 50px; }
}

@keyframes worldSelectionMove {
	0%   { margin-top: 30px; }
	100% { margin-top: 50px; }
}

#worldSelection > div > div, #donateBox > div > div {
	border-top: 1px solid #ccc;
	margin-top: 10px;
}

#errorReport > div > div {
	border-top: 1px solid #ccc;
	margin-top: 10px;
	padding-top: 20px;
}

#mapSelection > div > div {
	border-top: 1px solid #ccc;
	margin-top: 10px;
	padding-top: 20px;
}

#error > div > div {
	border-top: 2px solid #f00;
	margin-top: 10px;
}

#worldSelection > div > div span, #error > div > div span, #donateBox > div > div a {
	display: block;
	margin-top: 20px;
	font-size: 14px;
	color: #000;
	text-decoration: none;
}

#errorReport > div > div span {
	margin: 0px 0 15px 0;
	display: block;
	font-size: 18px;
}

#errorReport > div > div button {
	font-size: 14px;
	width: auto;
	color: rgba(0, 0, 0, 0.7);
	padding: 5px;
	display: block;
	margin: auto;
	margin-top: 10px;
}

#errorReport #textErrorReport {
	font-size: 12px;
	margin: auto;
	text-align: left;
	margin-top: 5px;
	width: 280px;
	max-width: 280px;
	min-width: 280px;
	max-height: 120px;
	margin-bottom: 10px;
	display: none;
	padding: 0 4px;
}

#errorReport #checkboxTextErrorReport {
	width: auto;
	opacity: .6;
	vertical-align: bottom;
}

#errorReport label {
	opacity: .6;
	font-style: italic;
	cursor: pointer;
}

#errorReport > div > span {
	position: absolute;
	top: 0;
	right: 0;
	font-size: 16px;
	display: block;
	height: 30px;
	width: 30px;
	line-height: 30px;
	text-align: center;
	cursor: pointer;
	opacity: .6;
}

#errorReport > div > span:hover {
	opacity: 1;
}

.nightMode #errorReport > div > div button {
	color: rgba(255, 255, 255, 0.7);
}

.nightMode #worldSelection > div > div span, .nightMode #error > div > div span, .nightMode #donateBox > div > div a {
	color: #ccc;
}

#worldSelection > div > div span:hover, #donateBox > div > div a:hover {
	text-decoration: underline;
	cursor: pointer;
}

#mapSelection > div > div > div {
    width: 570px;
    height: 295px;
    display: inline-block;
    border: 10px solid #fff;
    box-sizing: content-box;
    cursor: pointer;
    background-position: top left;
    background-repeat: no-repeat;
    background-color: #efefef;
    background-size: 100% 100%;
}

.nightMode #mapSelection > div > div > div {
	border-color: #000;
	background-color: #232323;
}

#mapSelection > div > div > div:hover {
    border-color: #000;
}

.nightMode #mapSelection > div > div > div:hover {
    border-color: #ccc;
}

#animTofu {
	position: absolute;
	margin-left: 10px;
	margin-bottom: 10px;
	bottom: 0;
	left: 0;
	width: 50px;
	height: 50px;
	background: url(https://dofus-map.com/huntTool/animTofu.png) no-repeat;
	-webkit-animation: animTofu 1s steps(30);
	-moz-animation: animTofu 1s steps(30);
	-o-animation: animTofu 1s steps(30);
	animation: animTofu 1s steps(30);
}

#warningErrorReport {
	background-color: rgba(255, 150, 0, 0.4);
	padding: 3px;
	display: none;
}

@-webkit-keyframes animTofu {
	0%   { background-position: 0px 0px; }
	100% { background-position: -1500px 0px; }
}

@-moz-keyframes animTofu {
	0%   { background-position: 0px 0px; }
	100% { background-position: -1500px 0px; }
}

@-o-keyframes animTofu {
	0%   { background-position: 0px 0px; }
	100% { background-position: -1500px 0px; }
}

@keyframes animTofu {
	0%   { background-position: 0px 0px; }
	100% { background-position: -1500px 0px; }
}

h1 {
	text-align: center;
	padding-top: 20px;
	padding-bottom: 5px;
	font-size: 20px;
	font-weight: 100;
}

h1 + p {
	padding-bottom: 30px;
	text-align: center;
}

h2 {
	font-size: 14px;
	text-align: center;
	margin: auto;
	font-weight: 600;
	margin-bottom: 10px;
}

#startingPosition h2 {
	-webkit-animation: startingAnimation .4s ease-out 1s;
	-moz-animation: startingAnimation .4s ease-out 1s;
	-o-animation: startingAnimation .4s ease-out 1s;
	animation: startingAnimation .4s ease-out 1s;
}

.nightMode #startingPosition h2 {
	-webkit-animation: startingAnimationNightMode .4s ease-out 1s;
	-moz-animation: startingAnimationNightMode .4s ease-out 1s;
	-o-animation: startingAnimationNightMode .4s ease-out 1s;
	animation: startingAnimationNightMode .4s ease-out 1s;
}

#hint h2 {
	-webkit-animation: startingAnimation .4s ease-out 1.3s;
	-moz-animation: startingAnimation .4s ease-out 1.3s;
	-o-animation: startingAnimation .4s ease-out 1.3s;
	animation: startingAnimation .4s ease-out 1.3s;
}

.nightMode #hint h2 {
	-webkit-animation: startingAnimationNightMode .4s ease-out 1.3s;
	-moz-animation: startingAnimationNightMode .4s ease-out 1.3s;
	-o-animation: startingAnimationNightMode .4s ease-out 1.3s;
	animation: startingAnimationNightMode .4s ease-out 1.3s;
}

@-webkit-keyframes startingAnimation {
	0%   { background-color: rgba(0,0,0,0); }
	5%   { background-color: rgba(0,0,0,.8); }
	100% { background-color: rgba(0,0,0,0); }
}

@-moz-keyframes startingAnimation {
	0%   { background-color: rgba(0,0,0,0); }
	5%   { background-color: rgba(0,0,0,.8); }
	100% { background-color: rgba(0,0,0,0); }
}

@-o-keyframes startingAnimation {
	0%   { background-color: rgba(0,0,0,0); }
	5%   { background-color: rgba(0,0,0,.8); }
	100% { background-color: rgba(0,0,0,0); }
}

@keyframes startingAnimation {
	0%   { background-color: rgba(0,0,0,0); }
	5%   { background-color: rgba(0,0,0,.8); }
	100% { background-color: rgba(0,0,0,0); }
}

@-webkit-keyframes startingAnimationNightMode {
	0%   { background-color: rgba(0,0,0,0); }
	5%   { background-color: rgba(255, 255, 255, 0.8); }
	100% { background-color: rgba(0,0,0,0); }
}

@-moz-keyframes startingAnimationNightMode {
	0%   { background-color: rgba(0,0,0,0); }
	5%   { background-color: rgba(255, 255, 255, 0.8); }
	100% { background-color: rgba(0,0,0,0); }
}

@-o-keyframes startingAnimationNightMode {
	0%   { background-color: rgba(0,0,0,0); }
	5%   { background-color: rgba(255, 255, 255, 0.8); }
	100% { background-color: rgba(0,0,0,0); }
}

@keyframes startingAnimationNightMode {
	0%   { background-color: rgba(0,0,0,0); }
	5%   { background-color: rgba(255, 255, 255, 0.8); }
	100% { background-color: rgba(0,0,0,0); }
}

#directions {
	width: 105px;
	height: 105px;
	-webkit-transform: rotate(45deg) translate(20px, 20px);
	-moz-transform: rotate(45deg) translate(20px, 20px);
	-ms-transform: rotate(45deg) translate(20px, 20px);
	-o-transform: rotate(45deg) translate(20px, 20px);
	transform: rotate(45deg) translate(20px, 20px);
	margin: auto;
}

#directions span {
	position: relative;
	display: block;
	width: 50px;
	height: 50px;
	z-index: 0;
	border-width: 1px;
	border-color: #ccc;
	float: left;
	cursor: pointer;
}

#directions span svg {
	opacity: .4;
}

.nightMode #directions span svg path {
	fill: #fff;
}

#directions span:hover {
	background-color: #f3f3f3;
}

.nightMode #directions span:hover {
	background-color: #212121;
}

.nightMode #directions span:hover svg {
	opacity: 1;
}

.nightMode #directions span:hover svg path {
	fill: #fff;
}

#directions span.selected {
	box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
	z-index: 1;
}

.nightMode #directions span.selected {
	box-shadow: 0px 0px 15px 0px rgb(255, 255, 255);
	z-index: 1;
	background-color: #505050;
}

#directions span.selected svg {
	opacity: 1;
}

#top, #right {
	border-top-style: solid;
}

#top, #left, #right, #bottom {
	border-right-style: solid;
}

#top, #left, #right, #bottom {
	border-bottom-style: solid;
}

#top, #left {
	border-left-style: solid;
}

#top {
	border-radius: 4px 4px 0 4px;
}

#right {
	border-radius: 4px 4px 4px 0;
}

#bottom {
	border-radius: 0 4px 4px 4px;
}

#left {
	border-radius: 4px 0 4px 4px;
}

/* --------------------------------------------------- */

#startingPosition {
	margin: auto;
	text-align: center;
	margin-bottom: 30px;
}

@-webkit-keyframes errorAnimation {
	0%   { background-color: rgba(230, 0, 0, 0); }
	5%   { background-color: rgba(230, 0, 0, .5); }
	100% { background-color: rgba(230, 0, 0, 0); }
}

@-moz-keyframes errorAnimation {
	0%   { background-color: rgba(230, 0, 0, 0); }
	5%   { background-color: rgba(230, 0, 0, .5); }
	100% { background-color: rgba(230, 0, 0, 0); }
}

@-o-keyframes errorAnimation {
	0%   { background-color: rgba(230, 0, 0, 0); }
	5%   { background-color: rgba(230, 0, 0, .5); }
	100% { background-color: rgba(230, 0, 0, 0); }
}

@keyframes errorAnimation {
	0%   { background-color: rgba(230, 0, 0, 0); }
	5%   { background-color: rgba(230, 0, 0, .5); }
	100% { background-color: rgba(230, 0, 0, 0); }
}


#startingPosition.error #x {
	-webkit-animation: errorAnimation .5s ease-out;
	-moz-animation: errorAnimation .5s ease-out;
	-o-animation: errorAnimation .5s ease-out;
	animation: errorAnimation .5s ease-out;
}

#startingPosition.error #y {
	-webkit-animation: errorAnimation .5s ease-out .2s;
	-moz-animation: errorAnimation .5s ease-out .2s;
	-o-animation: errorAnimation .5s ease-out .2s;
	animation: errorAnimation .5s ease-out .2s;
}

#errorReport .error {
	-webkit-animation: errorAnimation .5s ease-out;
	-moz-animation: errorAnimation .5s ease-out;
	-o-animation: errorAnimation .5s ease-out;
	animation: errorAnimation .5s ease-out;
}

#hint {
	margin: auto;
	text-align: center;
	margin-bottom: 30px;
}

#result {
	border-radius: 4px;
	width: 400px;
	margin: auto;
	text-align: center;
	position: relative;
	-webkit-transition: box-shadow .3s, opacity .3s;
	-moz-transition: box-shadow .3s, opacity .3s;
	-o-transition: box-shadow .3s, opacity .3s;
	transition: box-shadow .3s, opacity .3s;
}

#result.hidden {
	box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0);
}

#result.waiting {
	box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
}

.nightMode #result.waiting {
	box-shadow: 0px 0px 10px 0px rgba(255, 255, 255, 0.4);
}

#result.waiting #firstLine, #result.waiting #secondLine {
	opacity: 0;
}

#secondLine span {
	font-size: 20px;
	-webkit-animation: opacitySecondLine .3s linear forwards .5s;
	-moz-animation: opacitySecondLine .3s linear forwards .5s;
	-o-animation: opacitySecondLine .3s linear forwards .5s;
	animation: opacitySecondLine .3s linear forwards .5s;
}

@-webkit-keyframes opacitySecondLine {
	0%   { opacity: 1; }
	100% { opacity: .6; }
}

@-moz-keyframes opacitySecondLine {
	0%   { opacity: 1; }
	100% { opacity: .6; }
}

@-o-keyframes opacitySecondLine {
	0%   { opacity: 1; }
	100% { opacity: .6; }
}

@keyframes opacitySecondLine {
	0%   { opacity: 1; }
	100% { opacity: .6; }
}

#result.displayed {
	box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.4);
}

.nightMode #result.displayed {
	box-shadow: 0px 0px 20px 0px rgba(255, 255, 255, 0.83);
}

#result.displayed #firstLine, #result.displayed #secondLine {
	opacity: 1;
}

#result #firstLine svg {
	width: 36px;
	vertical-align: middle;
}

.nightMode #result #firstLine svg path {
	fill: #ccc;
}

#result #firstLine.top svg {
	-webkit-transform: rotate(270deg);
	-moz-transform: rotate(270deg);
	-ms-transform: rotate(270deg);
	-o-transform: rotate(270deg);
	transform: rotate(270deg);
}

#result #firstLine.bottom svg {
	-webkit-transform: rotate(90deg);
	-moz-transform: rotate(90deg);
	-ms-transform: rotate(90deg);
	-o-transform: rotate(90deg);
	transform: rotate(90deg);
}

#result #firstLine.left svg {
	-webkit-transform: rotate(180deg);
	-moz-transform: rotate(180deg);
	-ms-transform: rotate(180deg);
	-o-transform: rotate(180deg);
	transform: rotate(180deg);
}

#result #firstLine.right svg {
	-webkit-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-ms-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	transform: rotate(0deg);
}

#result #firstLine span {
	font-size: 60px;
	padding-left: 20px;
	vertical-align: middle;
}

#result #firstLine {
	opacity: 0;
	position: relative;
	z-index: 10;
	background-color: #fff;
	-webkit-transition: opacity .3s;
	-moz-transition: opacity .3s;
	-o-transition: opacity .3s;
	transition: opacity .3s;
}

.nightMode #result #firstLine {
	background-color: #2f2f2f;
}

#result #secondLine {
	font-size: 20px;
	padding-bottom: 10px;
	opacity: 0;
	position: relative;
	z-index: 10;
	background-color: #fff;
	-webkit-transition: opacity .3s;
	-moz-transition: opacity .3s;
	-o-transition: opacity .3s;
	transition: opacity .3s;
}

.nightMode #result #secondLine {
	background-color: #2f2f2f;
}

#result #questionMark {
	width: 100%;
	height: 100%;
	position: absolute;	
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

#result #questionMark span {
	font-size: 100px;
	font-weight: bold;
	z-index: -2;
	opacity: 0;
	-webkit-animation: startingAnimationII .4s ease-out 1.6s;
	-moz-animation: startingAnimationII .4s ease-out 1.6s;
	-o-animation: startingAnimationII .4s ease-out 1.6s;
	animation: startingAnimationII .4s ease-out 1.6s;
}

.nightMode #result #questionMark span {
	color: #ccc;
}

@-webkit-keyframes startingAnimationII {
	0%   { opacity: 0; }
	5%   { opacity: 1; }
	100% { opacity: 0; }
}

@-moz-keyframes startingAnimationII {
	0%   { opacity: 0; }
	5%   { opacity: 1; }
	100% { opacity: 0; }
}

@-o-keyframes startingAnimationII {
	0%   { opacity: 0; }
	5%   { opacity: 1; }
	100% { opacity: 0; }
}

@keyframes startingAnimationII {
	0%   { opacity: 0; }
	5%   { opacity: 1; }
	100% { opacity: 0; }
}

#result #loading {
	width: 100%;
	height: 100%;
	position: absolute;	
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

#result #loading div {
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	height: 40px;
	position: relative;
	justify-content: flex-end;
	align-items: center;
	width: 200px;
	overflow: hidden;
}

.nightMode #result #loading {
	color: #ccc;
}

#result #loading div svg {
	height: 100%;
	position: absolute;
	z-index: 1;
}

.nightMode #result #loading div svg polygon {
	fill: #000;
}

.nightMode #result #loading div svg line {
	stroke: #ccc;
}

#result.waiting #loading div svg:first-child {
	opacity: 0;
	-webkit-animation: waitingLineL .5s ease-out forwards;
	-moz-animation: waitingLineL .5s ease-out forwards;
	-o-animation: waitingLineL .5s ease-out forwards;
	animation: waitingLineL .5s ease-out forwards;
}

#result.waiting #loading div svg:last-child {
	-webkit-animation: waitingLineR .5s ease-out forwards;
	-moz-animation: waitingLineR .5s ease-out forwards;
	-o-animation: waitingLineR .5s ease-out forwards;
	animation: waitingLineR .5s ease-out forwards;
}

#result.waiting #loading span {
	-webkit-animation: waitingAppear .5s linear forwards .3s, waitingLoop 15s linear infinite;
	-moz-animation: waitingAppear .5s linear forwards .3s, waitingLoop 15s linear infinite;
	-o-animation: waitingAppear .5s linear forwards .3s, waitingLoop 15s linear infinite;
	animation: waitingAppear .5s linear forwards .3s, waitingLoop 15s linear infinite;
}

#result #loading div svg:first-child {
	left: -40px;
	opacity: 0;
}

#result #loading div svg:last-child {
	right: 40px;
	opacity: 0;
}

#result #loading span {
	white-space: nowrap;
	font-size: 14px;
	position: relative;
	z-index: -1;
	opacity: 0;
}

@-webkit-keyframes waitingLineL {
	0%   { left: -40px; opacity: 0; }
	100% { left: 0px; opacity: 1; }
}

@-moz-keyframes waitingLineL {
	0%   { left: -40px; opacity: 0; }
	100% { left: 0px; opacity: 1; }
}

@-o-keyframes waitingLineL {
	0%   { left: -40px; opacity: 0; }
	100% { left: 0px; opacity: 1; }
}

@keyframes waitingLineL {
	0%   { left: -40px; opacity: 0; }
	100% { left: 0px; opacity: 1; }
}

@-webkit-keyframes waitingLineR {
	0%   { right: -40px; opacity: 0; }
	100% { right: 0px; opacity: 1; }
}

@-moz-keyframes waitingLineR {
	0%   { right: -40px; opacity: 0; }
	100% { right: 0px; opacity: 1; }
}

@-o-keyframes waitingLineR {
	0%   { right: -40px; opacity: 0; }
	100% { right: 0px; opacity: 1; }
}

@keyframes waitingLineR {
	0%   { right: -40px; opacity: 0; }
	100% { right: 0px; opacity: 1; }
}

@-webkit-keyframes waitingAppear {
	0%   { opacity: 0; }
	100% { opacity: 1; }
}

@-moz-keyframes waitingAppear {
	0%   { opacity: 0; }
	100% { opacity: 1; }
}

@-o-keyframes waitingAppear {
	0%   { opacity: 0; }
	100% { opacity: 1; }
}

@keyframes waitingAppear {
	0%   { opacity: 0; }
	100% { opacity: 1; }
}

@-webkit-keyframes waitingLoop {
	0%   { -webkit-transform: translateX(0); -moz-transform: translateX(0); -ms-transform: translateX(0); -o-transform: translateX(0); transform: translateX(0); }
	.8%   { -webkit-transform: translateX(50px); -moz-transform: translateX(50px); -ms-transform: translateX(50px); -o-transform: translateX(50px); transform: translateX(50px); }
	49.6% { -webkit-transform: translateX(225px); -moz-transform: translateX(225px); -ms-transform: translateX(225px); -o-transform: translateX(225px); transform: translateX(225px); }
	50.4% { -webkit-transform: translateX(325px); -moz-transform: translateX(325px); -ms-transform: translateX(325px); -o-transform: translateX(325px); transform: translateX(325px); }
	99.2%  { -webkit-transform: translateX(450px); -moz-transform: translateX(450px); -ms-transform: translateX(450px); -o-transform: translateX(450px); transform: translateX(450px); }
	100% { -webkit-transform: translateX(0); -moz-transform: translateX(0); -ms-transform: translateX(0); -o-transform: translateX(0); transform: translateX(0); }
}

@-moz-keyframes waitingLoop {
	0%   { -webkit-transform: translateX(0); -moz-transform: translateX(0); -ms-transform: translateX(0); -o-transform: translateX(0); transform: translateX(0); }
	.8%   { -webkit-transform: translateX(50px); -moz-transform: translateX(50px); -ms-transform: translateX(50px); -o-transform: translateX(50px); transform: translateX(50px); }
	49.6% { -webkit-transform: translateX(225px); -moz-transform: translateX(225px); -ms-transform: translateX(225px); -o-transform: translateX(225px); transform: translateX(225px); }
	50.4% { -webkit-transform: translateX(325px); -moz-transform: translateX(325px); -ms-transform: translateX(325px); -o-transform: translateX(325px); transform: translateX(325px); }
	99.2%  { -webkit-transform: translateX(450px); -moz-transform: translateX(450px); -ms-transform: translateX(450px); -o-transform: translateX(450px); transform: translateX(450px); }
	100% { -webkit-transform: translateX(0); -moz-transform: translateX(0); -ms-transform: translateX(0); -o-transform: translateX(0); transform: translateX(0); }
}

@-o-keyframes waitingLoop {
	0%   { -webkit-transform: translateX(0); -moz-transform: translateX(0); -ms-transform: translateX(0); -o-transform: translateX(0); transform: translateX(0); }
	.8%   { -webkit-transform: translateX(50px); -moz-transform: translateX(50px); -ms-transform: translateX(50px); -o-transform: translateX(50px); transform: translateX(50px); }
	49.6% { -webkit-transform: translateX(225px); -moz-transform: translateX(225px); -ms-transform: translateX(225px); -o-transform: translateX(225px); transform: translateX(225px); }
	50.4% { -webkit-transform: translateX(325px); -moz-transform: translateX(325px); -ms-transform: translateX(325px); -o-transform: translateX(325px); transform: translateX(325px); }
	99.2%  { -webkit-transform: translateX(450px); -moz-transform: translateX(450px); -ms-transform: translateX(450px); -o-transform: translateX(450px); transform: translateX(450px); }
	100% { -webkit-transform: translateX(0); -moz-transform: translateX(0); -ms-transform: translateX(0); -o-transform: translateX(0); transform: translateX(0); }
}

@keyframes waitingLoop {
	0%   { -webkit-transform: translateX(0); -moz-transform: translateX(0); -ms-transform: translateX(0); -o-transform: translateX(0); transform: translateX(0); }
	.8%   { -webkit-transform: translateX(50px); -moz-transform: translateX(50px); -ms-transform: translateX(50px); -o-transform: translateX(50px); transform: translateX(50px); }
	49.6% { -webkit-transform: translateX(225px); -moz-transform: translateX(225px); -ms-transform: translateX(225px); -o-transform: translateX(225px); transform: translateX(225px); }
	50.4% { -webkit-transform: translateX(325px); -moz-transform: translateX(325px); -ms-transform: translateX(325px); -o-transform: translateX(325px); transform: translateX(325px); }
	99.2%  { -webkit-transform: translateX(450px); -moz-transform: translateX(450px); -ms-transform: translateX(450px); -o-transform: translateX(450px); transform: translateX(450px); }
	100% { -webkit-transform: translateX(0); -moz-transform: translateX(0); -ms-transform: translateX(0); -o-transform: translateX(0); transform: translateX(0); }
}


#x, #y, #xErrorReport, #yErrorReport {
  -moz-appearance:textfield;
}

#x::-webkit-outer-spin-button, #y::-webkit-outer-spin-button,
#x::-webkit-inner-spin-button, #y::-webkit-inner-spin-button,
#xErrorReport::-webkit-outer-spin-button, #yErrorReport::-webkit-outer-spin-button,
#xErrorReport::-webkit-inner-spin-button, #yErrorReport::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input, textarea {
	text-align: center;
	font-size: 30px;
	margin: 0 5px;
	width: 100px;
	border: 1px solid #ccc;
	border-radius: 4px;
	-webkit-transition: box-shadow .3s;
	-moz-transition: box-shadow .3s;
	-o-transition: box-shadow .3s;
	transition: box-shadow .3s;
}

#errorReport input {
	font-size: 18px;
	width: 80px;
	padding: 2px;
}

.nightMode input, .nightMode textarea {
	color: #ccc;
	background-color: #171717;
}

input.changingNumber {
	box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.4);
}

.nightMode input.changingNumber {
	box-shadow: 0 0 25px 0px rgb(255, 255, 255);
}

button {
	text-align: center;
	font-size: 30px;
	color: #9a9a9a;
	width: 36px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: #fff;
	cursor: pointer;
}

.nightMode button {
	background-color: #101010
}

input:hover, button:hover, select:enabled:hover, textarea:hover {
	background-color: #f3f3f3;
	border-color: #adadad;
}

.nightMode input:hover, .nightMode button:hover, .nightMode select:enabled:hover, .nightMode textarea:hover {
	background-color: #2f2f2f;
	color: #ffffff;
	border-color: #fff;
}

input:focus, button:active, select:enabled:focus, textarea:focus {
	border-color: #adadad;
	background-color: #f3f3f3;
	box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.36);
}

.nightMode input:focus, .nightMode button:active, .nightMode select:enabled:focus, .nightMode textarea:focus {
	border-color: #adadad;
	background-color: #2f2f2f;
	color: #fff;
	box-shadow: 0px 0px 15px 0px rgba(255, 255, 255, 0.53);
}

#semiColon {
	font-size: 30px;
	font-weight: 700;
	padding: 0 15px;
}

select {
	margin-top: 60px;
	text-align: center;
	font-size: 16px;
	width: 400px;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 6px;
	text-align: left;
}

#errorReport select {
	width: 230px;
	display: block;
	margin: auto;
	margin-bottom: 15px;
	margin-top: 3px;
	font-size: 14px;
	padding: 3px;
	text-align: center;
}

.nightMode select {
	background-color: #171717;
	color: #ccc;
	boder-color: #ccc;
}

select:disabled {
	opacity: .4;
	color: #000;
	font-style: italic;
}

.nightMode select:disabled {
	opacity: 1;
	background-color: #2d2d2d;
	color: #737373;
	border-color: #737373;
}

#bottomBox.closing #bottomBoxBackground, #bottomBox.closing #bottomBoxContent {
	-webkit-animation: closingL .5s ease-out forwards;
	-moz-animation: closingL .5s ease-out forwards;
	-o-animation: closingL .5s ease-out forwards;
	animation: closingL .5s ease-out forwards;
}

@-webkit-keyframes closingL {
	0%   { height: 90px; }
	99%  { border-width: 1px; }
	100% { height: 0px; border-width: 0; }
}

@-moz-keyframes closingL {
	0%   { height: 90px; }
	99%  { border-width: 1px; }
	100% { height: 0px; border-width: 0; }
}

@-o-keyframes closingL {
	0%   { height: 90px; }
	99%  { border-width: 1px; }
	100% { height: 0px; border-width: 0; }
}

@keyframes closingL {
	0%   { height: 90px; }
	99%  { border-width: 1px; }
	100% { height: 0px; border-width: 0; }
}

@-webkit-keyframes closingS {
	0%   { height: 50px; }
	99%  { border-width: 1px; }
	100% { height: 0px; border-width: 0; }
}

@-moz-keyframes closingS {
	0%   { height: 50px; }
	99%  { border-width: 1px; }
	100% { height: 0px; border-width: 0; }
}

@-o-keyframes closingS {
	0%   { height: 50px; }
	99%  { border-width: 1px; }
	100% { height: 0px; border-width: 0; }
}

@keyframes closingS {
	0%   { height: 50px; }
	99%  { border-width: 1px; }
	100% { height: 0px; border-width: 0; }
}

#bottomBoxContent {
	margin-left: -364px;
	left: 50%;
	width: 728px;
	height: 90px;
	position: absolute;
	background: #fff;
	bottom: 0;
	overflow: hidden;
}

.nightMode #bottomBoxContent {
	background-color: #000;
}

#bottomBoxContent p {
	display: none;
}

#bottomBoxContent.blocked {
	border: 1px solid black;
}

.nightMode #bottomBoxContent {
	border-color: #696969;
}

#bottomBoxContent.blocked p {
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	width: 722px;
	height: 84px;
	margin: 2px;
	border: 1px solid black;
}

.nightMode #bottomBoxContent.blocked p {
	border-color: #696969;
}

#closeBottomBox {
	text-align: center;
	bottom: 90px;
	position: absolute;
	width: 100%;
	padding: 3px;
	cursor: pointer;
}

#bottomBoxBackground {
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 90px;
	box-shadow: 0px 5px 18px rgba(0, 0, 0, 0.22) inset;
	overflow: hidden;
}

.nightMode #bottomBoxBackground {
	box-shadow: 0px 5px 18px rgba(255, 255, 255, 0.16) inset;
}

#donate {
	text-align: center;
	padding: 15px;
	padding-top: 0;
	position: absolute;
	width: 100%;
	bottom: 0;
}

#donate a {
	text-decoration: none;
	color: #000;
	display: inline-block;
}

.nightMode #donate a {
	color: #ccc;
}

#donateLogin, #donateInfo {
	display: none;
}

#donationMailInput {
	display: inline;
	background: none;
	border: none;
	border-bottom: 1px dotted;
	border-radius: 0;
	font-size: inherit;
	width: 177px;
}

#donationMailSubmit {
	border: 1px solid rgba(0,0,0,0.5);
	padding: 4px;
	border-radius: 4px;
	cursor: pointer;
	display: inline-block;
}

.nightMode #donationMailSubmit {
	border-color: #ccc;
}

#forgottenHint, #misplacedHint {
	width: 400px;
	margin: auto;
	text-align: left;
	opacity: .6;
	padding-top: 5px;
}

#misplacedHint {
	padding-top: 7px;
	position: absolute;
}

#forgottenHint span, #misplacedHint span {
	cursor: pointer;
	-webkit-transition: color .8s;
	-moz-transition: color .8s;
	-o-transition: color .8s;
	transition: color .8s;
}

#forgottenHint span:hover, #misplacedHint span:hover {
	color: #f00;
}

/* ############# MOBILE #############*/

@media screen and (max-width: 727px), (max-height: 700px)  {
	#bottomBoxContent {
		margin-left: -160px;
		width: 320px;
		height: 50px;
	}

	#closeBottomBox {
		bottom: 50px;
	}

	#bottomBoxBackground {
		height: 50px;
	}

	#bottomBoxContent.blocked p {
		width: 314px;
		height: 44px;
	}

	#bottomBox.closing #bottomBoxBackground, #bottomBox.closing #bottomBoxContent {
		-webkit-animation: closingS .5s ease-out forwards;
		-moz-animation: closingS .5s ease-out forwards;
		-o-animation: closingS .5s ease-out forwards;
		animation: closingS .5s ease-out forwards;
	}

	#bottomBoxContent p {
		color: transparent;
	}
}

@media screen and (max-width: 1279px) {
	#mapSelection > div > div > div {
		width: 460px;
		height: 238px;
	}
}

@media screen and (max-width: 1023px) {
	#mapSelection > div > div > div {
		width: 290px;
		height: 150px;
	}
}

/* adapté pour les largeurs et hauteurs de 360 x 640 */
@media screen and (max-width: 430px) {
	h1 + p {
		padding-left: 5px;
		padding-right: 5px;
	}

	h1 + p br {
		display: none;
	}

	input {
		width: 75px;
	}

	#semiColon {
		padding: 0 5px;
	}

	select {
		width: 340px;
	}

	#result, #forgottenHint, #misplacedHint {
		width: 340px;
	}
}

@media screen and (max-height: 640px) {
	h1 {
		padding-top: 10px;
	}

	h1 + p {
		padding-top: 0;
		padding-bottom: 20px;
	}

	#hint {
		margin-bottom: 20px;
	}

	#result {
		margin-bottom: 10px;
	}
}

/* adapté pour les largeurs et hauteurs de 320 x 568  */
@media screen and (max-width: 359px) {
	button {
		width: 30px;
	}

	#semiColon {
		padding: 0;
	}

	select {
		width: 300px;
		font-size: 15px;
	}

	#result, #forgottenHint, #misplacedHint {
		width: 300px;
	}

	#mapSelection > div > div > div {
		width: 250px;
		height: 129px;
	}
}

@media screen and (max-height: 568px) {
	h1 {
		padding: 10px 0;
	}

	h1 + p {
		display: none;
	}

	#startingPosition {
		margin-bottom: 15px;
	}

	#result {
		margin-bottom: 10px;
	}

	#hint {
		margin-bottom: 15px;
	}
}