/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

@font-face {
	font-family: "Klyakson";
	src: url("../fonts/Klyakson.otf");
	font-weight: normal;
	font-style: normal;
}

html, body{
	-webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    -moz-user-select: -moz-none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
	margin: 0;
	background-color: #000;
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 24px;
	-ms-scroll-chaining: none;
	    overscroll-behavior: none;
	overflow: hidden;
}

a {
	color: #ff0;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

button {
	cursor: pointer;
	text-transform: uppercase;
}

#info {
	position: absolute;
	top: 0px;
	width: 100%;
	padding: 10px;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	text-align: center;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	z-index: 1; /* TODO Solve this in HTML */
}

a,
button,
input,
select {
	pointer-events: auto;
}

.lil-gui {
	z-index: 2 !important; /* TODO Solve this in HTML */
}

canvas:active {
	cursor: -webkit-grabbing;
	cursor: grabbing;
}

@media all and (max-width: 640px) {
	.lil-gui.root {
		right: auto;
		top: auto;
		max-height: 50%;
		max-width: 80%;
		bottom: 0;
		left: 0;
	}
}

#overlay {
	position: absolute;
	font-size: 16px;
	z-index: 2;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	background: rgba(0, 0, 0, 0.7);
}

#overlay button {
	background: transparent;
	border: 0;
	border: 1px solid rgb(255, 255, 255);
	border-radius: 4px;
	color: #ffffff;
	padding: 12px 18px;
	text-transform: uppercase;
	cursor: pointer;
}

#notSupported {
	width: 50%;
	margin: auto;
	background-color: #f00;
	margin-top: 20px;
	padding: 10px;
}

#container:active {
	cursor: move;
}

#container {
	overflow: hidden;
}

#container:hover {
	cursor: default;
}

#time {
	display: none;
	position: absolute;
	z-index: 3;
	left: 20px;
	text-shadow: #000000 1px 0 20px;
}

/* !Start Game! */

.all_wrap {
	display: none;
}

.start_game,
.end_game,
.select_level,
.progress_bar {
	position: absolute;
	width: 100%;
	height: 100%;
	background: url(../img/back.png);
	background-color: #000;
	background-position: center;
	background-size: cover;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	z-index: 3;
	top: 0;
	left: 0;
}

.start_game h1 {
	text-align: center;
	line-height: 1.2;
	font-size: 40px;
	text-shadow: #1e1e1e 1px 0 30px;
	text-transform: uppercase;
}

#start_game__button,
.end_game button,
.exit-btn {
	font-family: "Klyakson";
	text-transform: none;
	color: #080808;
	background: #fff;
	border-radius: 50px;
	width: 160px;
	height: 50px;
	font-size: 20px;
	border: 5px solid #c55bbd;
}

.end_game button {
	width: 120px;
}

/* !ProgressBar! */

.wrapp_percent {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
}

.circular-chart {
	display: block;
	margin: 10px auto;
	max-height: 200px;
	max-width: 200px;
	width: 100%;
	height: 100%;
}

.circle,
.circleback {
	stroke: #49ffbd;
	fill: none;
	stroke-width: 1.7;
	stroke-linecap: round;
}

.circle {
	stroke-dasharray: 9, 100;
}

.circleback {
	stroke: #e1e1e1;
}

.circleText {
	position: absolute;
	font-size: 60px;
	font-family: "Klyakson";
}

.progress_bar {
	display: none;
}

.progress_bar > h1 {
	font-family: "Klyakson";
	font-size: 60px;
	margin-right: -20px;
	font-weight: 100;
}

/* !Levels! */

.select_level {
	display: none;
}

.wrapper_levels {
	max-width: 1440px;
	width: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
}

.wrapper_levels .level {
	width: 300px;
	border: 2px solid #fff;
	border-radius: 10px;
	margin: 10px;
	cursor: pointer;
}

.select_level h1 {
	font-size: 40px;
	text-transform: uppercase;
	text-shadow: #272727 1px 0 30px;
	text-align: center;
	line-height: 1.1;
}

/* !End Game! */

