body {
  color: #ffffff;
  margin: 0;
  font-family: "courier", "monospace";
  background-color: #535353;
}

@media (orientation: portrait) and (max-width: 850px) {
  body, .navbutton, .dropbtn {
    font-size: 2em;
  }
  nav {
    font-size: 2.25em;
  }
  #page.small {
    font-size: 1.5em;
  }
}
/* NAVBAR STUFF */
#navbar {
  background-color: #0C0C0C;
  color: #ffffff;
  margin: auto;
  padding-top: 5px;
  padding-bottom: 5px;
  max-width: 1000px;
  min-width: 800px;
  font-size: 0px;
  height: 102px;
}

nav {
  background-color: #000000;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  margin: auto;
  font-size: 1.25em;
  max-width: 1000px;
}

.navbutton {
  font-family: inherit;
  font-size: 1em;
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: black;
  color: inherit;
  border: none;
  cursor: pointer;
}

.navbutton:hover {
  background-color: #111111;
}

nav span {
  display: inline-block;
}

#leftlinks {
  padding-left: 40px;
}

#rightlinks {
  float: right;
  padding-right: 40px;
  padding-top: 5px;
}

@media (orientation: portrait) and (max-width: 850px) {
  #rightlinks {
    clear: both;
    float: none;
    margin: 0 auto;
    display: block;
    text-align: center;
    padding: 5px 0;
  }
}
/* Dropdowns */
/* Style The Dropdown Button */
.dropbtn {
  font-family: inherit;
  font-size: 1em;
  padding-top: 10px;
  padding-bottom: 10px;
  color: inherit;
  background-color: black;
  border: none;
  cursor: pointer;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #111111;
  min-width: 160px;
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #555555;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
  background-color: #111111;
}

/* Cast page stylings */
.cast-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.cast-box {
  width: 400px;
  border: 1px solid #ccc;
  margin: 10px;
  padding: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 150px;
  background-color: #282828;
}

.cast-content {
  display: flex;
  flex-grow: 1;
}

.cast-image-container {
  width: 160px;
  height: 160px;
  position: relative;
  margin-right: 15px;
}

.cast-image {
  position: absolute;
  /* Default positioning */
  top: 0;
  left: 0;
}

.cast-image-transition {
  transition: opacity 0.7s ease;
}

.cast-image-hover {
  position: absolute;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.cast-image-container:hover .cast-image-transition {
  opacity: 0;
}

.cast-image-container:hover .cast-image-hover {
  opacity: 1;
}

.cast-text {
  flex: 1;
}

.cast-name {
  font-weight: bold;
  margin: 0px;
}

.cast-description {
  font-size: 0.9em;
  margin-top: 10px;
}

.cast-description-image {
  max-width: 100%;
  justify-content: center;
  align-items: center;
  height: auto;
  display: flex;
  margin-bottom: 5px;
  margin-left: 10px;
}

.cast-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8em;
  font-family: monospace;
  border-top: 1px solid #eee;
  padding-top: 10px;
  height: 20px; /* Set this to your desired height */
  margin-top: auto; /* This pushes the info bar to the bottom */
}

.cast-info-left {
  text-align: left;
}

.cast-info-right {
  text-align: right;
}

.chapter-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.chapter-link {
  padding: 10px 20px;
  margin: 5px 5px;
  border: 2px solid #ccc;
  background-color: #000000;
  color: #ccc;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.chapter-link:hover {
  background-color: #e0e0e0;
  color: black;
}

.chapter-link.active {
  background-color: #4CAF50;
  color: white;
  border-color: #45a049;
}

