/* https://htmlcolorcodes.com */
/* color.adobe.com */
/* target not empty cells :not(:empty)*/

:root {
	--color-bg: #663366;
	--color-med: #ad89af;
	--color-dark: #281a29;
	--color-light: #efdaf0;
	--color-bright: #f871ff;
	--color-complement: #cbe6b8;
}

html,
body {
	height: 100%;
	margin: 0;
}

html {
	overflow: hidden;
}

body {
	background-color: var(--color-bg);
	color: var(--color-light);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	font-family: "Inter", sans-serif;
	font-optical-sizing: auto;
	font-weight: 600;
	font-style: normal;
	font-size: clamp(11px, 1.5cqw, 20px);
	overflow: hidden;
}

html:has(body.login),
body.login {
	height: 100%;
}

body.login {
	align-items: center;
	display: flex;
	justify-content: center;
}

h1 {
	color: var(--color-dark);
	text-align: center;
}

.titles-credits {
	align-items: center;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	padding: 0 2cqw;
}

.credit .venue,
.credit .organizer {
	font-size: 2rem;
	line-height: 1;
}

.credit,
.caption {
	color: var(--color-med);
	text-align: center;
}

.credit p {
	margin: 0;
}

.credit p + p {
	margin-top: 1rem;
}

.credit .venue {
	color: var(--color-bright);
}

table {
	width: 90%;
	margin: 20px auto;
	border-collapse: collapse;
	font-size: 1.25em;
}

tbody {
	background-color: var(--color-bg);
}

tr {
	/*border-bottom: .5em solid white;*/
}

/** col 1: name **/
tr th:first-of-type,
tr td:first-of-type {
	text-align: left;
	background-color: var(--color-dark);
	border-color: var(--color-dark);
}

/** col 8: avg r 1 & 2 **/
tr th:nth-child(8) {
	max-width: 6em;
	width: fit-content;
	text-wrap: normal;
}

/* cell styles */
th,
td {
	border: 0.25em solid var(--color-dark);
	padding: 0.5em;
	text-align: center;
	transition: color 0.6s ease;
}

th {
	color: var(--color-med);
	background-color: var(--color-dark);
}

tr > th:nth-child(4),
tr > th:nth-child(7),
tr > th:nth-child(8),
tr > th:nth-child(10) {
	width: 4em;
}

tr > td:nth-child(4):not(:empty),
tr > td:nth-child(7):not(:empty),
tr > td:nth-child(11):not(:empty) {
	color: var(--color-bright);
	background-color: var(--color-dark);
}

tr > td:nth-child(8):not(:empty) {
	color: var(--color-complement);
	background-color: var(--color-dark);
	transition: all 0.2s ease;
}

/* footer */
footer {
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	max-height: 30vh;
	margin: 0 3cqw 3cqw;
	transition: all 0.2s ease;
}

/* util */
.up-top {
	justify-content: space-between;
	left: 0;
	margin-top: 1em;
	max-width: 100%;
	position: absolute;
	top: 0;
	right: 0;
}

.space-around {
	justify-content: space-around;
}

.space-around .presented-by p {
	max-width: 20em;
}

/* login */
form input[type="submit"] {
	background: var(--color-dark);
	border: none;
	color: var(--color-light);
	cursor: pointer;
	font-weight: 900;
	font-size: 1.25em;
	text-transform: uppercase;
	display: block;
	width: 100%;
	margin-top: 0.3em;
	padding: 0.25em 1em;
}

form input[type="submit"]:hover {
	background: var(--color-bright);
}

form,
form .input,
form label {
	display: flex;
	align-content: center;
	gap: 1em;
}

form {
	flex-direction: column;
}

form .input {
	justify-content: flex-end;
}

/* cover managed by A1 spreadsheet value */
.lid {
	align-items: center;
	background: var(--color-dark);
	display: flex;
	gap: 20rem;
	justify-content: center;
	position: absolute;
	left: -9999px;
	height: 100%;
	width: 100%;
}

.lid.on {
	left: 0;
}

.lid img {
	display: inline-block;
	max-height: 100%;
	max-width: 100%;
	width: auto;
}

.lid #back-porch {
	max-height: 250px;
}