.end_game_img {
	position: absolute;
	transform: translate(-50%, -26%);
	top: 26%;	
	left: 50%;
	max-width: 600px !important;
	width: 100% !important;
	pointer-events: none;

	
}

.end_game {
	display: none;
	/* display: flex; */
}

.end_game img {
	max-width: 300px;
	width: 100%;
}

.end_game h1 {
	font-family: "Klyakson";
	font-size: 40px;
	text-align: center;
	line-height: 1.1;
	max-width: 600px;
	font-weight: 300;
}

.end_game p {
	font-size: 27px;
	margin: 70px 0 15px 0;
}

.end_game h2 {
	font-size: 90px;
	margin: 40px 0;
	color: #00db00;
}

/* !Story Game! */

.story_game {
	position: absolute;
	width: 100%;
	height: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	z-index: 2;
	top: 0;
	left: 0;
	overflow: hidden;
}

.story_game img {
	height: 100%;
}

#story_2 {
	z-index: -1;
	position: absolute;
}

.text_story {
	font-size: 28px;
	color: #000;
	z-index: 1;
	width: 1200px;
	height: 85px;
	font-weight: 600;
	line-height: 1.1;
}

.vertical-text_story {
	font-size: 16px;
	color: #000;
	z-index: 1;
	width: 1300px;
	height: 85px;
	font-weight: 600;
	line-height: 1.3;
	display: flex;
	justify-content: flex-start;
	text-align: left;
	text-align-last: left;
	margin-left: 1000px;
}

.wrapper_text_story .back_text_story {
	position: absolute;
	left: -50px;
	top: -48px;
	width: calc(100% + 120px);
	height: auto;
	transition: all 0.3s ease;
}

.wrapper_text_story {
	position: absolute;
	bottom: 65px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
}

/* !Learning Game! */

.learning_play {
	position: absolute;
	width: 100%;
	height: 100%;
	display: none;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	z-index: 5;
	top: 0;
	left: 0;
	height: calc(100% - 116px);
}

.learning_play p {
	font-family: "Klyakson";
	font-size: 40px;
	max-width: 800px;
	margin: 10px;
	width: 100%;
	text-align: center;
	line-height: 1.2;
	margin-bottom: 30px;
}

.next_learn {
	font-family: "Klyakson";
	text-transform: none;
	color: #080808;
	background: #fff;
	border-radius: 50px;
	width: 120px;
	height: 50px;
	font-size: 20px;
	border: 5px solid #c55bbd;
}

.menu .advice {
	position: absolute;
	left: 50px;
	top: -127px;
	height: auto;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
}

.menu .advice img {
	width: -webkit-fit-content;
	width: -moz-fit-content;
	width: fit-content;
	margin-top: -26px;
}

.text_advice {
	font-family: "Klyakson";
	font-size: 24px;
	background: url("../img/advice_back.svg");
	color: #000000;
	padding: 20px;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
}

/* !Menu! */

.wrapp_menu {
	pointer-events: all !important;
	overflow-y: hidden !important;
}
.wrapp_men .menu {
	pointer-events: all !important;
}

.menu {
	display: none;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 4;
}

.menu > div {
	height: 80px;
}

.menu .decor_item {
	height: 116px;
	padding: 0;
	margin-left: -6px;
	margin-right: -6px;
	position: relative;
}

.decor_item .border {
	border: 6px solid #c55bbd;
	border-top: none;
	height: calc(100% - 45px);
	margin-top: 25px;
	border-radius: 0 0 30px 30px;
	width: 8px;
	z-index: 3;
	position: relative;
}

.decor_item .back {
	width: 8px;
	border-left: 6px solid #594368;
	border-right: 6px solid #594368;
	height: 25px;
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 2;
}

.decor_item .back > div {
	width: 20px;
	height: 15px;
	position: absolute;
	bottom: 0;
	left: -6px;
	background: #594368;
}

.element {
	display: block;
	width: 100px;
	height: 100px;
	border: 10px solid #fff;
	border-radius: 50%;
}

.buttons {
	display: none;
	position: absolute;
	bottom: 150px;
    left: 50px;
	z-index: 9;
}

