*,
*:before,
*:after {
	box-sizing: border-box;
}

body {

	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	min-height: 100vh;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	color: #ffffff;
	font-family: "Russo One", sans-serif;
	font-size: 20px;
	letter-spacing: 2px;
	background: url("../images/background.jpg");
	background-color: #010111;
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.container {
	display: flex;
	width: 100%;
	max-width: 800px;
	margin: 0 10px;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
}

.header {
	align-items: center;
}

.header__title {
	margin: 20px 0;
	font-family: 'Russo One', sans-serif;
	font-size: 30px;
	color: #13d0ef;
	text-align: center;
}

.header__user {
	display: flex;
	justify-content: flex-end;
	margin: 0 0 0 20px;
}

.header__link {
	padding: 10px 10px;
	color: #ffffff;
	text-decoration: none;
	cursor: pointer;
}

.link_hide {
	visibility: hidden;
	position: absolute;
	top: -1000px;
}

.navmenu {
	margin: 20px 0;
}

.navmenu__menu {
	max-width: 100%;
	display: flex;
	justify-content: space-between;
	padding: 0;
	margin: 0;
	list-style: none;
}


.navmenu__list {
	display: flex;
	padding: 0;
	margin: 0;
	list-style: none;
}

.menu_game {
	margin-right: 20px;
}

.menu_user {
	margin-left: 20px;
}

.navmenu__link,
.game-page__link {
	padding: 10px;
	color: #ffffff;
	text-decoration: none;
	cursor: pointer;
}

.navmenu__link:hover,
.game-page__link:hover {
	color: #974ab3;
}

.navmenu__link:focus,
.game-page__link:focus {
	color: #974ab3;
	outline: none;
}

.main-content {
	display: flex;
	flex: 1 1 auto;
	justify-content: center;
	width: 100%;
	max-width: 100vw;
}

.content,
.default-page,
.main-page,
.rules-page,
.toplist-page,
.error-page,
.gameover-page,
.settings-page,
.signup-page,
.signin-page {
	margin: 30px 0 0;
	align-self: flex-start;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1 1 auto;
	max-height: 100%;
}

.rules-page p {
	text-align: left;
}

.rules-page__title,
.toplist-page__title,
.error-page__title,
.gameover-page__title,
.settings-page__title,
.signup-page__title,
.signin-page__title {
	font-size: 28px;
	color: #fd1561;
	text-align: center;
}

.main-page__text {
	margin: 20px 0 40px;
	font-size: 24px;
	color: #13d0ef;
}

.main-page__logo {
	margin: 30px 0 30px;
	max-width: 400px;
}

.main-page__image {
	display: block;
	width: 100%;
}

.main-page__list {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0;
	margin: 0;
	list-style: none;
}

.main-page__link {
	display: inline-block;
	margin: 5px 0;
	color: #ffffff;
	text-decoration: none;
}

.main-page__link:hover {
	color: #974ab3;
}

.main-page__link:focus {
	color: #974ab3;
	outline: none;
}

.toplist-page__table {
	padding: 10px;
	margin: 20px 0 0;
	border: 2px solid #13d0ef;
	border-radius: 10px;
	box-shadow: 0 0 30px 6px #13d0ef5e;
	backdrop-filter: blur(3px);
}

.toplist-page__table th {
	padding: 20px 10px;
	text-align: center;
	font-size: 22px;
}

.toplist-page__table td {
	padding: 5px 5px;
	font-size: 20px;
	text-align: center;
}

.error-page__link {
	color: #13d0ef;
	text-decoration: none;
}

.error-page__link:hover {
	color: #974ab3;
}

.error-page__link:focus {
	color: #974ab3;
	outline: none;
}

.footer {
	flex: 0 0 auto;
	margin: 16px 0 8px;
	font-size: 16px;
}

.footer p {
	margin: 0;
}


.game-page {
	margin: 30px 0 0;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	max-height: 100%;
}

.game-page__info {
	display: flex;
	justify-content: space-between;
	padding: 0;
	margin: 0;
	list-style: none;
	font-size: 16px;
	font-weight: 100;
}

.game-page__item {
	display: flex;
	align-items: center;
	flex-grow: 0;
	margin: 0;
	padding: 0;
}

.game-page__item p {
	display: inline-block;
	margin: 0;
	padding: 0 5px;
}

.game-page__icon {
	padding: 5px;
}

.game-page__container {
	max-width: 100%;
	max-height: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	border: #13d0ef 5px solid;
	border-radius: 8px;
}

.game-page__canvas {
	height: 100%;
	background-image: url("../src/assets/backgrounds/game_bg.jpg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	touch-action: none
}

.game-page__bg1 {}

.menu-link-active {
	color: #13d0ef;
}

.gameover-page p {
	margin: 5px 0;
}

.game-page:fullscreen
.game-page__container {
	border: none;
	border-radius:0;
}

.game-page:fullscreen
.game-page__info {
	background-color: #050531;
}

/* signup page */
.form {
	position: relative;
	padding: 10px 30px;
	margin: 20px 0 0;
	border: 2px solid #13d0ef;
	border-radius: 10px;
	font-size: 18px;
	box-shadow: 0 0 30px 6px #13d0ef5e;
	backdrop-filter: blur(3px);
}

.form__icon {
	position: relative;
}

.form__icon::before {
	position: absolute;
	top: 50%;
	left: 10px;
	color: #000000;
	opacity: 0.5;
	font-size: 24px;
	transform: translateY(-50%);
}

.form__icon::after {
	position: absolute;
	top: 50%;
	right: 10px;
	color: #000000;
	opacity: 0.5;
	font-size: 14px;
	transform: translateY(-50%);
}

.input-ok::after {
	color: #35be69;
	opacity: 1;
}

.input-error::after {
	color: #b62c2c;
	opacity: 1;
}

.form__group,
.form__buttons {
	position: relative;
	margin: 16px 0 16px;
}

.form__label {
	display: block;
	font-size: 16px;
	padding: 0 0 4px 8px;
}

.form__input {
	width: 100%;
	background-color: #ffffff;
	color: #000000;
	border-radius: 8px;
	border: 2px solid #13d0ef;
	padding: 8px 40px 8px 40px;
	font-family: 'Russo One', sans-serif;
}

.form__input::placeholder {
	color: #000000;
	opacity: 0.5;
}

.form__input:hover {
	border: 2px solid #974ab3;
}

.form__icon:hover::before {
	color: #974ab3;
}

.form__input:focus {
	border: 2px solid transparent;
	outline: 3px solid #974ab3;
}

.form__input:hover::placeholder {
	color: #974ab3;
}

.form__info {
	max-width: 300px;
	min-height: 34px;
	color: #e12424;
	font-size: 14px;
	letter-spacing: 0;
	text-shadow: 1px 1px 3px #000000;
	transition: height 1s ease;
}

.form__buttons {
	display: flex;
	justify-content: space-between;
}

.button {
	display: block;
	color: #ffffff;
	border: 2px solid #13d0ef;
	border-radius: 8px;
	padding: 8px 20px;
}

.button:focus {
	border: 2px solid #974ab3;
	outline: none;
}

.button:hover {
	background-color: #974ab3;
	background: linear-gradient(#d970ff, #73007e);
}

.button_cancel {
	background-color: #adadad;
	background: linear-gradient(#d1d1d1, #555555);
}

.button_signin,
.button_register {
	background-color: #35be69;
	background: linear-gradient(#6cffa5, #007e30);
}

.signin-page .button_register {
	background-color: #adadad;
	background: linear-gradient(#d1d1d1, #555555);
}

.signin-page .button_register:hover {
	background-color: #974ab3;
	background: linear-gradient(#d970ff, #73007e);
}

.settings__box {
	margin: 16px 0 5px;
}

.settings__group {
	display: flex;
	justify-content: space-between;
	padding: 5px 0 5px;
}

.settings__toggle {
	cursor: pointer;
}

.settings__toggle:hover {
	color: #974ab3;
}

.settings__name {
	margin: 5px 0 5px;
}

.settings__slider {
	appearance: none;
	width: 100%;
	height: 25px;
	background: #d3d3d3c5;
	opacity: 0.7;
	transition: opacity .2s;
	border-radius: 8px;
	cursor: pointer;
}

.settings__slider:hover {
	background: #974ab3c5;
	opacity: 1;
}



@media (max-width: 768px) {
	.game-page__info {
		font-size: 15px;
	}

	.game-page {
		margin: 0;
		max-width: 100%;
	}

}

@media (max-width: 480px) {
	body {
		font-size: 18px;
	}

	.header__title {
		font-size: 20px;
	}

	.rules-page__title,
	.toplist-page__title,
	.error-page__title,
	.gameover-page__title,
	.settings-page__title,
	.signup-page__title {
		font-size: 22px;
	}

	.game-page__info {
		font-size: 12px;
	}

	.toplist-page__table th {
		padding: 15px 5px;
		text-align: center;
		font-size: 18px;
	}

	.toplist-page__table td {
		padding: 5px 5px;
		font-size: 16px;
		text-align: center;
	}

	.form {
		font-size: 16px;
	}

	.footer {
		font-size: 14px;
	}
}