* {
	margin: 0;
	padding: 0;
}

body {
	-webkit-touch-callout: none;
	/* iOS Safari */
	-webkit-user-select: none;
	/* Safari */
	-khtml-user-select: none;
	/* Konqueror HTML */
	-moz-user-select: none;
	/* Firefox */
	-ms-user-select: none;
	/* Internet Explorer/Edge */
	user-select: none;
	/* Non-prefixed version, currently supported by Chrome and Opera */
	overflow: hidden;
	cursor:url(../img/interface/cursor-default.png) 4 4, default;
	font-family: 'Alegreya Sans SC', sans-serif;
	color: #fff;
}

input {
	outline: none;
}

.flex-column {
	flex-direction:column;
	display: flex;
}

.flex-center {
	display:flex;
	justify-content: center;
}

.flex-between {
	display:flex;
	justify-content: space-between;
}

.flex-around {
	display:flex;
	justify-content: space-around;
}

.text-center {
	text-align: center;
}

.flex-align-center {
	display:flex;
	align-items: center;
}
/* -- Buttons bottom right -- */
.bottom-link {
	text-align: center;
	text-decoration: none;
	margin-right: 5px;
	cursor:url(../img/interface/cursor-pointer.png) 16 0, pointer;
	font-weight:100;
	font-size:18px;
	border-radius: 6px;
	padding: 8px;
	border: 3px solid #FFF;
}

#da-left {
	position: absolute;
	top: 0;
	left: 0;
	width: 300px;
	height: 250px;
	z-index: 20;
	text-align: center;
	background:rgba(0, 0, 0, 0.42);
}


#top-wrap {
	z-index: 2;
	position: absolute;
	top:0;
	height: 140px;
	display: none;
	transform-origin: top;
	transition: opacity 200ms;
}


div#da-bottom {
	position: absolute;
	right: calc(50% - 753px / 2);
	width: 970;
	height: 250;
	bottom:0px;
	background:rgba(0, 0, 0, 0.42);
	z-index: 20;
	text-align: center;
}

.fade-out {
	opacity: 0;
}

#main-box {
	display: none;
	height: 33.75rem;
	left: calc(50% - 1260px / 2);
	position:relative;
	z-index:20;
	transform-origin: center top;
}

#top-right-wrap {
	position:absolute;
	top:10px;
	right:10px;
	width:165px;
	display: none;
	flex-wrap: wrap;
	justify-content: center;
	z-index:21;
	transform-origin: top right;
	transition: opacity 200ms;
}

#invite-button {
	display: none;
	padding: 7px 5px 5px;
	font-size: 29px;
}

#mute {
	display:none;
}

/* -- REWORKED -- */

#bg {
	background: rgb(33 30 35 / 0.3);
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	position: absolute;
	z-index: 1;
	transition: opacity 200ms;
}

.input {
	text-align: center;
	font-size: 40px;
	color: #38483e;
	border-radius:14px;
	cursor:url(../img/interface/cursor-text.png) 16 16, text;
	width: 100%;
	background: white;
	border: 2px solid black;
	box-shadow: inset 0 -5px 0 #ccdcca;
	padding: 10px;
}

::-webkit-input-placeholder {
	/* Chrome/Opera/Safari */
	color: #38483e;
}

::-moz-placeholder {
	/* Firefox 19+ */
     color: #fff;
}

:-ms-input-placeholder {
	/* IE 10+ */
     color: #fff;
}

:-moz-placeholder {
	/* Firefox 18- */
     color: #f0ebac;
}

::-webkit-scrollbar {
	background: #4c4949;
	width: 6px;
}

::-webkit-scrollbar-thumb {
	background: #FFF;
}

.button-box {
	cursor:url(../img/interface/cursor-pointer.png) 16 0, pointer;
	text-align: center;
	border-radius: 10px;
	border: 2px solid #000;
	background: #fbbb0d;
	box-shadow: inset 0 5px 0 #ffcc40, inset 0 -5px 0 #ca9508;
}

.absolute {
	position: absolute;
	top:0;
	left:0;
}

/* -- Logo -- */
#logo {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);

	width: auto;
	height :140px;
}

/* -- Popup Boxes --*/
.popup-box {
	position: absolute;
	padding: 5px 10px;
	background: #ba7131;
	border-radius: 10px;
	border: 2px solid #000;
	box-shadow: inset 0 5px 0 #cc8241, inset 0 -5px 0 #9e520f;
}

