.flex{
	align-items: center;
	display: flex;
}
.overflowEllipsis{
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.backgroundImg{
	/* Set to overflow by 1% on all sides to make sure it fully covers the screen. */
	height: 102%;
	left: -1%;
	object-fit: cover;
	object-position: top;
	position: fixed;
	top: -1%;
	width: 102%;
	transition: opacity 1s;
	z-index: -1;
}
.backgroundImg.blur{
	filter: blur(5px);
}
/* Team Onboarding Styles */
:is(#teamGroupBackgrounds, #teamBackgrounds) > img{
	filter: brightness(0.75);
	opacity: 0;
}
#teamGroupBackgrounds:has(~ #teamGroupForm .teamGroup:nth-of-type(1) input[type="radio"]:checked) > img:nth-of-type(1),
#teamGroupBackgrounds:has(~ #teamGroupForm .teamGroup:nth-of-type(2) input[type="radio"]:checked) > img:nth-of-type(2),
#teamGroupBackgrounds:has(~ #teamGroupForm .teamGroup:nth-of-type(3) input[type="radio"]:checked) > img:nth-of-type(3),
#teamGroupBackgrounds:has(~ #teamGroupForm .teamGroup:nth-of-type(4) input[type="radio"]:checked) > img:nth-of-type(4),
#teamGroupBackgrounds:has(~ #teamGroupForm .teamGroup:nth-of-type(5) input[type="radio"]:checked) > img:nth-of-type(5),
#teamGroupBackgrounds:has(~ #teamGroupForm .teamGroup:nth-of-type(6) input[type="radio"]:checked) > img:nth-of-type(6){
	opacity: 1;
}
#teamBackgrounds:has(~ #teamForm .team:nth-of-type(1) input[type="radio"]:checked) > img:nth-of-type(1),
#teamBackgrounds:has(~ #teamForm .team:nth-of-type(2) input[type="radio"]:checked) > img:nth-of-type(2),
#teamBackgrounds:has(~ #teamForm .team:nth-of-type(3) input[type="radio"]:checked) > img:nth-of-type(3),
#teamBackgrounds:has(~ #teamForm .team:nth-of-type(4) input[type="radio"]:checked) > img:nth-of-type(4),
#teamBackgrounds:has(~ #teamForm .team:nth-of-type(5) input[type="radio"]:checked) > img:nth-of-type(5),
#teamBackgrounds:has(~ #teamForm .team:nth-of-type(6) input[type="radio"]:checked) > img:nth-of-type(6),
#teamBackgrounds:has(~ #teamForm .team:nth-of-type(7) input[type="radio"]:checked) > img:nth-of-type(7),
#teamBackgrounds:has(~ #teamForm .team:nth-of-type(8) input[type="radio"]:checked) > img:nth-of-type(8){
	opacity: 1;
}
#headerImgs{
	background: white;
	border-radius: 0px 0px 3em 3em;
	box-shadow: 0px 3px 15px 5px black;
	display: grid;
	grid-template-columns: 1fr 1fr;
	height: 20vh;
	left: 0;
	margin: auto;
	padding: 0em 1em 1em 1em;
	position: fixed;
	right: 0;
	width: fit-content;
	z-index: 2;
}
#headerImgs > img{
	height: calc(20vh - 1em);
	object-fit: contain;
	width: 100%;
}
#headerImgs > img:first-of-type{
	border-right: 1px solid var(--color-light-gray);
	padding-right: 0.5em;
}
#headerImgs > img:last-of-type{
	padding-left: 0.5em;
}
.centerFixed{
	height: fit-content;
	left: 0;
	margin: auto;
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: fit-content;
}
#accessForm{
	display: grid;
	font-size: 2em;
	gap: 1em;
	grid-template-columns: 1fr 1fr;
	max-height: 100px;
}
#accessForm > .form-control{
	border: 3px solid var(--button-background-color);
	border-radius: 0.5em;
}
#accessForm > .mainButton{
	border: 3px solid var(--button-text-color);
	border-radius: 0.5em;
	margin: 0;
}
#teamGroupForm, #teamForm{
	width: 90%;
}
:is(#teamGroupForm, #teamForm) :is(h1, h2),
:is(#teamGroupForm, #teamForm) :is(h1, h2) > span{
	color: white;
	font-family: var(--headline-font);
	text-align: center;
	text-shadow: 2px 1px 5px black;
	overflow-wrap: anywhere;
}
#teamGroups, #teams{
	display: grid;
	gap: 1em;
	justify-items: center;
	margin-top: 1em;
	width: 100%;
}
.team, .teamGroup{
	cursor: pointer;
	text-align: center;
	transition: all 0.5s;
}
#teamGroups:has(input[type="radio"]:checked) .teamGroup:not(:has(input[type="radio"]:checked)),
#teams:has(input[type="radio"]:checked) .team:not(:has(input[type="radio"]:checked)),
.teamGroup:has(input[type="radio"]:disabled),
.team:has(input[type="radio"]:disabled){
	filter: unset;
	opacity: 0.5;
	transform: scale(0.75);
}
:is(.teamGroup, .team):has(input[type="radio"]:disabled){
	cursor: not-allowed;
}
:is(.teamGroup, .team):hover, :is(.teamGroup, .team):has(input[type="radio"]:checked){
	filter: drop-shadow(0px 0px 15px black);
	transform: scale(1.05);
	transform-origin: center;
}
:is(.teamGroup, .team) > img{
	aspect-ratio: 1;
	max-width: 100%;
	transition: filter 0.5s;
	width: 15vw;
}
:is(.teamGroup, .team):has(input[type="radio"]:checked) > img {
    filter: drop-shadow(3px 0px var(--button-background-color))
			drop-shadow(0 3px var(--button-background-color))
			drop-shadow(-3px 0 var(--button-background-color))
			drop-shadow(0 -3px var(--button-background-color))
			drop-shadow(2px 4px 6px black);
}
:is(#teamGroupForm, #teamForm) .mainButton{
	border: 3px solid var(--button-text-color);
	border-radius: 0.5em;
	font-size: 2em;
	left: 0;
	margin: 1em auto auto auto;
	position: absolute;
	right: 0;
	width: fit-content;
}
#teamForm #selectGroupButton{
	right: 300px;
}
#teamForm #selectGroupButton:not([hidden]) + .mainButton{
	left: 300px;
}
/* Actual Team Console Styles */
main{
	display: grid;
	gap: 1em;
	grid-template-columns: 1fr minmax(550px, .67fr);
	height: 100%;
	position: fixed;
	width: 100%;
}
#fullscreenButton {
    border-radius: 0 0 0 0.5rem;
    font-size: 1.5em;
    padding: 0.2rem 0.4rem;
    position: absolute;
    right: 0;
    top: 0;
}
#mediaSection{
	height: calc(100% - 1em);
	overflow: hidden;
	padding-top: 2em;
	position: relative;
}
#teamLogo{
	aspect-ratio: 1;
	left: 1em;
	object-fit: contain;
	position: absolute;
	width: 150px;
	z-index: 1;
}
#teamName, #waitingMessage{
	color: white;
	display: flex;
	flex-direction: column;
	font-size: 3em;
	height: 90px;
	justify-content: flex-end;
	left: calc(150px + 1em);
	max-width: calc(100% - 150px - 1em);
	position: relative;
	text-shadow: 2px 1px 5px black;
}
#teamName > small{
	font-size: 0.5em;
}
img#aiIcon {
	aspect-ratio: 1;
	bottom: 0;
	cursor: pointer;
	left: 1em;
	object-fit: contain;
	position: absolute;
	width: 125px;
	z-index: 1;
}
img#aiIcon.glow{
	animation: 1s alternate infinite ease-in ai-icon-glow;
}
@keyframes ai-icon-glow{
	from{
		filter: drop-shadow(3px 0px 3px var(--button-background-color)) drop-shadow(0px 3px 3px var(--button-background-color)) drop-shadow(-3px 0px 3px var(--button-background-color)) drop-shadow(0px -3px 3px var(--button-background-color));
	}
	to{
		filter: drop-shadow(0px 0px 0px var(--button-background-color));
	}
}
#waitingMessage{
	bottom: 0;
	left: 0;
	height: fit-content;
	margin: auto;
	position: absolute;
	right: 0;
	text-align: center;
	top: 0;
	width: fit-content;
}
#mediaContainer{
	border: 3px solid white;
	border-radius: 1em;
	height: calc(100% - 3em - 55px);
	margin-left: 3em;
	overflow: hidden;
	position: relative;
	width: calc(100% - 3em);
}
#mediaContainer > :is(div, img, iframe, section, video) {
	background: black;
	border-radius: 0.75em;
	height: 100%;
	left: 0;
	object-fit: contain;
	position: absolute;
	top: 0;
	width: 100%;
}
#mediaContainer > div{
	background: rgb(255 255 255 / 80%);
	font-size: 1.2em;
	overflow-y: auto;
	padding: 50px 1em 1em;
}
#mediaContainer > div *{
	color: black;
}
#mediaContainer > div:has(.loader){
	background: black;
}
#mediaContainer > :is(#aiSection, #poolSection){
	background: white;
	border: 6px solid var(--button-background-color);
	font-size: 1.1em;
	padding: 1em;
	z-index: 1;
}
#poolDataContainer{
	max-height: calc(100% - 3em);
	overflow-y: auto;
	padding-right: 0.5em;
}
#poolDataEmptyMessage{
	height: fit-content;
	inset: 0;
	margin: auto;
	position: absolute;
	text-align: center;
	width: 95%;
}
.poolData{
	align-items: center;
	border-bottom: 1px solid darkgray;
	display: grid;
	gap: 1em;
	grid-template-columns: auto 1fr auto;
	padding: 0.5em 0;
}
.poolDataIcon{
	aspect-ratio: 1;
	height: 100px;
	width: 100px;
}
img.poolDataIcon{
	border: 3px solid var(--button-background-color);
	border-radius: 0.5em;
	object-fit: cover;
}
i.poolDataIcon::before{
	display: block;
	font-size: 5.5em;
	text-align: center;
}
#mediaContainer > #aiSection {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
#aiMessages{
	display: flex;
	flex-direction: column;
	gap: 1em;
	height: 100%;
	margin-bottom: auto;
	overflow-y: auto;
	padding-bottom: 1em;
	padding-right: 1em;
}
#aiMessages > :is(.assistantMessage, .userMessage){
	border: 1px solid lightgray;
	border-radius: 0.5em;
	max-width: 80%;
	padding: 0.25em;
}
#aiMessages > .assistantMessage{
	align-self: flex-start;
}
#aiMessages > .userMessage{
	align-self: flex-end;
	white-space: pre-wrap;
}
#aiMessages > #thinkingMessage{
	display: flex;
	gap: 3px;
	height: 40px;
	justify-content: center;
	min-height: 40px;
	width: 75px;
}
@keyframes thinking{
    50%{
        transform: scale(1.3);
    }
}
#aiMessages > #thinkingMessage > .thinkingDot{
	animation: thinking 1s infinite;
	font-size: 3em;
	line-height: 0;
	transform-origin: bottom;
}
#aiMessages > #thinkingMessage > .thinkingDot:nth-of-type(2){
	animation-delay: 0.333s;
}
#aiMessages > #thinkingMessage > .thinkingDot:nth-of-type(3){
	animation-delay: 0.667s;
}
#aiMessageForm{
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 1em;
}
#aiMessageForm > hr{
	grid-column: 1 / 3;
}
#aiText{
	grid-row: 2 / 4;
	max-height: 100px;
}
#aiMessageForm > button{
	margin: 0;
	padding: 4px;
}
#mediaContainer > :is(#teamBackground, #static){
	object-fit: cover;
}
#closeMedia{
	background: rgba(255, 255, 255, 30%);
	border-radius: 0.5rem;
	color: var(--bs-red);
	cursor: pointer;
	display: none;
	font-family: 'FontAwesome', 'Ubuntu', sans-serif;
	font-size: 2em;
	line-height: 1;
	position: absolute;
	right: 0.75rem;
	text-align: center;
	top: 0.75rem;
	width: 32px;
	z-index: 1;
}
:is(#userVideo, #htmlDiv, #poolSection, #aiSection, #consoleVideo, #consoleFrame, #consoleImg):not([hidden]) ~ #closeMedia{
	display: block;
}
#static{
	opacity: 0.1;
}
#launchButton, #startCamera, #startScreen, #switchTeam{
	border: 2px solid var(--button-text-color);
	border-radius: 0.375em;
	bottom: 1em;
	font-size: 1.5em;
	left: 1em;
	max-width: calc(100% - 2em);
	padding: 6px;
	position: absolute;
	right: 1em;
	width: fit-content;
}
#aiIcon ~ #mediaContainer #launchButton{
	left: 4em;
}
#startCamera, #startScreen{
	bottom: 5em;
}
#startScreen{
	left: 11.75em;
}
#switchTeam{
	bottom: unset;
	left: 150px;
	max-width: calc(100% - 150px);
}
#dataSection{
	background: rgba(0, 0, 0, 80%);
	border-radius: 1em;
	display: flex;
	flex-direction: column;
	gap: 1em;
	margin: 1em 1em 1em 0em;
	overflow: hidden;
	padding: 1em;
}
#teamSwitchContainer{
	color: white;
	display: contents;
	font-family: var(--headline-font);
	font-weight: var(--headline-font-weight);
	font-size: 1.5em;
	overflow: hidden;
	text-wrap: nowrap;
	white-space: nowrap;
}
#teamSwitchContainer > label.unread{
	animation: 1s alternate ease-in-out infinite red-white-glow;
	color: red;
}
@keyframes red-white-glow{
	from{
		text-shadow: 0px 0px 3px red;
	}
    to{
        text-shadow: 0px 0px 3px #ff8888;
    }
}
#teamSwitchContainer > div{
	color: inherit;
	font-family: inherit;
	margin-right: 0;
}
#teamSwitch{
	background-color: black;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
	border-color: black;
	filter: invert(1);
}
#teamSwitchContainer + #missionClock{
	float: right;
}
#missionClock{
	align-self: flex-end;
	border: 2px solid white;
	border-radius: 0.375em;
	color: white;
	display: flex;
	gap: 0.5em;
	overflow: visible;
	padding: 0.375em;
	position: relative;
}
#missionClock > span{
	color: inherit;
}
#leaderboardLink{
	border-radius: 0.25em;
	padding: 0 0.5em;
}
#leaderboardLink:hover{
	filter: brightness(1.25);
}
#leaderboardDialog{
	min-width: 500px;
}
#leaderboardTable{
	min-height: 100px;
}
#leaderboardTable thead th{
	padding: 2px 4px;
}
#leaderboardTable .groupCell{
	vertical-align: top;
}
#leaderboardTable .endedFeedTitleSpan{
	display: block;
}
:is(#dataSection, .teamData) h2{
	color: var(--button-background-color);
}
.teamDataTitle{
	align-items: center;
	display: flex;
	gap: 0.25em;
	justify-content: space-between;
}
.titleSpan{
	color: inherit;
	display: inline-block;
	font-family: inherit;
	max-width: calc(100% - 100px);
	vertical-align: text-bottom;
}
#dataSection:has(#teamSwitch:checked) #teamChat{
	display: none;
}
#dataSection:has(#teamSwitch:not(:checked)) :is(#teamDataOptions, .teamData, #dataEmptyPoolMessage){
	display: none;
}
#dataEmptyPoolMessage{
	color: white;
	cursor: pointer;
	text-align: center;
}
#teamDataSelect{
	margin-bottom: .25rem;
}
#viewPoolButton{
	border: 2px solid var(--button-text-color);
	margin: 0 0 .25rem 1rem;
	padding: 5px 8px;
	position: relative;
	white-space: nowrap;
}
#viewPoolButton:first-child{
	margin: 0;
	width: 100%;
}
#poolBadge{
	aspect-ratio: 1;
	background: var(--button-text-color);
	border-radius: 100%;
	color: var(--button-background-color);
	display: block;
	height: 25px;
	outline: 2px solid var(--button-background-color);
	position: absolute;
	right: -12.5px;
	top: -12.5px;
	width: 25px;
}
.closeDialogButton{
	background: transparent;
	color: red;
	font-family: 'FontAwesome', sans-serif;
	font-size: 2em;
	position: absolute;
	right: 1rem;
	top: 0.25em;
}
#openDataFeedDialog{
	color: var(--button-background-color);
	cursor: pointer;
	font-size: 2.25em;
	margin-left: 1rem;
}
#dataFeedDialog {
	align-items: center;
	background: transparent;
	border: none;
	flex-wrap: nowrap;
	gap: 2em;
	height: 100%;
	justify-content: space-around;
	width: 100%;
}
#dataFeedDialog[open]{
    display: flex;
}
#dataFeedDialog::backdrop{
	background: rgba(0, 0, 0, 0.7);
}
#dataFeedDialog h2 {
    filter: drop-shadow(2px 4px 6px black);
}
#closeDataFeedDialog {
	color: var(--button-background-color);
	cursor: pointer;
	filter: drop-shadow(2px 4px 6px black);
	font-size: 3em;
	position: absolute;
	right: 1rem;
	top: 1rem;
}
.teamData, #teamChat{
	height: calc(100% - 40px - 1em);
	transition: 0.5s opacity;
}
.teamData.fadeOut{
	opacity: 0;
}
#teamDataOptions:not([hidden]) ~ .teamData{
	height: calc(100% - 80px - 2em);
}
.teamData .fa-satellite{
	transform: rotateZ(-90deg);
	transform-origin: center;
}
.dataNotes{
	border: 1px solid var(--button-text-color);
	border-radius: 0.25em;
	padding: 4px 12px;
	&:hover{
		transform: none;
	}
}
img.dataIcon{
	aspect-ratio: 1;
	border: 2px solid var(--button-background-color);
	border-radius: 0.5rem;
	height: 75px;
	object-fit: cover;
	width: 75px;
}
.teamData:has(img.dataIcon) .dataTableForm{
	height: calc(100% - 1em - 75px);
}
.dataTableForm{
	height: calc(100% - 1em - 35px);
	overflow: auto;
}
.dataTable{
	background: rgba(var(--footer-background-rgb), 80%);
	border: none;
    color: var(--footer-text-color);
	position: relative;
	width: 100%;
}
.dataTable thead{
	position: sticky;
	top: 0px;
	z-index: 1;
}
.dataTable th {
    background: var(--footer-background-color);
    color: var(--footer-text-color);
	white-space: pre-line;
}
.dataTable input{
	min-width: 75px;
}
.dataTable .form-control:disabled{
	background: transparent;
	color: var(--footer-text-color);
}
.dataTable .form-floating{
	font-size: 1.2em;
}
.dataTable .form-floating > .form-select{
	font-size: 1em;
	height: calc(3.5em + 2px);
}
.dataTable :is(td, th){
	border: 2px solid var(--color-orange);
	border-top: 0;
	border-bottom: 0;
}
.dataTable :is(td, th):first-child{
	border-left: none;
}
.dataTable :is(td, th):last-child{
	border-right: none;
}
.dataTable tbody tr{
	border: 1px solid var(--button-background-color);
	border-left: none;
	border-right: none;
}
.dataTable tbody tr:is(.even, :nth-child(even)){
	background-color: rgba(var(--footer-background-rgb), 15%);
}
.dataTable tbody tr.currentRow {
    box-shadow: inset 0px 0px 15px 2px var(--button-background-color);
}
.dataTable tbody :is(td, th) {
    padding: 8px 6px;
	position: relative;
}
.dataTable :is(iframe, img, video) {
	cursor: pointer;
    max-height: 100%;
	max-width: 250px;
    object-fit: contain;
    width: 100%;
}
.dataTable i.playConsoleVideoIcon{
	bottom: 0;
	color: var(--button-background-color);
	cursor: pointer;
	font-size: 2.5vw;
	height: min-content;
	left: 0;
	margin: auto;
	position: absolute;
	right: 0;
	top: 0;
	width: min-content;
}
.dataTable tfoot td{
	padding: 0px;
}
.dataTable tfoot td .sendData{
	padding: 5px;
	width: 100%;
	&:hover{
		transform: none;
	}
}
#chatBox{
	display: flex;
	flex-direction: column;
	gap: 1em;
	height: calc(100% - 95px - 1em - 0.5rem);
	overflow: auto;
}
#chatBox.scrollShadow{
	box-shadow: 0px 10px 8px -10px black;
}
#chatBox > pre{
	border-radius: 0.5em;
	color: var(--footer-text-color);
	font-family: var(--body-font);
	font-size: 1em;
	max-width: 75%;
	overflow: visible;
	overflow-wrap: break-word;
	padding: 0.25em;
	text-wrap: wrap;
	white-space: normal;
}
#chatBox > pre.receivedMessage{
	align-self: flex-start;
	background: rgba(var(--footer-background-rgb), 60%);
}
#chatBox > pre.sentMessage{
	align-self: flex-end;
	background: rgba(var(--footer-background-rgb), 90%);
}
#messageBoxContainer{
	align-items: flex-end;
	display: flex;
	gap: 1em;
	margin-top: 1em;
}
#sendButton{
	border: 1px solid var(--button-text-color);
	border-radius: 0.5em;
	margin: 0;
	padding: 6px;
	width: 100px;
}