body {
	overflow: clip;
}

#preGame {
	display: flex;
	flex-direction: column;
	height: 100vh;
}

#unofficialFooter {
	display: inline-block;
	text-align: center;
	width: 100vw;
	background-color: var(--theme-shadow);
	backdrop-filter: blur(var(--theme-shadow-blur));
	border-top: 2px var(--theme-border-color) solid;
	line-height: 1.75em;
}

main {
	flex-grow: 1;
	display: flex;
	overflow: auto;
}
#mainMenu {
	flex-direction: row-reverse;
}
#lobbyMenu {
	display: none;
}

#lobbies {
	min-width: 15em;
	width: 100%;
	flex-basis: 0;
	background-color: var(--theme-shadow);
	backdrop-filter: blur(var(--theme-shadow-blur));
	border-right: 2px var(--theme-border-color) solid;
	display: flex;
	flex-direction: column;
}
@media (horizontal-viewport-segments: 2) and (device-posture: folded) {
	#lobbies {
		flex-basis: env(viewport-segment-bottom 0 0);
	}
}
#lobbies > header {
	position: relative;
	text-align: center;
	padding: .15em;
	border-bottom: 2px solid var(--theme-border-color);
}
#lobbies > footer {
	position: relative;
	text-align: center;
	padding: .15em;
	border-top: 2px solid var(--theme-border-color);
}
#lobbyListHolder {
	flex-grow: 1;
	overflow-y: scroll;
	position: relative;
}
#lobbyList {
	all: unset;
	box-sizing: border-box;
}
#lobbyList:empty::before, #lobbyList:-moz-only-whitespace::before {
	content: attr(data-message);
	line-height: normal;
	text-align: center;
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	filter: opacity(75%);
	width: 100%;
}
.lobby {
	position: relative;
	padding: .2em;
	border-bottom: 2px solid var(--theme-border-color);
}
.lobby h2 {
	all: unset;
	display: block;
}
.lobbyUserIcon {
	height: .8em;
}
.lobbyJoinBtn {
	position: absolute;
	bottom: .5em;
	right: .5em;
}

#centeredDiv {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 5vh;
	align-items: center;
	text-align: center;
	justify-content: center;
	flex-basis: 100%;
}

#mainLogoHolder {
	min-height: 25vh;
	max-height: 35vh;
	flex-grow: 1;
	pointer-events: none;
}
#mainLogo {
	position: relative;
	top: 50%;
	transform: translateY(-50%);
	max-width: 100%;
	max-height: 100%;
	filter: drop-shadow(0 .2em 0.3em black);
}

#centerRoomCode {
	line-height: 1.75em;
	z-index: 10; /* puts it above the hover cards */

	background-color: var(--theme-shadow);
	backdrop-filter: blur(var(--theme-shadow-blur));
	border: 2px var(--theme-border-color) solid;
	border-radius: 1em;
	padding: .5em 1em;
	margin: 0 auto;
	width: fit-content;
}

h1, legend {
	font-weight: bold;
}

#roomCodeRefresh, #xkcdRoomCode {
	width: 2em;
}
#xkcdRoomCode {
	display: none;
}

#waitingBtnSpan {
	display: flex;
	justify-content: space-evenly;
}
#loadingScreenMessage {
	width: 100%;
	text-align: center;
	white-space: pre;
	text-shadow: var(--theme-text-shadow);
	max-width: max-content;
	z-index: 10; /* lift it above the hover cards */
}

#mainNavigation {
	width: 100%;
	min-height: 5em
}

#rulesButton {
	border-radius: .5em;
	padding: .2em .4em;
	margin: 0 auto;
}

#gameFrame {
	display: block;
	border: none;
	width: 100vw;
	height: 100vh;
	visibility: hidden;
}