@import url("https://fonts.googleapis.com/css?family=Open Sans|Tinos");

body, #contentcolumn .highlightblock p, #chatarea li {
    font-family:"Open Sans","Trebuchet MS",Arial,Helvetica,sans-serif;
}
#contentcolumn p, #contentcolumn label, #contentcolumn ul, #contentcolumn .varprompt, #contentcolumn .contactprompt {
    font-family:"Tinos","Times New Roman",Times,serif;
}

body {
    margin:0;
    background:black;
    user-select: none;
}

/* Common colors */
#header, #leftcolumn, #maincontainer, .navmoredown, .navmenu ul, #footer {
    background:#540430; /* dark burgundy */
}
.navbutton {
    background:#761650; /* lighter burgundy */ 
}
#contentcolumn a, #contentcolumn a:hover, #contentcolumn a:visited, #contentcolumn a:active {
    color:#761650; /* lighter burgundy */ 
}
#tabrow {
    font-size:14px;
}
#tabrow img {
    vertical-align:text-top;
}
#tabrow ul li a:hover, .navbutton:hover {
    background:#f6e795; /* gold */
    text-decoration: none;
}
#footer a:active, #footer a:hover, .linksblock h3, .linksblock h3 a, sup {
    color:#f6e795; /* gold */
}
#contentcolumn {
    color:black;
    background: #eeeecc; /* cream page */
}
#footer, #topsection {
    color: #ddd; /* almost white text */
}
.navmenu {
    border-bottom:1px solid #320210; /* darkest burgundy line */
}

/* Fixed width container unless media query overrides */
#maincontainer{
    width:960px;
    min-width:320px;
    margin:0 auto; /* center */
    overflow: hidden;
}

/* Menu column */
#leftcolumn{
    padding: 0;
    width: 260px;
    z-index: 2;   
    /* Equal-height column trick */
    margin-bottom: -99999px;
    padding-bottom: 99999px;
}

/* Main content area */
#contentcolumn {
    width:700px;
    float:right;
    font-size:20px;
    z-index: 1;
    /* Equal-height column trick */
    margin-bottom: -99999px;
    padding-bottom: 99999px;
}
#contentcolumn .innertube {
    margin-left:24px;
    margin-right:24px;
    margin-bottom:16px;
}
#contentcolumn h2, #contentcolumn h1 {
    font-size:24px;
}
#contentcolumn h3, #contentcolumn h3 {
    font-size:20px;
}
#contentcolumn select, #contentcolumn textarea, #contentcolumn input[type=text], #contentcolumn input[type=password], #contentcolumn input[type=submit] {
    font-size:18px;
}
#contentcolumn li {
    margin-bottom:11px;
}
#contentcolumn ul li a {
    text-decoration:none;
}
#contentcolumn ul li a:hover {
    text-decoration:underline;
}
#tabrow ul li a:hover {
    text-decoration:none;
}

#contentcolumn .bookmarklink {
    float:right;
    padding:0;
    margin:0;
    font-size:10px;
}

/* Title and hamburger section at top */
#topsection {
    display:table;
    width: 100%;
    height:60px;
    background-image:url('/images/background.jpg');
    background-position:center top;
    background-repeat:no-repeat;
    overflow:hidden;
    min-width:340px;
}
#topsection .innertube {
    display:table-row;
}
#topsection h1 {
    text-align:left;
    margin:0;
    bottom:0px;
    font-size:18px;
    text-shadow: 2px 2px #000000;
}
#title {
    display:table-cell;
    vertical-align:middle;
    width:100%;
    height:60px;
    overflow:hidden;
    padding-left:260px;padding-right:8px;
    background-image:url('/images/title2.png');
    background-position:10px center;
    background-repeat:no-repeat;
    background-size:auto 45px;
}

