@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500&subset=cyrillic');
/* fallback */
@font-face {
	font-family: 'Material Icons';
	font-style: normal;
	font-weight: 400;
	src: url(https://fonts.gstatic.com/s/materialicons/v55/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
}
body {
	margin: 0;
	width: 100%;
	height: 100%;
	color: #ffffff;
	font-family: Google Sans,-apple-system,BlinkMacSystemFont,sans-serif;
	-webkit-font-smoothing: antialiased;
	display: flex;
	justify-content: center;
	align-items: center;
	-webkit-touch-callout: none; /* iOS Safari */
	-webkit-user-select: none;   /* Chrome/Safari/Opera */
	-khtml-user-select: none;    /* Konqueror */
	-moz-user-select: none;      /* Firefox */
	-ms-user-select: none;       /* Internet Explorer/Edge */
	user-select: none;

	/* background-image: url(../images/bg-002.jpg); */
    /* background-position: center; */
    /* background-repeat: no-repeat; */
    /* background-size: cover; */

	background-color: #7d0fe6;

	overflow: hidden;
}
html, body, material-app, mat-sidenav-container {
	margin: 0;
	width: 100%;
	height: 100%;
}
a {
	text-decoration: none;
	color: inherit;
}
canvas {
    width: 100%;
	height: 100%;
}
@keyframes modal-background {
    from {
        background-color: rgba(0, 0, 0, 0);
    }
    to {
        background-color: rgba(0, 0, 0, 0.75);
    }
}
@-moz-keyframes modal-background {
    from {
        background-color: rgba(0, 0, 0, 0);
    }
    to {
        background-color: rgba(0, 0, 0, 0.75);
    }
}
@-webkit-keyframes modal-background {
    from {
        background-color: rgba(0, 0, 0, 0);
    }
    to {
        background-color: rgba(0, 0, 0, 0.75);
    }
}
#dashboard-modal {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	right: 0;
	color: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	align-items: center;
	background-color: rgba(0, 0, 0, 0.75);
    z-index: 100;
    animation-name: modal-background;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
}
@keyframes new-record {
    from {
        background-position: 0%;
    }
    to {
        background-position: 400%;
    }
}
@-moz-keyframes new-record {
    from {
        background-position: 0%;
    }
    to {
        background-position: 400%;
    }
}
@-webkit-keyframes new-record {
    from {
        background-position: 0%;
    }
    to {
        background-position: 400%;
    }
}
.new-record {
	background: linear-gradient(90deg, rgba(63, 94, 251, 1), rgba(138, 35, 135, 1), rgba(233, 64, 87, 1), rgba(138, 35, 135, 1), rgba(63, 94, 251, 1));
  	background-size: 400%;
	animation-name: new-record !important;
    animation-duration: 30s !important;
    animation-timing-function: linear !important;
	animation-iteration-count: infinite !important;
}
#popup-rescue, #popup-leaderboard {
	display: none;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	right: 0;
	color: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color:rgba(0, 0, 0, 0.75);
    z-index: 101;
	animation-name: modal-background;
    animation-duration: 0.3s;
    animation-timing-function: ease-in-out;
}
#popup-rescue p {
	text-align: center;
	margin: 0;
}
#popup-ad {
	display: none;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	right: 0;
	color: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: rgba(0, 0, 0, 0.75);
    z-index: 101;
	animation-name: modal-background;
    animation-duration: 0.3s;
    animation-timing-function: ease-in-out;
}
#popup-ad p {
	text-align: center;
	margin: 0;
}
#popup-text, #popup-text-rescue, #popup-text-leaderboard {
	font-size: 6vh;
    font-weight: 500;
    padding: 0 2vh 5vh 2vh;
	margin-bottom: 0vh;
	margin-top: 8vh;
	color: #FFEB3B;
	text-align: center;
}
#popup-action, #popup-action-continue {
	color: #FFEB3B;
    font-size: 3vh;
    font-weight: bold;
    padding: 2vh 3vh;
    border: 2px solid #FFEB3B;
    border-radius: 10px;
    cursor: pointer;
}
#popup-action-cancel {
	cursor: pointer;
	margin-top: 10px !important;
}
#popup-action:hover {
	background-color: #FFEB3B;
	color: black;
}
#popup-action span {
	margin-left: 3vh;
}
#promo-ad, #window-adv-ad {
	display: none;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	right: 0;
	color: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: black;
    z-index: 101;
	animation-name: popup-ad;
    animation-duration: 0.3s;
    animation-timing-function: ease-in-out;
}
#promo-ad p, #window-adv-ad p {
	text-align: center;
	margin: 0;
}
#promo-icon {
	color: #FF5252;
	font-size: 25vh;
	height: 25vh;
	font-weight: 500;
	margin-bottom: 5vh !important;
	padding: 0;
}
#promo-text {
	width: 75%;
	font-size: 8vh;
	font-weight: 500;
	margin-bottom: 10vh !important;
}
#window-adv-icon {
	font-size: 25vh;
	height: 25vh;
	font-weight: 500;
	margin-bottom: 5vh !important;
	padding: 0;
}
#window-adv-text {
	width: 75%;
	font-size: 8vh;
	font-weight: 500;
	margin-bottom: 10vh !important;
}
#promo-action {
	color: #FF5252;
	font-size: 7vh;
	font-weight: bold;
	text-align: center;
	padding: 5vh 9vh;
	border: 0.4vh solid #FF5252;
	border-radius: 4vh;
	cursor: pointer;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}
