
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=IBM+Plex+Sans+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

html,
body {
  margin: 0;
  padding: 0;
  font-family: "IBM Plex Sans", sans-serif;
  background-color: black;
  color: white;
  height: 100%;
  overflow: hidden;
}
#connection-indicator-wrapper {
  position: fixed;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  font-family: "IBM Plex Mono";
  font-size: 14px;
  color: white;
}

#connection-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: red;
  box-shadow: 0 0 8px red;
  transition: background-color 0.3s, box-shadow 0.3s;
}

#border-flash {
  position: fixed;
  top: 100px;
  left: 0;
  width: calc(100% - 8px);
  height: calc(100% - 180px);
  pointer-events: none;
  box-sizing: border-box;
  z-index: 9998;

  /* Always visible */
  border-style: solid;
  border-width: 0px;
  border-color: rgba(255, 0, 0, 0.5);

  /* Smooth transition on border width and color */
  transition: border-width 0.5s ease, border-color 0.5s ease;
}

.flashing-border {
  border-width: 24px !important;
  animation: flash-border 4s infinite;
}

@keyframes flash-border {
  0%, 100% {
    border-color: rgba(255, 0, 0, 0.75);
  }
  50% {
    border-color: rgba(255, 0, 0, 0.15);
  }
}


@keyframes textFlash {
  0%   { background-color: #780A0A; }
  50%  { background-color: #350404; }
  100% { background-color: #780A0A; }
}

.queue {
  border: 4px solid red !important;
  animation: textFlash 4s ease infinite;
}

.queue h1 {
  color: rgb(255, 186, 186) !important;
}


.pulsing-yellow {
  background-color: gold !important;
  box-shadow: 0 0 0 0 gold;
  animation: pulse-yellow 1s infinite;
}

@keyframes pulse-yellow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
  }
  30% {
    box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
  }
}

.button {
  background-color: #444;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.5s ease;
  user-select: none;
}

.button:hover {
  background-color: #666;
}

#preload {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  position: fixed;
  opacity: 1;
  background: #030303;
  z-index: 10;
}

#preload-center-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#logo {
  position: relative;
  transition: all 1s ease;
  bottom: 220px;
  opacity: 0;
  text-align: center;
}

#logo img {
  width: 300px;
}

@media (max-height: 1200px) {
  #logo {
    bottom: 180px;
  }
  #logo img {
    width: 240px;
  }
}

@media (max-height: 800px) {
  #logo {
    bottom: 150px;
  }
  #logo img {
    width: 180px;
  }
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  top: 0;
  left: 0;
  background-color: #0e0e0e;
}

#form-wrapper .box {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
}

#form-wrapper .box.active {
  display: block;
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.devmode {
  color: rgb(104, 104, 104);
  font-size: 2em;
  margin-bottom: 15px;
  font-weight: 800;
  text-align: center;
}

cs {
  font-weight: 800;
  font-family: "IBM Plex Sans Condensed";
}

mo {
  font-family: "IBM Plex Mono";
}

#main-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(0deg, #16171a, #2c3344);
  border-bottom: 3px solid #3b3b3b;
  z-index: 10;
  font-family: "IBM Plex Sans";
  font-size: 2em;
  color: #b6b6b6;

  display: flex;
  align-items: flex-end;
  justify-content: space-between; 
  padding: 0 24px 18px 24px;
  box-sizing: border-box;
}

.header-title {
  font-weight: 800;
}

#level-indicator:hover {
  top: 12px;
  cursor: pointer;
  filter: brightness(115%);

}

#level-indicator:active {
  top:20px;
  filter: brightness(130%);
}

@keyframes fire-glow {
  0% {
    filter: drop-shadow(0 0 18px rgba(255, 80, 0, 0.5))
            drop-shadow(0 0 24px rgba(255, 0, 0, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(255, 80, 0, 0.9))
            drop-shadow(0 0 24px rgba(255, 0, 0, 0.6));
  }
  100% {
    filter: drop-shadow(0 0 18px rgba(255, 80, 0, 0.5))
            drop-shadow(0 0 24px rgba(255, 0, 0, 0.5));
  }
}

.inline {
display: inline-block;
}


#tabpage-3 img {
  width: 60%;
  margin: 0 auto;
  animation: fire-glow 2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 60, 0, 0.7))
          drop-shadow(0 0 16px rgba(255, 60, 0, 0.5));
}