.buttons span {
	font-size: 20px;
	font-family: "Klyakson";
	padding: 10px 30px;
	background: #fff;
	border-radius: 50px;
	color: #080808;
	border: 5px solid #c55bbd;
	cursor: pointer;
}

.buttons .about {
	margin-right: 10px;
}

#animated_stoken_out path {
	--circle-len: 314.16px;
	fill: none;
	stroke: #fff;
	stroke-width: 5px;
	stroke-dasharray: var(--circle-len);
	stroke-dashoffset: var(--circle-len);
}

#animated_stoken_out.active_animate path {
	-webkit-animation: draw 1s ease-in-out;
	        animation: draw 1s ease-in-out;
}

#animated_stoken_out.active_animate_6 {
	width: 400px;
	height: 400px;
}

@-webkit-keyframes draw {
	to {
		stroke-dashoffset: 0px;
	}
}

@keyframes draw {
	to {
		stroke-dashoffset: 0px;
	}
}

/* !Модальные окна! */

.modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
}

.close_info {
	cursor: pointer;
	position: absolute;
	top: 25px;
	right: 0;
	z-index: 1;
}

.close_info img {
	width: 75px;
	height: 100%;
}

.modal_box {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
	position: absolute;
	top: 50%;
	left: 50%;
	max-width: 920px;
	width: 100%;
	-webkit-transform: translate(-50%, -50%);
	    -ms-transform: translate(-50%, -50%);
	        transform: translate(-50%, -50%);
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	-webkit-transition: all ease 0.3s;
	-o-transition: all ease 0.3s;
	transition: all ease 0.3s;
	font-family: "Inter Tight";
}

.bg_modal {
	left: 0;
	top: 0;
	width: 100%;
	z-index: -1;
}

.content_modal {
	padding: 50px;
	position: absolute;
}

.wrapp_text {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	gap: 10px;
	color: #080808;
	font-size: 18px;
	font-family: Arial;
}

.wrapp_text div {
	background: #f6f5f7;
	border-radius: 20px;
	padding: 17px 20px;
}

.wrapp_text p {
	margin: 3px;
}

.wrapp_text a {
	color: #0069a3;
	font-weight: 600;
}

.content_modal img {
	max-width: 300px;
	width: 100%;
	margin-bottom: 40px;
}

/* Сообщить об ошибке */

.content_modal h4 {
	color: #080808;
	font-size: 28px;
	font-family: Arial, Helvetica, sans-serif;
	margin-bottom: 50px;
}

#message_error {
	border: none;
	color: #080808;
	background: none;
	font-family: Arial, Helvetica, sans-serif;
	width: 100%;
	max-width: 758px;
	min-width: 758px;
	max-height: 220px;
	font-size: 16px;
}

#message_error:focus-visible {
	outline: 0;
}

.wrap_textarea {
	border-radius: 10px;
	background: #f6f5f7;
	padding: 15px 20px 15px 15px;
	width: -webkit-fit-content;
	width: -moz-fit-content;
	width: fit-content;
}

.send_error {
	font-family: "Klyakson";
	text-transform: none;
	color: #080808;
	background: #fff;
	border-radius: 50px;
	width: 165px;
	height: 60px;
	font-size: 20px;
	border: 5px solid #c55bbd;
	position: relative;
	right: 0;
	display: block;
	margin-left: auto;
	margin-right: 0px;
	margin-top: 40px;
}

.close_modal {
	font-family: "Klyakson";
	text-transform: none;
	color: #080808;
	background: #fff;
	border-radius: 50px;
	width: 200px;
	height: 60px;
	font-size: 20px;
	border: 5px solid #c55bbd;
	position: relative;
	margin: 0 auto;
}

.success_send {
	display: none;
	/* display: flex; */
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	width: calc(100% - 100px);
	height: calc(100% - 100px);
}

.success_send p {
	color: #594368;
	font-family: "Klyakson";
	font-size: 55px;
	max-width: 400px;
	text-align: center;
	line-height: 1.05;
	margin-top: 0;
}