/* Hamburger menu button */
#toggle-leftcolumn {
    display:none;
    vertical-align:middle;
    background:url(/images/hbshow.png) no-repeat;
    background-size:40px 40px;
    cursor:pointer;
    border:none;
    width:40px;
    height:40px;
    margin-top:10px;
    margin-left:8px;
}
.leftcolumn-active #toggle-leftcolumn{   
    background:url(/images/hbhide.png) no-repeat;
    background-size:40px 40px;
}
#toggle-leftcolumn2 {
    display:none;
    float:left;
    background:url(/images/hbshow.png) no-repeat;
    background-size:20px 20px;
    cursor:pointer;
    border:none;
    width:20px;
    height:20px;
}
.leftcolumn-active #toggle-leftcolumn2{   
    background:url(/images/hbhide.png) no-repeat;
    background-size:20px 20px;
}

/* Signup section */
.highlightblock {
    text-align:center;
    width:auto;
    padding-left:10px;
    padding-right:10px;
    background:#6F9;
    -webkit-border-radius:8px; -moz-border-radius:8px; border-radius:8px;
    border:1px solid black;
    overflow:hidden;
}
.highlightbox {
    display:inline-block;padding:4px;margin-top:4px;border-style:solid;border-width:2px;border-color:red;
}
.highlightblock em {
    display:inline-block;font-size:14px;line-height:20px;
}

textarea{ resize:none; }

p.continued { font-style:italic; font-size:small; color:#888888; }
p.theend { font-weight:bold; }
p.noscript { font-style:italic; color:red; }

.varline { width:100%;margin-top:.5em;margin-bottom:.5em;clear:both; }
.varprompt { width:50%; float:left; margin-bottom:.5em; }
.contactprompt { width:140px; float:left; margin-bottom:.5em; }

a.author { text-decoration:none; }

/* Tabs on interactive-stories.php and customizable-stories.php */
#tabrow ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#tabrow li {
    float: left;
    border: 1px solid #bbb;
    border-bottom-width: 0;
    height:32px;
    margin: 0;
}
#tabrow a {
    text-decoration: none;
    display: block;
    background: #eee;
    padding: 8px 20px;
    text-align: center;
}
#tabrow #selected {
    border-color: black;
}
#tabrow #selected a {
    position: relative;
    top: 1px;
    background: #eeeecc;
    color: black;
    font-weight: bold;
}
#tabcontent {
    border: 1px solid black;
    clear: both;
    padding: 0 1em;
    margin-bottom:20px;
}

