@import url("./fonts.css");

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	margin-bottom: 100px;
	overflow-x: hidden;
	touch-action: pan-y;
}

section {
	display: block;
	margin: auto;
	width: 100%;
	text-align: left;
	margin-top: 30px;
}

::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-thumb {
	background: rgb(105, 105, 105);
	border-radius: 10px;
	border: 3px solid rgba(240, 240, 240);
	/* width: 5px; */
}

.root {
	justify-content: center;
	display: flex;
	gap: 100px;
	width: 100%;
	padding-top: 100px;
}

.sidebar {
	width: 300px;
}

.content {
	max-width: 550px;
	width: 100%;
	padding-top: 20px;
}

.header > img {
	display: block;
	margin: auto;
}

.logo {
	height: 80px;
}

.panel {
	background-color: rgb(240, 240, 240);
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	border-radius: 8px;
	padding: 40px 30px;
	text-align: center;
}

.sidebar--meta-link {
	margin-bottom: 5px;
	height: 35px;
	cursor: pointer;
	transition: all 0.1s;
	display: block;
}

.sidebar--meta-link:hover {
	scale: 1.05;
}

.sidebar--players {
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
}

input {
	outline: none;
}

input[type="text"] {
	border-width: 1px;
	border-style: solid;
	padding: 3px;
	border-color: darkgray;
	border-radius: 3px;
}

button {
	cursor: pointer;
}

button:disabled {
	cursor: not-allowed;
}

.dropover {
	position: fixed;
	height: 100vh;
	width: 100vw;
	top: 0;
	left: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: rgba(0, 0, 0, 0.7);
	color: white;
	flex-direction: column;
	gap: 30px;
	font-size: 20pt;
	display: none;
}

.player-list--player {
	position: relative;
}

.player-list--player-username {
	z-index: 3;
	position: absolute;
	top: 40px;
	padding: 7px 10px;
	background-color: rgb(80, 80, 80);
	border-radius: 5px;
	color: white;
	left: 50%;
	transform: translateX(-50%);
	font-family: Helvetica, Arial, sans-serif;
	opacity: 0;
	transition: 0.1s opacity;
	pointer-events: none;
}

.player-list--player:hover > .player-list--player-username,
.player-list--player:focus > .player-list--player-username,
.player-list--player:active > .player-list--player-username {
	opacity: 1;
}

.error-surface {
	text-align: center;
	border: 2px solid rgb(206, 121, 41);
	color: rgb(206, 121, 41);
	border-radius: 7px;
	padding: 10px;
	width: 70%;
	margin: 20px auto;
	background-color: rgb(255, 231, 208);
}

.error-surface span {
	text-align: center;
	font-size: 11pt;

	width: 100%;
}

.subheading {
	font-weight: bold;
}

.upload-audio-panel {
	font-family: Arial, Helvetica, sans-serif;
}

.auth-panel {
	padding-top: 40px;
	padding-bottom: 40px;
	text-align: center;
	font-family: Arial, Helvetica, sans-serif;
}

.auth-panel--username-input {
	height: 30px;
	width: 300px;
	text-align: center;
}

.player-map {
	padding: 10px;
	margin-bottom: 5px;
	height: 300px;
	position: relative;
}

.chat {
	flex-direction: column;
	align-items: start;
	font-size: 10pt;
	gap: 4px;
	height: 300px;
	padding: 10px;
	margin-bottom: 5px;
	/* justify-content: end; */
	font-size: 10pt;
	overflow-y: scroll;
	overflow-x: hidden;
	user-select: none;
}

.chat-bar {
	flex-direction: row;
	height: 40px;
	padding: 0 10px 0 10px;
}

.chat-bar input {
	border: none;
	outline: none;
	height: 100%;
	width: 100%;
	display: inline-block;
	background: none;
}

.chat-bar--send-button {
	display: inline-block;
	height: 30px;
	width: 30px;
	cursor: pointer;
}

.chat-bar--send-button.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.chat-bar--send-button:hover:not(.disabled) {
	opacity: 0.7;
}

.chat-bar--send-button img {
	height: 100%;
}

.chat-message {
	font-family: Arial, Helvetica, sans-serif !important;
	text-align: left;
}

.chat-message:first-child {
	margin-top: auto;
}

.chat-message.web > .chat-message--author {
	color: rgb(44, 102, 226);
}

.chat-message span {
	vertical-align: middle;
	overflow-wrap: anywhere;
}

.chat-message--author-icon {
	height: 16px;
	vertical-align: middle;
	margin-right: 5px;
}

.chat-message--author {
	font-weight: bold;
	margin-right: 4px;
}

.subtext {
	font-style: italic;
	opacity: 0.6;
	font-weight: bold;
}

.loading-spinner-wrapper {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.loading-spinner {
	margin: auto;
	display: block;
	height: 30px;
	animation: spin 1s infinite linear;
}

@keyframes spin {
	0% {
		rotate: 0deg;
	}
	100% {
		rotate: 360deg;
	}
}

@media screen and (max-width: 1000px) {
	.root {
		padding: 30px;
		padding-top: 90px;
		gap: 60px;
	}
}

@media screen and (max-width: 600px) {
	.root {
		flex-direction: column;
		align-items: center;
		width: 100vw;
		padding: 30px;
		padding-top: 90px;
	}

	.sidebar {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
}
