.surround,
.surround * {
	margin: auto;
}

.surround {
	justify-content: flex-start;
	align-items: flex-start;
	margin-top: 1rem;
	display: flex;
	flex-direction: column;
}

.surround .question {
	font-weight: bold;
	margin-bottom: 0.5rem;
	font-size: 1.2rem;
	text-decoration: underline;
}

a:visited {
	color: blue;
}

.notloggedin {
	background-color: red;
}

.turfail {
	background-color: #FF1F2E;
}

.notloggedin,
.emptyturitem,
.turfail,
.turitem {
	padding: 0.7rem;
}

.turitem:hover {
	cursor: pointer;
	background-color: rgb(255, 153, 0);
}

.formhead {
	font-weight: bold;
	padding-bottom: 0.5rem;
}

#metacontent {
	overflow: hidden;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
}

#imcontent {
	display: block;
	height: 100%;
	overflow: auto;
	width: 100%;
}

#headbar {
	border-bottom: thin solid lightgray;
	overflow: hidden;
	display: flex;
	flex-direction: row;
	text-align: center;
	top: 0;
	right: 0;
	left: 0;
	width: 100%;
	background: rgb(251, 251, 251);
	z-index: 3;
	position: fixed;
	height: 12vh;
	min-height: 50px;
	max-height: 100px;
}

.headdiv {
	margin: 0;
	display: block;
	padding: 0;
	flex-shrink: 1;
	flex-grow: 1;
	max-width: 100%;
	max-height: 100%;
	color: rgb(255, 153, 0);
	font-weight: bold;
	font-size: 2rem;
	align-self: center;
	text-align: center;
	vertical-align: middle;
}

#content > * {
	width: 100%;
}

#content * {
	flex-shrink: 0;
	margin-left: auto;
	margin-right: auto;
}

#content {
	min-height: 100%;
	height: auto;
	margin: auto;
	width: auto;
	width: -moz-fit-content;
	width: -webkit-fit-content;
	width: fit-content;
	max-width: 80rem;
	background-color: var(--bgcolor);
	align-items: center;
	overflow: hidden;
	padding: 0.5rem;
}

* {
	box-sizing: border-box;
}

html {
	overflow: hidden;
	font-family: Roboto, Arial;
	width: 100%;
	height: 100%;
}

body {
	overflow: hidden;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
}

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

a.back {
	margin: 2rem auto 2rem auto;
}

form input[type="number"] {
	width: 6rem;
}

@media screen and (max-width:700px) {
	#content {
		min-width: unset;
	}

	body {
		overflow: auto;
	}

	#metacontent {
		display: inline-flex !important;
		height: auto;
		min-height: 100%;
	}

	#imcontent {
		height: auto;
		min-height: 100%;
		overflow: visible hidden !important;
	}
}