/* !Пасхалки! */

.title_easter {
	font-family: "Klyakson";
	font-size: 24px;
	color: #fff;
	max-width: 400px;
	width: 100%;
	text-align: center;
}

.text_easter {
	font-family: "Klyakson";
	font-size: 18px;
	color: #fff;
	max-width: 300px;
	width: 100%;
	text-align: center;
}

/* Логотип */

.logo {
	background: #594368;
	border-top: 6px solid #c55bbd;
	border-right: 6px solid #c55bbd;
	border-radius: 0 30px 0 0;
	padding: 20px 50px 10px 44px;
}

.logo img {
	cursor: pointer;
	width: -webkit-fit-content;
	width: -moz-fit-content;
	width: fit-content;
	height: 100%;
}

/* Кнопка развернуть экран */
.fullscreen-button {
	background-color: #ffffff00;
	/* border-radius: 100px; */
	border: none;
	cursor: pointer;
	position: fixed;
	top: 20px;
	right: 36px;
	z-index: 9999999;
	padding: 9px 10px 9px 10px;
	/* height: 40px; */
}

/* Список предметов */

#search_objects span {
	font-family: "Klyakson";
	font-size: 24px;
	color: #fff;
	padding: 10px;
	background-size: 0px !important;
	white-space: nowrap;
	position: relative;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
}

#search_objects #active_item_help {
	background-size: 100% 100% !important;
	color: #ff6625;
}

#search_objects {
	gap: 0;
	-ms-flex-wrap: wrap;
	overflow-y: auto;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE and Edge */
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	background: #594368;
	border: 6px solid #c55bbd;
	border-bottom: none;
	border-radius: 30px 30px 0 0;
	width: 100%;
	padding: 20px 50px 10px;
}

/* Скрытие скроллбара для WebKit браузеров (Chrome, Safari) */
#search_objects::-webkit-scrollbar {
	display: none;
}

.crossed_out::before {
	content: "";
	position: absolute;
	display: block;
	width: 100%;
	left: 0;
	height: 3px;
	background: #fff;
	border-radius: 20px;
	-webkit-transform: rotate(358deg);
	    -ms-transform: rotate(358deg);
	        transform: rotate(358deg);
	-webkit-animation-duration: 0.45s;
	        animation-duration: 0.45s;
	-webkit-animation-timing-function: ease-in-out;
	        animation-timing-function: ease-in-out;
	-webkit-animation-name: crossed_out;
	        animation-name: crossed_out;
}

/* Кнопка продолжить игру */
.block-continue-game {
	position: absolute;
    right: -160px;
	top: 50px;
	z-index: 99999;

	& label {			
		transition: all 0.3s ease;
		border: none;
		padding: 0px 7px;
		background: #ffffffa8;
		color: black;
		border-radius: 10px;
		font-size: 11px;
		margin-top: 6px;
		opacity: 0;
	}
}

.vertical-block-continue-game {
	position: absolute;
    right: 0;
    bottom: 260px;
	z-index: 99999;

	& label {			
		transition: all 0.3s ease;
		border: none;
		padding: 0px 7px;
		background: #ffffffa8;
		color: black;
		border-radius: 10px;
		font-size: 11px;
		margin-top: 6px;
		opacity: 0;
	}
}
.continue_game_button:hover + label {
	opacity: 1;
}
.continue_game_button {	
	/* box-shadow: 1px 0px 32px 4px rgba(34, 60, 80, 0.2); */
	background: rgba(255, 255, 255, 0);
	border: none;
	border-radius: 100px;
	/* padding: 16px 17px 14px 17px; */
	cursor: pointer;
	/* display: none; */
	align-items: center;
	justify-content: center;
	font-family: Arial, sans-serif;
	transition: all 0.3s ease;
	opacity: 1;
}


@-webkit-keyframes crossed_out {
	from {
		width: 0;
	}

	to {
		width: 100%;
	}
}

@keyframes crossed_out {
	from {
		width: 0;
	}

	to {
		width: 100%;
	}
}

/* Настройки игры */

