@font-face {
    font-family: milkjf;
    src: url("data/pc-9800.ttf");
    /* src:  url("data/x68000_sans.ttf"); */
  }

* {
    box-sizing: border-box; 
    user-select: none;
  }

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;
    background-image: url("images/BG_SPACE.png")
 }

.sidebar {
    z-index: 100;
    position: absolute;
    top: 5%;
    left:5%;
   }

  .autoplayoff, .autoplay {
    position: absolute;
    bottom: 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;
  bottom:10%;
  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;
  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;
  text-decoration: none;
  color:#DDDDDD;
  padding: 10px; 
  background-color:black;
  border: 2px solid black;
  border: 2px solid black;
}

.choiceListItem li {
  gap:5px;
  list-style-type: none;

}

.choiceListItem ::marker {
  visibility: hidden;
}

.choices {

  color: black;
  }

.choiceListItem:hover {

  color: red;
  border: 2px solid #992222;
  border: 2px solid #992222;
  /* 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;
  
  }

  .mainText {

    position:absolute;
    z-index:6;
    color:#AAAAAA;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
    line-height: 1.2;
    padding-top:6.25%;
    bottom:25%;
    padding-bottom:5%;
    padding-left:6.25%;
    padding-right:6.25%;
    overflow:hidden;
    height: 100%;
    width: 100%;
    font-size: 2.5em;
    display: flex;
    background-color:RGBA(0,0,0,0);

  }

.mainTextList {
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

.mainTextList li {
    list-style-type: none;
}

.mainTextList li:last-child {
  color:white;
}

.mainTextList ::marker {
  visibility: hidden;
}

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;
  width:fit-content;

  display: grid;
  grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
  /*grid-auto-columns: 100%;*/
  grid-auto-flow: column;
  gap: 10px;

  text-align:center;

}

.menu {
  bottom:5%;

  height:20%;
}

.menuright {
  top:10%;

  height:30%;
}

.menu li , .menuright li {
  /*background-color: #111111;*/
  color:#DDDDDD;
  padding: 10px; 
  border: 2px solid #992222;
  border: 2px 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: red;
}

.menu {
  left: 7%;
}

.menuright {
  padding-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:80%;
  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:80%;
  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:red;
  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;
  
}