body {
    background: #170804 url("../img/page_bg.jpg") repeat-x left top;
    font-family: Palatino, Times, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.6em;
    background-attachment: fixed;
    overflow-y: scroll;
	color: #fff;
}

input {
	width: 100%;
}

/* Basic structure */
#page {
    margin: 0 auto;
    position: relative;
}
#mid_panel {
    margin: 0 11.0em;
}

/* The title block */
#title, #title .label, #content, .tools {
    border-radius: 2px;
}
#title {
	max-width: 33.6em;
	/*height: 18.8em;*/
	margin: 0em auto 0em auto;
	cursor: pointer; /* Until we click to start. */
}
#title_card {
	width: 100%;
	height: 100%;
}
#title .label {
    overflow: hidden;
    background: #e6e6c6 url("../img/text_bg.jpg") repeat left top;
    padding: 2.0em;
    margin: auto;
    max-width: 18em;
    -webkit-box-shadow: 0 0 4px rgba(0,0,0,0.4);
            box-shadow: 0 0 4px rgba(0,0,0,0.4);
    position: relative;
}
#title h1 {
    font-size: 1.6em;
    line-height: 1.4em;
    letter-spacing: 0.2em;
    font-weight: normal;
    padding-bottom: 1.1em;
    border-bottom: 1px solid #fff;
}
#title h2 {
    font-size: 1.2em;
    font-weight: normal;
    text-align: center;
    margin: 1.1em 0 0 0;
}
#title h3 {
    font-size: 1.0em;
    font-weight: normal;
    text-align: center;
    margin: 1.1em 0 0 0;
}
#title h1, #title h2, #title h3 {
    color: rgba(225,235,255,0.9);
    text-shadow: rgba(0,0,0,0.5) 2px 2px 2px,
    rgba(0,0,0,0.1) -1px -1px 2px;
}
#title h1 span.fancy {
    font-size: 2.5em;
    line-height: 0;
    font-family: Tangerine, Palatino, Times, "Times New Roman", serif;
    font-style: italic;
    margin: 0 -0.2em;
}
#title .click_message {
    display: none;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    font-size: 0.9em;
    font-style: italic;
    text-align: center;
    color: #987;
}
#title .noscript_message {
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    font-size: 0.9em;
    font-style: italic;
    text-align: center;
    color: #943;
}

/* Main content */
#content_wrapper {
    max-width: 28em;
    position: relative;
    /*background: #e6e6c6 url("../img/text_bg.jpg") repeat left top;*/
    background-color: rgba(0, 0, 0, 0.4);
    margin: 0.6em auto 1.1em auto;
    padding: 3.5em 2.8em 3.5em 2.8em;
    display: none; /* Shown by Javascript */
    overflow: auto;
}

#content_wrapper:before {
	content: "";
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	border-width: 96px;
	border-style: solid;
	border-image: url('../img/Frame.png');
	border-image-slice: 120;
	border-image-width: 96px;
	pointer-events: none;
}

span.drop + p {
    text-indent: -0.4em;
}
p {
    margin: 0;
    -webkit-transition: text-indent 0.25s ease;
            transition: text-indent 0.25s ease;
}

hr {
    border: none;
    background-color: rgba(0,0,0,0.25);
    margin: -1px 0 -1px -2.0em;
    width: 1.1em;
    height: 2px;
}
hr.default {
	display: block;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
    height: 1px;
	background-color: #fff;
}
p + p, p + img + p, p + hr + p {
    text-indent: 1.6em;
}
#content h1 + p:first-line,
#content h1 + img + p:first-line {
    font-weight: bold;
    color: rgba(255,255,255,0.85);
}
#content h1 + p:first-letter,
#content h1 + img + p:first-letter {
    position: relative;
    padding-top: 0.1em;
    display: block;
    float: left;
    font-weight: normal;
    font-size: 3.2em;
    line-height: 0.8em;
    color: #fff;
}
ul {
    margin: 0;
    padding: 0 0 0 1em;
}
ul.options {
    border: 2px solid #876;
    padding: 0;
    margin-top: 0.5em;
    margin-bottom: 0.7em;
    list-style-type: none;
    border-radius: 4px;
}
ul.options li {
    border-bottom: 1px solid #fff;
    padding: 0.5em;
}
ul.options li:hover {
    background-color: rgba(153,136,119,0.2);
    cursor: pointer;
}
ul.options li:last-child {
    border-bottom: none;
}

