* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Terminus, Inconsolata, monospace;
}
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #101010;
  color: #5ed4ff;
  font-size: 1rem;
  overflow: hidden;
  padding: 0 10px;
  min-height: 100dvh;
}
.container {
  position: absolute;
  inset: 0;
  z-index: 10;
}
.home {
  position: absolute;
  inset: 0;
  color: #5ed4ff;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  width: 100%;
  height: 100%;
}
.home.show {
  opacity: 1;
  pointer-events: all;
}
#main {
  width: 100%;
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  text-align: center;
}
#footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 0;
  background-color: #000;
  color: #5ed4ff;
  font-size: 1.05rem;
}
#footer a {
  color: #5ed4ff;
  text-decoration: none;
  padding: 10px;
  margin: 0 5px;
  font-size: 1.5rem;
  font-weight: 900;
}
#footer a:hover {
  text-decoration: none;
}
.content {
  opacity: 0;
  transition: opacity 1s ease;
}
.content.show {
  opacity: 1;
}
.scan {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}
.scan.hide {
  opacity: 0;
  pointer-events: none;
}
.scan .fingerprint {
  position: relative;
  width: 20vw;
  height: 25vh;
  background-image: url(../images/finger.png);
  background-size: contain;
  filter: brightness(0.5);
  cursor: pointer;
}
.scan .fingerprint::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../images/before.png);
  background-size: contain;
  animation: animate 6s ease-in-out infinite;
}
@keyframes animate {
  0%,
  100% {
    height: 0%;
  }
  50% {
    height: 100%;
  }
}
.scan .fingerprint::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: #5eb9ff;
  border-radius: 8px;
  animation: animate_line 6s ease-in-out infinite;
  filter: brightness(1.2);
}
@keyframes animate_line {
  0%,
  100% {
    top: 0;
  }
  50% {
    top: 100%;
  }
}
.scan h3 {
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-top: 21px;
  margin-left: 20px;
  margin-right: 20px;
  color: #5ed4ff;
  text-align: center;
  max-width: 350px;
  line-height: 1.4;
  filter: drop-shadow(0 0 20px #5ed4ff) drop-shadow(0 0 60px #5ed4ff);
  animation: animate_text 0.5s steps(1) infinite;
}
@keyframes animate_text {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
.modal,
.modalContent {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #222;
  color: #5ed4ff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(94, 212, 255, 0.8);
  z-index: 1000;
  display: none;
  line-height: normal;
  overflow-y: auto;
}
textarea#textArea {
  width: 100%;
  height: 100px;
  margin-top: 5px;
  margin-bottom: 5px;
  scrollbar-width: thin;
  scrollbar-color: #00b4f5 #00b4f5;
}
.modal.show,
.modalContent.show {
  display: block;
}
#consoleh {
  height: calc(100dvh - 44px);
  max-height: calc(100dvh - 44px);

  margin-top: 38.5px;
  margin-left: 3.5px;

  overflow-y: auto;
  overscroll-behavior: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-y: auto;
  white-space: pre-wrap;
  display: flex;
  flex-direction: column;
  font-family: Terminus, Inconsolata, monospace;
  background-color: #101010;
  font-size: 1.05rem;
  border-radius: 5px;
  scrollbar-width: thin;
  scrollbar-color: #00b4f5 #00b4f5;
}
#consoleh::-webkit-scrollbar {
  width: 10px;
}
#consoleh::-webkit-scrollbar-thumb {
  background-color: #00b4f5;
  border-radius: 10px;
}
#consoleh::-webkit-scrollbar-track {
  background: #333;
  border-radius: 10px;
}
@media (max-height: 700px) {
  #consoleh {
    margin-top: 20px;
    height: calc(100dvh - 10px);
    font-size: 0.9em;
  }
}
#keyboard-driver {
  position: fixed;
  bottom: 0;
  left: 0;
  opacity: 0;
  height: 1px;
  width: 1px;
  z-index: -1;
  pointer-events: none;
}
#keyboard-driver {
  caret-color: transparent;
}
#blink2 {
  animation: blink2 1s infinite;
  margin-left: -3px;
}
@keyframes blink2 {
  to {
    opacity: 0;
  }
}
#chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #5ed4ff;
  color: #111;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 24px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 14px rgba(94, 212, 255, 0.3);
}
#chatbot-container {
  position: fixed;
  bottom: 88px;
  right: 20px;
  width: 340px;
  max-width: calc(100% - 40px);
  height: 420px;
  display: none;
  flex-direction: column;
  background: #1d232b;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  z-index: 9999;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
}
#chatbot-header {
  background: #1a2d44;
  color: #fff;
  padding: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
#chatbot-messages {
  padding: 12px;
  flex: 1;
  overflow-y: auto;
  font-size: 14px;
  background: linear-gradient(180deg, #1a1a1a, #2c2f33);
}
.msg {
  margin-bottom: 10px;
  display: block;
  max-width: 85%;
}
.msg.user {
  align-self: flex-end;
  text-align: right;
  margin-left: auto;
  background: #5ed4ff;
  color: #111;
  padding: 8px 10px;
  border-radius: 10px;
}
.msg.bot {
  align-self: flex-start;
  background: #2c2f33;
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
}
#chatbot-input {
  border-top: 1px solid #444;
  display: flex;
  gap: 8px;
  padding: 10px;
  align-items: center;
}
#chatbot-input textarea {
  flex: 1;
  resize: none;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #444;
  font-size: 14px;
  height: 46px;
  background: #333;
  color: #fff;
}
#chatbot-input button {
  background: #ff7f00;
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}
@media (max-width: 420px) {
  #chatbot-container {
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 768px) {
  body {
    position: fixed;
    width: 100%;
    height: 100%;
  }

  #consoleh {
    height: calc(100dvh - 45px);
    max-height: calc(100dvh - 45px);
  }
}
#chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #4b6b89, #3a4e67);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(11, 118, 209, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  z-index: 9999;
}
#chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(11, 118, 209, 0.5);
}
.robot-head {
  position: relative;
  width: 40px;
  height: 38px;
  background: #d1d1d1;
  border: 2px solid #004d7f;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.robot-head .antenna {
  position: absolute;
  top: -10px;
  width: 3px;
  height: 10px;
  background: #0b76d1;
  border-radius: 2px;
}
.robot-head .antenna::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -3px;
  width: 9px;
  height: 9px;
  background: #fc0;
  border-radius: 50%;
  animation: blink-light 2s infinite;
}
.eyes {
  display: flex;
  justify-content: space-between;
  width: 65%;
  margin-top: 4px;
}
.eye {
  width: 8px;
  height: 8px;
  background: #0a9d9d;
  border-radius: 50%;
  animation: blink-eyes 4s infinite;
}
.mouth {
  margin-top: 4px;
  width: 18px;
  height: 3px;
  background: #ff6f00;
  border-radius: 2px;
}
@keyframes blink-light {
  0%,
  100%,
  80% {
    opacity: 1;
    background: #fc0;
  }
  90% {
    opacity: 0.3;
    background: #ffee80;
  }
}
@keyframes blink-eyes {
  0%,
  100%,
  90% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}
.terminal {
  padding: 5px;
  margin: 5px;
  border-radius: 6px;
}
#consoleh {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 255, 255, 0.1) 50%,
    transparent 100%
  );
}