/* =================================================================== */
/* === BASE ========================================================== */
/* =================================================================== */
html {
	font-family: sans-serif;
	background: gray;
}

body {
	align-content: top;
	width: device-width;
	max-width: 700px;
	height: auto;
	background: white;
	margin-left: auto;
	margin-right: auto;
	padding: 20px;
}

header {
	min-height: 120px;
}

h1 {
	font-size: 50px;
	margin: 0;
}

h2 {
	font-size: 40px;
	margin: 0;
}

h3 {
	font-size: 30px;
	margin: 0;
}

h4 {
	margin: 0;
}

h5 {
	font-size: 15;
	font-weight: normal;
	margin: 0;
	font-weight: normal;
}

hr {
	padding: 0;
	margin: 0;
}

button {
	background-color: #333;
	color: white;
	font-size: 16px;
	border: none;
	cursor: pointer;
	height: 30px;
	min-width: 100px;
	margin: 0 0 0 auto;
	padding: 0 20px;
	align-items: center;
	justify-content: center;
}

button:hover {
	background-color: black;
}

.page-name {
	margin-top: 10px;
	margin-bottom: 20px;
}

.sub-title {
	margin-top: 10px;
	margin-bottom: 1px;
}

.border {
	padding: 20px;
	border: 2px solid #333;
	box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
}