h1 {
    font-size: 1.0em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 2.3em 0 1.1em 0;
    color: #fff;
    text-align: center;
}
h1:first-child {
    margin-top: 0;
}
a {
    color: #f44;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
a.raw {
    padding-right: 14px;
    background: transparent url("../img/external_link.png") no-repeat right 4px;
}
a:hover {
    border-bottom: 1px dotted #f44;
}

img.float_right {
    float: right;
    margin: 1.1em 0 1.1em 1.1em;
}

img.float_left {
    float: left;
    margin: 1.1em 1.1em 1.1em 0;
}

img.float_middle {
    float: none;
	width: 100%;
}

.character_layers {
	position:relative;
}

.character_layer {
	position: absolute;
	width: 100%;
}

.character_layer img{
	position: absolute;
	pointer-events: none;
	width: 100%;
}

#toolbar {
    display: none;
}

#tools_wrapper {
    position: fixed;
    width: 100%;
    max-width: 56.8em;
    top: 1.5em;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: none; /* Shown by Javascript */
}
.tools {
    padding: 0.6em;
    width: 9.3em;
    /*background: #cec3ae url("../img/tools_bg.jpg") repeat left top;*/
    position: absolute;
}
.tools p {
    font-size: 0.95em;
    line-height: 1.5em;
}
#save_text1 {
	font-size: 14px;
}
#save_text2 {
	font-size: 14px;
}
#save_text3 {
	font-size: 14px;
}
.tools.left {
    left: 0.4em;
    background: 
		linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
		url("../img/Door.jpg");
	background-position: center;
}
.tools.right {
    right: 0.4em;
	background: 
		linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
		url("../img/Throne.jpg");
	background-position: center;
}
.tools h1 {
    font-size: 1.0em;
    font-weight: normal;
    border-bottom: 1px solid #fff;
    margin-bottom: 0.6em;
}

#save_slot_paging p {
	font-size: 14px;
	text-indent: 0px;
}

.buttons {
    padding-top: 0.6em;
    margin-top: 0.6em;
    border-top: 1px solid #fff;
    text-align: center;
}
.buttons button {
    font-size: 0.8em;
    background: #654;
    color: #fed;
    border: none;
    padding: 0.2em 0.5em;
    cursor: pointer;
    border-radius: 4px;
}
.buttons button:hover {
    background: #987;
}
.buttons button + button {
    margin-left: 0.3em;
}
.buttons button[disabled], .buttons button[disabled]:hover {
    background: #432;
    color: #dcb;
    cursor: default;
}

#legal {
    max-width: 33em;
    color: #876;
    margin: 1em auto 0 auto;
    padding-bottom: 2.2em;
    display: none; /* Shown by Javascript */
}
#legal p {
    font-size: 0.7em;
    line-height: 1.3em;
    margin-bottom: 0.5em;
}
#legal p + p {
    text-indent: 0;
}

#character {
    font-size: 1.0em;
    line-height: 1.4em;
}
#qualities .quality, #character_text {
    position: relative;
    clear: both;
    overflow: hidden;
    margin: 0 -0.25em;
    padding: 0.03em  0.25em;
	line-height: 120%;
	font-size: 17;
}
#character_text {
    margin-bottom: 0.6em;
}
#character_text_content {
    position: relative;
    z-index: 100;
}
#qualities span {
    position: relative;
    z-index: 100;
}
#qualities span.name {
    float: left;
}
#qualities span.value {
    float: right;
}
.highlight {
    background: rgba(255, 255, 0, 0.75);
    position: absolute;
    left: -4px;
    right: -4px;
    top: 0;
    bottom: 0;
}
#qualities h2 {
    margin: 0.5em 0 0.25em 0;
    font-size: 1.0em;
    border-bottom: 1px solid #fff;
}

.progress_bar {
    position: relative;
    margin: 0.6em 0;
}
.progress_bar_track {
    z-index: 100;
    background: rgba(255,255,255,0.25);
    border: 2px solid #876;
    height: 0.75em;
    width: 100%;
    clear: both;
    border-radius: 4px;
}
.progress_bar_color {
    background: #987;
    width: 0;
    height: 0.75em;
}
.progress_bar span {
    z-index: 100;
}
.progress_bar .name {
    font-weight: bold;
}
.progress_bar .value {
    float: right;
}
.progress_bar .left_label {
    float: left;
}
.progress_bar .right_label {
    float: right;
}
#content_library, #ui_library {
    display: none;
}
#menu {
    display: none;
}

.map_table img {
	display: block;
}

.map_table {
  table-layout: fixed;
  margin-left: auto;
  margin-right: auto;
  border: 0px;
  border-collapse: collapse;
  border-spacing: 0px;
}

.map_table tr {
  height: 32px;
}

.map_table th {
  padding: 0px;
  border-width: 0px;
  margin: 0px;
}

