* {
	margin: 0;
	padding: 0;
}

body {
	background-color: #797;
	color: green;
	overflow: hidden;
}

#area {
	display: inline-block;
	position: absolute;
	left: 20px;
	top: 20px;
	width: calc(100% - 40px);
	height: calc(100% - 100px);
	background: url(../img/area.png);
	cursor: crosshair;
	overflow: hidden;
}

#bullets-info-template {
	position: absolute;
	text-shadow: 0 0 3px black;
    color: #575;
	font-weight: bold;
	font-size: 30px;
	left: 100px;
	bottom: 20px;
	letter-spacing: 5px;
	z-index: 1;
}

#bullets-info {
	position: absolute;
	color: white;
	font-weight: bold;
	font-size: 30px;
	left: 100px;
	bottom: 20px;
	letter-spacing: 5px;
	z-index: 2;
}

#score-info {
	position: absolute;
	color: white;
	font-weight: bold;
	font-size: 30px;
	right: 200px;
	bottom: 20px;
}

#score-top {
	position: absolute;
    color: #575;
	font-weight: bold;
	font-size: 30px;
	right: 100px;
	bottom: 20px;
}

#player {
	display: inline-block;
	position: absolute;
	left: -100px;
	top: 0;
	width: 64px;
	height: 64px;
	background: url(../img/player-right.png);
	background-size: contain;
	transition: transform 1s;
	z-index: 3;
}

#player.left {
	background-image: url(../img/player-left.png);
}

#player.dead {
	transform: rotate(180deg) scale(0.9);
}

.enemy {
	display: inline-block;
	position: absolute;
	left: -100px;
	top: 0;
	width: 64px;
	height: 64px;
	background-image: url(../img/enemy-right.png);
	background-size: contain;
	z-index: 2;
}

.enemy.left {
	background-image: url(../img/enemy-left.png);
}

.enemy.laugh {
	background-image: url(../img/enemy-laugh.png);
	animation: laugh 0.2s linear;
	animation-iteration-count: infinite;
}

.enemy.laugh2 {
	background-image: url(../img/enemy-laugh2.png);
}

.enemy.dead {
	background-image: url(../img/enemy-dead.png);
	background-size: contain;
	transform: rotate(180deg) scale(0.9);
	transition: left 0.2s, top 0.2s, transform 1s;
}

.enemy.mark {
	box-shadow: 0 0 20px red;
}

.bullet {
	display: inline-block;
	position: absolute;
	left: 0;
	top: 0;
	width: 10px;
	height: 10px;
	border-radius: 5px;
	background-color: black;
	z-index: 2;
}

.box {
	display: inline-block;
	position: absolute;
	left: 0;
	top: 0;
	width: 64px;
	height: 64px;
	background-size: contain;
	z-index: 1;
}

.box.ammo {
	background-image: url(../img/ammo.png);
}

.checkpoint {
	display: inline-block;
	position: absolute;
	left: 0;
	top: 0;
	width: 5px;
	height: 5px;
	background-color: blue;
	z-index: 4;
}

#lobby {
	display: none;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
}

#lobby.active {
	display: inline-block;
}

#lobby-shade {
	display: inline-block;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: black;
	cursor: crosshair;
	opacity: 0;
	transition: 0.5s;
}

#lobby-shade.active {
	cursor: default;
	opacity: 0.5;
}

#app-name {
	display: inline-block;
	position: absolute;
	left: 50%;
	top: -50vh;
	color: #030;
	cursor: default;
	font-family: JollyLodger, Arial, serif;
	font-size: 21vh;
	font-weight: bold;
	letter-spacing: 12px;
	text-shadow: 0 0 30px #fff;
	transform: translate(-50%);
	transition: 0.5s;
	user-select: none;
}

#app-name.active {
	top: 10vh;
}

#app-name-point1,
#app-name-point2,
#app-name-point3 {
	position: absolute;
	color: #141;
	text-shadow: 0 0 4px #fff;
}

