@font-face {
    font-family: Main;
    /*src: url("data/x16y32pxGridGazer.ttf");*/
    /*src: url("data/x12y16pxMaruMonica.ttf");*/
    src: url("data/x12y12pxMaruMinyaM.ttf");
    /*src: url("data/x12y20pxScanLine.ttf");*/
    /* src: url("data/pc-9800.ttf"); */
    /* src:  url("data/x68000_sans.ttf"); */
  }

@font-face {
    font-family: Textbox;
    /*src: url("data/x16y32pxGridGazer.ttf");*/
    src: url("data/x12y12pxMaruMinyaM.ttf");
    /*src: url("data/x12y20pxScanLine.ttf");*/
    /* src: url("data/pc-9800.ttf"); */
    /* src:  url("data/x68000_sans.ttf"); */
  }

* {
    box-sizing: border-box; 
  }

html, body {
    height: 100%;
    width: 100%;
    margin: 0px;
    background-color: white;
    font-family: Main;
    font-size: 24px;
  }

.main {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background: black;
 }

.sidebar {
    z-index: 100;
    position: absolute;
    top: 5%;
    left:5%;
   }

  .autoplayoff, .autoplay {
    position: relative;
    top: 0;
    right: 0;
    /*font-size: 2vw;*/
    height: 20px;
    width: 30px;
    margin: 2px;
  }

  .autoplayoff {
    color: transparent;
  }

  .autoplay {
    z-index:  99;
    color: #e60017 ;
  }

#screen {
  height: 100%;
  width: 100%;
  position: relative;
  /*border: 2px solid black;*/
  margin: auto;
  background: black;
  display:  flex;
  justify-content: center;
  image-rendering: pixelated;
}

canvas { 
  position: absolute; 
  height: 100%;
  width: 100%;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#back { z-index: 10; }
#back2 { z-index: 20; }
#front { z-index: 30; }
#front2 { z-index: 30; }
#front3 { z-index: 40; }
#front4 { z-index: 50; }
#text { z-index: 60; }
}


.hidden {
  border: 0px;
  border-style: solid;
  border-color: white;
  background-color: RGBA(0,0,0,0);
  }

#mainMenu {
  z-index: 100;
  position: absolute;
  top: 16.67%;
  left: 70%;
  width: 26.25%;
  height: 50%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #CCC #333;
  background-color: #0039;
}

#settingsMenu {
  z-index: 100;
  position: absolute;
  top: 16.67%;
  left: 70%;
  width: 26.25%;
  height: 50%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #CCC #333;
}

#lowerMenu {
  z-index: 100;
  position: absolute;
  top: 71.6667%;
  left: 3.75%;
  width: 92.5%;
  height: 23.3333%;
  overflow-x:hidden;
  overflow-y:auto;
  scrollbar-width: thin;
  scrollbar-color: #CCC #333;
}

#statsBar {
  z-index: 100; 
  position: absolute;
  top: 5%;
  left: 3.75%;
  width: 62.50%;
  height: 6.6667%;
  padding: 0.25em .5em;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #CCC #333;
}

#rollBar {
  z-index: 110; 
  position: absolute;
  top: 5%;
  left: 3.75%;
  width: 62.50%;
  height: 6.6667%;
  padding: 0.25em .5em;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #CCC #333;
}

#dateBar {
  z-index: 100; 
  position: absolute;
  top: 60%;
  left: 3.75%;
  width: 62.5%;
  height: 6.6667%;
  padding: 0.25em;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #CCC #333;
}

#notificationBar {
  z-index: 110; 
  position: absolute;
  top: 60%;
  left: 3.75%;
  width: 62.5%;
  height: 6.6667%;
  padding: 0.25em;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #CCC #333;
}

#needsBar {
  z-index: 100; 
  position: absolute;
  top: 5%;
  left: 70%;
  width: 20%;
  height: 6.6667%;
  padding: .25em;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #CCC #333;
}

#menuButton {
  z-index: 100;
  position: absolute;
  top: 5%;
  left: 91.25%;
  width: 5.1%;
  height: 6.7667%;
  padding: 0.25em;
  color: #FFF;
}

#backlogBlock {
  z-index: 100; 
  position: absolute;
  top: 16.6667%;
  left: 3.75%;
  width: 62.5%;
  height: 41.6667%;
  background-color: #0039;
}

#backlogList {
  list-style-position: outside;
  list-style-type: none;
}

#contactsBlock {
  z-index: 100; 
  position: absolute;
  top:16.6667%;
  left:3.75%;
  width: 62.5%;
  height: 41.6667%;
}

