﻿main {
	height: calc(100vh - 1.25em - 5px); /*Header*/
	max-height: calc(100vh - 1.25em - 5px); /*Header*/
	overflow: clip;
	width: 100%;
	display: grid;
	background-color: var(--accent-color);
	grid-template-columns: minmax(300px, 1fr) 3.75fr;
	grid-template-rows: minmax(230px, 1fr) minmax(25%, 250px);
	grid-gap: 5px;
}

#subveil 
{
	height: 100%;
	max-height: 100vh;
	overflow: clip;
}

.z {
}

main > section {
	background-color: var(--content-color-2);
}

/*#region General */

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	text-align: center;
}

.hidden {
	display: none;
}

.center-text {
	text-align: center;
}

.card-line {
	margin-bottom: 5px;
	max-width: 250px;
	margin: auto;
}

table button {
	width: 100%;
	height: 100%;
}

/*#endregion */

/*#region Meta Pane */
#metaPane {
	grid-column: 1 / 2;
	grid-row: 1 / 3
}

#metaPane_tab_Story {
	display: none;
}

.z {
}

#metaPane ul {
	margin: 0;
}

#metaPane_pgc {
	border: none;
	background-color: var(--content-color);
}

.z {
}

#metaPane_pgc table {
	background-color: var(--content-color-2);
}

#metaPane_pgc caption {
	background-color: var(--accent-color);
	color: var(--heading-color);
	font-size: 1.1em;
}

#metaPane_ts .tab-strip-tab {
	height: auto;
}

.caption-content {
	display: grid;
	grid-template-columns: 1fr auto;
}

#currentGameMetaCard table {
	border: none;
}

#currentGameMetaCard th {
	min-width: 75px;
	word-break: keep-all;
	padding-right: 4px;
	vertical-align: baseline;
}

#currentGameTableBody td, #currentGameTableBody th {
	border-top: none;
	border-left: none;
	border-right: none;
}

#metaPane_page_World button, #metaPane_page_World input[type="button"] {
	min-height: 30px;
}

#metaPane_page_Player.selected, #metaPane_page_Inventory.selected {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

#prebuiltGamesList {
	padding-left: 0px;
}

.z {
}

#prebuiltGamesList li {
	margin-top: 5px;
	margin-bottom: 5px;
	display: flex;
}

#prebuiltGamesList button {
	border-radius: 25px;
	margin-left: auto;
	margin-right: auto;
}

#BodyTBody tr:not(.shown) {
	display: none;
}

.bag-item {
	display: flex;
	min-height: 30px;
	align-items: center;
	width: 90%;
	justify-content: center;
}

#bagList li {
	margin-top: 5px;
	margin-bottom: 5px;
}
/*#endregion */

/*#region Console */
#consolePane {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-left: 5px;
	padding-right: 5px;
}

#consoleOutput {
	overflow-y: auto;
}

.z {
}

#consoleOutput > ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

#consoleOutput li {
	margin-top: 3px;
}

#consoleOutput .user-input {
	font-style: italic;
	margin-top: 10px;
}

#consoleForm {
	margin-top: 5px;
	margin-bottom: 2px;
}

#consoleInputLabel {
	flex-grow: 0;
	word-break: break-all;
}

#consoleInput {
	flex-grow: 1;
	height: 1.5em;
	border-radius: 20px;
	padding-left: 10px;
}

#consoleSubmit {
	margin-left: 5px;
	align-self: stretch;
	border-radius: 20px;
}
/*#endregion */

/*#region Story */
#storyPane {
	padding: 5px;
}

.z {
}

#storyPane p {
	margin-bottom: 1.5em;
}

mark {
	background-color: var(--accent-color);
	color: var(--heading-color);
	font-weight: bold;
}

#storyContent {
	height: 100%;
	overflow-y: auto;
}

.z {
}

#storyContent.loaded {
	max-width: 1100px;
}

.story-info {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 1000px;
	margin: auto;
}

.z {
}

.story-info .inline-banner {
	flex-direction: column;
}
/*#endregion */

/* Pages.DungeoneerInterface.MINI_THRESHOLD */
@media (max-width: 800px) {
	main {
		grid-template-columns: 0px 1fr;
	}

	.z {
	}

	#metaPane {
		visibility: hidden;
	}

	#metaPane_tab_Story {
		display: block;
	}

	main.meta {
		grid-template-columns: 1fr 0px;
	}

	.z {
	}

	main.meta #metaPane {
		visibility: visible;
	}

	main.meta #consolePane, main.meta #storyPane {
		display: none;
	}
}
