body {
    background: #3b0624 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;
    margin:0.2vw;
    z-index:-1;
        position:relative;
}

/* Basic structure */
#page {
    max-width: 2000px;
    margin: 0 auto;
    position: relative;
    z-index:-1
}
#mid_panel {
    position:relative;
    margin-right: 26%;
    margin-top: 0;
    margin-left: 20%;
  
}

/* The title block */
#title, #title .label, #content, .tools {
    border-radius: 2px;
}

#ambiass {
    background-color:rgba(255, 63, 234, 0.20);
    color:rgb(147, 0, 118);
     -moz-transition: background-color 2s linear;
    -webkit-transition: background-color 2s linear;
    -o-transition: background-color 2s linear;
    transition: background-color 2s linear;
    transition-delay: 1.5s;
}
.ambitransto {
 
    background-color: rgba(153,136,119,0.2)!important;
    
}
/*
    -webkit-animation-name: ambiani; 
  -webkit-animation-duration: 3s; /
   
  animation-name: ambiani;
  animation-duration: 3s;
@-webkit-keyframes ambiani {
  0%  {background-color:#ff3fea33;}
  100% {background-color:red;}
}
@keyframes ambiani {
  0%  {background-color:#ff3fea33;}
  100% {background-color:red;}
}
*/



#title {
    /*! width: 90%; */
    /*! height:400px; */
    background-size: cover;
    
    /*! background-image: url("../img/title_bg.png"); */ /*  repeat -1.1em -1.1em;*/
    margin: 2.2em auto 1.1em auto;
    
    background-repeat: no-repeat;
    
    cursor: pointer; /* Until we click to start. */
    position: relative;
    /*! height: auto; */
    /*! width: inherit; */
}

#title .label {
    
    
   
    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 #321;
}
#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(33,17,0,0.9);
    text-shadow: rgba(255,255,255,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;
    margin: 0.6em auto 1.1em auto;
    padding: 2.8em;
    display: none; /* Shown by Javascript */
    overflow: auto;
}
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.8em;
    width: 1.1em;
    height: 2px;
}
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(0,0,0,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: #210;
}
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 #876;
    padding: 0.5em; 
}
ul.options li:hover {
    background-color: rgba(153,136,119,0.2);
    cursor: pointer;
}
hovicli:hover {
    background-color: rgba(153,136,119,0.2);
    cursor: pointer;
}
hovicli {
    display:block;
}

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: #210;
    text-align: center;
}
h1:first-child {
    margin-top: 0;
}
a {
    display:block;
    color: #900;
    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 {
    background-color: rgba(153,136,119,0.2);
    cursor: pointer;
}

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;
}

#toolbar {
    display: none;
}
#tools_portrait {
    /*
    position: static;
      background:transparent;
     float:right;
     padding-right:0.5vw;
    width: 25%;
    top: 0em;
    background-size: contain;
     margin: 0 auto;
    padding: 0;
    
    
    /*! height:700px; */
    
    /*! background-image: url("../img/clothedm.png"); */
    
    /*! background-repeat: no-repeat; */
   
    /*! right: -10.6em; */
   
   
     /* Shown by Javascript 
     background-color: rgb(59, 6, 36);
     */
   
     
     
}
.toolsportrait{
   position: fixed;
    
    width: 24.8vw;
    /*! height:700px; */
    top: 3vw;
    /*! background-image: url("../img/clothedm.png"); */
    background-size: contain;
    /*! background-repeat: no-repeat; */
   
    /*! right: -10.6em; */
    margin: 0 auto;
    padding: 0;
   
     /* Shown by Javascript 
     background-color: rgb(59, 6, 36);
     */
     background:transparent;
     float:right;
     padding-right:0.5vw;
     direction:rtl;
     right:0.1vh;
    
}
.toolsportraitbig{
    position:fixed;
    height:98vh;
    right:0.5vw;
        top:0.5vw;
            direction:rtl;
    
    
}
.xeyport{
    width: inherit;
    position:absolute;
    display: inline-block;
    height: inherit;
}
.xeyportbig{
    
}
#tools_wrapper {
    position: fixed;
    width: 100%;
    
    /*! max-width: 56em; */
    top: 3vw;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: none; /* Shown by Javascript */
}
#g_tod {
    text-align: center;
    
}
.tools {
    padding: 0.5%;
    width: 18%;
    background: #cec3ae url("../img/tools_bg.jpg") repeat left top;
    position: absolute;
}
.tools p {
    font-size: 0.95em;
    line-height: 1.5em;
}
.tools.left {
    left: 0.4em;
}
.tools.right {
    right: 0.4em;
}

.tools h1 {
    font-size: 1.0em;
    font-weight: normal;
    border-bottom: 1px solid #321;
    margin-bottom: 0.6em;
}
.buttons {
    padding-top: 0.6em;
    margin-top: 0.6em;
    border-top: 1px solid #321;
    text-align: center;
}
.buttons button {
    font-size: 0.8em;
    background: #876;
    color: #e6e6c6;
    border: none;
    padding: 0.3em 1.0em;
    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: #ba9;
    color: #dcb;
    cursor: default;
}

#legal {
    max-width: 33em;
    color: #654;
    /*margin: 1em auto 0 auto;
    padding-bottom: 2.2em;*/
    text-align: center;
    
}
#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 0.25em;
}
#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 #321;
}

.progress_bar {
    position: relative;
    overflow: hidden;
    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: 27.7em;
    clear: both;
    border-radius: 4px;
}
.progress_bar_color {
    background: #987;
    width: 0;
    height: 0.75em;
    background-image: none;
}

.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;
}
.progress_bar2 {
    position: relative;
    overflow: hidden;
    margin: 0.6em 0;
}
.progress_bar_track2 {
    z-index: 100;
    background: rgba(255,255,255,0.25);
    border: 2px solid #876;
    height: 0.75em;
   
    clear: both;
    border-radius: 4px;
}
.progress_bar_color2 {
    background: #987;
    width: 0;
    height: 0.75em;
}
.progress_bar2 span {
    z-index: 100;
}
.progress_bar2 .name {
    font-weight: bold;
}
.progress_bar2 .value {
    float: right;
}
.progress_bar2 .left_label {
    float: left;
}
.progress_bar2 .right_label {
    float: right;
}
#content_library, #ui_library {
    display: none;
}
#menu {
    display: none;
}
.grid { margin:1em auto; border-collapse:collapse; width:30vw; height:30vw;}
.grid td {
    cursor:pointer;
    
    border:4px solid #d442b2;
    text-align:center;
    font-family:sans-serif; font-size:22px
}
.grid td.clicked {
    background-color:#3dfcb0;
    font-weight:bold; color:#425fd4;
}
.grid td.clickwin {
    background-color:#5db9ee;
    font-weight:bold; color:#425fd4;
}
#overlayer {
  position: absolute; /* Sit on top of the page content */
  display: none; /* Hidden by default */
  width: 30vw; /* Full width (cover the whole page) */
  height: 30vw; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 90, 236, 0.88); /* Black background with opacity */
  opacity:.1;
 margin:auto;
  margin-top: 1.5cm;
  cursor: pointer; /* Add a pointer on hover */
}
#overlayertexty{
    position: absolute;
  top: 50%;
  left: 50%;
  font-size: 30px;
  color: black;
  transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
    
}