
:root, body {
	display: flex;
	place-items: center;
	place-content: center;
	margin: 0;
	padding: 0;
	min-height: 100%;
	min-width: 100%;
	text-align: center;
	flex-direction: column;
	flex-grow: 1;
	box-sizing: border-box;
	color: rgb(63, 68, 68);
}

body {
	line-height: 1.5;
	font-family: sans-serif;
	padding: 1em;
}

body > * {
	flex-shrink: 0;
}

a:not(:hover) {
	text-decoration: none;
}

.header {
	display: flex;
	flex-direction: column-reverse;
	justify-content: center;
	place-self: end;
}

.body {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	place-items: center;
	max-width: 1080px;
	font-size: 1.2em;
}

.main-message {
	border-radius: 2em;
	background: white;
	border: 3px solid;
	align-self: center;
	padding: .25em 1em;
	font-weight: bold;
	font-size: 1.3rem;
}

.content {
	place-self: stretch;
}

.mgto {
	height: 2em;
}

.bg-ready .overlay-outline {
	--outline-color: #000;
	position: relative;
}

.bg-ready .overlay-outline::after {
	content: "";
	position: absolute;
	inset: var(--outline-inset, 0);
	box-shadow: 0 0 3rem #000, 0 0 5rem #000;
	outline: .5rem solid var(--outline-color);
	mix-blend-mode: overlay;
	z-index: -1;
	border-radius: inherit;
}

.banner {
	margin-top: 2em;
	align-self: center;
	position: relative;
	display: flex;
	width: 80%;
	border-radius: 2em;
}

.banner img {
	max-width: 100%;
	border-radius: inherit;
	border: 3px solid;
	box-sizing: border-box;
}

html::after {
	content: "";
	display: block;
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	background: url(files/banner-pt.jpg) bottom / 250% 130% fixed;
	filter: blur(100px) saturate(4) brightness(1.2);
	z-index: -2;
}

.rightGroup {
	--outline-inset: -3px;
	--outline-color: rgba(0, 0, 0, .4) !important;
	font-size: 1.2em;
	background: currentColor;
	border: 3px solid;
	border-radius: 1em;
	display: flex;
	line-height: 2;
	gap: 3px;
	position: relative;
}

.rightGroup > * {
	background: white;
	color: inherit;
	font-weight: bold;
	padding: 0 .5em;
	text-decoration: none;
}

.rightGroup > :hover {
	background: rgb(65, 182, 230);
  	color: white;
}

.rightGroup > .logout:hover {
	background: rgb(218, 41, 28);
}

.rightGroup > :first-child {
	border-radius: calc(1em - 3px);
	border-top-right-radius: 0;
  	border-bottom-right-radius: 0;
	padding-left: .75em;
}

.rightGroup > :last-child {
	border-radius: calc(1em - 3px);
	border-top-left-radius: 0;
  	border-bottom-left-radius: 0;
	padding-right: .75em;
}

.footer {
	margin-top: 1em;
}

#title {
	font-size: 1.5em;
	margin: 1em 0;
}

#itemList {
	list-style: none;
	margin: 0;
	padding: 0;
}

#itemList:lang(zh-hant) {
	letter-spacing: .2em;
}

#itemList li {
	font-size: 1.2em;
	margin: .7em 0;
	text-align: center;
}

#loginForm {
	text-align: center;
	margin: 1em 0;
}

#loginForm input {
	font-size: 1em;
}

#appList {
	position: relative;
	border: 3px solid;
	border-radius: 1em;
	margin: 2em auto;
	white-space: nowrap;
	border-collapse: separate;
	border-spacing: 0;
}

#appList tbody {
	border-radius: calc(1em - 3px);
	overflow: clip;
}

#appList::before {
	background: white padding-box;
	content: "";
	inset: 0;
	position: absolute;
	z-index: -1;
	border-radius: inherit;
	border: 3px solid transparent;
}

#appList #new {
	font-size: 1.2em;
}

#appList .item {
	padding: .5em 1em;
	display: flex;
	text-align: center;
	flex-direction: column;
	align-items: center;
	border: 1px solid;
	border-radius: .25em;
	max-width: 12em;
}

#appListWrapper {
	max-width: 100vw;
}

#appList td,
#appList th {
	padding: .4em .8em;
	text-align: center;
	border: 1px solid;
}

#appList th {
	background: rgb(251, 225, 34) padding-box;
	border-top: 0;
}

#appList tr:last-child td {
	border-bottom: 0;
}

#appList tr > :first-child {
	border-left: 0;
}

#appList tr > :last-child {
	border-right: 0;
}

#appList .item .no {
	font-weight: bold;
	font-size: 1.1em;
}

#appList .item .label {
	text-decoration: underline;
}

#appList .item .sub {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: .35em 0;
}


.content {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.group {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	row-gap: 2em;
	margin: 2em;
}

.group:lang(zh) {
	font-size: 1.3em;
}

@media not (min-width: 512px) {
	body {
		padding: 1em 0;
	}

	.header {
		place-self: center;
		margin-top: 1em;
	}

	.body {
		max-width: none;
	}

	.banner {
		width: 90%;
		margin-top: 3em;
	}

	.rightGroup {
		font-size: .8em;
	}

	.rightGroup .username {
		display: none;
	}

	.content {
		overflow: auto;
  		padding: 1em 0;
	}

	.main-message {
		font-size: 1rem;
	}

	.group {
		row-gap: 0;
		align-items: stretch;
		margin: 0 2em;
		font-size: .8em;
	}

	.group > div {
		display: contents !important;
		line-height: 1.2;
	}

	.group:lang(zh) {
		font-size: 1em;
	}

	.group .spotlight-button {
		padding-block: .75em;
	}
}