.controls_game {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	gap: 10px;
	background: #594368;
	border-top: 6px solid #c55bbd;
	border-left: 6px solid #c55bbd;
	border-radius: 30px 0 0 0;
	padding: 20px 20px 10px 26px;
}

#help {
	font-family: "Klyakson";
	font-size: 20px;
	background: #fae25e;
	border-radius: 100px;
	color: #080808;
	width: 120px;
	height: 50px;
	text-transform: none;
	border: none;
}

.disable {
	pointer-events: none !important;
	opacity: 0.6;
}

#help:hover {
	border: 1px solid #fff;
}

#audio_button,
#close_game {
	border-radius: 50%;
	cursor: pointer;
	width: 50px;
	height: 50px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	position: relative;
}

#audio_button {
	background: #ffacce;
}

#audio_button:hover,
#close_game:hover {
	border: 1px solid #fff;
	width: 48px;
	height: 48px;
}

#audio_button .line_block {
	width: calc(100% + 2px);
	height: 3px;
	background: #b90000;
	position: absolute;
	left: 0;
	top: calc(50% - 3px);
	-webkit-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
}

#close_game {
	background: #a079ba;
}


/* Поделиться ссылкой */

.share-buttons {
	& .copy_block {
		border: 3px solid #C55BBD;
		background-color: white;
		border-radius: 43px;
		display: flex;
		padding: 0 0 0 20px;
		max-width: 410px;
        width: calc(100% - 25px);
        margin: 0 auto;
		justify-content: space-between;
		align-items: center;
		

		& .copy_text {
			font-size: 14px;
			color: #594368;

		}
		& .copy_button {
			width: fit-content !important;
			color: white;
			background-color: #A079BA;
			font-family: "Klyakson";
			font-size: 20px;
			border-radius: 48px;
			border: none;
			margin: 2px;
			padding: 11.5px;
			text-transform: none;
			height: fit-content !important;
		}
	}

}


.share-buttons {
    margin-top: 20px;
    text-align: center;
	z-index: 99999;
	position: absolute;
}
.share-text {
    color: #fff;
    margin-bottom: 15px;
    font-size: 34px;
	font-family: "Klyakson";
}
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
	margin-top: 10px;
}
.share-btn {
    width: 70px !important;
    height: 45px !important;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    background: white;
}
.share-btn:hover {
    transform: scale(1.1);
}
.share-btn img {
    width: 25px;
    height: 25px;
}


/* !Help Game! */

.wrapp_arrow {
	display: none;
	position: absolute;
	top: -160px;
	/* overflow: hidden; */
}

.arrow {
	position: relative;
	margin: 0 auto;
	width: 100px;
}

.arrow .curve {
	border: 5px dashed #fae25e;
	border-color: transparent transparent transparent #fae25e;
	height: 200px;
	width: 1000px;
}

.arrow .curve svg {
	position: absolute;
	left: 100%;
	top: calc(50% - 20px);
	-webkit-transform: rotate(90deg);
	    -ms-transform: rotate(90deg);
	        transform: rotate(90deg);
}


/* Подтверждение выхода из игры */

.confirm_exit {
	display: none;
	position: absolute;
	justify-content: center;
	align-items: center;

	top: 0;
	z-index: 9999999;
	width: 100%;
	height: 100%;

	& label {
		padding: 5px;
		color: white;
		font-size: 65px;
		line-height: 60px;
	}

	& .btns {
		margin-top: 15px;
		display: flex;
		justify-content: center;
	}

	& span {
        border: 5px solid #c55bbd;
        padding: 14px 34px 14px 34px;
        border-radius: 48px;
        background-color: #fff;
        color: black;
        cursor: pointer;
        margin-top: 20px;
        display: unset;
		margin-left: 15px;
	}
	

}


.confirm_exit .block {
	position: absolute;
	display: grid;
	
    
	z-index: 9999999;
	padding: 5px;
	color: black;
	font-family: "Klyakson";
	font-size: 18px;
	text-align: center;
	
}

.exit-btn {
	margin-top: 20px;
}



/* Перевернуть телефон */