.vertical {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.horizontal {
	display: flex;
	flex-direction: row;
	gap: 20px;
}

.horizontal-no-gap {
	display: flex;
	flex-direction: row;
	align-items: center;
}

.vertical-no-gap {
	display: flex;
	flex-direction: column;
}

.wrap {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.right {
	display: flex;
}

.hover-box {
	position: relative;
	display: inline-block;
	cursor: pointer;
	font-size: 17px;
}

.hover-text {
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 5px;
	background: black;
	color: white;
	padding: 6px 10px;
	border-radius: 5px;
	white-space: nowrap;
	z-index: 9999;
}

.hover-box:hover .hover-text {
	visibility: visible;
	opacity: 1;
}

select {
	height: 25px;
}

.symbol-button {
	font-size: 20px;
	line-height: 10px;
	text-align: center;
	padding: 0 10;
}

@media ( max-width : 768px) {
	button {
		font-size: 80%;
		min-width: 80px;
		height: 25px;
		padding: 0 0;
	}
	.page-name {
		font-size: 30px;
	}
	h3 {
		font-size: 20;
	}
	h5 {
		font-size: 12;
		font-weight: normal;
		margin: 0;
	}
	.border {
		padding: 15px;
	}
	br {
		line-height: 12px;
	}
	label {
		font-size: 15px;
	}
	.symbol-button {
		padding: 0 5;
	}
}

/* =================================================================== */
/* === NAV BAR ======================================================= */
/* =================================================================== */
ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: #333;
}

li {
	float: left;
}

li a {
	display: block;
	color: white;
	text-align: center;
	padding: 14px 16px;
	text-decoration: none;
}

li a:hover {
	background-color: #111;
}

.nav-bar {
	background-color: #333;
	display: flex;
	align-items: stretch;
	height: 30px;
}

.nav-left {
	display: flex;
	height: 100%;
	width: 100%;
}

.nav-left button {
	min-width: 0px;
	margin: 0;
	display: flex;
}

@media ( max-width : 768px) {
	li a {
		font-size: 12px;
	}
	.nav-left button {
		font-size: 12px;
		padding: 0 10;
		height: 100%;
		min-width: 70px;
	}
}

/* =================================================================== */
/* === BUTTON ROW ==================================================== */
/* =================================================================== */
.button-row {
	display: flex;
	width: 100%;
	gap: 5px;
}

.button-row button {
	flex: 1;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* =================================================================== */
/* === SELECTABLE BUTTON ROW ========================================= */
/* =================================================================== */
.selectable-button-row {
	display: flex;
	gap: 8px;
	width: 100%;
}

.selectable-button-row button {
	background-color: #EEE;
	color: #000;
	border: 1px solid #000;
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.selectable-button-row button:hover {
	background-color: black;
	color: white;
}

/* =================================================================== */
/* === FORM ========================================================== */
/* =================================================================== */
form {
	padding: 0;
	margin: 0;
}

form input[type="number"] {
	width: 60px;
}

.form-grid .form-grid__fields {
	display: grid;
	grid-template-columns: max-content minmax(12rem, 1fr);
	column-gap: 1rem;
	row-gap: 1rem;
	align-items: center;
}

.form-grid .field {
	display: contents;
}

.form-grid label {
	text-align: left;
	line-height: 1.2;
}

.form-grid select, .form-grid input {
	height: 25px;
	width: 100%;
	font-size: 17px;
	width: 100%;
}

@media ( min-width : 601px) {
	.form-grid label {
		white-space: nowrap;
	}
}

@media ( max-width : 600px) {
	.form-grid .form-grid__fields {
		grid-template-columns: 1fr;
		row-gap: 1rem;
	}
	.form-grid .field {
		display: grid;
		grid-template-columns: 1fr;
		row-gap: 0.25rem;
	}
	.form-grid .field--checkbox {
		grid-template-columns: max-content auto;
		column-gap: 0.4rem;
		row-gap: 0;
		align-items: center;
	}
	.form-grid .field--checkbox label {
		white-space: nowrap;
	}
}

/* =================================================================== */
/* === TABLE ========================================================= */
/* =================================================================== */
table {
	table-layout: auto;
	text-align: left;
	width: 100%;
}

table th {
	text-align: left;
	font-weight: bold;
	border-bottom: 2px solid #ddd;
}

table td {
	vertical-align: middle;
	text-align: left;
	font-size: 120%;
	border-bottom: 1px solid #ddd;
}

table form {
	padding: 0px;
	margin: 0px;
}

table .horizontal-space {
	padding-left: 15px;
	padding-right: 15px;
}

table .right-space {
	padding-right: 15px;
}

table .left-space {
	padding-left: 15px;
}

table .vertical-space {
	padding-right: 10px;
	padding-bottom: 10px;
}

table .fit {
	white-space: nowrap;
	width: 1%;
}

table .auto-width {
	width: auto;
	min-width: max-content;
	max-width: 100%;
}

table select {
	height: 25px;
}

table button {
	height: 25px;
	min-width: 0px;;
	width: 100%;
	margin: 0 0 0 0;
	display: inline-block;
	text-align: center;
	padding: 0 10px;
}

table input[type="checkbox"] {
	margin-right: 20px;
	transform: scale(1.8);
}

.no-lines th {
	border-bottom: 0px solid #ddd;
}

.no-lines td {
	border-bottom: 0px solid #ddd;
}

@media ( max-width : 768px) {
	table th {
		text-align: left;
		font-size: 80%;
	}
	table td {
		text-align: left;
		font-size: 90%;
	}
	table .space {
		padding-left: 10px;
		padding-right: 10px;
	}
	table .left-space {
		padding-right: 7px;
	}
	table .right-space {
		padding-right: 7px;
	}
	table input[type="checkbox"] {
		margin-right: 15px;
		transform: scale(1.4);
	}
	table select {
		font-size: 85%;
		height: 20px;
	}
	table button {
		font-size: 80%;
		padding-left: 8px;
		padding-right: 8px;
	}
}

@media screen and (max-width: 1000px) and (min-width: 650px) {
	.priority-5 {
		display: none;
	}
}

@media screen and (max-width: 650px) and (min-width: 500px) {
	.priority-5 {
		display: none;
	}
	.priority-4 {
		display: none;
	}
}

@media screen and (max-width: 500px) and (min-width: 400px) {
	.priority-5 {
		display: none;
	}
	.priority-4 {
		display: none;
	}
	.priority-3 {
		display: none;
	}
}

@media screen and (max-width: 400px) {
	.priority-5 {
		display: none;
	}
	.priority-4 {
		display: none;
	}
	.priority-3 {
		display: none;
	}
	.priority-2 {
		display: none;
	}
}

.no-lines th {
	border-bottom: 0px solid #ddd;
}

.no-lines td {
	border-bottom: 0px solid #ddd;
}

/* =================================================================== */
/* === TABS ========================================================== */
/* =================================================================== */
.tabs {
	max-width: auto;
	margin: 0 auto;
}

.tabs input[type="radio"] {
	display: none;
}

.tabs form input[type="radio"] {
	display: inline-block;
}

.tabs form input[type="radio"]+label {
	font-weight: bold;
	margin-left: 6px;
	font-size: 18px;
}

.tabs .labels {
	display: flex;
	cursor: default;
}

.tabs .labels label {
	padding: 10px 20px;
	border: 1px solid #333;
	margin-right: -1px;
	background-color: white;
	transition: background-color 0.3s ease, color 0.3s ease;
	cursor: pointer;
}

#tab1:checked ~ .labels label[for="tab1"], #tab2:checked ~ .labels label[for="tab2"],
	#tab3:checked ~ .labels label[for="tab3"] {
	background-color: #333;
	border-bottom: 1px solid #333;
	color: white;
	font-weight: bold;
}

.tabs .contents {
	border: 1px solid #333;
	padding: 20px;
	background-color: #fff;
}

.tabs .tab-content {
	display: none;
}

#tab1:checked ~ .contents .content1, #tab2:checked ~ .contents .content2,
	#tab3:checked ~ .contents .content3 {
	display: block;
}

@media ( max-width : 768px) {
	.labels {
		font-size: 80%;
	}
}

/* =================================================================== */
/* === CONTAINER ===================================================== */
/* =================================================================== */
.container {
	margin-left: 10%;
	margin-right: 10%;
	font-family: Arial;
	font-size: 18px;
}

.container .selected {
	background: black;
	color: white;
}

.container h1 {
	margin-top: 0px;
	margin-bottom: 0px;
}

.container h2 {
	margin-top: 0px;
	margin-bottom: 0px;
}

.container h4 {
	margin-top: 0px;
	margin-bottom: 5px;
}

.container h5 {
	margin-top: 0px;
	margin-bottom: 5px;
}

.container .horizontal {
	gap: 20px;
}

.container .full-width {
	width: 100%;
}

.container .align-right {
	display: flex;
}

.container .align-center {
	text-align: center;
}

.container .radio-buttons label {
	font-size: 20px;
}

.container .text {
	font-size: 25px;
}

.container .text-size2 {
	font-size: 26px;
}

.container .text-size3 {
	font-size: 30px;
}

.container input[type="text"], .container [type=password], .container [type=datetime-local],
	.container [type=number], .container [type=time], .container select {
	width: 100%;
	height: 40px;
	font-size: 18px;
	font-family: Arial;
}

.container textarea {
	font-size: 18px;
	resize: vertical;
	width: 100%;
	box-sizing: border-box;
	font-family: Arial;
}

@media ( max-width : 768px) {
	.container {
		margin-left: 5%;
		margin-right: 5%;
		font-size: 15px;
	}
	.container .text {
		font-size: 17px;
	}
	.container .text-size2 {
		font-size: 20px;
	}
	.container .text-size3 {
		font-size: 23px;
	}
	.container input[type="text"], .container [type=password], .container [type=datetime-local],
		.container [type=number], [type=time], select {
		height: 30px;
		font-size: 15px;
	}
	.container textarea {
		font-size: 15px;
	}
	.container .horizontal {
		gap: 10px;
	}
}

/* =================================================================== */
/* === SCOREBOARD ==================================================== */
/* =================================================================== */
.scoreboard-body body {
	font-family: sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	width: 100%;
	max-width: 100%;
	height: 100%;
	background: white;
	padding: 0;
}

.scoreboard {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 10px 0;
	overflow: hidden;
}

.score {
	font-size: var(--score-font-size);
	min-width: 0.8em;
	text-align: center;
	font-weight: bold;
	line-height: 1;
}

.dash {
	font-size: var(--score-font-size);
	line-height: 1;
	margin: 0 4px;
}

.control-column {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 0;
}

.control-left {
	margin-right: -8px;
}

.control-right {
	margin-left: -8px;
}

.control-column button {
	width: 60px;
	height: 60px;
	padding: 0;
	font-size: 32px;
	font-weight: bold;
	min-width: auto;
}

.scoreboard-body form {
	margin-top: -50px;
	margin-bottom: 40px;
}

.scoreboard-body form button {
	justify-content: center;
}

@media ( max-width : 900px) {
	.scoreboard-body body {
		height: 100vh;
		justify-content: center;
	}
	.scoreboard {
		margin: 0;
	}
	.control-column button {
		width: 50px;
		height: 50px;
		font-size: 10vh;
	}
	.control-column {
		gap: 1.2vh;
	}
	.control-left {
		margin-right: -6px;
	}
	.control-right {
		margin-left: -6px;
	}
	.scoreboard-body form {
		margin-top: -10px;
		margin-bottom: 20px;
	}
	.scoreboard-body form button {
		align-content: center;
	}
}

@media ( max-width : 900px) and (orientation: portrait) {
	.control-column button {
		width: 30px;
		height: 30px;
		font-size: 3vh;
	}
}