/* PINK-BASED COLOUR-SWITCHING */
/* body */
body.pink {
  background: #644865; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(#644865, #281e29); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(#644865, #281e29); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(#644865, #281e29); /* For Firefox 3.6 to 15 */
  background: linear-gradient(#644865, #281e29); /* Standard syntax */
}

body.pink_1 {
  background: #503d51; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(#503d51, #282129); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(#503d51, #282129); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(#503d51, #282129); /* For Firefox 3.6 to 15 */
  background: linear-gradient(#503d51, #282129); /* Standard syntax */
}

body.pink_2 {
  background: #3c333c; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(#3c333c, #282528); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(#3c333c, #282528); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(#3c333c, #282528); /* For Firefox 3.6 to 15 */
  background: linear-gradient(#3c333c, #282528); /* Standard syntax */
}

/* Secret Stuff! */
.secret_00 {
  background-image: url("/chiasmata/images/etc/clue_00.png");
  background-repeat: no-repeat;
  background-position: calc(50% + 650px) 450px;
  background-size: 210px 210px;
}

.secret_01 {
  background-image: url("/chiasmata/images/etc/clue_01.png");
  background-repeat: no-repeat;
  background-position: calc(50% + 600px) 750px;
  background-size: 210px 210px;
}

.secret_02 {
  position: absolute;
  top: 700px;
  left: -150px;
}

.secret_03 {
  position: absolute;
  top: 150px;
  left: -300px;
}

.secret_04 { /* page 150 */
  position: absolute;
  top: 400px;
  left: -170px;
}

.secret_05 { /* page 183 */
  position: absolute;
  top: 550px;
  left: -160px;
}

/* content */
body.pink .content {
  background-color: #351e36;
}

body.pink_1 .content {
  background-color: #2c1d2d;
}

body.pink_2 .content {
  background-color: #2c1d2d;
}

/* other */
body.pink #page {
  background-color: #070004;
  color: #FFF8FC;
}

body.pink_1 #page {
  background-color: #030002;
  color: #fffefe;
}

body.pink nav {
  background-color: #070004;
}

body.pink_1 nav {
  background-color: #030002;
}

body.pink #navbar {
  background-color: #0B090C;
}

body.pink_1 #navbar {
  background-color: #0C0B0C;
}

/* */
/* Red colour switching */
body.red {
  background: #1c0a0a;
}

body.red .content {
  background-color: #150b0b;
}

body.red #page {
  background-color: #070000;
}

body.red nav {
  background-color: #070000;
}

body.red #navbar {
  background-color: #0c0707;
}

/* Spooky-style, dim and/or dark */
body.dark {
  background-color: #282828;
}

body.dark .content {
  background-color: #1b1b1b;
}

/* The Location's Funniest Home Videos */
body.video {
  background-color: #282828;
  background-image: url("/assets/images/static_light.png");
  background-repeat: repeat;
}

body.video .content {
  background-color: #1b1b1b;
}

/* Spooky, yet spookier... */
body.darker {
  background-color: #0f0f0f;
  background-image: url("/assets/images/static_dark.png");
  background-repeat: repeat;
}

body.darker .content {
  background-color: #151515;
}

/* Flip turnways */
.turnways {
  transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
}

/* Someone else is spooky */
body.orange {
  background-color: #5c514d;
}

body.orange .content {
  background-color: #38322f;
}

/* Other general Chiasmata page bits */
.content {
  background-color: #333333;
  font-family: "Arial", sans-serif;
  display: block;
  margin: auto;
  margin-top: 0;
  max-width: 920px;
  min-width: 600px;
  padding: 0 40px;
  overflow-x: visible;
  position: relative;
}

/* link colors */
a:link {
  color: #aaaaaa;
  text-decoration: none;
}

a:visited {
  color: #777777;
  text-decoration: none;
}

a:hover {
  color: #ffffff;
  text-decoration: none;
}

a:active {
  color: #777777;
  text-decoration: none;
}

a.current {
  color: green;
}

#page {
  background-color: #000000;
  padding: 0 25px;
  display: block;
  margin: auto;
  margin-top: 0;
  max-width: 750px;
  min-width: 550px;
  position: relative;
}

#disclaimer {
  z-index: 100;
}

.disclaimer-footer {
  background-color: #000000;
  border-top: 1px solid #333333;
  padding: 5px 40px;
  display: block;
  margin: auto;
  max-width: 920px;
}

.disclaimer-content {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  height: 100%;
}

.disclaimer-image {
  height: 70px;
  width: auto;
  flex-shrink: 0;
}