.rating-headline {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.rating-box {
  margin-top: 40px;
  padding: 40px;
  border: 4px solid #81818142;
  border-radius: 12px;
  background-color: rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}


.rating-box p {
  font-size: 2.5em;
  color: #ccc;
}

.progress-label {
  font-family: "IBM Plex Mono";
  font-size: 1.1em;
  color: #f4c066;
  margin-bottom: 6px;
}

.rating-bar-outer {
  width: 100%;
  height: 28px;
  background-color: #222;
  border: 2px solid #666;
  border-radius: 8px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: linear-gradient(to right, #ff6600, #ffa500);
  transition: width 0.5s ease;
}

.position-label {
  width: 100%;
  text-align: center;
  font-size: 2.4em;
  color: #ffa500;
  font-weight: 700;
  margin-bottom: 18px;
}

.rating-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 12px;
}

.rating-metric {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rating-value {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

#meter-rating {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-family: "Roboto Mono", monospace;
  color: #ff6600;
  margin: 0;
}

.rating-value p {
  color: #ccc;
  margin: 0;
  padding-bottom: 14px;
}

.rating-value p {
  font-size: clamp(1.2rem, 3vw, 2.5rem);
}

.rank-label {
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.clip-rank {
  font-size: clamp(0.8rem, 2.2vw, 1rem);
  padding: 6px 12px;
}

.clip-rank {
  background: linear-gradient(to right, #ff3c00, #ff6600);
  color: white;
  position: relative;
  top: clamp(0rem, 2vw, 1.8rem);
  font-family: "IBM Plex Mono", monospace;
  padding: 6px 14px;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
  white-space: nowrap;
}

.rank-label {
  font-weight: 700;
  position: relative;
  bottom: 14px;
  font-family: "IBM Plex Mono", monospace;
  color: white;
  white-space: nowrap;
}

.progress-container {
  margin-top: -10px;
  position: relative;
}

.progress-label {
  font-family: "IBM Plex Mono";
  font-size: 1.1em;
  color: #f4c066;
  margin-bottom: 6px;
  text-align: center;
}

.rating-bar-outer {
  width: 100%;
  height: 28px;
  background-color: #222;
  border: 2px solid #666;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.rating-bar-fill {
  height: 100%;
  background: linear-gradient(to right, #ff6600, #ffa500);
  transition: width 0.5s ease;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.thresholds {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
  color: #888;
  font-family: "IBM Plex Mono";
  padding: 0 6px;
}




.threshold-low {
  text-align: left;
}

.threshold-high {
  text-align: right;
}

.cta-sect h1 {
  color: #d17d7d;
  font-size: 2em;
  text-align: center;
}

.tab-sect {
  background-color: rgb(59, 20, 20);
  padding: 24px 30px;
  border: 4px outset rgb(59, 20, 20);
  border-radius: 4px;
  margin-top: 24px;
}

#enter-matchmaking {
  box-shadow: 0 9px rgb(0, 0, 0);
  transition: all 0.2s ease;
}

.tab-sect h4 {
  color:#d17d7d;
  font-family: "IBM Plex Mono";
  font-size: 1.2em;
  font-weight: 400;
  margin-top: -16px;
  text-align: center;
}

#enter-matchmaking:hover {
cursor: pointer;
  transform: translateY(3px);
    box-shadow: 0 6px rgb(0, 0, 0);
}

#enter-matchmaking:active {
  transform: translateY(9px);
    box-shadow: 0 0px rgb(0, 0, 0);
}



#level-indicator {
  background: linear-gradient(rgb(54, 53, 53), black);
  padding: 12px;
  padding-top: 48px;
  border: 2px solid rgb(46, 46, 46);
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.6em;
  position: relative;
  min-width: 200px;
  border-radius: 4px;
  left: 4px;
  transition: all 0.2s ease;
  top: 8px;
  color: white;
  width: fit-content;
}

.level-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.level-bar {
  background: #333;
  border-radius: 4px;
  width: 100%;
  height: 30px;
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}
#username-text {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-size: 1.2em;
  text-align: left;
  white-space: nowrap;
}

.level-fill {
  background: linear-gradient(to right, #ff6600, #ffa500);
  width: 70%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: left;
  padding-left: 6px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  position: relative;
}

.level-value {
  font-weight: 800;
  color: white;
  z-index: 1;
}


#main-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  white-space: nowrap;
  width: 100%;
  height: 80px;
  background: linear-gradient(0deg, #22252c, #2c3344);
  border-top: 3px solid #3b3b3b;
  z-index: 10;
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-size: 2em;
  color: #b6b6b6;
  display: flex;
  align-items: center;
  justify-content: space-between; 
  padding: 0 24px;
  box-sizing: border-box;
}

#register-step3-box {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transform: scale(0);
}

#register-box {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transform: scale(0);
}