.linksblock ul { padding: 0; padding-left:15px; margin:0; list-style-type: none; margin-bottom:15px;}
.linksblock li { font-size:13px;line-height:105%;margin-bottom:7px; }
.linksblock a { color: #cccccc; text-decoration:none;}
.linksblock a:link { color: #cccccc;  }
.linksblock a:active { color: #cccccc;  }
.linksblock a:hover { color: white; text-decoration:underline; }
.linksblock h3 { padding-left:10px;font-size: 15px; margin-bottom:7px; }
.linksblock li a:nth-of-type(2) { float:right; text-align:right; padding-right:25px; }
.linksblock a.nohover:hover { cursor:default;color: #cccccc;text-decoration:none; }

.freestory li { margin-top:-4px; }
.freestory a { font-size:15px; }
.freestory a:link { color:white; }

/* Expanding navigation */
.navmenu {
    font-size:15px;
    width:100%;
}
.navbutton {
    color:white;
    padding:10px;
    font-weight:bold;
    margin:0px;
    text-decoration:none;
}
.navbutton:hover {
    color:black;
}
.navsection {
    display:block;
    width:auto;
    overflow:hidden;
}
.navmore {
    display:inline-block;
    float:right;
    width:20px;
    text-align:center;
    cursor:pointer;
}
.navmoredown {
    color:white;
}
.navmenu ul {
    display:none;
    color:white;
    margin:0;
    padding:0;
    overflow:hidden;
}
.navmenu ul li {
    list-style:none;
    width:100%;
    display:block;
    white-space: nowrap;
    padding:.4em;
    padding-left:15px;
}
.navmenu ul li a {
    color:white;
    text-decoration:none;
}
.navmenu ul li a:visited {
    color:white;
}
.navmenu ul li a:hover {
    text-decoration:underline;
}

#vertbanner {
    text-align:center;
}
#vertbanner .linksblock { padding:10px; }
#vertbanner h3 { padding:0px; }


/* Full-width footer */
#footer {
    clear:both;
    text-align:center;
    padding:1em;
    color: #aaa;
    font-size: 12px;
    background-image:url('/images/background.jpg');
    background-position:center top;
    background-repeat:no-repeat;
    /* Equal-height column trick */
    position:relative;
    z-index:3;
}

#footer a { color: #cccccc; }
#footer a:link { text-decoration: none; }
#footer a:active { text-decoration: none; }
#footer a:hover { text-decoration: underline; }


/* Standard audio player */
#audioplayer{
    position:relative;
    width:100%;
    height: 60px;
    margin: 50px auto auto auto;
    border: 2px solid #761650;
    background-color: #eee;
    border-radius:8px;
}
#pButton{
    height:60px; 
    width:60px;
    border:none;
    background-repeat:no-repeat;
    background-position:center;
    float:left;
    outline:none;
    background-color:transparent;
    cursor:pointer;
}
.play  { background-image: url('/images/play.png'); }
.pause { background-image: url('/images/pause.png'); }
.rewind { background-image: url('/images/rewind.png'); }
#timeline{
    position:absolute;
    left:60px;
    right:10px;
    height: 30px;
    margin-top: 15px;
    float: left;
    border-radius: 15px;
    background: rgba(0,0,0,.3);
    cursor:pointer;
}
#playhead{
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-top: 1px;
    background: rgba(0, 0, 0,1);
    cursor:pointer;
}

/* Interactive audio player */
#interactiveAudioControls {
    position:relative;
    background-color:#eee;
    margin:auto;
    width:100%;
    border: 2px solid #761650;
    border-radius:8px;
}
#rButton{
    clear:both;
    display:none;
    position:absolute;
    margin-left:-602px;
    margin-top:50px;
    height:60px; 
    width:60px;
    border:none;
    background-repeat:no-repeat;
    background-position:center;
    outline:none;
    background-color:transparent;
    cursor:pointer;
}
#nowPlaying {
    clear:both;
    margin-left:14px;
    margin-top:10px;
    margin-bottom:15px;
    font-size:16px;
}
.chapterButton {
    font-size:18px;
    margin:10px;
    margin-right:5px;
    height:40px; 
    border:2px solid #761650;
    background-color:#eee;
    border-radius:20px;
    text-align:left;
    cursor:pointer;
}
.nextChapter {
    background-color:#f6e795;
}
#interactiveAudioControls p {
    font-size:10px;
    margin-left:64px;
}
#interactiveAudioControls a {
    font-size:18px;
    margin-left:64px;
}

/* Modal background */
.modal {
    position: fixed;
    z-index: 1;
    padding-top: 150px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    }

/* Modal Content */
 .modal-content {
    background-color: #f6e795;
    margin: auto;
    padding: 20px;
    border: 4px solid #540430;
    max-width: 280px;
}

/* Chat */

#chatarea {
    width:100%;
    height:80%;
    font-size:16px;
}
#chatfoot {
    display:block;
    height:200px;
}
.received {
    display:block;
    clear:both;
    margin-bottom:-40px;
}
.sent {
    display:block;
    clear:both;
}
.chathead {
    display:none;
    position:relative;
    top:-20px;
    left:0px;
}
.chathead img {
    width:52px;
    height:52px;
}
.message {
    display:block;
    width:fit-content;
    border-radius:20px;
    padding:12px;
    margin-bottom:8px;
}
.message img {
    max-width:600px;
    width:100%;
    height:auto;
}
.received .message {
    display:none;
    margin-left:56px;
    color:white;
    background-color:#888;
    border-bottom-left-radius:0px;
}
.message.photo {
    padding:0;
    margin-bottom:0;
    background-color:transparent;
}
.sent .message, .chatchoices li {
    float:right;
    color:white;
    background-color:#0085D1;
    border-bottom-right-radius:0px;
}
.chatchoices {
    display:none;
}
.chatchoices ul {
    margin:0;padding:0;
}
.chatchoices li {
    cursor:pointer;
    display:block;
    clear:both;
    width:fit-content;
    border-radius:20px;
    padding:12px;
    margin-bottom:8px;
    color:white;
    background-color:#0085D1;
    border-bottom-right-radius:0px;
    opacity:0.5;
}
.theend li {
    border-radius:4px;
    background:#761650;
}

