/*----------------------Dialog box---------------------*/
:root {
  --Popup-Fade-Speed: 420ms;
  --Popup-Z-Index: 9;
  --Popup-BG-Color: #000000;
  --Popup-BG-Color-Transparency: 25%;
  --Popup-BG-Blur: 5px;
  --Popup-Width: 600px;
  --Popup-Max-Height: 85vh;
  --Popup-Padding: 10px;
  --Popup-Contents-BG: black;
}
label[for] {
  color: rgba(54, 105, 220, 0);
  cursor: pointer;
  display: block;
  width: 100%;
  height: 100%;
}
dialog label[for] {
  color: gold;
  width: 10%;
}
dialog .popup-inner {
  box-shadow: 0 8px 36px 0 rgba(0, 0, 0, 20%);
  color: #9f9f9f;
  text-align: center;
  padding-bottom: 25px;
  padding-top: 20px;
  scrollbar-width: none;
}
/*----------------------Body---------------------*/
html {
  scrollbar-width: none;
  scroll-behavior: smooth;
}
body {
  margin: auto;
  background-color: black;
  display: flex;
  flex-direction: row;
  overflow: auto;
  color: white;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  position: relative;
}
/*----------------------Text---------------------*/
a {
  color: white;
  text-decoration: none;
}
a:hover {
  color: gold;
}
p {
  margin-top: 15px;
  margin-bottom: 15px;
  color: #d5d5d5;
  text-indent: 50px;
}
.biomain p {
  text-indent: 0;
  margin-top: 10px;
  margin-bottom: 10px;
}
.tlp {
  text-indent: 0;
  margin: 0;
}
dialog p {
  text-indent: 0;
  margin-top: 10px;
  margin-bottom: 10px;
}
h2 {
  font-weight: normal;
  font-size: 60px;
  margin-bottom: 0;
  margin-top: 10px;
  margin-left: 10px;
  text-align: left;
}
h3 {
  font-size: 40px;
  margin: 5px;
  text-align: left;
  letter-spacing: 5px;
  font-style: italic;
}
h4 {
  font-size: 15px;
  text-align: left;
  letter-spacing: 5px;
  font-style: italic;
}
details {
  color: #d5d5d5;
}
small {
  color: #a5a6a7;
}
.quote {
  color: #ececec;
  text-indent: 0;
}
.tllink{
  color: gold;
}
.yellowyay{
  color: gold
}
/*----------------------main---------------------*/
.contents {
  width: 545px;
  height: min-content;
  border: solid white 2px;
  background-color: black;
  margin-top: 10px;
  position: relative;
  flex-shrink: 0;
  padding: 5px;
}
#header {
  width: 559px;
  height: 108px;
  background-color: black;
  position: absolute;
  left: -2px;
  top: 10px;
}
#aueh {
  margin-top: 118px;
  width: 100%;
  height: min-content;
  border-top: none;
  justify-content: center;
  display: flex;
  flex-direction: column;
}
/*----------------------characters---------------------*/
.character {
  width: 512px;
  height: 448px;
  background-image: url(water.png);
  border: double white;
  color: #cac9c9;
  position: relative;
  margin: auto;
  flex-shrink: 0;
  margin-bottom: 15px;
}
.face {
  border: solid #cac9c9 4px;
  width: 120px;
  height: 120px;
  margin-left: 10px;
  margin-top: 5px;
  background-size: 100% 100%;
}
/* I just came back from a long break, wtf was I on? LMFAO */
.side {
  border-right: solid #cac9c9 3px;
  width: 64px;
  height: 64px;
  background-size: 100% 100%;
}
.side2 {
  border-right: solid #cac9c9 3px;
  width: 64px;
  height: 64px;
  background-image: url(yoriko.png);
  background-position-x: center;
  background-repeat: no-repeat;
  background-color: black;
}
.con2 {
  width: 350px;
  height: 354px;
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 14px;
}
.bio {
  width: 343px;
  height: 64px;
  border: solid #cac9c9 3px;
  display: flex;
}
.actor {
  width: 100%;
  height: 19px;
  border-bottom: #cac9c9 solid 3px;
  vertical-align: middle;
  line-height: 20px;
}
.age {
  width: 55px;
  height: 20px;
  border-right: #cac9c9 solid 3px;
  text-align: center;
  vertical-align: middle;
  line-height: 20px;
}
.gender {
  width: 151px;
  height: 19px;
  line-height: 20px;
}
.occupation {
  width: 100%;
  height: 19px;
  border-top: #cac9c9 solid 3px;
  vertical-align: middle;
  line-height: 20px;
}
.item {
  border-left: solid #cac9c9 3px;
  width: 64px;
  height: 64px;
}
.biomain {
  margin-top: 10px;
  padding: 5px;
  width: 325px;
  height: 250px;
  border: #cac9c9 solid 3px;
  border-left: gold solid 11px;
  overflow: auto;
  font-size: 15px;
  text-align: center;
  scrollbar-width: thin;
  scrollbar-color: gold black;
}
/*----------------------link nav---------------------*/
.timeline {
  border: white solid 2px;
  width: 512px;
  height: 448px;
  flex-shrink: 0;
  margin: auto;
  margin-bottom: 15px;
  scrollbar-width: thin;
  overflow: auto;
  background-image: url(bg.png);
}
.tlinfo {
  border-collapse: separate;
  border-spacing: 0;
  margin: 10px;
}
.tlinfo td {
  padding-left: 4px;
}
.dates {
  min-width: 131px;
  line-height: 26px;
  background-color: black;
  font-weight: normal;
  font-size: 14px;
  border: solid 1px #cac9c9;
  border-bottom: none;
  border-right: black 5px solid;
  color: #cac9c9;
  text-align: left;
  padding-left: 6px;
  position: sticky;
  top: 0;
  left: 0;
}
#select {
  color: gold;
  letter-spacing: -1px;
  background-color: black;
  font-size: 13px;
  text-align: right;
  border-top: none;
  border-left: none;
  position: relative; /*im so lazy it aint even funny im such a fucking bum i hate my life*/
}
.names {
  min-width: 103px;
  line-height: 23px;
  background-color: #888888;
  color: #131313;
  font-weight: normal;
  font-size: 13px;
  border: 4px solid black;
  border-right: 1px solid black;
  position: sticky;
  top: 0;
}
.blank {
  background-color: rgba(0, 0, 0, 0.59);
  width: 105px;
  height: 25px;
}
.movie {
  background-color: #016501;
  display: grid;
  align-items: end; /*whatever bruh im just throwing shit at the wall*/
}
.stage {
  background-color: #016fd3;
  display: grid;
  align-items: end;
}
.tlnav {
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
/*----------------------Nav bar---------------------*/
.nav {
  width: 230px;
  height: 134px;
  margin-top: 10px;
  margin-left: 10px;
  display: flex;
  position: sticky;
  top: 10px;
}
#selector {
  color: gold;
  letter-spacing: -1px;
  background-color: black;
  position: absolute;
  left: -2px;
  font-size: 12px;
  transition: 250ms;
}
.header {
  width: 100%;
  display: flex;
  height: 60px;
}
.line {
  width: 100%;
  height: 50%;
  border-bottom: solid white 2px;
}
.navtable {
  font-weight: bold;
  border: 6px white solid;
  border-top: 3px white solid;
  border-bottom: 3px white solid;
  border-collapse: collapse;
  width: 100%;
  margin-left: 8px;
}
.navtable td {
  border: 3px white solid;
  padding-bottom: 5px;
}
body:has(#c:hover) #selector {
  transform: translate(0, 30px); /*you can't laugh*/
}
body:has(#t:hover) #selector {
  transform: translate(0, 57px);
}
body:has(#a:hover) #selector {
  transform: translate(0, 85px);
}
body:has(#h:hover) #selector {
  transform: translate(0, 115px);
}