.disclaimer-text {
  font-family: "courier", "monospace";
  font-size: 1em;
  color: #ffffff;
  flex-grow: 1;
}

.archive-item {
  display: flex;
}

.archive-date {
  min-width: 10em;
  flex-shrink: 0;
  text-align: right;
}

.no-click {
  pointer-events: none;
}

/* Mobile adjustments */
@media (orientation: portrait) and (max-width: 850px) {
  .disclaimer-text {
    font-size: 2em;
  }
  .disclaimer-content {
    padding: 0 20px;
    gap: 10px;
  }
}
/* This is to make the things meet the bottom of the page, because margins in CSS are weird. */
.content h1:first-of-type, .content h2:first-of-type {
  padding-top: 19px;
  padding-bottom: 15px;
  margin-top: 0px;
}

#page > p:first-child {
  margin-top: 0;
}

.content p:last-of-type, .content h2:last-of-type, .content ol:last-of-type {
  padding-bottom: 15px;
  margin-bottom: 0px;
}

#page .dialogue {
  margin-left: 56px;
}

.dialogue p {
  margin: 5px;
}

.chromatic {
  position: relative;
  isolation: isolate;
}
.chromatic::before, .chromatic::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: lighten;
  z-index: -1;
  white-space: inherit;
  word-break: inherit;
  overflow-wrap: inherit;
  hyphens: inherit;
  opacity: 0.6;
}
.chromatic::before {
  color: #00ffff;
  transform: translate(-1px, -1px);
}
.chromatic::after {
  color: #ff00ff;
  transform: translate(1px, 1px);
}

.Sam {
  color: #006cff;
}

.Aidan {
  color: #00ff90;
}

.Daniel {
  color: #ff5400;
}

.Bonnie {
  color: #ffd800;
}

.Jacqueline {
  color: #FF0000;
}

.Clara {
  color: #88ff00;
}

.Leo {
  color: #ffba00;
}

.Ghost {
  color: #b58400;
}

.Omar {
  color: #593eff;
}

.David {
  color: #ff9000;
}

.Dawn {
  color: #3041ff;
}

.Ash {
  color: #00ff00;
}

.Anders {
  color: #ff0096;
}

.green_mystery {
  color: #00ff69;
}

.orange_mystery {
  color: #FF8B00;
}

.purple_mystery {
  color: #c800ff;
}

.Robot {
  font-family: "Courier New", Courier, monospace;
}

.other_mystery {
  text-align: right;
  font-family: "Courier New", Courier, monospace;
}

#page .small {
  font-size: 0.5em;
}

.blink_me {
  animation: blinker 1s step-start infinite;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}
#page img {
  margin: 0 -25px;
}

#page .system {
  color: #ffffff;
}

#page .Archie {
  font-family: "Courier New", Courier, monospace;
  text-align: center;
  text-decoration: line-through;
}

#page .Computer {
  font-family: "Courier New", Courier, monospace;
  text-align: center;
}

#page h1 {
  text-align: center;
  padding: 14px 0;
}

#page .center-image {
  margin: 0 auto;
  display: block;
}

.center-image {
  margin: 0 auto;
  display: block;
}

/* STUFF FOR THE BLOG SECTION */
.post-nav {
  display: flex;
  padding-bottom: 15px;
  margin-bottom: 0px;
}

.post-nav div {
  flex: 1 1 0;
}

.post-nav-next {
  text-align: right;
}

/* Chromatic aberration */
.split {
  text-shadow: -2px -2px 0 #ff00ff, 2px 2px 0 #00ffff;
}

/* Animation stuff? */
/* Our mixin positions a copy of our text
directly on our existing text, while
also setting content to the appropriate
text set in the data-text attribute. */
.glitch {
  position: relative;
  color: white;
  font-family: "Courier New", Courier, monospace;
  /* Animation provies a slight random skew. Check bottom of doc
  for more information on how to random skew. */
  animation: glitch-skew 1s infinite linear alternate-reverse;
}

