@charset "UTF-8";

.screen-container {
	border-style: ridge;
	border-radius: 2px;
	border-width: 4px;
	padding-top: 24px !important;
	position: relative;
}

.document-container:not(:first-of-type),
.screen-container:not(:first-of-type) {
	margin-top: 24px;
}

.screen-container .button {
	border-style: outset;
	border-width: 2px;
	border-radius: 4px;
	cursor: pointer;
	display: block;
	padding: 4px 8px;
	transition: opacity 0.16s;
}
.screen-container .button.disabled {
	cursor: not-allowed;
	opacity: 0.5 !important;
}
.screen-container .button:not(.disabled):active {
	border-style: inset;
}
.screen-container .button.selected {
	border-style: inset !important;
}

.screen-container :not(details).button,
.screen-container details.button summary {
	cursor: pointer;
}

.screen-container .link {
	font-weight: bold;
	opacity: 0.75;
	transition: background-color 0.16s, opacity 0.16s;
	vertical-align: baseline;
}
.screen-container .link:hover {
	opacity: 1;
}

.screen-container-controls,
.screen-container-name {
	display: inline-block;
	position: absolute;
	padding: 4px 8px !important;
	top: calc(-0.75em - 10px);
}

.screen-container-controls {
	right: 8px;
}
.screen-container-controls img {
	height: 1em;
	width: 1em;
	vertical-align: baseline;
}

.screen-container-name {
	font-weight: bold;
	left: 8px;
}

.screen-container .screen-item {
	transition: opacity 0.16s;
}

.screen-item:not(:last-of-type) {
	margin-bottom: 8px;
}

.screen-description {
	opacity: 0.75;
}

.screen-subcontainer-label {
	font-weight: bold;
	opacity: 0.5;
	text-align: center;
	text-transform: uppercase;
}

.screen-subcontainer[open] .screen-subcontainer-label {
	margin-bottom: 8px;
}

.screen-subcontainer {
	border-radius: 4px;
	border-style: solid;
	border-width: 2px;
	padding: 8px;
	transition: opacity 0.16s;
}

.screen-subcontainer:not(:last-of-type) {
	margin-bottom: 8px;
}

.screen-subcontainer summary {
	cursor: pointer;
	opacity: 0.5;
	text-align: center;
	transition: opacity 0.16s;
}
.screen-subcontainer summary:hover {
	opacity: 0.75;
}

.screen-subcontainer.left summary {
	text-align: left;
}

.mobile .screen-subcontainer {
	padding: 12px;
}

.mobile .screen-subcontainer[open] .screen-subcontainer-label {
	margin-bottom: 16px;
}

/* Status ********************************************************************/
.status-attribute {
	display: inline-block;
	overflow: hidden;
	width: 50%;
}

.status-attribute-name {
	display: inline-block;
	min-width: 128px;
	opacity: 0.75;
}

.status-attribute-value {
	display: inline-block;
	min-width: 60px;
	width: 25%;
}

.status-attributes {
	display: inline-block;
	margin-top: 8px;
	min-width: 256px;
	width: 100%;
}

.status-bar {
	display: inline-block;
	width: 100%;
}

.status-bar-name {
	display: inline-block;
	width: 25%;
	opacity: 0.75;
}

.status-bar-value {
	display: inline-block;
	width: 75%;
}

.status-bar-value .bar-empty,
.status-bar-value .bar-full {
	display: inline-block;
	height: 10px;
	vertical-align: middle;
	width: 4.15%;
}
.status-bar-value .bar-empty {
	border: 1px solid;
	opacity: 0.5;
}

.status-bars {
	display: inline-block;
	margin-top: 8px;
	width: 100%;
}

.status-class {
	display: inline-block;
	margin-left: 8px;
	width: 160px;
}

.status-effect {
	display: inline-block;
	margin-left: 8px;
	width: 160px;
}

.status-effects {
	margin-top: 8px;
}

.status-general > div:not(.screen-container-name) {
	display: inline-block;
	width: 100%;
}
.status-general > div:not(.screen-container-name) > div {
	display: inline-block;
}
.status-general > div:not(.screen-container-name) > div:first-child {
	min-width: 128px;
	opacity: 0.75;
	width: 25%;
}

.status-portrait {
	display: block;
	float: left;
}

.status-summary {
	display: inline-block;
	min-width: 256px;
	width: 40%;
}

.status-race,
.status-sex,
.status-attribute:nth-of-type(1),
.status-attribute:nth-of-type(2),
.status-attribute:nth-of-type(3),
.status-attribute:nth-of-type(4) {
	margin-bottom: 2px;
}

