@import url(https://fonts.googleapis.com/css?family=Gloria+Hallelujah);

*{
	box-sizing: border-box;
	user-select: none;
}

body {
	margin: 0; padding: 0;
	font-family: 'Gloria Hallelujah', cursive;
    height: 100dvh;
	background: url(/assets/bg-cheker.png) top left;
	background-color: #0000007d;
	background-blend-mode: darken;
}

.container {
	height: 100dvh;
	width: 100vw;
	max-width: 422px;
	position: relative;
	margin: auto; 
	overflow: hidden;
	box-shadow: 0px 0px 15px -3px rgba(0,0,0,0.1);
	object-fit: cover;
}

#sound-btn {
	z-index: 200;
	position: absolute;
	top: 10px;
	right: 10px;
	width:30px;
	height: 30px;
	display: block;
	cursor: pointer;
}

canvas {
	height: 100dvh;
	width: 422px;
	display: block;
	background: url(/assets/bg-cheker.png) top left;
}

#leftBtn,
#rightBtn {
    z-index: -1;
    box-sizing: border-box;
    padding: 0;

    position: absolute;
    bottom: 0;
    height: 100%;
    width: 50%;
    opacity: 0;

    background-color: #000;
    /* Will be set to display block by js when game runs */
    display: none;
}

#leftBtn {
    left: 0;
}
#rightBtn {
    right: 0;
}

#scoreBoard {
	width: 420px;
	height: 50px;
	background: rgba(182, 200, 220, 0.7);
	position: absolute;
	top: -3px;
	left: 0;
	z-index: -1;	
	border-image: url(/assets/doodle-line.png) 100 5 round;
}

#scoreBoard p {
	font-size: 20px;
	padding: 0;
	line-height: 47px;
	margin: 0px 0 0 5px;
}

img {display: none}

#mainMenu, #gameOverMenu {
	height: 100%;
	width: 100%;
	text-align: center;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;

	padding-top: 100px;
	padding-right: 20px;
}

#excel-logo {
	box-sizing: border-box;
	position: absolute;
	top: 0px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 20;

	width: 150px;
	display: block !important;

	aspect-ratio: initial;
	object-fit: cover;
}

#play-login-btn  {
	cursor: pointer;
}

#gameOverMenu {
	top: 10%;
	height: 90%;
}

#gameOverMenu {
	visibility: hidden;
}

h2, h3, h1 {font-weight: normal}
h1 {
	font-size: 60px; 
	color: #5a5816; 
	transform: rotate(-10deg);
	margin: 0px;
}

h3 {text-align: right; margin: -10px 20px 0 0; color: #5e96be}
h3 a {color: #5a5816}

#your-rank-header {
	color: #5e96be
}

#rank-header, #back-to-main-games {
	margin-bottom: 20px;
	text-align: center;
}

.button {
	width: 105px;
	height: 31px;
	background: url(/assets/sprite.png) 0 0 no-repeat;
	display: block;
	color:  #000;
	font-size: 12px;
	line-height: 31px;
	text-decoration: none;
	position: absolute;
	left: 50%;
	bottom: 50px;
	margin-left: -53px;
}
.home-btn-gameOverMenu {
	bottom: 90px;
}

#loginBtn {
	top : 15px;
	left: 70px;
}

.info {
	position: absolute; 
	right: 20px; 
	bottom: 00px; 
	margin: 0; 
	color: green;
	display: flex;
	align-items: center;
	gap: 1rem;

	opacity: 0;
}
.info.visible {
	opacity: 1;
}

.info .key {
	width: 16px;
	height: 16px;
	background: url(/assets/sprite.png) no-repeat;
	text-indent: -9999px;
	display: inline-block;
}

.info .key.left {background-position: -92px -621px;}
.info .key.right {background-position: -92px -641px;}


#avatarIcon {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	display: block;
	filter: grayscale(100%) drop-shadow(0 0 1px #000);
}

.game-finished {
	font-size: 13px;
}