#contactsList {
  list-style-position: outside;
  list-style-type: none;
}

#textboxDefocus {
  z-index: 200; 
  position: absolute;
  top: 71.6667%;
  left: 3.75%;
  width: 92.5%;
  height: 23.3333%;
  background-color: #0039;
}

.textList {
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  cursor: text;
  color: #FFF;
  text-decoration: none;
}
.textList li {
  padding-left: 2.5%;
  padding-right: 2.5%;
}
.textList li:first-of-type {
  padding-top: 1.6667%;
}
.textList li:not(:first-of-type) {
  padding-top: 3.3333%;
}
.textList li:last-of-type {
  padding-bottom: 1.6667%;
}

.relationships {
  z-index: 100; 
  position: absolute;
  top: 20%;
  left: 10%;
  width:80%;
  display: flex;
  justify-content:space-around;
  height:30%;
  flex-direction: row;
}

.bio {
  margin:4px;
  height:100%;
  padding: 10px;
  background-color:white;
  color:black;
  border: 2px;
  overflow: hidden;
  display:flex;
  flex-direction: row;
}

.portrait {
  display:inline-block;
  position:relative;
  right: 0;
  top:0;
}

.flexGap {
  padding: 0.25em;
  gap: .275em;
}

.flexRow {
  display: flex;
  justify-content: flex-start;
  flex-direction: row;
  gap: .75em;
}

.flexRowFlip {
  display: flex;
  justify-content: flex-end;
  flex-direction: row;
  gap: .75em;
}

.flexRowSpaced {
  display: flex;
  justify-content: space-around;
  flex-direction: row;
  gap: .75em;
}

.flexRowJustified {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  gap: .75em;
}

.flexColumn {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  gap: .325em;
}

.flexColumnSpaced {
  display: flex;
  justify-content: space-around;
  flex-direction: column;
  gap: .325em;
}

.flexColumnJustified {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: .325em;
}

.flexText {
  display: flex;
  /*padding: .25em .5em;*/
  text-align: center;
  align-items: center;
  color: #FFF;
  text-shadow: .083em .083em #0009;
}

.flexButtonCenter {
  display: flex;
  justify-content: space-around;
  /*padding: .25em .5em;*/
  color: #FFF;
  background-color: #9999;
  text-align: center;
  align-items: center;
  outline-width: .15em;
  outline-color: #FFF;
  outline-style: outset;
  outline-offset: -.125em;
  cursor: pointer;
  text-shadow: .083em .083em #0009;
  box-shadow: .125em .125em #0006;
}
.flexButtonCenter:hover {
  background-color: #CCCC;
  outline-style: solid;
}
.flexButtonCenter:active {
  background-color: #999C;
  outline-style: inset;
}

.flexButton {
  display: flex;
  justify-content: flex-start;
  padding: .25em .5em;
  color: #FFF;
  background-color: #3339;
  text-align: left;
  align-items: center;
  outline-width: .15em;
  outline-color: #FFF;
  outline-style: outset;
  outline-offset: -.125em;
  cursor: pointer;
  text-shadow: .083em .083em #0009;
  box-shadow: .125em .125em #0006;
}
.flexButton:hover {
  background-color: #666C;
  outline-style: solid;
}
.flexButton:active {
  background-color: #333C;
  outline-style: inset;
}

.flexExpand {
  flex-grow:1;
}

.scrollBlock {
  display: block;
  padding: 0;
  margin: 0;
  color: #FFFFFF;
  background-color: #000000;
  scrollbar-color: #CCC #333;
  scrollbar-width: thin;
  overflow-x: hidden;
  overflow-y: auto;
}

#choiceWindow {
  z-index: 90; 
  position: absolute; 
  top:16.6667%;
  left:3.75%;
  height:41.6667%;
  width:62.5%;
}

#choiceList {
  display: flex;
  flex-direction: column;
  gap: .325em;
  width: 100%;
  height: fit-content;
  max-height: 100%;
  padding: 1.25%;
  margin: 0;
  list-style-type: none;
  scrollbar-color: #CCC #333;
  scrollbar-width: thin;
  overflow-x: hidden;
  overflow-y: auto;
}

.choiceButton {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /*padding: 1.25% 2.5%;*/
  padding-top: 1%;
  padding-bottom: 1%;
  color: #FFF;
  background-color: #3339;
  text-align: left;
  align-items: center;
  outline-color: #FFF;
  outline-style: outset;
  outline-width: .15em;
  outline-offset: -.125em;
  cursor: pointer;
  text-shadow: .083em .083em #0009;
  box-shadow: .125em .125em #0006;
}
.choiceButton:hover {
  background-color: #666C;
}
.choiceButton:active {
  background-color: #333C;
  outline-style: inset;
}