.status-personality {
	border-collapse: separate;
	border-radius: 4px;
	border-spacing: 0 2px;
	border-style: solid;
	border-width: 2px;
	margin-top: 8px;
	padding: 0;
    width: 100%;
}
.status-personality td {
	padding: 2px 8px;
}
.status-personality td:first-of-type,
.status-personality td:last-of-type {
	min-width: 128px;
	opacity: 0.75;
	width: 25%;
}
.status-personality td:nth-of-type(2) {
	text-align: center;
}
.status-personality td:last-of-type {
	text-align: right;
}

.status-personality tbody tr:nth-of-type(odd) {
	background-color: rgba(255, 255, 255, 0.05);
}
.status-personality tbody tr:nth-of-type(even) {
	background-color: rgba(0, 0, 0, 0.05);
}
.status-personality .scale-empty,
.status-personality .scale-full {
	display: inline-block;
	vertical-align: middle;
	width: 4%;
}
.status-personality .scale-empty {
	border: 1px solid;
	height: 0px;
}
.status-personality .scale-empty:nth-of-type(even) {
	opacity: 0.5;
}
.status-personality .scale-full {
	border: 5px solid;
	border-radius: 5px;
}

/* Item ***********************************************************************/
.item-screen .item-filters {
	padding-right: 0px !important;
	padding-top: 0px !important;
}

.item-screen .item-filters a {
	display: inline-block;
	margin-top: 8px;
}
.item-screen .item-filters a:not(:last-child) {
	margin-right: 8px;
}

.item-screen .item-filters a span {
	display: none;
}
.item-screen .item-filters a.selected span {
	display: inline;
}

/* Document *******************************************************************/
.document-screen {
	position: relative;
}

.document-container {
	background-color: #000000;
	border: none;
	color: #ffffff;
	display: block;
	overflow: auto;
	padding: 0;
	position: relative;
}

