#gameScreen {
	/* Keep canvas anchored inside the iframe.
	   Centering via translate(-50%,-50%) can push the canvas offscreen when the iframe
	   viewport changes (responsive/devtools), making the game unplayable. */
	position: absolute;
	top: 0;
	left: 0;
	-moz-transform: none;
	-webkit-transform: none;
	transform: none;
	width: 100%;
	height: 100%;
	z-index: 1;
}

#chat-area {
	position: relative;
	width: 33%;
	max-width: 500px;
	z-index: 2;
	font-family: 'ModernDOS';
	margin: 1px auto;
	display: none;
}

#send-container {
	position: relative;
}

#message-input {
	font-family: 'ModernDOS';
	width: calc(100% - 90px);
}

#send-button {
	width: 55px;
}

#message-container {
	max-height: 80px;
	margin: 2px;
	overflow-y: auto;
	overflow-x: hidden;
}

#user-section {
	position: absolute;
	display: block;
	font-size: 16px;
	font-family: 'ModernDOS';
	color: black;
}

#logged-in-username {
	z-index: 2;
	position: absolute;
	top: 2px;
	left: 50px;
	width: 250px;
	display: none;
	margin: 2px;
	margin-top: 4px;
	margin-bottom: 4px;
}

#logged-in-username-line-2 {
	margin-top: 4px;
}

#current-email {
	margin: 3px;
	margin-left: 4px;
	margin-bottom: 4px;
}

#user-profile-img {
	margin: 2px;
	position: absolute;
	z-index: 2;
	transition-duration: 0.2s;
	display: none;
}

#user-profile-btn {
	margin: 2px;
	position: absolute;
	width: 45px;
	height: 45px;
	z-index: 3;
}

#leaderboard-img {
	top: 58px;
	left: 12px;
}

#leaderboard-btn {
	top: 57px;
	left: 11px;
}

#leaderboard-btn:hover + #leaderboard-img {
	transform: rotate(360deg);
	transition: all 0.2s ease-in-out 0s;
}

#users-img {
	top: 90px;
	left: 12px;
}

#users-btn {
	top: 89px;
	left: 11px;
}

#users-btn:hover + #users-img {
	transform: rotate(360deg);
	transition: all 0.2s ease-in-out 0s;
}

#chat-img {
	top: 122px;
	left: 12px;
}

#chat-btn {
	top: 121px;
	left: 11px;
}

#chat-btn:hover + #chat-img {
	transform: rotate(360deg);
	transition: all 0.2s ease-in-out 0s;
}

#controls-img {
	top: 154px;
	left: 12px;
}

#controls-btn {
	top: 153px;
	left: 11px;
}

#controls-btn:hover + #controls-img {
	transform: rotate(360deg);
	transition: all 0.2s ease-in-out 0s;
}

#about-img {
	top: 186px;
	left: 12px;
}

#about-btn {
	top: 185px;
	left: 11px;
}

#about-btn:hover + #about-img {
	transform: rotate(360deg);
	transition: all 0.2s ease-in-out 0s;
}

#user-settings-img {
	top: 218px;
	left: 12px;
}

#user-settings-btn {
	top: 217px;
	left: 11px;
}

#user-settings-btn:hover + #user-settings-img {
	transform: rotate(360deg);
	transition: all 0.2s ease-in-out 0s;
}

#about {
	font-size: 14px;
}

#about-title {
	font-size: 18px;
}

.menu-content-panel {
	position: absolute;
	top: 54px;
	left: 54px;
	width: 250px;
	z-index: 3;
	font-family: 'ModernDOS';
	font-size: 16;
	display: none;
}

.icon-img {
	position: absolute;
	z-index: 2;
	transition: all 0.2s ease-in-out 0s;
	display: none;
}

.icon-btn {
	position: absolute;
	z-index: 3;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: none;
}

.pulse-circle {
	position: absolute;
	transform: translate(-50%, -50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	animation: pulse 0.2s linear forwards;
}

@keyframes pulse {
	0% {
		width: 0px;
		height: 0px;
		opacity: 1;
	}
	100% {
		width: 48px;
		height: 48px;
		opacity: 0;
	}
}

#game-info {
	position: absolute;
	right: 2px;
	top: 2px;
	z-index: 2;
	display: none;
}

#game-info-stats {
	font-family: 'ModernDOS';
	font-size: 16px;
	color: black;
	background: white;
	border: 1px solid black;
	transition-duration: 0.2s;
	z-index: 2;
}

#game-info-btn {
	position: absolute;
	right: 2px;
	top: 2px;
	width: 154px;
	height: 66px;
	z-index: 3;
}

#game-paused-text {
	position: relative;
	text-align: center;
	z-index: 2;
	font-family: 'ModernDOS';
	font-size: 16px;
	margin-top: 10px;
	background: none;
	color: black;
	display: none;
}