#chest-opening {
	width:100%;
	height:250px;
	z-index:30;
	position:absolute;
	top:50%;
	left:50%;
	transform:translate(-50%, -50%);
	background:#f4d223;
	display: none;
	align-items: center;
	justify-content: center;
	animation: chest-opening 500ms 1 ease;
	transition: opacity 200ms, height 300ms;
}


/** -- Main box homepage -- **/
div#middle-wrap {
	display: none;
	z-index: 2;
	position: absolute;
	top: 0;
	left: 360px;
	flex-wrap: wrap;
	justify-content:space-between;
	height:911px;
	transition: opacity 200ms;
	width:660px;
}

#main-wrap {
	display:flex;
	flex-wrap:wrap;
	width:70%;
	height:275px;
	flex-direction:
	column;
	justify-content: space-evenly;
}

#right-wrap {
	font-size: 18px;
	color: #fff;
	z-index: 2;
	border-radius:13px;
	width:16.25rem;
	height:247px;
	justify-content: space-between;
	align-items:flex-end;
	position:absolute;
	right: 15.625rem
}

#bottom-right-wrap {
	position: absolute;
	bottom: 10px;
	z-index: 21;
	flex-direction: column;
	justify-content: space-between;
	height: 155px;
	right: 10px;
	transform-origin: right bottom;
}

/* -- Play button -- */
#play-box {

	width: 100%;
	margin: auto;
}

#play-box:hover {

	position:relative;
	transform:scale(1.01);
}

#play-box:active {
	transform:scale(1);
}

#play {
	width: 100%;
	cursor: url(../img/interface/cursor-pointer.png) 16 0, pointer;
	text-align: center;
}
#play:hover img {
	filter:brightness(1.2);
}

/* -- Canvas skin -- */
#skin-container {
	margin: auto;
	border: 2px solid black;
	background: #a1e063;
	border-radius: 10px;
}

/* -- Buttons cosmetics box --*/
#cosmetics-wrap {

}

/* -- Button custom skins -- */

.arrow {
	filter: drop-shadow(6px 6px 0px black);
	cursor:url(../img/interface/cursor-pointer.png) 16 0, pointer;
}

.arrow:hover {
	transform:scale(1.05);
}

.arrow:active {
	transform:scale(0.95);
	filter:none;
}

#left-hat {
	top: -5px;
	left: 10px;
}

#right-hat {
	top: -5px;
	left: 200px;
}

#left-body {
	top: 65px;
	left: 10px;
}

#right-body {
	top: 65px;
	left: 200px;
}

#left-pet {
	top: 135px;
	left: 10px;
}

#right-pet {
	top: 135px;
	left: 200px;
}

#skins {
	background: #B74949;
	width:104px;
	height:41px;
	cursor:url(../img/interface/cursor-pointer.png) 16 0, pointer;
	position:relative;
	padding-top: 9px;
	box-shadow: inset 0 -23px 0 #a03535;
	font-size:20px;
	border:none;
	border-radius:5px;
	margin-left:16px;
	font-family: 'Gochi Hand', cursive;
	font-weight: 900;
	transition: box-shadow 100ms;
}

#skins:hover {
	background-color: #cc5353;
	box-shadow: inset 0 -14px 0 #B74949;
}

#skins:active {
	background-color: #af4141;
	box-shadow: inset 0 -30px 0 #942e2e;
}

#coins {
	border-radius: 10px;
	height: 42px;
	padding: 4px 15px 4px 15px;
	font-size: 35px;
	font-weight: 100;
	background: white;
	border: 2px solid black;
	position: relative;
	max-width: 50px;
}

#coins- {
	color: #38483e;

}

#chest {
	font-size: 25px;
	position: relative;
	margin-right: 3.75rem;
	padding: 10px 17px;
}

#chest:hover {

	position:relative;
	transform:scale(1.05);
}

#chest:active {
	transform:scale(1);
}
/* -- Button cosmetics shop -- */

#skin-canvas {
	background-color:#864848;
	height:66%;
	width:83%;
	margin:auto;
	border-radius:5px;
	position:absolute;
	top:23px;
	left:22px;
}

/* -- Buttons right -- */