/*----------------------crt effect---------------------*/
@keyframes flicker {
  0% {
    opacity: 0.27861;
  }
  5% {
    opacity: 0.34769;
  }
  10% {
    opacity: 0.23604;
  }
  15% {
    opacity: 0.90626;
  }
  20% {
    opacity: 0.18128;
  }
  25% {
    opacity: 0.83891;
  }
  30% {
    opacity: 0.65583;
  }
  35% {
    opacity: 0.67807;
  }
  40% {
    opacity: 0.26559;
  }
  45% {
    opacity: 0.84693;
  }
  50% {
    opacity: 0.96019;
  }
  55% {
    opacity: 0.08594;
  }
  60% {
    opacity: 0.20313;
  }
  65% {
    opacity: 0.71988;
  }
  70% {
    opacity: 0.53455;
  }
  75% {
    opacity: 0.37288;
  }
  80% {
    opacity: 0.71428;
  }
  85% {
    opacity: 0.70419;
  }
  90% {
    opacity: 0.7003;
  }
  95% {
    opacity: 0.36108;
  }
  100% {
    opacity: 0.24387;
  }
}
.crt::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size:
    100% 2px,
    3px 100%;
  pointer-events: none;
}
.crt::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(18, 16, 16, 0.1);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}

#tv {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