.rotate-phone {
	position: fixed;
	background-color: rgb(0 0 0);
	z-index: 9999999;
	width: 100%;
	height: 100%;
	background-image: url(../img/rotate_phone.png);
	background-size: 100%;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	display: none;
}

.rotate-phone .text {
	font-family: "Klyakson";
	margin-top: 170px;
	font-size: 20px;
}

/* width */

@media (max-width: 1523px) {
	.wrapper_text_story .back_text_story {
		width: calc(100% + 16px);
	}

	.block-continue-game {
		right: -55px;
	}
}

@media (max-width: 1440px) {
	.menu > div {
		height: 45px;
	}
	.menu .decor_item {
		height: 72px;
	}
	#help {
		width: 70px;
		height: 35px;
		font-size: 14px;
	}
	#audio_button,
	#close_game {
		width: 35px;
		height: 35px;
	}
	.logo,
	.controls_game,
	#search_objects {
		padding: 10px;
	}
	#audio_button svg {
		width: 15px;
	}
	#search_objects span {
		font-size: 14px;
		padding: 0px 10px;
	}
	#search_objects {
		gap: 0;
		-ms-flex-wrap: wrap;
		    flex-wrap: wrap;
		overflow: hidden;
	}
	.menu .advice img {
		margin-top: -33px;
		width: 35px;
		z-index: -1;
	}
	.text_advice {
		font-size: 14px;
		line-height: 1;
		padding: 10px;
	}
	#audio_button:hover,
	#close_game:hover {
		width: 33px;
		height: 33px;
	}
	.next_learn {
		font-size: 14px;
		width: 80px;
		height: 35px;
		border: 3px solid #c55bbd;
		z-index: 9;
	}
	.learning_play p {
		font-size: 16px;
		max-width: 300px;
		margin-top: -30px;
		margin-bottom: 10px;
	}
	.learning_play {
		height: calc(100% - 72px);
	}
	.wrapp_arrow {
		top: -90px;
		-webkit-transform: scale(0.5);
		    -ms-transform: scale(0.5);
		        transform: scale(0.5);
	}
	#animated_stoken_out {
		width: 70px;
		height: 70px;
	}
	html,
	body,
	#container {
		width: 100%;
		height: 100%;
		position: relative;
	}
	.end_game h1 {
		font-size: 20px;
		max-width: 400px;
		margin-top: -72px;
	}
	#start_game__button,
	.end_game button,
	.exit-btn {
		font-size: 14px;
		width: 115px;
		height: 35px;
		border: 3px solid #c55bbd;
	}
	.wrapp_percent {
		margin-top: -72px;
	}
	.wrapp_percent svg {
		width: 110px;
	}
	.circleText {
		font-size: 32px;
	}
	.progress_bar > h1 {
		margin: 0;
		font-size: 28px;
	}
	.wrapper_text_story .back_text_story {
		left: -20px;
		top: -26px;
		width: calc(100% + 20px);
	}
	.wrapper_text_story {
		bottom: 25px;
	}
	.text_story {
		font-size: 16px;
		width: 700px;
		height: 46px;
		line-height: 1.2;
	}
	.logo{
		max-width: 180px;
		margin: 0;
	}
	.logo img{
		width: 140px;
	}
	.buttons span{
        border: 3px solid #c55bbd;
		font-size: 14px;
		padding: 8px 20px;
	}
	.buttons{
		bottom: 90px;
		left: 10px;
	}
	.menu{
		bottom: -1px;
	}
	.block-continue-game {
		right: -90px;
   		top: 4px;
		& svg {
			width: 56px;
		}
	}
	.vertical-block-continue-game {
		& svg {
			width: 56px;
		}
	}
	.confirm_exit {
		bottom: 80px;

		& .block label {
			font-size: 40px;
		}

		& .block .btns  {
			margin-top: -15px;
		}

		& .block .btns span {
			font-size: 20px;
			padding: 12px 25px 12px 25px;
		}

	}
	.fullscreen-button {
		& .fullscreen-icon {
			 width: 42px; 
			 height: 44px; 
		}
		& .exit-fullscreen-icon {
			 width: 42px; 
			 height: 44px; 
		}
	}
}

