:root {
  --border-color: #b4befe;
  --header-color:#cba6f7;
  --text-color: #f5c2e7;
  --text-background:#181825;
  --pearl-color: #65c4de;
  --scientist-color: #d2738a;
  --link-color: #f5c2e7;

  --secondary-color: #e4c9af;
}



a:link, a:visited {
  color: var(--header-color);
  text-decoration: underline;
}
a:hover {
  color: #f5c2e7;
}
a:active {
  color: #b4befe;
}

/* === GLOBAL BODY === */
body {
  font-family: ms ui gothic, sans-serif;
  font-size: 15px;
  color: #f5c2e7;
  text-shadow: 3.8709px 0 1px rgba(0,30,255,.5),
                -3.8709px 0 1px rgba(255,0,80,.3),
                0 0 3px;
  background: radial-gradient(circle at top left, #cba6f720 0%, transparent 60%),
              radial-gradient(circle at bottom right, #cba6f720 0%, transparent 60%),
              linear-gradient(to bottom right, #282a36, #1f1f2b, #282a36);
  background-attachment: fixed;
  padding: 10px;
  overflow: auto;
  position: relative;
  top: 0; left: 0; right: 0; bottom: 0;
  animation: none;
}

/* === CRT EFFECTS COVER ENTIRE PAGE === */
.crt::before {
  content: " ";
  position: fixed;
  display: block;
  top: 0; left: 0; right: 0; bottom: 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));
  background-size: 100% 2px, 3px 100%;
  z-index: 2;
  pointer-events: none;
  transform: translateZ(0);
}



.crt::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18,16,16,0.1);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  animation: none;
  transform: translateZ(0);
}



.crt::before,
.crt::after {
  contain: layout style paint;
  will-change: opacity;
}

/* === ENABLE CRT ANIMATION === */
body.fx::before,
body.fx::after {
  animation: flicker 0.15s infinite;
}

@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;
    }
}




/* === CONTAINER === */
.container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  grid-template-rows: 0.2fr 1fr 1fr 1.8fr 0.2fr;
  grid-template-areas:
    "bar bar bar . . bunny-button"
    "main main main main main main"
    "main main main main main main"
    "main main main main main main"
    "footer footer footer footer footer footer";
  width: 1000px;
  height: 860px;
  margin: auto;
  position: relative;
  z-index: 1;
}

/* === BAR === */
.bar {
  grid-area: bar;
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: 10px;
  text-align: right;
  box-shadow: 0 0 4px #cba6f740 inset;
  background-color: #1f1f2b;
  color: var(--border-color);
  font-weight:bold;
}


/* === SITE TITLE === */
.gametitle {
  font-size: 40px;
  font-weight: bold;
  width: 100%;
  padding: 10px;
  color: var(--header-color);
}



/* === MAIN AREA === */
.main {
  display: grid;
  grid-template-columns: 0.4fr 1.5fr 1.5fr;
  grid-template-rows: 1fr 0.5fr 2fr 2fr 2fr;
  grid-template-areas:
    "navigation box box"
    "navigation box box"
    "content content content"
    "content content content"
    "content content content";
  grid-area: main;
}



/* === NAVIGATION === */
.navigation {
  grid-area: navigation;
  border: 1px solid var(--border-color);
  border-right: none;
  background-color: #1f1f2b;
  box-shadow: 0 0 4px #b4befe40 inset;
  overflow: hidden;
}

/* === NAV TITLE === */
.title {
  padding: 10px;
  font-size:15px;
  text-align: center;
  color: var(--header-color);
  font-weight: bold;
}

