body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100dvh;
  margin: 0;
  background-color: #1e1e1e;
  color: #c6c6c6;
  font-family: 'IBM Plex Mono', monospace;
  background-image: url(images/overlay2.png), url(images/symbolbg.webp),
    url(images/bg.jpg);
  background-size: cover;
  background-position: center;
  box-sizing: border-box;
  touch-action: manipulation;
}

.windows > div {
  /* font-size: 1.05rem !important; */
}
.terminal-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 95%;
  border: 2px solid #000000ab;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  height: 97dvh;
  box-sizing: border-box; /* Adding a simple drop shadow */
}

.top-border {
  width: 100%;
  height: 40px;
  background-color: white;
  background-image: url(images/orangebg.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.top-border img {
  width: 24px;
  height: 24px;
  padding-right: 12px;
  display: none;
}

.top-border p {
  color: #fff;
  padding-right: 20px;
}

.button-wrapper {
  margin-left: auto;
  margin-right: 5px;
}

.button-wrapper button {
  background-color: initial;
  border: none;
  display: flex;
}

.button-wrapper button span {
  font-size: 22px;
  color: white;
}

.console {
  width: 100%;
  height: 290px;
  background-color: #00000030;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #c6c6c6;
  overflow-y: auto;
  border-bottom: 2px solid #212121;
  display: flex;
  flex-direction: column;
  position: relative;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.console::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

#consoleMessages {
  display: flex;
  flex-direction: column;
  padding: 15px;
}

#consoleMessages div {
  /* margin-top: 5px; */
  line-height: 17px;
  font-size: 0.85rem;
}

#consoleMessages .console-message,
#consoleMessages .console-image {
  width: 100%;
}

#consoleMessages .console-image img {
  max-width: 100%;
  height: auto;
}

.console .glow {
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.25),
    0 0 5px rgba(255, 255, 255, 0.15);
}

.console-container {
  width: 100%;
}

.console-overlay-png,
.console-overlay-gif {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.console-overlay-png {
  background-image: url("images/overlay.png"); /* Path to your PNG overlay */
  background-size: cover;
  background-repeat: no-repeat;
  max-height: 290px;
  top: 40px;
}

.console-overlay-gif {
  background-image: url("images/overlay.gif"); /* Path to your GIF overlay */
  background-size: cover;
  background-repeat: no-repeat;
}

.image-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 1s ease;
  z-index: 2;
  background-image: url(images/bootimage.gif);
  background-size: 85%;
  background-position: center;
}

.image-container img {
  width: 100%;
  height: 100%;
}

.initial-message {
  color: #939393; /* Light blue */
}

.alert-message {
  color: rgb(255 238 27);
}

.special-message {
  color: #ffb75a;
}

.we-message {
  color: #e74545;
}

.message-message {
  color: #57c7f4;
}

.fen-message {
  color: #958272;
}

.signal-message {
  color: rgb(255 138 37);
}


.stop-message {
  color: #e74545;
}

.seven-message {
  color: #df3079;
}

.seperator-message {
  color: #828282;
}

.error-message {
  color: #c579ff;
}

.glitch-target {
  color: #8f8f8f;
}

.glitch-target2 {
  color: #8f8f8f;
}

.correct-message {
  color: #00ff00; /* Green */
}

.help-message {
  color: #f48a1a; /* Green */
}

.incorrect-message {
  color: #62ddea;
}

.input-field {
  width: 100%;
  padding: 14px;
  text-align: left;
  font-size: 1.2em;
  border-bottom: 1px solid #3c3c3c;
  background-color: #151515;
  color: #c6c6c6;
  position: relative;
  transition: background-color 0.5s;
  display: flex;
  align-items: flex-end;
}

.input-field #inputText {
  max-width: 63%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  margin-left: 12px;
}

.input-field.bg-red {
  /* background-color:#158715; */
  /* Red background */
}

.input-field::before {
  content: "aion >";
  color: #c6c6c6;
  margin-left: 23px;
}

.input-field.locked::before {
  content: "connecting ";
}

.input-field.downloading::before {
  content: "downloading ";
}

.input-field.decrypting::before {
  content: "decrypting data ";
}

.input-field.fen::before {
  content: "EXP >";
}

.input-field.locked .spinner::after,
.input-field.downloading .spinner::after {
  display: inline-block;
  content: "";
  margin-left: 5px;
  width: 10px;
  height: 10px;
  animation: spin 1s infinite linear;
}