#promo-action:hover {
	background-color: #FF5252;
	color: black;
}
#start-text {
	display: none;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
}
#dashboard-modal span:not(#leaderboard span) {
	font-size: 5vh;
	font-weight: 500;
	text-align: center;
}
#dashboard-modal span p {
	text-align: center;
	margin: 0;
}
#dashboard-modal span p#score-text {
	font-size: 3.5vh;
	color: #ffdb36;
}
#dashboard-modal span p#best-text {
	font-size: 3.5vh;
	color: #ffdb36;
}
#dashboard-modal #start {
	font-size: 4.5vh !important;
	font-weight: bold !important;
	margin-bottom: 2vh;
}
#dashboard-modal #touch {
	font-size: 3vh !important;
	margin-top: 5vh;
}
#action-text {
	display: none;
	/* font-size: 5vh;
	font-weight: 500;
	text-align: center;
	padding: 4vh 7vh;
	border: 0.2vh solid white;
	border-radius: 3vh;
	cursor: pointer;
	transform: translate(12px, 100px); */
	width: 20vh;
    height: 7vh;
    cursor: pointer;
	transition: transform 330ms ease-in-out;
	/* animation: shaking .55s infinite; */
	border: 2px solid;
	border-color: #ffdb36;
	border-radius: 5vh;
}
#action-text:hover {
	background-color: #ffdb36;
	border-color: #fff;
}
#action-text-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
#action-text-icon img {
	width: 5vh;
}
#table-container {
	display: none;
	overflow-y: auto;
	overflow-x: hidden;
	height: 80%;
	width: 100%;
	flex-direction: column;
	align-items: center;
	margin-bottom: 10vh;
}
#leaderboard {
	display: none;
	font-size: 3vh;
	font-weight: 500;
	border-spacing: 0;
	border-collapse: separate;
	width: 100%;
    padding: 0 1.5vh;
}
#leaderboard tr {
	height: 10vh;
	display: flex;
}
#leaderboard td {
	overflow: hidden;
	text-align: center;
	white-space: nowrap;
	text-overflow: ellipsis;
}
#leaderboard td.middle-cell {
	text-align: left;
	flex: 1;
}
#leaderboard td span {
	margin-left: 1vw;
	margin-right: 1vw;
}
#leaderboard tr:first-child {
	color: #FFEB3B;
	font-weight: bold;
	font-size: 4vh;
}
#leaderboard .its-you {
	font-weight: bold;
}
#leaderboard .its-you td {
	background-color: rgba(0, 0, 0, 0.5);
}
#leaderboard .its-you td:first-child {
	border-radius: 2vh 0 0 2vh;
}
#leaderboard .its-you td:last-child {
	border-radius: 0 2vh 2vh 0;
}

#close-ad-button, #close-rescue-button, #close-leaderboard-button {
	position: absolute;
	font-size: 5vh !important;
	top: 1vh !important;
	height: 10vh !important;
	width: 10vh !important;
    justify-content: center;
    align-items: center;
	text-align: center;
	color: #fff;
	border-radius: 50%;
	z-index: 101;
	cursor: pointer;
	display: flex;
	-webkit-touch-callout: none; /* iOS Safari */
	-webkit-user-select: none;   /* Chrome/Safari/Opera */
	-khtml-user-select: none;    /* Konqueror */
	-moz-user-select: none;      /* Firefox */
	-ms-user-select: none;       /* Internet Explorer/Edge */
	user-select: none;
	outline: none !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