.box {
  grid-area: box;
  border: 1px solid var(--border-color);
  border-radius: 0 20px 0 0;
  padding: 10px;
  background-color: #1f1f2b;
  box-shadow: 0 0 4px #b4befe40 inset;
  color: var(--header-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.box-content {
    display: grid;
    grid-template-areas:
    "pearl-left links pearl-right"
    "pearl-left links pearl-right";
    grid-template-columns: 0.25fr 1fr 0.5fr;
    grid-template-rows: 1fr 1fr;
    padding: 10px;
    width: 100%;
    color: var(--header-color);
    position: relative;
    overflow: hidden; 
    height: 100%; 
}


.devlog-links {
  grid-area: links;
  font-size: 18px;
  text-align: center;
  position: relative;
  overflow-y: auto; 
  max-height: 100%; 
}

.devlog-links::-webkit-scrollbar {
  display: none;
}

.devlog-links {
  -ms-overflow-style: none;
  scrollbar-width: none;  
}


.pearl-left {
  grid-area: pearl-left;
  position: relative;
  bottom: 15px;
  height: 100%;
  display: flex;
  width: auto;
  align-items: center;

}

.pearl-right {
  grid-area: pearl-right;
  position: relative;
  bottom: 15px;
  height: 100%;
  width: auto;
  display: flex;
  align-items: center;
}

.pearl-left img,
.pearl-right img {
    width: auto;    
    height: 160px;
    image-rendering: pixelated;
    display: block;
}

.pearl-left img {
  transform:scaleX(-1);
}

.box-content h2 {
  position:relative;
  top:15px;
}




/* === NAV BUTTONS === */
.bunny-button {
  grid-area: bunny-button;
  width: 128px;          
  height: 128px;
  display: inline-block; 
  align-items: center;
  justify-content: start;
  pointer-events: auto;
  cursor: pointer;      
  position: absolute;
}

.bunny-button img {
  width: 100%;          
  height: auto;
  display: block;
}

/* === NAV BUTTONS === */
.button {
  width: 150px;
  padding: 10px 10px 10px 20px;
  border-top: 1px solid var(--border-color);
  border-bottom: none;
  background-color: #282a36;
  box-shadow: 0 1px 2px #1f1f2b inset;
  color: var(--header-color);

}

.button:hover a {
  text-shadow:
    3px 2px rgba(246, 0, 153, 0.7),
   -3px -2px rgba(15, 210, 255, 0.7),
    0px 0px rgba(255, 210, 0, 0.9);
}

/* === NAV INTRO === */
.intro {
  padding: 10px;
  color: var(--header-color);
}

/* === DIALOGUE === */
.dialogue-box {
  display: grid;
  grid-template-columns: 140px auto 140px;
  gap: 10px;
  align-items: center;
  padding: 20px;
  background-color: #1f1f2b;
  border-radius: 20px;
  color: var(--border-color);
}

.dialogue-avatar {
  width: 100%;
  max-width: 120px;
  border: 2px solid var(--pearl-color);
  box-shadow: 0 0 6px #cba6f740 inset;
  border-radius: 20px;
  outline: 2px solid var(--pearl-color);
  transform: scaleX(-1);
  outline-offset: 4px;
}

.dialogue-avatar-scientist {
  width: 100%;
  max-width: 120px;
  border: 2px solid var(--scientist-color);
  box-shadow: 0 0 6px #cba6f740 inset;
  border-radius: 20px;
  outline: 2px solid var(--scientist-color);
  transform: scaleX(-1);
  outline-offset: 4px;
  margin-left: 15px;
}

.dialogue-empty {
  width: 140px;
}

.dialogue-text {
  font-size: 15px;
  line-height: 1.6;
  padding: 20px;
  background-color: #2d2f42;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 0 4px #b4befe40 inset;
  white-space: normal;
  color: var(--text-color);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dialogue-text.pearl {
  color: var(--pearl-color);
}

.dialogue-text.scientist {
  color: var(--scientist-color);
}

/* === CONTENT AREA === */
.content {
  grid-area: content;
  border: 1px solid var(--border-color);
  border-radius: 0px 0px 0px 0px;
  background-color: #1f1f2b;
  box-shadow: 0 0 4px #b4befe40 inset;
  padding: 10px;
  overflow: auto;
  color: #f5c2e7;
  border-right: none;
  border-left: none;
  border-top:none;
}

/* === MAKE SCROLLBAR INVISIBLE === */
.content::-webkit-scrollbar {
  display: none;
}

.content {
  -ms-overflow-style: none;
  scrollbar-width: none;  
}

/* === BOXES INSIDE CONTENT === */
.box1 {
  grid-area: post-title;
  width: 100%;
  padding: 10px;
  background-color: #34354a;
  border: 1px solid var(--border-color);
  box-sizing: border-box;
  box-shadow: 0 0 6px #cba6f740 inset;
  color: var(--header-color);
}


.text {
  font-size: 15px;
  width: 100%;
  background-color: #1f1f2b;
  border: 1px solid var(--border-color);
  padding: 10px;
  box-sizing: border-box;
  margin-top: 10px;
  box-shadow: 0 0 6px #b4befe40 inset;
  color: #f5c2e7;
}

/* === FOOTER === */
.footer {
  grid-area: footer;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 20px 20px;
  padding: 10px;
  text-align: center;
  background-color: #1f1f2b;
  color: var(--border-color);
  box-shadow: 0 0 4px #b4befe40 inset;
}




/* === TEXT SHADOW FLICKERING MAKE CPU GO BRRRRRR === */

/* body.fx {
  animation: textShadow 1.6s infinite; 
}

@keyframes textShadow {
  0% {
    text-shadow: 0.4389px 0 1px rgba(0,30,255,.5),
                 -0.4389px 0 1px rgba(255,0,80,.3),
                 0 0 3px;
  }
  20% {
    text-shadow: 3.4794px 0 1px rgba(0,30,255,.5),
                 -3.4794px 0 1px rgba(255,0,80,.3),
                 0 0 3px;
  }
  40% {
    text-shadow: 3.8709px 0 1px rgba(0,30,255,.5),
                 -3.8709px 0 1px rgba(255,0,80,.3),
                 0 0 3px;
  }
  60% {
    text-shadow: 2.2022px 0 1px rgba(0,30,255,.5),
                 -2.2022px 0 1px rgba(255,0,80,.3),
                 0 0 3px;
  }
  80% {
    text-shadow: 0.0833px 0 1px rgba(0,30,255,.5),
                 -0.0833px 0 1px rgba(255,0,80,.3),
                 0 0 3px;
  }
  100% {
    text-shadow: 2.6209px 0 1px rgba(0,30,255,.5),
                 -2.6209px 0 1px rgba(255,0,80,.3),
                 0 0 3px;
  }
} */