.glitch::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  left: 2px;
  text-shadow: -2px 0 #ff00c1;
  /* Creates an initial clip for our glitch. This works in
  a typical top,right,bottom,left fashion and creates a mask
  to only show a certain part of the glitch at a time. */
  clip: rect(44px, 450px, 56px, 0);
  /* Runs our glitch-anim defined below to run in a 5s loop, infinitely,
  with an alternating animation to keep things fresh. */
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  left: -2px;
  text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
  animation: glitch-anim2 1s infinite linear alternate-reverse;
}

/* Animation with 20 steaps. For each step, it calculates 
a percentage for the specific step. It then generates a random clip
box to be used for the random glitch effect. Also adds a very subtle
skew to change the 'thickness' of the glitch.*/
@keyframes glitch-anim {
  0% {
    clip: rect(12px, 9999px, 70px, 0);
    transform: skew(0.37deg);
  }
  5% {
    clip: rect(41px, 9999px, 29px, 0);
    transform: skew(0.51deg);
  }
  10% {
    clip: rect(15px, 9999px, 82px, 0);
    transform: skew(0.66deg);
  }
  15% {
    clip: rect(90px, 9999px, 68px, 0);
    transform: skew(0.61deg);
  }
  20% {
    clip: rect(14px, 9999px, 42px, 0);
    transform: skew(0.53deg);
  }
  25% {
    clip: rect(37px, 9999px, 89px, 0);
    transform: skew(0.65deg);
  }
  30% {
    clip: rect(41px, 9999px, 15px, 0);
    transform: skew(0.92deg);
  }
  35% {
    clip: rect(48px, 9999px, 84px, 0);
    transform: skew(0.71deg);
  }
  40% {
    clip: rect(7px, 9999px, 90px, 0);
    transform: skew(0.62deg);
  }
  45% {
    clip: rect(68px, 9999px, 83px, 0);
    transform: skew(0.72deg);
  }
  50% {
    clip: rect(5px, 9999px, 6px, 0);
    transform: skew(0.85deg);
  }
  55% {
    clip: rect(31px, 9999px, 73px, 0);
    transform: skew(0.34deg);
  }
  60% {
    clip: rect(47px, 9999px, 36px, 0);
    transform: skew(0.43deg);
  }
  65% {
    clip: rect(62px, 9999px, 8px, 0);
    transform: skew(0.77deg);
  }
  70% {
    clip: rect(7px, 9999px, 74px, 0);
    transform: skew(0.82deg);
  }
  75% {
    clip: rect(17px, 9999px, 71px, 0);
    transform: skew(0.28deg);
  }
  80% {
    clip: rect(4px, 9999px, 54px, 0);
    transform: skew(0.01deg);
  }
  85% {
    clip: rect(29px, 9999px, 25px, 0);
    transform: skew(0.4deg);
  }
  90% {
    clip: rect(69px, 9999px, 30px, 0);
    transform: skew(0.68deg);
  }
  95% {
    clip: rect(18px, 9999px, 15px, 0);
    transform: skew(0.74deg);
  }
  100% {
    clip: rect(79px, 9999px, 51px, 0);
    transform: skew(0.75deg);
  }
}
@keyframes glitch-anim2 {
  0% {
    clip: rect(6px, 9999px, 43px, 0);
    transform: skew(0.34deg);
  }
  5% {
    clip: rect(96px, 9999px, 27px, 0);
    transform: skew(0.16deg);
  }
  10% {
    clip: rect(75px, 9999px, 35px, 0);
    transform: skew(0.04deg);
  }
  15% {
    clip: rect(37px, 9999px, 18px, 0);
    transform: skew(0.96deg);
  }
  20% {
    clip: rect(77px, 9999px, 48px, 0);
    transform: skew(0.29deg);
  }
  25% {
    clip: rect(9px, 9999px, 83px, 0);
    transform: skew(0.09deg);
  }
  30% {
    clip: rect(96px, 9999px, 39px, 0);
    transform: skew(0.45deg);
  }
  35% {
    clip: rect(37px, 9999px, 66px, 0);
    transform: skew(1deg);
  }
  40% {
    clip: rect(75px, 9999px, 60px, 0);
    transform: skew(0.61deg);
  }
  45% {
    clip: rect(85px, 9999px, 84px, 0);
    transform: skew(0.13deg);
  }
  50% {
    clip: rect(46px, 9999px, 84px, 0);
    transform: skew(0.94deg);
  }
  55% {
    clip: rect(33px, 9999px, 59px, 0);
    transform: skew(0.66deg);
  }
  60% {
    clip: rect(38px, 9999px, 37px, 0);
    transform: skew(0.68deg);
  }
  65% {
    clip: rect(67px, 9999px, 65px, 0);
    transform: skew(0.14deg);
  }
  70% {
    clip: rect(9px, 9999px, 18px, 0);
    transform: skew(0.89deg);
  }
  75% {
    clip: rect(49px, 9999px, 93px, 0);
    transform: skew(0.51deg);
  }
  80% {
    clip: rect(80px, 9999px, 81px, 0);
    transform: skew(0.37deg);
  }
  85% {
    clip: rect(2px, 9999px, 12px, 0);
    transform: skew(0.87deg);
  }
  90% {
    clip: rect(24px, 9999px, 4px, 0);
    transform: skew(0.3deg);
  }
  95% {
    clip: rect(22px, 9999px, 42px, 0);
    transform: skew(0.87deg);
  }
  100% {
    clip: rect(69px, 9999px, 14px, 0);
    transform: skew(0.26deg);
  }
}
@keyframes glitch-skew {
  0% {
    transform: skew(1deg);
  }
  10% {
    transform: skew(-3deg);
  }
  20% {
    transform: skew(-1deg);
  }
  30% {
    transform: skew(-1deg);
  }
  40% {
    transform: skew(4deg);
  }
  50% {
    transform: skew(-1deg);
  }
  60% {
    transform: skew(-3deg);
  }
  70% {
    transform: skew(-1deg);
  }
  80% {
    transform: skew(-3deg);
  }
  90% {
    transform: skew(-3deg);
  }
  100% {
    transform: skew(-3deg);
  }
}
html, body {
  margin: 0;
}