.choiceText {
  text-align: left;
  padding-left:2.5%;
  padding-right:2.5%;
  width: 100%;
  height: 100%;
}
.choiceFooter {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-top: 1.25%;
  width: 100%;
  height: 100%;
  font-size: 0.75em;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #CCC #333;
}
.choiceFooterChallenge {
  text-align: left;
  padding-left: 2.5%;
  padding-right: 2.5%;
  white-space: nowrap;
}
.choiceFooterTagBlock {
  text-align: right;
  width: 100%;
}
.choiceFooterTag {
  display: inline-block;
  padding-right: 2.5%;
}

.easy {
  background-color: #09C9 !important;
}
.easy:hover {
  background-color: #0CFC !important;
}
.easy:active {
  background-color: #09CC !important;
}

.normal {
  background-color: #C909 !important;
}
.normal:hover {
  background-color: #FC0C !important;
}
.normal:active {
  background-color: #C90C !important;
}

.hard {
  background-color: #C099 !important;
}
.hard:hover {
  background-color: #F0CC !important;
}
.hard:active {
  background-color: #C09C !important;
}


.faded {
  opacity: 40%;
}
.fading {
  opacity: 60%;
}
.fading:hover {
  opacity: 100%;
}
.fading:active {
  opacity: 100%;
}

.bonus {
  color: #66FFCC !important;
}
.neutral {
  color: #FFCC33 !important;
}
.malus {
  color: #FF6699 !important;
}

.textStroke {
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
.textStrokeThick {
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, -1px -2px 0 #000, 1px -2px 0 #000, -1px 2px 0 #000, 1px 2px 0 #000, -2px -1px 0 #000, 2px -1px 0 #000, -2px 1px 0 #000, 2px 1px 0 #000, 0px -2px 0 #000, 0px 2px 0 #000, -2px 0px 0 #000, 2px 0px 0 #000;
}
.textStrokeWhite {
  text-shadow: -1px -1px 0 #FFF, 1px -1px 0 #FFF, -1px 1px 0 #FFF, 1px 1px 0 #FFF;
}
.textStrokeThickWhite {
  text-shadow: -1px -1px 0 #FFF, 1px -1px 0 #FFF, -1px 1px 0 #FFF, 1px 1px 0 #FFF, -2px -2px 0 #FFF, 2px -2px 0 #FFF, -2px 2px 0 #FFF, 2px 2px 0 #FFF, -1px -2px 0 #FFF, 1px -2px 0 #FFF, -1px 2px 0 #FFF, 1px 2px 0 #FFF, -2px -1px 0 #FFF, 2px -1px 0 #FFF, -2px 1px 0 #FFF, 2px 1px 0 #FFF, 0px -2px 0 #FFF, 0px 2px 0 #FFF, -2px 0px 0 #FFF, 2px 0px 0 #FFF;
}


/*
.choicesOLD, .statusOLD {
  z-index: 90; 
  display: flex;
  position: absolute; 
  top: 16.6667%;
  left: 3.75%;
  height: 41.6667%;
  width: 62.5%;
  padding: 0;
  gap: 5px;
  text-align: center;
  list-style-type: none;
}

.choiceListItemOLD {
  height:20%;
  width:fit-content;
  background-color: white;
  padding: 5px; 
  margin:5px;

  cursor: pointer;
  vertical-align: middle;
  text-decoration: none;
  list-style-type: none;
}

.choiceListItemOLD li {
  gap: 5px;
  list-style-type: none;
}

.choiceListItemOLD ::marker {
  visibility: hidden;
}

.choicesOLD {
  color: black;
}

.choiceListItemOLD:hover {
  color: white;
  background-color:black;
}

.menu, .menuright {
  z-index: 100; 
  position: absolute; 
  top: 71.6667%;
  left: 3.75%;
  width: 92.5;
  height: 23.3333;

  color: black;
  padding: 0;
  list-style-type: none;
  margin:  1%;

  width:fit-content;

  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: 10px;

  text-align:center;
}

.menu li , .menuright li {
  background-color: white;
  padding: 10px; 
  cursor: pointer;
  width:100%;
  vertical-align: middle;
  gap:5px;
}

.menu li:hover , .menuright li:hover {
   background-color: black;
   color: white;
}
*/