@media (max-width: 1280px) {
	.wrapper_text_story .back_text_story {
		top: -17px;
	}
}

@media (max-width: 878px) {
	.block-continue-game {
        right: -50px !important; 
	}
}

@media (max-width: 757px) {
	.block-continue-game {
        right: -30px !important; 
	}
}

@media (max-width: 671px) {
	#search_objects span {
		font-size: 9px;
		padding: 0px 3px;
	}
	.wrapper_text_story .back_text_story {
		left: 145px;
		top: -150px;
		width: 80%;
	}
}

@media (max-width: 553px) {
	.wrapp_menu{
		width: 100%;
		position: absolute;
		height: 200px;
		bottom: -1px;
		overflow-x: scroll;
	}
	.menu {
		width: max-content;
	}
	
	/* Скрытие скроллбара для WebKit браузеров (Chrome, Safari) */
	.menu::-webkit-scrollbar {
		display: none;
	}
	
	.menu > div {
		height: 45px;
		flex-shrink: 0;
	}
	
	#search_objects {
		width: auto;
		min-width: 300px;
	}
	
	.controls_game {
		min-width: 200px;
	}
	
	.logo {
		min-width: 180px;
	}

	#search_objects span {
		font-size: 14px !important;
		padding: 0px 10px !important;
	}
}

@media (max-width: 500px) {
	.start_game h1 {
		font-size: 35px;
	}
	.select_level h1 {
		font-size: 30px;
	}
	.progress_bar > h1 {
		font-size: 28px;
		margin-right: -10px;
	}
	#audio_button {
		padding: 8px;
		width: 20px;
		height: 20px;
		border: 3px solid #fff;
	}
	#audio_button .line_block {
		height: 4px;
		top: calc(50% - 2px);
	}
}





/* height */

@media (max-height: 981px) {
	.end_game .end_game_img{
		width: 500px !important;
	}
}

@media (max-height: 773px) {
	.end_game .end_game_img{
		width: 400px !important;
	}
}

@media (max-height: 720px) {
	.content_modal img {
		max-width: 200px;
		margin-bottom: 10px;
	}
	.content_modal {
		padding: 20px;
	}
	.wrapp_text {
		line-height: 1.2;
		font-size: 15px;
	}
	.modal_box {
		max-width: 480px;
	}
	.wrapp_text div {
		border-radius: 10px;
		padding: 10px 10px;
	}
	.close_info img{
		width: 45px;
	}
	.close_info{
		top: 10px;
		right: -10px;
	}
	.content_modal h4{
		font-size: 24px;
		margin-bottom: 20px;
	}
	#message_error{
		max-width: 400px;
		min-width: 400px;
		max-height: 80px;
	}
	.send_error{
		font-size: 14px;
        width: 115px;
        height: 35px;
        border: 3px solid #c55bbd;
		margin-top: 20px;
	}
	.close_modal{
		font-size: 14px;
        width: 160px;
        height: 40px;
        border: 3px solid #c55bbd;
	}
	.success_send p{
		font-size: 40px;
		max-width: 300px;
		margin-bottom: 25px;
	}
	.success_send{
		width: calc(100% - 40px);
		height: calc(100% - 40px);
	}
}

@media (max-height: 667px) {
	.end_game .end_game_img{
		top: 20% !important;
	}
}

@media (max-height: 551px) {
	.end_game .end_game_img{
		width: 300px !important;
	}

	.copy_button {
		font-size: 15px !important;
		padding: 9.5px !important;
	}

	.end_game p {
		font-size: 23px !important;
	}

	.social-buttons .share-btn {
		width: 50px !important;
    	height: 35px !important;
	}
}

@media (max-height: 426px) {


	.copy_button {
		padding: 7.5px !important;
		font-size: 10px !important;
	}

	.end_game p {
		margin: 90px 0 15px 0 !important;
	}

}

@media (max-height: 407px) {
	.end_game .end_game_img{
		top: 12% !important;
	}

}