#login-box p {
  font-family: "IBM Plex Sans Condensed";
}

#register-step2-box p {
  margin-bottom: 15px;
  font-family: "IBM Plex Sans Condensed";
}

#login-box {
  visibility: hidden;
  position: absolute;
  opacity: 0;
  transform: scale(0);
}

#register-step2-box {
  visibility: hidden;
  position: absolute;
  opacity: 0;
  transform: scale(0);
}

.box p {
  font-weight: 400;
  margin: 0;
  font-size: 1.5em;
}

#login-box p {
  margin-bottom: 5px;
}

#login-box h3 {
  margin-bottom: 5px;
}

#register-box h3 {
  text-align: justify;
  margin-top: 10px;
  margin-bottom: 15px;
}

.box h3 {
  margin: 0;
  font-size: 1.2em;
  font-weight: 500;
  color: rgb(151, 151, 151);
  font-family: "IBM Plex Sans Condensed";
}

.box h2 {
  text-align: justify;
  font-size: 1.178em;
  font-family: "IBM Plex Sans Condensed";
  margin-bottom: 15px;
}

.box cs {
  margin: 0;
  margin-bottom: 5px;
  font-size: 1em;
}

.box h1 {
  margin: 0;
  font-size: 2em;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.box {
  background-color: #222222;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  width: 600px;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.5, 1);
}

.box.active {
  display: block; 
}

.box.visible {
  opacity: 1;
  transform: scale(1);
}

.box h1 {
  font-size: 24px;
  color: #00ffff;
}

#continue-btn {
  background-color: rgb(3, 76, 212);
}

hr {
  margin-top: 20px;
  margin-bottom: 20px;
}

#register-btn {
  background-color: rgb(3, 76, 212);
}

#login1-btn {
  background-color: rgb(3, 76, 212);
}

#start-btn {
  background-color: rgb(3, 76, 212);
}

.button-container {
  margin-top: 10px;
  display: flex;
  gap: 12px;
}

#preload-footer {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  z-index: 10;
  color: white; 
}

#preload-footer img {
  width: 32px;
  height: 32px;
  padding-left: 16px;
  padding-right: 16px;
  filter: brightness(100%);
  transform: scale(1.1);
  transition: filter 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
#preload-footer img:hover {
  filter: brightness(200%);
  transform: scale(1);
}

#preload-footer img:active {
  filter: brightness(200%);
  transform: scale(0.9);
}

#preload-footer a {
  color: white;
  text-decoration: none;
  transition: color 0.2s ease;
  color: white; 
}

#preload-footer a:hover {
  color: #aaa; 
}

#icons-footer img {
  position: relative;
  top: 2px;
  width: 32px;
  height: 32px;
  padding-left: 16px;
  padding-right: 16px;
  filter: brightness(100%);
  transform: scale(1.1);
  transition: all 0.2s ease;
  cursor: pointer;
}

#icons-footer img:hover {
  filter: brightness(200%);
  transform: scale(1);
}

#icons-footer img:active {
  filter: brightness(200%);
  transform: scale(0.9);
}

#icons-footer a {
  color: white;
  text-decoration: none;
  transition: color 0.5s ease;
  color: white;
}

#icons-footer a:hover {
  color: #aaa; /
}

#icons-footer {
  display: flex;
  gap: 12px;
}

.button {
  font-weight: 600;
  flex-grow: 1;
  padding: 6px 6px;
  text-align: center;
  background-color: #555555;
  color: rgb(233, 233, 233);
  font-size: 1.5em;
  font-family: "IBM Plex Sans Condensed";
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  transform: scale(1);
}

#start-btn {
  flex-grow: 8; 
}

#login1-btn {
  flex-grow: 4; 
}

#register-btn {
  flex-grow: 2; 
}

.button:hover {
  transform: scale(0.98);
  filter: brightness(0.8);
}

.button:active {
  transform: scale(0.95);
  filter: brightness(0.6);
}

.tooltip {
  position: fixed;
  right: 10px;
  bottom: 10px;
  font-size: 12px;
  background-color: #111;
  color: #aaa;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: help;
  border: 1px solid #333;
  z-index: 100;
}

.input-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-container input {
  padding: 10px;
  font-size: 1.2em;
  border: 2px solid rgb(138, 138, 138);
  border-radius: 6px;
  background-color: #1a1a1a;
  color: white;
  font-family: "IBM Plex Mono";
}

