*, *:before, *:after {
	box-sizing: border-box;
}
html {
	height: 100%;
}
body {
	font-family: 'Roboto', sans-serif;
	margin: 0;
	min-height: 100%;
	position: relative;
	padding-bottom: 100px;
}
a,
a:link,
a:active,
a:visited {
	color: inherit;
	text-decoration: none;
}
a.link {
	text-decoration: underline;
}
a.link:hover {
	text-decoration: none;
	background-color: #0094ff40;
	border-radius: 0.25em;
}

body > nav > *,
body > main > *,
body > footer > * {
	width: 470px;
	margin: 0 auto;
	height: 100%;
}
body > header > * {
	width: 980px;
	margin: 0 auto;
}
body > header > *,
body > main > *,
body > footer > * {
	padding: 10px;
}

body > header .ad-banner {
	display: inline-block;
	margin-left: 24px;
	width: 728px;
}

@media screen and (max-width: 980px){
	body > header > * {
		width: 658px;
	}
	body > header .ad-banner {
		width: 468px;
	}
	body > header img {
		height: 70px;
	}
}

@media screen and (max-width: 658px){
	body > header > * {
		width: 468px;
		padding: 10px 0;
	}
	body > header > * > a {
		padding: 0 10px;
	}
	body > header .ad-banner  {
		display: block;
		margin: 0;
	}
}

body >  header,
body >  footer {
	background-color: #99d5ff;
}

body > nav {
	background-color: #0094ff;
	height: 100%;
	color: white;
}

body > nav > * > ol {
	padding: 0;
	margin: 0;
	list-style: none;
	height: 40px;
}
body > nav > * > ol > li {
	display: inline-block;
	height: 40px;
	vertical-align: top;
}
body > nav > * > ol > li > span,
body > nav > * > ol > li > a,
body > nav > * > ol > li > form {
	display: inline-block;
	width: 100%;
	height: 100%;
	padding: 10px 5px;
	color: inherit;
	text-decoration: none;
}
body > nav ol > li.selected > span,
body > nav ol > li > span:hover,
body > nav ol > li.selected > a,
body > nav ol > li > a:hover {
	background-color: #FFFFFF40;
}

body > nav > * > ol > li.facebook,
body > nav > * > ol > li.paypal {
	float: right;
}
body > nav > * > ol > li.facebook .fb-icon {
	background-color: currentColor;
	display: inline-block;
	width: 20px;
	height: 20px;
	-webkit-mask-image: url(../img/facebook-logo.svg);
	mask-image: url(../img/facebook-logo.svg);
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

body > nav > * > ol > li.facebook a:hover {
	background-color: #FFF;
}
body > nav > * > ol > li.facebook a:hover .fb-icon {
	background-color: #3b5998;
}

body > nav > * > ol > li#languages {
	position: relative;
}
body > nav > * > ol > li#languages > span {
	padding: 10px;
	display: inline-block;
	text-transform: uppercase;
}
body > nav > * > ol > li#languages .lang-list {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1;
	background-color: #0094ff;
}
body > nav > * > ol > li#languages .lang-list > li {
	display: block;
}
body > nav > * > ol > li#languages .lang-list > li > a {
	padding: 10px;
	display: block;
	white-space: nowrap;
}
body > nav > * > ol > li#languages:hover .lang-list {
	display: block;
}

main > div {
	position: relative;
}
main > div > .side-banners {
	position: absolute;
	left: 100%;
	top: 0;
	margin-left: 20px;
}
main > div > .side-banners > * {
	margin: 20px auto;
}
@media screen and (max-width: 1110px){
	main > div > .side-banners {
		position: static;
	}
}

body >  footer {
	min-height: 100px;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	text-align: center;
	color: #0094ff;
}

body.footer-low {
	padding-bottom: 40px;
}
body.footer-low > footer {
	min-height: 40px;
}

body >  footer img {
	height: 57px;
}

.hidden {
	display: none;
}