#close-ad-button, #close-rescue-button, #close-leaderboard-button {
	right: 0vh !important;
	z-index: 101 !important;
}
.material-icons {
	width: 3vh;
	height: 3vh;
	
	background-image: url(../images/icon_close.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  
	/* Support for all WebKit browsers. */
	-webkit-font-smoothing: antialiased;
	/* Support for Safari and Chrome. */
	text-rendering: optimizeLegibility;
  
	/* Support for Firefox. */
	-moz-osx-font-smoothing: grayscale;
  
	/* Support for IE. */
	font-feature-settings: 'liga';
	-webkit-touch-callout: none; /* iOS Safari */
	-webkit-user-select: none;   /* Chrome/Safari/Opera */
	-khtml-user-select: none;    /* Konqueror */
	-moz-user-select: none;      /* Firefox */
	-ms-user-select: none;       /* Internet Explorer/Edge */
	user-select: none;
	outline: none !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#header {
	display: flex;
	width: 100%;
    height: 50px;
    position: fixed;
    top: 0;
    background: #00000050;
	box-shadow: var(--shadow-elevation-1);
    -webkit-box-align: stretch;
    align-items: stretch;
    flex-wrap: nowrap;
	justify-content: center;
	opacity: 0;
	/* animation: header-move-down 1s; */
}

#best-score-box{
	max-width: 13vh;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: row;
    margin-left: 3vh;
	border: 2px solid #ccc;
    border-radius: 33px;
    position: relative;
}

#text-best-score {
	font-size: 2.3vh;
    display: flex;
    text-align: center;
    height: 100%;
    width: 100%;
    overflow: hidden;
    text-align: center;
    align-items: center;
    justify-content: center;
}

#tile-score {
	width: 4vh;
    height: 4vh;
    left: -1.7vh;
    position: absolute;
}

#score-box{
	width: 100%;
	font-size: 4vh;
    text-align: center;
    font-weight: 500;
    z-index: 1;
	text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
}

#action-box {
	width: 100%;
    text-align: center;
    justify-content: right;
    display: flex;
    align-items: center;
}

#action-box .button {
	cursor: pointer;	
	width: 4vh;
    height: 4vh;
}

#mute-button {
    background-position: center;
    background-size: cover;
    width: 4vh;
    height: 4vh;
}

#sound-icon {
	width: 4vh;
	height: 4vh;
}

#left-box {
	width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

#header-box {
	display: flex;
	height: 100%;
}

.title-shaking {
	animation: scale .75s infinite;
}

@keyframes shaking {
	0% { transform: rotate(0deg); }
	25% { transform: rotate(2deg); }
	50% { transform: rotate(0eg); }
	75% { transform: rotate(-2deg); }
	100% { transform: rotate(0deg); }
}

@keyframes scale {
	0% { scale: 0.95; }
	50% { scale: 1; }
	100% { scale: 0.95; }
}

@keyframes scale-up {
	0% { scale: 0; }
	100% { scale: 1; }
}

@keyframes header-move-down {
	0% { top: -68px; }
	100% { top: 0px; }
}

#logo img {
	width: 33vh;
}
#leaderboard-button {
	margin-right: 10px;
	display: none;
}
#leaderboard-button img {
	width: 4vh;
	height: 4vh;
}

/* Loader */
.loading-spinner {
	position: relative;
	margin: 0 auto;
	width: 75px;
	height: 75px;
  }
  .loading-spinner:before {
	content: '';
	display: block;
	padding-top: 100%;
  }
  .loading-spinner__circle-svg {
	animation: loading-spinner-rotate 1.28973s linear infinite;
	height: 100%;
	transform-origin: center center;
	width: 100%;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
  }
  .loading-spinner__circle-stroke {
	stroke-dasharray: 1, 200;
	stroke-dashoffset: 0;
	animation: loading-spinner-dash 2s ease-in-out infinite, loading-spinner-color 8s ease-in-out infinite;
	stroke-linecap: round;
	stroke-width: 4px;
  }
  @keyframes loading-spinner-rotate {
	100% {
	  transform: rotate(360deg);
	}
  }
  @keyframes loading-spinner-dash {
	0% {
	  stroke-dasharray: 1, 200;
	  stroke-dashoffset: 0;
	}
	50% {
	  stroke-dasharray: 89, 200;
	  stroke-dashoffset: -35px;
	}
	100% {
	  stroke-dasharray: 89, 200;
	  stroke-dashoffset: -124px;
	}
  }
  @keyframes loading-spinner-color {
	100%,
	0% {
	  stroke: #7d0fe6;
	}
	40% {
	  stroke: #28dcd7;
	}
	66% {
	  stroke: #ff6100;
	}
	80%,
	90% {
	  stroke: #7d0fe6;
	}
  }
  /* End Loader */

.stroke-text {
	/* -webkit-text-stroke-width: 1px;
	-webkit-text-stroke-color: black; */
	text-shadow:  1px 1px 6px #000000;
}

#table-box-loader, #table-box-no-data {
	width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#table-box-no-data p {
	font-size: 3vh;
}

@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
	#best-score-box {
		margin-left: 1.3vh;
	}
}