.input-container input::placeholder {
  color: #888;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#dev-warning {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1000;
  padding: 8px 16px;
  pointer-events: none;
}

.dev-label {
  font-weight: bold;
  font-size: 14px;
  color: red;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
  animation: pulse-glow 1.5s infinite alternate;
  letter-spacing: 1px;
}

.dev-note {
  font-size: 12px;
  color: #ccc;
  margin-top: 2px;
}

@keyframes pulse-glow {
  from {
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
  }
  to {
    text-shadow: 0 0 15px rgba(255, 0, 0, 1);
  }
}

#home-container {
  height: 100%;
  width: 100%;
  visibility: hidden;
  opacity: 0;
}

#cube-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 15, 15, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.75, 1);
}

#cube-3d-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 800px;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.75, 1);
  transform: scale(0.99);
}

.cube-3d {
  width: 100px;
  height: 100px;
  position: relative;
  transform-style: preserve-3d;
  animation: spinCube 3s ease infinite;
}

.face {
  position: absolute;
  width: 100px;
  height: 100px;
  background: rgb(189, 189, 189);
  opacity: 0.5;
  border: 4px solid #494949;
}

.front {
  transform: rotateY(0deg) translateZ(50px);
}
.back {
  transform: rotateY(180deg) translateZ(50px);
}
.right {
  transform: rotateY(90deg) translateZ(50px);
}
.left {
  transform: rotateY(-90deg) translateZ(50px);
}
.top {
  transform: rotateX(90deg) translateZ(50px);
}
.bottom {
  transform: rotateX(-90deg) translateZ(50px);
}

@keyframes spinCube {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

.loading-text {
  margin-top: 50px;
  font-size: 1.5em;
  font-weight: 800;
  font-family: "IBM Plex Mono";
  color: #ffffff;
}

#notice-box {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222;
  padding: 12px 20px;
  border-radius: 6px;
  color: #ffd700;
  font-weight: bold;
  font-family: "IBM Plex Mono";
  font-size: 14px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  z-index: 1000;
  display: none;
}

.notice-show {
  display: block;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.toast-container {
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  text-align: center;
  pointer-events: none;
}

.toast-message {
  display: inline-block;
  background-color: #333;
  color: #fff;
  font-family: "IBM Plex Sans Condensed";
  font-size: 1em;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px #000;
  animation: toast-in 0.3s ease, toast-out 0.3s ease 3.7s;
  opacity: 0;
}

@keyframes toast-in {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toast-out {
  to {
    transform: translateY(-20px);
    opacity: 0;
  }
}

.back-button {
  position: absolute;
  top: 200px;
  left: -270px;
  height: 10px;
  z-index: 100;
  padding: 28px;
  padding-right: 0;
  padding-left: 110px;
  font-weight: 800;
  font-size: 2em;
  width: calc(112px);
  white-space: nowrap;
  line-height: 0.2em;
  border-radius: 2px;
  background-color: rgb(49, 49, 49);
  border: 4px outset rgb(49, 49, 49);
  transition: all 0.2s cubic-bezier(0.15, 0.25, 0.4, 1);
}

.back-button:hover {
  filter: brightness(1.5);
  left: -50px !important;
  cursor: pointer;
}

.back-button:active {
  left: -30px !important;
}

.back-button.no-hover:hover,
.back-button.no-hover:active {
  left: -270px !important;
  transform: none;
}

.tab-button {
  position: relative;
  right: -200px;
  height: 80px;
  padding: 24px;
  width: calc(85vw);
  white-space: nowrap;
  border-radius: 2px;
  transition: all 0.15s cubic-bezier(0.15, 0.25, 0.4, 1);
}

#play-btn {
  background: linear-gradient(90deg, rgb(197, 102, 13), orange);
  border: 4px outset rgb(197, 102, 13);
  box-shadow: 0 0 12px rgb(197, 102, 13);
}

#settings-btn {
  background-color: rgb(31, 58, 145);
  border: 4px outset rgb(31, 58, 145);
}
#about-btn {
  background-color: rgb(66, 54, 134);
  border: 4px outset rgb(66, 54, 134);
}
#zen-btn {
  background: linear-gradient(90deg, rgb(16, 119, 16), rgb(18, 125, 139));
  box-shadow: 0 0 10px rgb(16, 119, 16);
}

#custom-btn {
  background-color: rgb(66, 57, 99);
  border: 4px outset rgb(66, 57, 99);
}
#public-btn {
  background-color: rgb(33, 48, 131);
  border: 4px outset rgb(33, 48, 131);
}

.player-count p {
  font-family: "IBM Plex Sans Condensed" !important;
}