.map_table .path_column {
  width: 4px;
}

.map_table .path_column2 {
  width: 32px;
}

.map_table .path_row {
  height: 4px;
}

.map_atlas_img {
	object-fit: none;
	width: 32px;
	height: 32px;
}

.direction_table {
	margin-left: auto;
	margin-right: auto;
	border: 0px;
	border-collapse: collapse;
	border-spacing: 0px;
	line-height: 100%;
}

.direction_table th {
  padding: 0px;
  border-width: 0px;
  margin: 0px; 
}

.direction_table td {
  padding: 0px;
  border-width: 0px;
  margin: 0px; 
}

#right_panel_image {
	display: none;
}

#right_panel_map {
	display: none;
}

#left_panel_character {
	display: none;
}

.panel_paging {
	margin-top: 6px;
	width: 100%;
	display: flex;
	align-items: center;
	text-align: center;
	border-top: 1px solid #fff;
}

.panel_paging_left {
	width: 25%;
	margin-bottom: 3px;
}

.panel_paging_middle {
	width: 50%;
}

.panel_paging_right {
	width: 25%;
	margin-bottom: 3px;
}

.panel_paging p {
	font-size: 20px;
	text-indent: 0px;
	margin: auto;
}

.panel_paging button {
	font-size: 14px;
	text-indent: 0px;
	outline: none;
	padding: 0px 12px;
    border: none;
	background-color: Transparent;
	color: #fff;
}

.panel_img_enlarge {
  position: absolute;
  bottom: 85px;
  width: 16px;
  height: 16px;
  filter: alpha(opacity=50);
  -moz-opacity: 0.5;
  -khtml-opacity: 0.5;
  opacity: 0.5;
  pointer-events: none;
}

.panel_img_enlarge img {
  width: 100%;
  height: 100%;
}

.flip_x {
	transform: scaleX(-1);
}

.icon_atlas_img {
	object-fit: none;
	width: 32px;
	height: 32px;
	vertical-align: middle;
	margin-bottom: 2px;
}

.menu_atlas_img {
	object-fit: none;
	width: 64px;
	height: 64px;
}

.compass_widget {
	background:url('./../img/compass.png'); 
	width:220px; 
	height:220px; 
	margin-left:auto; 
	margin-right:auto; 
	background-size: contain;
	position: relative;
}

.compass_widget_overlay {
	position: absolute;
}

#right_panel_map_content {
	cursor: pointer;
}

#right_panel_img_content {
	cursor: pointer;
}

#left_panel_img_content {
	cursor: pointer;
}

.entity_name {
	color: #86f;
}

.system_message {
  outline: 1px solid #aaf;
  padding-left: 4px;
  padding-right: 4px;
  padding-top: 0px;
  padding-bottom: 0px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  color: #aaf;
}

.stat_bar_container {
  position: relative;
  background: #2f2222;
  height: 11px;
  flex: 1;
  margin: 1px;
  border: 2px solid rgb(174, 143, 83);
  border-radius: 3px;
}

.exp_bar_container {
  position: relative;
  background: rgb(174, 143, 83);
  height: 2px;
  flex: 1;
  margin: 1px;
}

.stat_bar_text {
  position: absolute;
  text-align: center;
  color: white;
  font-size: 11px;
  top: -2.2px;
  left: 0;
  right: 0;
  line-height: 1.5em;
}

.stat_bar_group {
	display: flex;
}

.stat_bar {
	height: 100%;
}

.stat_bar_hp {
	background: #ae2f22;
	width: 100%;
}

.stat_bar_lust {
	background: #c46464;
	width: 100%;
}

.stat_bar_flux {
	background: #464160;
	width: 100%;
}

.stat_bar_exp {
	background: #c3f0a9;
	width: 100%;
}

.character_stat_control {
	background: #2f770d;
}

.character_stat_player_orgasms {
	background: #7a3793;
}

.character_stat_enemy_orgasms {
	background: #7a3793;
}

.character_stat_enemy_hp {
	background: #ae2f22;
	width: 100%;
}

.character_stat_enemy_lust {
	background: #c46464;
	width: 100%;
}

.character_stat_enemy_flux {
	background: #464160;
	width: 100%;
}

.text_positive3 { color: #1ed703; }
.text_positive2 { color: green; }
.text_positive1 { color: #668a31; }
.text_neutral { color: #999; }
.text_negative1 { color: #b16038; }
.text_negative2 { color: #b72821; }
.text_negative3 { color: red;}

.text_pink { color: pink; }
.text_bright_pink { color: #f06d84; }
.text_blue { color: #529cdd; }
.text_orange { color: #d25c22; }
.text_grey { color: #999; }