.document-container .document-image {
	background-repeat: no-repeat;
	display: block;
	height: 600px;
	margin-bottom: 1px;
	width: 800px;

	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.document-container .marker {
	background-image: url("/tex/marker.gif");
	background-repeat: no-repeat;
	cursor: none;
	display: block;
	height: 16px;
	margin-left: -8px;
	margin-top: -8px;
	position: absolute;
	width: 16px;
	z-index: 1;
}

.document-container .marker-boat,
.map-legend .marker-boat::before {
	background-position: -16px 0;
}
.document-container .marker-chest,
.map-legend .marker-chest::before {
	background-position: -16px -16px;
}
.document-container .marker-door,
.map-legend .marker-door::before {
	background-position: 0 -16px;
}
.document-container .marker-flag,
.map-legend .marker-flag::before {
	background-position: -48px 0;
}
.document-container .marker-player,
.map-legend .marker-player::before {
	background-position: 0 0;
	pointer-events: none;
}
.document-container .marker-quest,
.map-legend .marker-quest::before {
	background-position: -32px 0;
}
.document-container .marker-shop,
.map-legend .marker-shop::before {
	background-position: -32px -16px;
}
.document-container .marker-unknown,
.map-legend .marker-unknown::before {
	background-position: -48px -16px;
}

.document-container .marker > div {
	background-color: rgba(0, 0, 0, 0.75);
	border-radius: 4px;
	box-sizing: content-box;
	color: #ffffff;
	margin-top: -4px;
	opacity: 0;
	padding: 4px;
	pointer-events: none;
	text-align: center;
	text-shadow: 1px 1px 0 #000000;
	transition: opacity 0.16s;
	white-space: normal;

	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.document-container .marker:hover {
	z-index: 2;
}
.document-container .marker:hover > div {
	opacity: 1;
}

.document-screen .screen-container-name {
	margin-left: 4px;
	margin-top: 4px;
}

.map-legend .marker {
	display: inline-block;
	position: relative;
	min-width: 160px;
	width: 33%;
}

.map-legend .marker::before {
	background-image: url("/tex/marker.gif");
	background-repeat: no-repeat;
	content: "";
	display: inline-block;
	height: 16px;
	margin-right: 1ch;
	vertical-align: middle;
	width: 16px;
}

/* Magic *********************************************************************/
.magic-screen .screen-subcontainer:not(:first-child) {
	margin-top: 1em;
}

/* Quest *********************************************************************/
.quest-intro {
	margin-bottom: 16px;
}

.quest-intro > *:not(:first-child) {
	margin-top: 16px;
}

.quest-intro p,
.quest-screen a,
.quest-screen .quest-page p {
	transition: opacity 0.16s;
}

.quest-screen .quest-log a {
	display: table;
	width: 100%;
}

.quest-screen .quest-log a:not(:first-child) {
	margin-top: 4px;
}

.quest-screen .quest-log a div {
	display: table-cell;
}

.quest-screen .quest-log a div h2 {
	font-size: 20px;
	font-variant: small-caps;
	font-weight: bold;
}

.quest-screen .quest-log .button {
	padding: 0;
}

.quest-log .quest-text {
	padding: 4px 8px 4px 16px;
	vertical-align: middle;
}

.quest-thumbnail {
	background-position: center center;
	background-repeat: no-repeat;
	height: 96px;
	width: 128px;
}
.quest-log .quest-thumbnail {
	display: table-cell;
}

.quest-page a.button {
	clear: both;
	display: inline-block;
}

.quest-page .quest-thumbnail {
	display: inline-block;
}
.quest-page .quest-text:nth-of-type(odd) .quest-thumbnail {
	float: left;
	margin-right: 16px;
}
.quest-page .quest-text:nth-of-type(even) .quest-thumbnail {
	float: right;
	margin-left: 16px;
}

.quest-page .quest-text p:not(:first-of-type) {
	margin-top: 1.5em;
}

.quest-page .quest-text {
	padding: 8px 8px 16px 8px;
}
.quest-page .quest-text::after {
	clear: both;
	content: "";
	display: block;
}

/* Config ********************************************************************/
.config-info {
	margin-bottom: 12px;
}

.config-label {
	font-weight: bold;
	height: 24px;
	opacity: 0.5;
	text-transform: uppercase;
}

.config-option {
	border-radius: 4px;
	border-style: solid;
	border-width: 2px;
	padding: 8px;
	text-align: center;
	transition: opacity 0.16s;
}

.config-option:not(:last-child) {
	margin-bottom: 8px;
}

.config-option .button {
	border-style: outset;
	border-width: 2px;
	border-radius: 4px;
	display: inline-block;
	font-size: 20px;
	font-weight: bold;
	line-height: 48px;
	margin-right: 8px;
	margin-bottom: 8px;
	padding: 0;
	text-align: center;
	width: 128px;
}
.config-option .button:active {
	border-style: inset;
}

.config-option#option-mature:not([open]) {
	border: none;
	box-shadow: none;
	padding: 0;
}
.config-option#option-mature > summary {
	list-style-type: "?";
	opacity: 0.25;
}
.config-option#option-mature[open] > summary {
	display: none;
}

/* File **********************************************************************/
.file-content h1:not(:first-child) {
	margin-top: 16px;
}

.file-links {
	margin-top: 32px;
}

.file-links a,
.file-links span {
	font-weight: bold;
	padding: 8px 8px !important;
	transition: opacity 0.16s;
}
.file-links a:not(:first-child),
.file-links details:not(:first-child),
.file-links span:not(:first-child) {
	margin-top: 4px;
}

.file-links details {
	font-weight: bold;
	padding: 0 !important;
	transition: opacity 0.16s;
}
.file-links details[open] {
	border-style: solid;
}
.file-links details .button {
	margin: 8px;
	text-align: center;
}
.file-links summary {
	padding: 8px;
}

.file-links p {
	font-weight: normal;
	text-align: center;
	margin-bottom: 4px;
}

.file-links summary {
	list-style-type: none;
}

.file-links .file-ngp:not([open]) {
	border: none;
	box-shadow: none;
	padding: 0;
}
.file-links .file-ngp > summary {
	list-style-type: "?";
	text-align: center;
	opacity: 0.25;
}
.file-links .file-ngp[open] > summary {
	display: none;
}
.file-links .file-ngp > .button {
	margin: 0;
	text-align: left;
}

.file-screen h1 {
	font-weight: bold;
	margin-bottom: 4px;
	opacity: 0.5;
	text-align: center;
	text-transform: uppercase;
}

.file-slot {
	border-style: solid;
	border-width: 2px;
	border-radius: 4px;
	display: table;
	padding: 4px 8px;
	transition: opacity 0.16s;
	width: 100%;
}

.file-slot div {
	display: table-cell;
}

.file-text {
	padding-left: 16px;
	vertical-align: middle;
}

.file-text h2 {
	font-size: 20px;
	font-variant: small-caps;
	font-weight: bold;
}

.file-timestamp {
	opacity: 0.5;
}