#fire-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.player-count {
  display: inline-block;
  background: rgba(0, 0, 0, 0.5);
  position: relative;
  bottom: 10px;
  border-radius: 8px;
  margin-left: 32px;
  padding: 20px;
}

.player-count h1 {
  font-size: 2em !important;
}

.player-count p {
  font-size: 1em !important;
}

#ranked-btn .text-section {
  display: inline-block;
  flex: 0 1 auto; 
  bottom: 8px;
  position: relative;
  max-width: 70%;
}

#ranked-btn {
  background: repeating-linear-gradient(
    -45deg,
    /* angle for diagonal lines */ #00000010,
    /* start color */ #00000010 10px,
    /* end color of the line */ #ffffff10 10px,
    /* start of the next stripe */ #ffffff10 20px 
  );
  background-color: #9e1212; 
  border: 4px outset #8b0000;
  position: relative;
  color: white;
  font-weight: 800;
  z-index: 1;
}

#ranked-btn h1 {
  color: goldenrod;
  text-shadow: none;
  text-shadow: 0 0 4px goldenrod;
}

#ranked-btn::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(
    circle,
    rgba(255, 69, 0, 0.4) 0%,
    transparent 90%
  );
  animation: flame-flicker 2s ease infinite;
  z-index: -1;
  pointer-events: none;
  filter: blur(12px);
}

@keyframes flame-flicker {
  0% {
    transform: scale(1) translate(0px, 0px);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.05) translate(1px, -1px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translate(-1px, 1px);
    opacity: 0.9;
  }
}

.tab-button h1 {
  margin: 0;
  font-family: "IBM Plex Sans";
  font-size: 38px;
  text-shadow: 2px 2px 4px black;
}

.tab-button p {
  margin: 0;
  text-shadow: 2px 2px 2ch black;
  font-size: 22px;
  font-family: "IBM Plex Mono";
}

#wallpaper {
  z-index: -10;
  position: fixed;
  width: 100%;
  height: 100%;
  margin: auto;
  background-position: center;
  background-size: cover;
  right: 0;
  top: 0;
  transition: all 0.5s ease;
  opacity: 0.15;
}

.tab-button:hover {
  filter: brightness(1.3);
  right: -100px !important;
  cursor: pointer;
}
.scroll-spacer {
  height: 80px;
  flex-shrink: 0;
}

.tab-button:active {
  right: 0px !important;
}

.btn-particles {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

#tabpage-7,
#tabpage-8, #tabpage-3 {
  width: 60vw;
  padding-left: 20vw;
  padding-right: 20vw;
}



#tabpage-8 h3 {
  font-family: "IBM Plex Mono";
  text-align: justify;
}

#tabpage-8 {
  font-size: 1.4em;
  text-shadow: 0 0 4px black;
  display: block;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 75%,
    rgba(66, 54, 134, 0.664)
  );
}

#tabpage-2 {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 75%,
    rgba(255, 166, 0, 0.288)
  );
}

#tabpage-7 {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 75%,
    rgba(31, 58, 145, 0.664)
  );
}

#tabpage-8 img {
  width: 300px;
}

.about-me {
  position: relative;
  left: 20px;
}

.about-me h4 {
  margin: 0;
  font-family: "IBM Plex Mono";
  font-size: 1.2em;
}

.about-me p {
  margin: 0;
}

.largeAbout {
  font-size: 4em;
}

.clast {
  font-weight: 500;
  margin-bottom: 100px !important;
  font-family: "IBM Plex Sans" !important;
}

.credit-title {
  color: gold;
  font-family: "IBM Plex Mono";
  font-size: 1.5em;
  margin-top: 20px;
  margin-bottom: 20px;
}

.credit-owner {
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 1.2em;
}

.credit-owner:link {
  color: white;
}
.credit-owner a:link {
  color: white;
}

.credit-owner a:visited {
  color: white;
}

.credit-owner a:hover {
  color: white;
}

.credit-owner a:link {
  color: white;
}

.credit-title a {
  color: orange;
  font-size: 1em;
}

.visible {
  visibility: visible !important;
  opacity: 1 !important;
}

.tabpage {
  visibility: hidden;
  opacity: 0;
  display: flex;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 100px;
  position: fixed;
  height: calc(100vh - 280px);
  right: -85vw;
  top: 100px; 
  flex-direction: column;
  gap: 45px;
  z-index: 5;
  transition: all 0.6s cubic-bezier(0.15, 0.65, 0.4, 1);
}

::-webkit-scrollbar {
  width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}


