body, html {
	height: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: sans-serif;
	background-color: rgb(57, 57, 62);
	overflow: hidden;
	font-size: 18px;
}

#main {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

#top {
	flex-grow: 0;
	flex-shrink: 0;
	display: flex;
	flex-direction: row;
	padding-top: 0.5rem;
	padding-bottom: 0.8rem;
	font-size: 1rem;
}

#middle {
    flex-grow: 1;
    flex-shrink: 1;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    overflow: hidden;
    min-width: 400px;
}

#center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 200px;
    overflow: hidden;
}

#sidebar {
    display: flex;
    flex-direction: column;
    width: 400px;
    flex-shrink: 0;
    flex-grow: 0;
    min-width: 400px;
}

#bottom {
	flex-grow: 0;
	flex-shrink: 0;
}

#canvas_container {
    flex-grow: 1;
    flex-shrink: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    outline: none;
    background-color: rgb(165, 175, 181);
    min-height: 0;
}

#canvas {
    width: 100%;
    height: 100%;
    background-color: black;
    outline: none;
}

#canvas_container.disabled {
	opacity: 0.5;
}

#canvas_container.kicked {
	background-color: red;
}

#minimap_container {
	position: relative;
	flex-grow: 0;
	flex-shrink: 0;
}

#minimap {
	width: 400px;
	height: 267px;
    background-color: grey;
    display: block;
}

#chat_main {
	background-color: rgb(46, 47, 49);
	flex-grow: 1;
	flex-shrink: 1;
	position: relative;
	display: flex;
	flex-direction: column;
}

#chat_area_parent {
	width: 100%;
	padding-top: 1rem;
	background-color: rgb(46, 47, 49);
	flex: 1 1 0;
	min-height: 0;
}

#chat_area {
	height: 100%;
	width: 100%;
	overflow-y: auto;
	color: white;
	scrollbar-width: none;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	padding-bottom: 1rem;
	box-sizing: border-box;
}

#chat_area::-webkit-scrollbar {
	display: none;
}

.chat_message_container {
    word-wrap: break-word;
    color: white;
}

.chat_username {
    font-weight: bold;
    white-space: nowrap;
    margin-right: 0.5rem;
	display: inline;
}

.chat_message {
	display: inline;
}

.chat_counter {
	display: inline;
	color: #b4eab4;
}

a.chat:link, a.chat:visited, a.chat:hover {
	color: white;
	text-decoration: underline;
}

#chat_bottom {
	display: flex;
	flex-direction: row;
	gap: 0.2rem;
	align-items: center;
	box-sizing: content-box;
}

#chat_input {
	border: none;
	background-color: rgb(60, 61, 63);
	color: white;
	padding: 0.25rem;
	box-sizing: border-box;
	font-size: 1rem;
	outline: none;
	flex-shrink: 1;
	flex-grow: 1;
	height: 2rem;
	min-width: 4rem;
}

#upload_image {
	color: white;
	flex-shrink: 0;
	flex-grow: 0;
	background-color: rgb(80, 79, 115);
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	user-select: none;
	cursor: pointer;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

#upload_image:hover {
	background-color: rgb(109, 67, 198);
}

#self_destruct {
	color: white;
	flex-shrink: 0;
	flex-grow: 0;
	background-color: rgb(108, 79, 115);
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	user-select: none;
	cursor: pointer;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

#self_destruct:hover {
	background-color: rgb(138, 88, 151);
}

iframe {
	display: none;
}

#hud {
	color: white;
	text-shadow: 1px 1px black;
	flex-grow: 1;
	flex-shrink: 1;
	padding-left: 1rem;
	display: flex;
	gap: 0.8rem;
	font-family: monospace;
	cursor: default;
	user-select: none;
}

#hud > div {
	white-space: nowrap;
}

#hud.full {
	flex-wrap: wrap;
}

#about {
	color: white;
	text-shadow: 1px 1px black;
	flex-grow: 0;
	flex-shrink: 0;
	padding-right: 1rem;
}

.button {
	cursor: pointer;
	user-select: none;
}

.button:hover {
	cursor: pointer;
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

#volume_container {
	cursor: default;
}

select {
	color: white;
	background-color: rgb(80, 79, 115);
	outline: none;
	border: none;
	font-size: 1rem;
}

select:hover {
	background-color: rgb(91, 90, 129);
	cursor: pointer;
}

.sep {
	user-select: none;
	opacity: 0.5;
}

#stats {
	height: 2rem;
	width: 100%;
	color: white;
	font-family: monospace;
	background-color: rgb(71, 71, 71);
	flex-grow: 0;
	flex-shrink: 0;
	display: flex;
	flex-direction: row;
	gap: 0.8rem;
	align-items: center;
	justify-content: flex-start;
	padding-left: 1rem;
	user-select: none;
}

#stats > div {
	white-space: nowrap;
}

#stats.full {
	height: 100%;
	flex-wrap: wrap;
}

.btn {
	cursor: pointer;
}

.btn:hover {
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.hidden {
	display: none !important;
}

#ship_stats_container {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.ship_stats_item {
	max-width: 260px;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 1rem;
}

.ship_stats_uname {
	font-weight: bold;
}

.pointer {
	cursor: pointer;
}

#image_viewer_container {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

#image_viewer_top {
	display: flex;
	flex-direction: row;
}

#image_viewer_middle {
	flex-grow: 1;
	flex-shrink: 1;
	user-select: none;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
}

.image_viewer_button {
	flex-grow: 1;
	flex-shrink: 0;
	cursor: pointer;
	font-weight: bold;
	background-color: rgb(100, 122, 142);
	color: white;
	padding: 0.25rem;
	user-select: none;
}

.image_viewer_button:hover {
	outline: 1px solid rgb(214, 210, 255);
}

#image_viewer_image {
	width: 800px;
	height: auto;
	max-height: 700px;
	border: none;
	outline: none;
	object-fit: contain;
	background-color: rgb(98, 98, 98);
	user-select: none;
}

#Msg-window-1 {
	top: 80px !important;
	transform: translate(-50%) !important;
}

.hide_cursor {
	cursor: none;
}