.file-thumbnail {
	background-color: #000000;
	background-repeat: no-repeat;
	border-radius: 4px;
	box-shadow: 0 0 0 1px #000000;
	height: 96px;
	width: 128px;
}

.mobile .file-links a,
.mobile .file-links span {
	padding: 16px !important;
}

/* About *********************************************************************/
.about-calendar {
	width: 100%;
}
.about-calendar tbody tr:nth-of-type(odd) {
	background-color: rgba(255, 255, 255, 0.05);
}
.about-calendar tbody tr:nth-of-type(even) {
	background-color: rgba(0, 0, 0, 0.05);
}
.about-calendar td {
	padding: 8px;
}
.about-calendar td:first-of-type {
	width: 20%;
}
.about-calendar td:last-of-type {
	width: 80%;
}

.about-changelog summary,
.about-faq summary {
	text-align: left;
}

.about-credits li,
.about-screen li,
.about-screen p,
.about-screen tbody tr,
.about-screen .figure {
	transition: opacity 0.16s;
}

.about-content h1 {
	text-align: center;
}
.about-content h1:not(:first-child) {
	border-bottom-style: solid;
	border-bottom-width: 2px;
	margin-top: 24px;
	padding-left: 8px;
	text-align: left;
}

.about-content li {
	list-style-type: square;
	margin-left: 16px;
	padding-left: 8px;
}

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

.about-content h1,
.about-credits h1 {
	font-weight: bold;
	margin-bottom: 4px;
	opacity: 0.5;
	text-transform: uppercase;
}

.about-credits ul:not(:last-of-type) {
	margin-bottom: 16px;
}

.about-content p:not(:first-child),
.about-content ul:not(:first-child),
.about-content ul li:not(:first-child),
.about-content ul ul,
.about-group:not(:first-child),
.about-links {
	margin-top: 16px;
}

.about-content img {
	max-width: 100%;
}

.about-content .left {
	float: left;
	margin-right: 8px;
}
.about-content .right {
	float: right;
	margin-left: 8px;
}
.about-content .clear {
	clear: both;
}

.about-content .figure {
	margin-top: 16px;
	text-align: center;
}

.about-group {
	border-radius: 4px;
	border-style: solid;
	border-width: 2px;
	padding: 8px;
}

.about-links a {
	font-weight: bold;
	padding: 8px !important;
}
.about-links a:not(:first-child) {
	margin-top: 4px;
}

.about-characters .button {
	font-weight: bold;
	text-align: center;
}
.about-characters-buttons {
	margin-top: 16px;
	width: 100%;
}
.about-characters-buttons > div {
	display: inline-block;
	width: 50%;
}
.about-characters-buttons > div:first-child * {
	margin-right: 4px;
}
.about-characters-buttons > div:last-child * {
	margin-left: 4px;
}
.about-characters-description {
	min-height: 96px;
}
.about-characters-portrait {
	display: block;
	float: left;
	margin-right: 8px;
	width: 64px;
}

.credits-grid {
	display: block;
}
.credits-grid li {
	display: inline-block;
	padding: 8px;
	width: 180px;
	word-wrap: break-word;
}

.special-thanks li:not(:first-of-type) {
	margin-top: 8px;
}

.mobile .about-links a,
.mobile .about-characters .button,
.mobile .file-links summary {
	padding: 16px !important;
}

/* Browse ********************************************************************/
.browse-screen {
	text-align: center;
}

.browse-screen a {
	display: inline-block !important;
	margin: 4px;
	padding: 0px 0px 4px 0px !important;
}

.browse-screen a img {
	height: 96px;
	margin-bottom: 4px;
	width: 128px;
}

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

.browse-pages a,
.browse-pages span {
	display: inline-block;
	font-weight: bold;
	line-height: 48px;
	text-align: center;
	width: 48px;
}

.browse-pages a {
	opacity: 0.75;
	transition: opacity 0.16s;
}
.browse-pages a:hover {
	opacity: 1;
}

.mobile .browse-pages a,
.mobile .browse-pages span {
	margin: 4px;
	min-width: 64px;
}

/* Comments ******************************************************************/
.comments-screen a.button {
	margin-bottom: 8px;
}

.comments-screen a.button::after {
	content: "";
	clear: both;
	display: block;
}

.comments-screen a.button img {
	float: left;
	height: 45px;
	margin-right: 8px;
	width: 60px;
}

.comments-screen a.button table {
	width: 100%;
}

.comments-screen a.button tr:first-of-type td:first-of-type {
	width: 68px;
}

