@font-face {
    font-family: milkjf;
    src: url("data/pc-9800.ttf");
    /* src:  url("data/x68000_sans.ttf"); */
  }

* {
    box-sizing: border-box; 
  }

body {
    height: 100vh;
    width: 100vw;
    margin: 0;
    background-color: white;
    font-family: milkjf;
    
  }

.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 {

    color: #e60017 ;
    z-index:  99;
  }

.choices, .status {
  
  position: absolute; 
  z-index: 100; 
  color: black;
  padding: 0;
  list-style-type: none;
  letter-spacing: 0.15em;
  margin:  1%;
  border: 2px;
  top:25%;
  left:25%;
  width:fit-content;
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: 5px;
  text-align:center;
  display: block;
  
  }

.hidden {
  
  border: 0px;
  border-style: solid;
  border-color: white;
  background-color: RGBA(0,0,0,0);
  /* height:  5px; */
  /* transition: height 1.5s; */
  }

.choiceListItem {

  height:20%;
  width:fit-content;
  background-color: white;
  padding: 5px; 
  margin:5px;
  list-style-type: none;
  /* border-bottom: 1px solid #992222;
  border-left: 1px solid #992222; */
  cursor: pointer;
  box-shadow: 10px 10px RGBA(0,0,0,0.7);
  font-size: 2vw;
  vertical-align: middle;
  color: black;
  text-decoration: none;

}

.choiceListItem li {
  gap:5px;
  list-style-type: none;
}

.choiceListItem ::marker {
  visibility: hidden;
}

.choices {

  color: black;
  }

.choiceListItem:hover {

  color: white;
  background-color:black;
  /* text-decoration: underline; */
  }

#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;
  
}
  #text { z-index: 6; }
  #front { z-index: 3; }
  #front2 { z-index: 3; }
  #front3 { z-index: 4; }
  #front4 { z-index: 5; }
  #back2 { z-index: 2; }
  #back { z-index: 1; }

.menu, .menuright {
  position: absolute; 
  z-index: 100; 
  color: black;
  padding: 0;
  list-style-type: none;
  letter-spacing: 0.15em;
  margin:  1%;
  border: 2px;
  bottom:5%;

  height:20%;
  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; 
  /* border-bottom: 1px solid #992222;
  border-left: 1px solid #992222; */
  cursor: pointer;
  box-shadow: 10px 10px RGBA(0,0,0,0.7);
  width:100%;
  font-size: 1.5vw;
  vertical-align: middle;
  gap:5px;
  
}
.menu li:hover , .menuright li:hover {
   background-color: black;
   color: white;
}

.menu {
  left: 7%;
}

.menuright {
  right: 7%;
  direction: rtl;
}


.menuright li {

  direction:ltr;

}

.stats {

  z-index: 100; 
  position: relative;
  top: 0;
  left:0;
  width:80%;
  display: flex;
  justify-content:space-around;
  height:5%;
  margin-left:1%;
  margin-right:2%;
  margin-top:1%;
  
}

.statsIcon {

  flex-grow:1;
  margin:5px;
  height:fit-content;
  padding: 7px;
  background-color:white;
  color:black;
  border: 2px;
  font-size:1cqw;
  box-shadow: 10px 10px RGBA(0,0,0,0.7);
  text-align:center;
  font-size: 1.2vw;

}

.dateIcon {

  text-align:center;
  flex-grow:1.8;
  margin-top:5px;
  margin-right:5px;
  margin-bottom:5px;
  margin-left:15px;
  height:fit-content;
  padding: 5px;
  background-color:black;
  color:white;
  border: 2px;
  font-size:1cqw;
  box-shadow: 10px 10px RGBA(0,0,0,0.7);
  font-size: 1.2vw;

}

.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;
  font-size:1cqw;
  overflow: hidden;
  display:flex;
  flex-direction: row;
  
}

.portrait {
  display:inline-block;
  position:relative;
  right: 0;
  top:0;
}

.choiceNumber {
  color:#FF69B4;
  font-style: italic;
}


.historybutton {
  position: absolute;
  bottom: 2vh;
  right: 6vw;
  font-size: 2vw;
  height: 20px;
  width: 30px;
  margin: 2px;
  z-index:9;
  color:RGBA(255,255,255,0.1);
  
}

.historybutton:hover {

  color: white;
}

.log {

  position: absolute; 
  z-index: 100; 
  color: black;
  padding: 0;
  list-style-type: none;
  letter-spacing: 0.15em;
  margin:  1%;
  border: 2px;
  top:5%;
  left:5%;
  width:fit-content;
  max-height: 90%;
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: 5px;
  text-align:left;
  display: block;
  overflow:scroll;
}

.log::-webkit-scrollbar {
  display: none;
}

.loglist {

  height:20%;
  width:fit-content;
  background-color: white;
  padding: 5px; 
  margin:5px;
  list-style-type: none;
  /* border-bottom: 1px solid #992222;
  border-left: 1px solid #992222; */
  cursor: pointer;
  box-shadow: 10px 10px RGBA(0,0,0,0.7);
  font-size: 2vw;
  vertical-align: middle;
  color: black;
  text-decoration: none;
  overflow:scroll;
  
}