#deleteButton {
  background: none;
  border: none;
  color: #5c5c5c;
  position: absolute;
  right: 35px;
  cursor: pointer;
  font-size: 20px;
  top: 15px;
  cursor: not-allowed;
}


#deleteButton.active {
  color: #7e5ae1; 
  cursor: initial;
}

#deleteButton.active:hover {
  color: #a183f3; 
  cursor: initial;

}

@keyframes spin {
  0% {
    content: "|";
  }

  12.5% {
    content: "/";
  }

  25% {
    content: "-";
  }

  37.5% {
    content: "\\";
  }

  50% {
    content: "|";
  }

  62.5% {
    content: "/";
  }

  75% {
    content: "-";
  }

  87.5% {
    content: "\\";
  }

  100% {
    content: "|";
  }
}

.cursor {
  display: inline-block;
  background-color: #c6c6c6;
  margin-left: 2px;
  width: 10px;
  height: 2px;
  animation: blink 1s infinite;
}

.hidden-cursor .cursor {
  display: none;
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 20px;
  background-image: url(images/keypadbg.jpg);
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.keypad button {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  background-color: #151515;
  color: #e7e7e7;
  border: 1px solid #2f2f2f;
  cursor: pointer;
  border-radius: 5px;
  border-bottom: 4px solid #62626278;
  transition: border-bottom 0.2s ease;
}

.keypad button:hover,
.keypad button:active {
  /* background-color: #464646; */
  border-bottom: 2px solid #2f2f2f;
  /* margin-bottom: 2px; */
  /* background-color: #1c1c1c; */
}

.keypad .submit span {
  font-size: 32px;
  font-weight: 600;
}

.keypad .help span {
  font-size: 28px;
  font-weight: 600;
}

.keypad .light {
  background-color: orange !important;
}

.enter {
  padding: 10px 13px 0px 13px;
  box-sizing: border-box;
  width: 100%;
}

.status-icon {
  width: 40px;
  height: 40px;
  background-image: url("images/status_on.png"); /* Default background image */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 55%;
}

.status-icon.flash {
  background-image: url("images/status_off.png"); /* Flash background image */
  /* background-color: rgb(18, 161, 58); */
}

.enter-button {
  background-color: #4929a4;
  color: #c6c6c6;
  border: 1px solid #1a1a1a;
  cursor: pointer;
  padding: 15px 20px;
  font-size: 1.2em;
  width: 100%;
}

.enter-button:hover,
.enter-button:active {
  background-color: #5430b8;
}

.submit {
  background-color: #4929a4 !important;
  border-bottom: 4px solid #643bd4 !important;
}

.submit:hover {
  background-color: #5430b8 !important;
  border-bottom: 2px solid #643bd4 !important;
}

.disabled-button.submit {
  background-color: #161616 !important;
  cursor: not-allowed !important;
  color: rgb(56, 56, 56) !important;
  border: 1px solid black !important;
  border-bottom: 4px solid #000000 !important;
}

.submitted.submit {
  cursor: not-allowed !important;
  background-color: #5430b8 !important;
  border-bottom: 2px solid #643bd4 !important;
}


.submitted.help {
  cursor: not-allowed !important;
  border-bottom: 2px solid #2f2f2f !important;
}

.hidden {
  display: none !important;
}

.disabled-button {
  background-color: #161616 !important;
  cursor: not-allowed !important;
  color: rgb(56, 56, 56) !important;
  border: 1px solid black !important;
  border-bottom: 4px solid #000000 !important;
}


.flash {
  animation: flashAnimation 0.05s ease-in-out;
}

@keyframes flashAnimation {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.25;
  }

  100% {
    opacity: 1;
  }
}

.landscape-message {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  z-index: 1000;
  backdrop-filter: blur(30px);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
}

/* Desktop styles */
@media (min-width: 768px) {
  .terminal-container {
    max-width: 480px;
    height: initial;
  }

  .keypad {
    height: initial;
  }

  .console {
    /* height: 240px; */
  }

  #consoleMessages div {
    /* margin-top: 5px; */
    line-height: 18px;
    font-size: 1rem;
    word-break: break-all;
  }

  .keypad button {
    padding: 24px;
    font-size: 1.7em;
  }

  .input-field {
  }
}

@media (max-height: 800px) {
  /* Your CSS rules here */
  .terminal-container {
    height: 97dvh;
  }

  .keypad {
    height: 100%;
  }

  .keypad button {
    padding: initial;
    font-size: 1.5rem;
  }
}
