body, body.dark {
	background-color: #0078e2;
}
body.dark {
	color: #ccc;
}

#main-wrapper {
	border: 2px solid #555;
	border-top: none;
	border-bottom: none;
	background: #fff;
	min-height: 100vh;
	margin: 0 auto;
	width: calc(100% - 160px);
	max-width: 660px;
	position: relative;
	padding: 0.6em 0 0 0;
}
body.dark #main-wrapper {
	border-color: #ccc;
	background: #333;
	color: #ccc;
}
#main-wrapper:before, #main-wrapper:after {
	content: "";
	height: 100%;
	position: absolute;
	top: 0;
	width: 80px;
}
#main-wrapper:before {
	border-right: 1px solid #ccc;
	box-shadow: -80px 0 80px -80px inset #a4d4fd;
	left: -78px;
}
#main-wrapper:after {
	border-left: 1px solid #ccc;
	box-shadow: 80px 0 80px -80px inset #a4d4fd;
	right: -78px;
}
body.dark #main-wrapper:before {
	box-shadow: -80px 0 80px -80px inset #003eaa;
}
body.dark #main-wrapper:after {
	box-shadow: 80px 0 80px -80px inset #003eaa;
}
#page-wrapper {
	padding: 0 0.9em;
}
.block {
	background: rgb(233, 233, 233);
	background: linear-gradient(0deg, rgba(252,252,252,1) 0%, rgba(233,233,233,1) 100%);
	padding: 5px 15px 20px 15px;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	margin: .45em 0 1em 0;
	min-height: 4em;
}
body.dark .block {
	background: rgb(51,51,51);
	background: linear-gradient(180deg, rgb(51, 51, 51) 0%, rgb(34, 34, 34) 100%);
	border-color: #333;
}
.block:last-child {
	margin: 0;
}
.block h1 {
	font-weight: normal;
	font-size: 1.5em;
	margin-top: .7em;
}
.block h2 {
	color: #404040;
	font-size: 1.3em;
	margin-top: 10px;
	font-weight: bold;
}
body.dark .block h2 {
	color: #ccc;
}
.block h3 {
	text-align: center;
	margin-bottom: 0.9em;
	font-weight: bold;
	font-size: 1.2em;
}

.block p {
	font-size: 1em;
	margin: 0;
}
.game-block {

}
.game {
	border-top: 1px solid #ccc;
	margin-top: 20px;
	padding-top: 20px;
	padding-left: 10px;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-content: flex-start;
	align-items: stretch;
	gap: 10px 20px;
}
.game a:hover {
	border-bottom: 1px solid #c3c3c3;
}
.game-logo {
	width: 200px;
	min-height: 120px;
	margin: auto;
}
.game-logo img {
	border: 1px solid #c3c3c3;
}
.game-info {
	/* margin: auto; */
}
.game:nth-child(odd) .game-info {
	order: 1;
}
.game:nth-child(odd) .game-logo {
	order: 2;
}

#commentSuccess {
	color: green;
	font-weight: 600;
	text-align: center;
	display: none;
	padding: 3em 1em;
}
#commentError {
	color: red;
	font-weight: 600;
	text-align: center;
	display: none;
	padding-top: 1em;
}
#commentForm {
	margin: 1em 0;
}
#commentForm:after {
	content: "";
	clear: both;
	display: table;
}
#commentForm textarea {
	width: 100%;
	height: 120px;
	margin-bottom: 10px;
}
#commentForm input[type="email"] {
	width: 100%;
	margin-bottom: 10px;
}
#commentForm input[type="text"] {
	margin-top: 8px;
	max-width: 120px;
}
#commentForm button {
	float: right;
	margin-top: 8px;
}
#commentForm img {
	float: left;
	margin-right: 12px;
}

footer {
	text-align: center;
	padding-bottom: 5em;
	text-transform: uppercase;
	font-size: 0.9em;
	letter-spacing: .05em;
}
footer li {
	display: inline-block;
	margin: 0;
	text-indent: 0;
}
footer a {
	color: #000;
}
body.dark footer a {
	color: #fff;
}
footer li::after {
	content: "/";
	margin: 0 0.3rem;
}
footer li:last-child::after {
	content: "";
	margin: 0;
}
.block p.head-language-switcher {
	margin-top: 1.1em;
	border-top: 1px solid #ccc;
	padding-top: .7em;
}
.block p.head-language-switcher a {
	margin: 0 .5em;
}
@media screen and (max-width: 661px) {
	#main-wrapper {
		width: 100%;
		border: none;
	}
	#main-wrapper:before, #main-wrapper:after {
		height: 0;
	}

	.game {
		flex-wrap: wrap;
	}
	.game:nth-child(odd) .game-info {
		order: 2;
	}
	.game:nth-child(odd) .game-logo {
		order: 1;
	}
}
html {
	scroll-behavior: smooth;
}
#backToTop {
	position: fixed;
	z-index: 100;
	bottom: 20px;
	right: 20px;
	width: 48px;
	height: 48px;
	box-shadow: 0px 3px 10px #00000033;
	border-radius: 100px;
	background: url(/img/up.svg) center center no-repeat #ffffff33;
	background-size: 32px 32px;
	transition: .3s ease-in-out;
	visibility: hidden;
	transform: scale(0);
}

#backToTop.visible {
	visibility: visible;
	transform: scale(1);
}
