
@font-face {
  font-family: 'GeistMono-VariableFont_wght';
  src: url('fonts/GeistMono-VariableFont_wght.ttf') format('truetype');
}

@font-face {
  font-family: 'LubriFont';
  src: url('fonts/WDXLLubrifontTC-Regular.ttf') format('truetype');
}


#matrix {
  position: fixed;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}


body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

  background: white;
  color: black;
}

body {
  transition: background 0.4s ease, color 0.4s ease;
}

body {
  user-select: none;
  -webkit-user-select: none; 
  -ms-user-select: none;     
}

.container {
  position: relative;
  z-index: 2;
  text-align: center;
  font-family: 'GeistMono-VariableFont_wght', monospace !important;
}


.title {
  font-size: 16px;
  margin: 0;
}


.links {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  margin-top: 6px;
}

.links a {
  text-decoration: none;
  color: black;
  transition: color 0.2s ease;
}

.links a:hover {
  color: #c9367f;
}

.links a {
  text-decoration: none;
  color: black;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block; 
}

.links a:hover {
  color: #c9367f;
  transform: scale(1.15); 
}

.links a {
  transition: color 0.2s ease, transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.links a:hover {
  color: #c9367f;
  transform: scale(1.12) translateY(-1px);
}

#matrix {
  opacity: 0.25;
}

.links {
  margin-top: 10px;
}



.title {
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

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

.links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 12px;

  opacity: 0;
  animation: fadeIn 1s ease forwards;
}


#matrix,
#dust {
  position: fixed;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  pointer-events: none;
  user-select: none;
}

#matrix {
  z-index: 0;
}

#dust {
  z-index: 0;
}

.container {
  position: relative;
  z-index: 2;
}

.title {
  text-shadow: 0 0 1px rgba(0,0,0,0.15);
}

#boot-screen {
  position: fixed;
  inset: 0;
  background: white;
  color: black;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: 'LubriFont', monospace;
  font-size: 14px;
  pointer-events: none;
}

#boot-text {
  width: min(80vw, 700px);
  line-height: 1.6;
  white-space: pre-line;
  opacity: 1;
}

.boot-line {
  opacity: 0;
  animation: bootLineFade 0.15s linear forwards;
}

@keyframes bootLineFade {
  to {
    opacity: 1;
  }
}

.boot-hide {
  animation: bootScreenFade 0.8s ease forwards;
}

@keyframes bootScreenFade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}


body.booting .container,
body.booting #matrix,
body.booting #dust {
  opacity: 0;
}

body.boot-complete .container,
body.boot-complete #matrix,
body.boot-complete #dust {
  opacity: 1;
  transition: opacity 0.8s ease;
}

.boot-welcome {
  color: #c9367f;
  letter-spacing: 1px;
}



.links a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: black;
  transition: color 0.2s ease, transform 0.2s ease;
}

.links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: #c9367f;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.links a:hover {
  color: #c9367f;
  transform: scale(1.15);
}

.links a:hover::after {
  width: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  touch-action: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  opacity: 0.04;
  background-image: url("noise.png"); 
}

.boot-cursor {
  width: 8px;
  height: 14px;
  background: #c9367f;
  display: inline-block;
  margin-left: 4px;
  animation: blink 1s steps(2, start) infinite;
}

.mode-toggle {
  margin-top: 6px;
  font-size: 9px;           
  color: black;
  cursor: pointer;

  transition: color 0.2s ease, transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  display: inline-block;
  position: relative;
}

.mode-toggle:hover {
  color: #c9367f;
  transform: scale(1.1);
}

body.dark {
  background: #0e0e0e;
  color: #eaeaea;
}

body.dark .links a {
  color: #eaeaea;
}

body.dark .links a:hover {
  color: #c9367f;
}

body.dark .mode-toggle {
  color: #aaa;
}

body.dark #boot-screen {
  background: #0e0e0e;
  color: #eaeaea;
}

body.dark::before {
  opacity: 0.02;
}

body {
  animation: fadeIn 0.4s ease;
}