#restart-img {
	position: absolute;
	top: 102px;
	right: 64px;
	z-index: 2;
	transition-duration: 0.2s;
	margin: 0px auto;
	margin-top: 4px;
	display: none;
}

#restart-btn {
	position: absolute;
	top: 104px;
	right: 64px;
	width: 26px;
	height: 26px;
	z-index: 3;
	display: none;
	border-radius: 50%;
}

#restart-btn:hover + #restart-img {
	transform: rotate(360deg);
	transition: all 0.2s ease-in-out 0s;
}

#offline-ind {
	position: absolute;
	right: 170px;
	top: 20px;
	z-index: 2;
	display: none;
}

.game-info-item {
	margin-left: 4px;
	margin-right: 4px;
}

.text-input {
	width: 200px;
	height: 17px;
	margin: 1px;
	margin-bottom: 2px;
	border: 1px solid black;
	font-size: 16px;
	font-family: 'ModernDOS';
	transition-duration: 0.2s;
}

.text-input:focus {
	background-color: #DDDDDD;
}

ol {
	margin-top: 2px;
    padding-left: 24px;
}

.button {
	width: 150px;
	height: 21px;
	margin: 1px;
	margin-bottom: 1px;
	background: white;
	border: 1px solid black;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	border-radius: 0%;
	transition-duration: 0.2s;
	font-size: 16px;
	font-family: 'ModernDOS';
	outline: none;
	white-space: nowrap;
}

.button.submit {
	margin-top: 2px;
	position: relative;
	left: 50%;
	-ms-transform: translate(-50%, 0%);
	transform: translate(-50%, 0%);
}

.button-invis {
	cursor: pointer;
	outline: none;
	border: none !important;
	background: transparent;
}

.form-error {
	text-align: center;
	position: relative;
	top: 2px;
	left: 2px;
	z-index: 2;
	color: red;
	display: block;
}

.info-message {
	text-align: center;
	position: relative;
	top: 2px;
	left: 2px;
	z-index: 2;
	color: green;
	display: block;
}

.user-panel-signed-in {
	position: absolute;
	top: 48px;
	left: 48px;
	z-index: 2;
	display: none;
	color: inherit;
}

.user-panel-signed-out {
	position: absolute;
	top: 1px;
	left: 48px;
	z-index: 2;
	display: none;
	color: inherit;
}

.online-ind {
	margin-right: 4px;
}

.switch {
	position: relative;
	display: inline-block;
	width: 60px;
	height: 34px;
}

.switch input { 
	opacity: 0;
	width: 0;
	height: 0;
}

#dark-mode-section {
	margin-left: 3px;
	height: 33px;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	height: 15px;
	background-color: #ccc;
	-webkit-transition: 0.2s;
	transition: 0.2s;
	border: 1px solid black;
}

.slider:before {
	position: absolute;
	content: "";
	height: 13px;
	width: 25px;
	left: 1px;
	top: 1px;
	bottom: 2px;
	background-color: white;
	-webkit-transition: 0.2s;
	transition: 0.2s;
}

input:checked + .slider {
	background-color: #777777;
	border: 1px solid white;
}

input:focus + .slider {
	box-shadow: 0 0 1px #777777;
}

input:checked + .slider:before {
	-webkit-transform: translateX(31px);
	-ms-transform: translateX(31px);
	transform: translateX(31px);
}

html, body {
	background-color: white;
	width: 100%;
	height: 100%;
	margin: 0px;
	border: 0;
	overflow: hidden;
	display: block;
	-webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
	-webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
	-webkit-user-select: none;
	user-select: none;
	touch-action: none;
	-webkit-transition: 0.2s;
	transition: 0.2s;
}

@font-face {
	font-family: 'ModernDOS';
	font-style: 'normal';
	font-weight: 400;
	src: local('ModernDOS'),
		url(../font/ModernDOS8x16.ttf) format('truetype');
}

.animate-pulse {
	-webkit-animation: flickerAnimation 1s infinite;
	-moz-animation: flickerAnimation 1s infinite;
	-o-animation: flickerAnimation 1s infinite;
	animation: flickerAnimation 1s infinite;
}

@keyframes flickerAnimation {
	0%   { opacity:0; }
	50%  { opacity:1; }
	100% { opacity:0; }
}
@-o-keyframes flickerAnimation{
	0%   { opacity:0; }
	50%  { opacity:1; }
	100% { opacity:0; }
}
@-moz-keyframes flickerAnimation{
	0%   { opacity:0; }
	50%  { opacity:1; }
	100% { opacity:0; }
}
@-webkit-keyframes flickerAnimation{
	0%   { opacity:0; }
	50%  { opacity:1; }
	100% { opacity:0; }
}

a, a:visited, a:hover, a:active {
	color: blue;
}