.comments-screen a.button tr:first-of-type span:last-of-type {
	float: right;
	opacity: 0.5;
}

.comments-screen a.button tr:last-of-type td:first-of-type {
	opacity: 0.5;
	width: 7ch;
}

.comments-screen a.button tr:last-of-type td:last-of-type {
	max-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Party *********************************************************************/
.party .party-member {
	display: inline-block;
	padding: 8px;
	width: 192px;
}

.party div {
	display: block;
	text-align: center;
}

.party .status-bar-value {
	line-height: 12px;
	height: 12px;
	padding-right: 12px;
	width: 100%;
}

.party .status-bar-label {
	cursor: help;
	display: inline-block;
	font-size: 8px;
	width: 12px;
	vertical-align: middle;
}

.party .bar-empty,
.party .bar-full {
	height: 6px;
	width: 6px;
}

/* Quest Summary *************************************************************/
.quest-summary details {
	background-color: #C03265;
	border-image-repeat: repeat;
	border-image-slice: 8;
	border-image-width: 16px;
}

.quest-summary details:not([open]) {
	border-image-source: url("/tex/journal_0.png");
}

.quest-summary details[open] {
	border-image-source: url("/tex/journal_1.png");
	padding: 16px;
}

.quest-summary summary {
	cursor: pointer;
	font-size: 20px;
	font-variant: small-caps;
	text-align: center;
}

.quest-summary details:not([open]) summary {
	color: #FFFFFF;
	text-shadow: 1px 1px 0 #901860;
	padding: 10px;
}

.quest-summary details[open] summary {
	background-color: #EBE3D0;
	border: 2px solid #D0C799;
	border-bottom: none;
	color: #503C48;
	padding: 8px;
	text-shadow: 1px 1px 0 #D0C799;
}

.quest-summary li.done {
	opacity: 0.5;
	text-decoration: line-through;
}

.quest-summary .content {
	background-color: #EBE3D0;
	border: 2px solid #D0C799;
	color: #503C48;
	font-style: italic;
	line-height: 1rem;
	text-shadow: 1px 1px 0 #D0C799;
	padding: 16px;
}

.quest-summary .content b {
	color: #2870D0;
}

.quest-summary hr {
	background-color: #FFC8A8;
	background-image: url("/tex/journal_sep.png");
	background-repeat: repeat;
	background-size: 24px;
	height: 24px;
	margin: 16px 0 !important;
	opacity: 1;
	outline: 2px solid #F8A8A8;
}
.quest-summary hr::after {
	content: none;
}

.quest-summary .content i {
	background-color: #78C8D0;
	color: #283848;
	text-shadow: 1px 1px 0 #68B098;
}

.quest-summary .content li {
	list-style-type: "\2605\FE0E";
	margin-left: 1ch;
	padding-left: 1ch;
}
.quest-summary .content > ul > li:not(:first-child) {
	margin-top: 2rem;
}
.quest-summary .content li li {
	list-style-type: "-";
}
.quest-summary .content li li:not(:first-child),
.quest-summary .content li li {
	margin-top: 1rem;
}

/* Compact *******************************************************************/
.compact .screen-item {
	cursor: help;
	display: inline-block;
	position: relative;
	padding: 0.25em 0;
	width: 100%;
}

.compact .screen-item .button {
	border-bottom-style: none;
	border-radius: 0;
	border-right-style: none;
	border-top-style: none;
	border-width: 4px;
	padding: 0 0 0 0.5ch;
}

.compact .screen-item .button:not(:disabled):active {
	border-bottom-style: none;
	border-right-style: none;
	border-top-style: none;
}

.compact .screen-item:not(:hover) .screen-description {
	display: none;
}

.compact .screen-item:not(:last-of-type) {
	margin-bottom: 0;
}

.compact .screen-description {
	left: 0px;
	opacity: 1;
	pointer-events: none;
	padding: 4px 8px;
}

.compact-1 .screen-item:hover {
	z-index: 254;
}

.compact-1 .screen-description {
	position: absolute;
	right: 0px;
	top: 2em;
	z-index: 255;
}

.compact-2 .screen-description {
	position: fixed;
	right: 0px;
	top: 0px;
}

@media only screen and (min-width: 832px) {
	.compact .screen-item {
		width: 50%;
	}

	.compact-2 .screen-description {
		left: 50%;
		margin-left: -400px;
		width: 800px;
	}
}

/* Responsive ****************************************************************/
@media only screen and (min-width: 832px) {
	.status-attributes {
		margin-top: 0;
		width: 60%;
	}
}