.puzzle {
	display: inline-block;
	vertical-align: top;
	padding: 20px;
	margin-left: -20px;
}
.puzzle .load {
	margin-bottom: 10px;
}
.puzzle .load .ui-button .ui-icon {
	margin-left: -0.5em;
}
.puzzle.solved {
	background-color: #B0D6B0;
}
.puzzle .grid {
	border: 3px solid black;
	border-collapse: collapse;
	font-size: 40px;
	background-color: white;
	user-select: none;
	margin: 10px 0;
}
.puzzle .grid td {
	border: 1px solid black;
	padding: 0;
	position: relative;
	cursor: pointer;
	background-clip: padding-box;
}
.puzzle .grid td:nth-child(3n) {
	border-right: 3px solid black;
}
.puzzle .grid tr:nth-child(3n) {
	border-bottom: 3px solid black;
}
.puzzle .grid td > input,
.puzzle .grid td > div {
	width: 48px;
	height: 48px;
	text-align: center;
	display: block;
	font-size: 1em;
	border: none;
	background-color: transparent;
	color: inherit;
	padding: 0;
}
.puzzle .grid td > input::selection {
	background-color: #E0E0E0;
	color: inherit;
}
.puzzle .grid td.selected > input,
.puzzle .grid td.selected > div {
	outline: 2px solid #34BAC7;
	background-color: #AFF8FF;
}
.puzzle .grid td.fixed {
	background-color: #E0E0E0;
}
.puzzle .grid td.fixed.selected > input,
.puzzle .grid td.fixed.selected > div {
	background-color: #E0E0E0;
}
.puzzle .grid td > span.notes {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	word-break: break-all;
	font-size: 20px;
	line-height: 15px;
	padding: 2px;
}
.puzzle.hide-on-pause .grid {
	color: transparent;
}
.puzzle.running.hide-on-pause .grid {
	color: inherit;
}
.puzzle.inactive-fade .grid {
	opacity: 0.5;
}
.puzzle.inactive-fade.active .grid,
.puzzle.inactive-fade.solved .grid {
	opacity: 1;
}

.puzzle .grid td > input.collision,
.puzzle .grid td > div.collision {
	background-color: rgba(255,128,128,1);
	
}
.puzzle .grid td > input.collision_fade,
.puzzle .grid td > div.collision_fade {
	transition: 1s background linear;
	background-color: rgba(255,128,128,0);
}

.puzzle .help {
	margin-top: 10px;
}
.puzzle .help h5 {
	margin: 4px 0;
}
.puzzle * + .load {
	margin-top: 8px;
}

.puzzle .timer {
	float: right;
	margin: 0 8px;
	display: none;
}
.puzzle.started .timer {
	display: inline-block;
}

.status {
	padding: 10px;
	margin: 10px 0;
}
.status:empty {
	padding: 0;
	margin: 0;
}
.status.ok {
	background-color: rgb(128,255,128);
}

.status.error {
	background-color: rgb(255,128,128);
}

#languages .lang-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: inline-block;
}
#languages .lang-list > * {
	display: inline-block;
	text-transform: uppercase;
}
/*#languages .lang-list > * + *:before {
	content: "|";
	margin-right: 4px;
}*/
#languages .lang-list a {
	padding: 0 4px;
}

#languages .lang-list a:link,
#languages .lang-list a:active,
#languages .lang-list a:visited {
	text-decoration: none;
	color: inherit;
}

#languages > span:before,
#languages .lang-list a:before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 12px;
	background-image: url(../img/lang.png);
	background-repeat: no-repeat;
	background-size: 32px;
	margin-right: 4px;
}
#languages > span.lang-en:before,
#languages .lang-list .lang-en a:before {
	background-position: 0px 0px;
}
#languages > span.lang-de:before,
#languages .lang-list .lang-de a:before {
	background-position: -16px 0px;
}
#languages > span.lang-hr:before,
#languages .lang-list .lang-hr a:before {
	background-position: 0px -12px;
}
#languages > span.lang-sl:before,
#languages .lang-list .lang-sl a:before {
	background-position: -16px -12px;
}
#languages > span.lang-rs:before,
#languages .lang-list .lang-rs a:before {
	background-position: 0px -24px;
}

.load-puzzle-dialog ol {
	list-style: none;
	margin: 0;
	padding: 0;
}
.load-puzzle-dialog ol > li {
	margin: 0;
	padding: 4px;
	background-color: #E0E0E0;
	cursor: pointer;
}
.load-puzzle-dialog ol > li:hover {
	background-color: #AFF8FF;
}
.load-puzzle-dialog ol > li + li {
	margin-top: 4px;
}


#help {
	list-style: none;
	padding: 0;
}
#help label {
	display: inline-block;
	width: 110px;
}
form > ol {
	padding: 4px 0;
	margin: 0;
	list-style: none;
}
form > ol input {
	width: 100%;
}