#app-name-point1 {
	left: 19%;
	top: -22%;
	font-size: 16vh;
}

#app-name-point2 {
	left: 53%;
	top: 15%;
	font-size: 10vh;
}

#app-name-point3 {
	left: 84%;
	top: 13%;
	font-size: 14vh;
}

#menu {
	display: inline-block;
	position: absolute;
	left: 50%;
	bottom: -20vh;
	color: white;
	cursor: default;
	font-family: Constantine, Arial, serif;
	font-size: 4vh;
	font-weight: bold;
	letter-spacing: 5px;
	list-style: none;
	text-align: center;
	text-shadow: 0 0 10px black;
	transform: translate(-50%);
	transition: 0.5s;
	user-select: none;
}

#menu.active {
	bottom: 30vh;
}

#menu li + li{
	margin-top: 20px;
}

#menu li:hover {
	letter-spacing: 6px;
	text-shadow: 0 0 10px #888;
}

#rating {
	display: inline-block;
	position: absolute;
	right: -50%;
	bottom: 35vh;
	text-align: center;
	transform: translate(50%, 50%);
	transition: 0.5s;
}

#rating.active {
	right: 50%;
}

#rating-list {
	cursor: default;
	font-family: Constantine, Arial, serif;
	font-size: 3vh;
	font-weight: bold;
	letter-spacing: 5px;
	text-shadow: 0 0 10px black;
	user-select: none;
}

#rating-list .rating-record-name {
	max-width: 30vw;
	padding-right: 20px;
	color: #fa2;
	overflow: hidden;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#rating-list .rating-record-score {
	padding-left: 20px;
	color: white;
}

#result {
	display: inline-block;
	position: absolute;
	left: -50%;
	bottom: 41vh;
	color: white;
	font-family: Constantine, Arial, serif;
	text-align: center;
	transform: translate(-50%, 50%);
	transition: 0.5s;
}

#result.active {
	left: 50%;
}

#result-score {
	font-size: 10vh;
	font-weight: bold;
	letter-spacing: 10px;
	text-shadow: 0 0 10px black;
	user-select: none;
}

#result-name {
	margin-top: 3vh;
}

#result-name label {
	display: block;
	font-size: 4vh;
	text-align: left;
	color: #fa2;
	user-select: none;
}

#result-input {
	position: relative;
	width: 20vw;
	padding: 4px 10px;
	background: rgba(255, 255, 255, 0.4);
	border: solid 4px #030;
	border-radius: 3px;
	font-family: Constantine, Arial, serif;
	font-size: 5vh;
	font-weight: bold;
	text-align: center;
	outline: none;
}

.hidden {
	display: none;
}

.button {
	display: inline-block;
	position: relative;
	margin-top: 40px;
	padding: 10px 20px;
	cursor: default;
	font-family: Constantine, Arial, serif;
	font-size: 3vh;
	overflow: hidden;
}

.button:before {
	display: inline-block;
	position: absolute;
	left: 50%;
	top: 50%;
	width: 84%;
	aspect-ratio: 1 / 1;
	background-color: #030;
	transform: translate(-50%, -50%) rotate(45deg);
	transition: 0.1s;
	content: '';
}

.button:hover:before {
	transform: translate(-50%, -50%) rotate(54deg);
}

.button span {
	position: relative;
	color: #eee;
	transition: 0.2s;
}

.button:hover span {
	color: #fff;
	text-shadow: 0 0 10px #888;
}

@font-face {
	font-family: 'Montserrat';
	src: url('Montserrat-Bold.ttf') format('truetype');
	font-weight: bold;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Constantine';
	src: url('Constantine.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'JollyLodger';
	src: url('JollyLodger.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@keyframes laugh {
	0% {
		transform: translate(0, 0);
	}

	50% {
		transform: translate(0, 5px);
	}

	100% {
		transform: translate(0, 0);
	}
}