#also-play-text {
	letter-spacing: 3px;
}

#cross-promo {
	position: relative;
	width: 160px;
	height:105px;
	border-radius: 10px;
}

#alsoTryImg {
	width:86.5%;
	height:auto;
	border-radius: 7px;
	position:absolute;
	top:23px;
	left:11px;
}

/* -- small text -- */
.text-sb {
	font-size:24px;
	position:absolute;
}

/* -- Skins box -- */
.title-text {
	font-size: 45px;
	margin-top: 18px;
	margin-bottom: 50px;
	width: 100%;
	text-align: center;
}

.subtitle {
	text-align: center;
	font-size: 20px;
}

.button-quit {
	position: absolute;
	top: 33px;
	right: 36px;
	background-size: 100%;
	cursor:url(../img/interface/cursor-pointer.png) 16 0, pointer;
}

.button-quit:hover {
	transform:scale(1.1);
}

.button-quit:active {
	transform:scale(0.9);
}

h1 img {
	width: 100px;
	height: 100px;
	position: absolute;
	right: -50px;
	top: -50px;
	cursor:url(../img/interface/cursor-pointer.png) 16 0, pointer;
}

/* -- JOIN GAME BOX -- */
#join-game {
	flex-wrap:wrap;
	width:640px;
	height: 364px;
	transform: scale(0);
	z-index: 22;
	display:none;
}

#copy-button {
	margin: auto;
	margin-top: 20px;
	width: 80%;
	height: 60px;
	padding-top: 11px;
	font-size: 42px;
}

#link {
	-webkit-user-select: text;
	-khtml-user-select: text;
	-moz-user-select: text;
	-ms-user-select: text;
	user-select: text;
	height: 38px;
	font-size: 28px;
	width: 80%;
	letter-spacing: 1px;
	margin: auto;
}

#copied {
	font-size: 23px;
	position: absolute;
	left: 270px;
	opacity: 0;
	margin-top: 107px;
	color: #fbbb0d;
	font-weight: 100;
}

.copyFade {
	animation: opacityCopy ease 600ms;
	opacity: 0;
}

@keyframes opacityCopy {
	0% {
		opacity: 0;
	}
	40% {
		opacity: 1;
	}
	60% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

/* -- Leaderboard Box -- */
#leaderboard {
	font-family: 'Alegreya Sans SC', sans-serif;
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	width: 15.3125rem;
	position: absolute;
	right: 0;
}

/* -- Policy Box -- */
#policy-box {
	z-index:24;
	left: calc(50% - 386px);
	top: calc(50% - 230px);
	transform: scale(0);
	width: 780px;
	height: 514px;
	border-radius: 13px;
}

#policy-text-box {
	width: 80%;
	margin: 0px 56px;
	max-height: 340px;
	overflow-y: scroll;
	font-size: 24px;
	padding-right: 10px;
	font-family: 'Gochi Hand', cursive;
}

/* -- Parnters Box -- */

#partners-text-box {
	width: 92%;
}

#partners-box {
	z-index:24;
	left: calc(50% - 386px);
	top: calc(50% - 230px);
	transform: scale(0);
	width: 600px;
	height: 240px;
	border-radius: 13px;
}

/* -- Credit Box -- */
#credit-box {
	z-index:24;
	left: calc(50% - 386px);
	top: calc(50% - 230px);
	transform: scale(0);
	width: 600px;
	height: 210px;
	border-radius: 13px;
}

a {
	cursor:url(../img/interface/cursor-pointer.png) 16 0, pointer;
	color:white;
	text-decoration: none;
}
#credit-text-box {
	width: 80%;
	margin: 0px 56px;
	max-height: 420px;
	overflow-y: scroll;
	font-size: 24px;
	padding-right: 10px;
	font-family: 'Gochi Hand', cursive;
}

/** BUY ITEM **/
#buy-item-box {
	z-index:24;
	left: calc(50% - 386px);
	top: calc(50% - 230px);
	transform: scale(0);
	width: 780px;
	height: 474px;
}

.buy-chest {
	width: 180px;
	transition: 100ms;
}

.buy-chest:hover {
	transform: scale(1.01);
	transform-origin: center;

}

.buy-chest:active {
	transform: scale(1);
	transform-origin: center;

}

.animation-sprite {
	animation: sprite 500ms infinite;
	opacity:0;
}