.crt-terminal {
  box-sizing: border-box;
  font-family: monospace;
  font-size: 1rem;
  height: 100vh;
  background: #000;
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: center;
}
.crt-terminal .crt-bezel {
  width: 66.67%;
  background: #1c1c1c;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid #444;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}
@media (max-width: 768px) {
  .crt-terminal .crt-bezel {
    width: 100%;
  }
}
.crt-terminal .crt-screen {
  flex: 1;
  min-height: 0;
  background-color: #000;
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: background-color 1.5s ease, color 1.5s ease;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.4);
}
.crt-terminal .crt-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
  z-index: 10;
}
.crt-terminal .crt-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 0, 0, 0.2) 3px, rgba(0, 0, 0, 0.2) 4px);
  pointer-events: none;
  z-index: 11;
}
.crt-terminal #output {
  flex: 1;
  min-height: 0;
  margin-bottom: 0.75rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--room-fg, #fff) transparent;
}
.crt-terminal #output::-webkit-scrollbar {
  width: 6px;
}
.crt-terminal #output::-webkit-scrollbar-track {
  background: transparent;
}
.crt-terminal #output::-webkit-scrollbar-thumb {
  background-color: var(--room-fg, #fff);
}
.crt-terminal #output p, .crt-terminal #output p span, .crt-terminal #output p a {
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 0 6px currentColor;
}
.crt-terminal #output p a:link {
  color: #a8d0ff;
  text-decoration: underline;
}
.crt-terminal #output p a:visited {
  color: #c8a8ee;
  text-decoration: underline;
}
.crt-terminal .centered p {
  text-align: center;
}
.crt-terminal #input-row {
  display: flex;
  gap: 0.4em;
  text-shadow: 0 0 6px currentColor;
}
.crt-terminal #cmd {
  background: transparent;
  border: none;
  color: inherit;
  caret-color: currentColor;
  font-family: monospace;
  font-size: 1rem;
  flex: 1;
  outline: none;
  text-shadow: 0 0 6px currentColor;
}

/*# sourceMappingURL=styles.css.map */