body, html {
	margin: 0;
	padding: 0;
}
body {
	background-color: #1F1F1F;
	color: #FFFFFF;
	font-family: Verdana, Geneva, sans-serif;
}

#character_picker {
	width: 100%;
	max-width: 650px;
	margin: auto;
	text-align: center;
}

#character_display {
	font-size: 1.3em;
}

#move_display {
	font-size: 1em;
}

#version_language_row {
	margin-top: 6px;
	margin-bottom: 6px;
	font-size: 0.95em;
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}
#version_language_row select {
	background-color: #1F1F1F;
	color: #FFF;
	border: solid 1px #666;
	padding: 2px 6px;
	border-radius: 4px;
}

#language_float {
	position: fixed;
	top: 12px;
	right: 12px;
	z-index: 10;
	background: #2a2a2a;
	border: 1px solid #444;
	border-radius: 8px;
	padding: 6px 10px;
	font-size: 0.9em;
	opacity: 0.9;
	box-shadow: 0 2px 8px rgba(0,0,0,0.35);
	display: flex;
	gap: 6px;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
}
#language_float select {
	background-color: #1F1F1F;
	color: #FFF;
	border: solid 1px #666;
	padding: 2px 6px;
	border-radius: 4px;
}
#language_float .lang-row {
	display: flex;
	align-items: center;
	gap: 6px;
}
#language_float:hover {
	opacity: 1;
}

#selectAtt {
	background-color: #1F1F1F;
	color: #FFF;
	font-size: 1em;
	border: solid 1px #666;
	padding: 4px 8px;
	border-radius: 4px;
}
#selectAtt:focus, #selectSpeed:focus {
	outline: none;
	box-shadow: 0 0 6px rgba(255,255,255,0.4);
}
#selectAtt:hover {
	box-shadow: 0 0 6px rgba(255,255,255,0.4);
}

#selectSpeed {
	background-color: #1F1F1F;
	color: #FFF;
	border: solid 1px #666;
	padding: 4px 8px;
	border-radius: 4px;
}
#selectSpeed:hover {
	box-shadow: 0 0 6px rgba(255,255,255,0.35);
}

#videoPlayer {
	width: 100%;
	max-width: 480px;
	margin-top: 10px;
	display: block;
	aspect-ratio: 4 / 3;
	background-color: #000;
	border: 1px solid #333;
}

#play_controls {
	width: 480px;
	text-align: center;
	line-height: 2;
	font-size: 18px;
}
#play_controls .controls-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
#play_controls input {
	color: #FFF;
	background-color: transparent;
	border: solid 1px #666;
	font-size: 18px;
	text-align: center;
}
#play_controls input[type="button"] {
	background-color: #434343;
}
.mode-option {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}
.loop-option .loop-label {
	cursor: pointer;
}

#links {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	padding: 10px 20px;
	background-color: #2d2d2d;
}

.link_inline {
	/*font-family: SmashFont;*/
	display: block;
	color: #CCC;
	cursor: pointer;
	font-size: 16px;
	line-height: 1.7;
	text-decoration: none;
}

.link_inline:hover {
	color: #FFF;
}

@media (max-width: 1000px) {
	#links {
        position: static;
    }
    #p1 { /* this stuff is relatively unimportant */
		display: none;
	}
	#character_picker {
		max-width: 400px;
	}
	#character_picker img {
		width: 60px;
		height: 60px;
	}
	#display_container {
		box-sizing: border-box;
		margin: 0 !important;
		padding: 0 10px;
		width: 100% !important;
	}
	#play_controls {
		width: 100%;
		font-size: 14px;
	}
	#play_controls input {
		font-size: 14px;
	}
	#language_float {
		position: static;
		margin: 12px auto;
		transform: none;
		justify-content: center;
		flex-direction: row;
		gap: 8px;
		align-items: center;
	}
	#language_float .lang-row {
		flex-direction: row;
	}
}