.chatchoices li:hover {
    opacity:1;
}
#chatloading {
    margin-left:40px;
    width:100px;
    height:50px;
    background-image:url('/images/chatloading.gif');
    background-position:center center;
    background-repeat:no-repeat;
    background-size:50%;
    opacity:0.5;
    overflow:hidden;
}


.legendbox {
    display:flex;
    justify-content:space-between;
    width:100%;
    max-width:600px;
    font-size:11px;
}
.legendelem{
    display:inline-block;
    background-position:left top;
    background-repeat:no-repeat;
    padding-left:34px;
    height:32px;
    width:70px;
}
.legendelem.povm {
    background-image:url('/images/povm.png');
}
.legendelem.povf {
    background-image:url('/images/povf.png');
}
.legendelem.povg {
    background-image:url('/images/povg.png');
}
.legendelem.povl {
    background-image:url('/images/povl.png');
}
.legendelem.pov3 {
    background-image:url('/images/pov3.png');
}

/* Adjustments for tablet screen sizes */
@media (min-width: 501px) and (max-width: 940px){
    #maincontainer {
        width:100%;
    }
    #toggle-leftcolumn, #toggle-leftcolumn2 {
        display:inline-block;
    }
    #contentcolumn{
        width: 100%;
    }
    .leftcolumn-active #contentcolumn{
        margin-right: -260px;
    }
    #leftcolumn{
        width: 260px;
        margin-left: -100%;
    }
    .leftcolumn-active #leftcolumn{
        margin-left: 0;
    }
    #title {
        background-size:auto 40px;
        background-position:8px center;
        padding-left:190px;
    }
    #topsection h1 {
        font-size:15px;
    }
}

/* Adjustments for mobile screen sizes */
@media (max-width: 500px){
    #maincontainer {
        width:100%;
    }
    #toggle-leftcolumn, #toggle-leftcolumn2 {
        display: inline-block;
    }
    #contentcolumn{
        font-size:16px;
        width: 100%;
    }
    #contentcolumn h2 {
        font-size:20px;
    }
    .leftcolumn-active #contentcolumn{
        margin-right: -260px;
    }
    #leftcolumn{
        width: 260px;
        margin-left: -100%;
    }
    .leftcolumn-active #leftcolumn{
        margin-left: 0;
    }
    #topsection h1 {
        font-size:12px;
    }
    #title{
        background-size:auto 30px;
        background-position:8px center;
        padding-left:140px;
    }
    .varprompt { width:100%; }
}

@media (max-width: 380px){
    #maincontainer {
        width:100%;
    }
    #toggle-leftcolumn, #toggle-leftcolumn2 {
        display: inline-block;
    }
    #contentcolumn{
        font-size:16px;
        width: 100%;
    }
    #contentcolumn h2 {
        font-size:20px;
    }
    .leftcolumn-active #contentcolumn{
        margin-right: -260px;
    }
    #leftcolumn{
        width: 260px;
        margin-left: -100%;
    }
    .leftcolumn-active #leftcolumn{
        margin-left: 0;
    }
    #topsection h1 {
        font-size:12px;
    }
    #title{
        background-size:auto 25px;
        background-position:8px center;
        padding-left:120px;
    }
    .varprompt { width:100%; }
    #tabrow a {
        padding: 8px 8px;
    }
    
}