@keyframes sprite {
	0% {
		opacity:1;
	}
	24.99% {
		opacity:1;
		}
	25% {
		opacity:0;
	}
	100% {
		opacity:0;
	}
}

/* -- SCOREBOARD --*/
#scoreboard {
	left: calc(50% - 246px);
	top: calc(50% - 380px);
	width: 700px;
	height: 370px;
}

#defeat {
	margin-bottom: 0;
}

.score-title {
	text-align: center;
	font-size: 20px;
	font-weight:lighter;
	letter-spacing: 4px;
}

.gauge-scoreboard {
	background: #9e520f;
	border: 2px solid black;
	margin-bottom: 10px;
	align-items: center;
	display: flex;
	position: relative;
}

.text-color {
	color: black;
	font-size: 22px;
	font-weight: lighter;
	left: 50%;
	transform: translateX(-50%);
	position: absolute;
	letter-spacing: 5px;
	top: 3px;
	width:fit-content;
}

.gauge-value {
	transition: width 200ms;
	background: #ffcc40;
	height: 30px;
	width: 0%;
}

#open-chest {

	justify-content: center;
	display: flex;
	margin: auto;
	margin-top: -120px;
}

#continue-scoreboard {
	padding: 12px 10px;
	font-size: 35px;
	text-align: center;
	width: 180px;
	height: 40px;
}

#homepage-scoreboard img {
	height: 80px;
}

#homepage-scoreboard {
	cursor:url(../img/interface/cursor-pointer.png) 16 0, pointer;
}

#best-score-title {
	font-size:30px;
	text-align:center;
	margin-top: 20px;
}

#best-score-value {
	font-size:60px;
	text-align:center;
}

.game-value {
	font-size: 34px;
	margin-top: 6px;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #9e520f;
	padding: 2px 12px;
	border-radius: 10px;
	border: 2px solid black;
}

.value-bg {
	background: #9e520f;
	padding: 2px 12px;
	border-radius: 10px;
	border: 2px solid black;

}

#stat-best-score {
	width: 150px;
	margin: auto;
}

#loading-middle-wrap {
	position:absolute;
	left: 50%;
	top: -110px;
}

.rotation {
	animation: rotation 5s linear infinite;
	position: absolute;
	top: 11px;
	left: 20px;
	width:100px;
}

@keyframes rotation {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.img-chest {
	position: absolute;
	right: 90px;
	top: -54px;
}

.scale {
	animation: scale 5s linear infinite;
	position: absolute;
	cursor:url(../img/interface/cursor-pointer.png) 16 0, pointer;
	top:33px;
	right:-106px;
}

.scale:hover {
	animation: scalehover 1s linear infinite;
}

.scale:active {
	animation: scaleactive 1s linear infinite;
}

@keyframes scale {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.1);
	}
}

@keyframes scalehover {
	0% {
		transform: scale(1.3);
	}

	100% {
		transform: scale(1.3);
	}
}

@keyframes scaleactive {
	0% {
		transform: scale(1);
	}

	100% {
		transform: scale(1);
	}
}

#more-coins-content {
	color:black;
}

#more-coins {
	width: 160px;
	border: 2px solid black;
	background: white;
	color:black;
	border-radius: 6px;
	padding: 14px 11px;
	font-size: 22px;
	text-align: center;
	margin: auto;
	cursor:url(../img/interface/cursor-pointer.png) 16 0, pointer;
	animation: scalebutton 1s infinite linear;
}

@keyframes scalebutton {
	0% {
		transform:scale(1.05) translate(0);
	}
	50% {
		transform:scale(1.1) translate(0);
	}
	100% {
		transform:scale(1.05) translate(0);
	}
}

.img-coins {
	position: absolute;
	top: 7px;
	left: 170px;
	width: 40px;
	height: 40px;
}

.img-video {
	position: absolute;
	left: -28px;
	top: 7px;
	width: 40px;
	height: 40px;
}

#lock {
	display:none;
}

.stat-scores {
	font-size:20px;

}

#blo-box {
	z-index: 25;
	left: calc(50% - 271px);
	top: calc(50% - 170px);
	transform: scale(0);
	display:none;
	border-radius:10px;
}

#reward-box {
	z-index: 23;
	display: none;
	width: 320px;
	height: 170px;
	text-align: center;
}
