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

.monitor {
  background: #ccc2ab;
  flex: 0 1 800px;
  border: 2px solid #a49c88;
  border-radius: 20px;
  box-shadow: inset 0 0 4px #b6ac95, 0 0 16px rgba(0, 0, 0, 0.2);
  padding: 10px;
  max-width: 800px;
  height: 600px;
  margin: 3rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.screen-frame {
  background: linear-gradient(to bottom, #9b9995, #716f6c);
  border: 6px solid #a49c88;
  border-radius: 28px;
  padding: 8px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
  width: 99%;
  height: 99%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.screen-icons {
  position: absolute;
  bottom: 5%;
  left: 5%;
  display: flex;
  gap: 12px;
  z-index: 2;
}

.screen-icons img {
  width: 28px;
  height: 28px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.screen-icons img:hover {
  opacity: 1;
}

.power-toggle-wrapper {
  position: absolute;
  bottom: 5%;
  right: 5%;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #716f6c;
  border: 2px solid #a49c88;
  border-radius: 50%;
  padding: 8px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2), 0 0 6px rgba(0, 0, 0, 0.2);
  width: 40px;
  height: 40px;
}

#power-toggle {
  background-color: transparent;
  color: #000000;
  font-family: 'Anonymous Pro', monospace;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 20px;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#power-toggle::before {
  content: "\23FB"; /* Unicode power symbol */
  font-size: 24px;
  line-height: 1;
}

#power-toggle:hover {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
}

.monitor .screen {
  background: radial-gradient(ellipse at center, #0c1a01 0%, #0b0b0b 60%);
  border: 10px inset #1a1a1a;
  border-radius: 50px;
  font-family: 'Anonymous Pro', monospace;
  font-size: 16px;
  line-height: 1.5;
  width: 85%;
  height: 80%;
  overflow: auto;
  position: relative;
  box-sizing: border-box;
}

.monitor .screen.off {
  padding: 0 !important;
  background: black !important;
  box-shadow: none !important;
}

.screen.off {
  background: black !important;
  overflow: hidden !important;
}

.screen.off .screen-inner,
.screen.off .terminal-wrapper {
  overflow: hidden !important;
}

.screen.off * {
  color: transparent !important;
  visibility: hidden !important;
}

.screen-inner {
  padding: 20px;
  border-radius: 12px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.boot-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Anonymous Pro', monospace;
  font-size: 16px;
  color: #00ff00;
  white-space: pre;
  text-align: center;
  z-index: 5;
  pointer-events: none;
}

.loading-bar {
  width: 200px;
  height: 12px;
  background-color: #002200;
  border: 1px solid #00ff00;
  margin: -30px auto 0;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.loading-progress {
  height: 100%;
  width: 0%;
  background-color: #00ff00;
  animation: loadProgress 2.5s linear forwards;
  animation-play-state: paused;
}

@keyframes loadProgress {
  from { width: 0%; }
  to { width: 100%; }
}

.terminal-wrapper {
  height: 400px;
  overflow-y: auto;
  padding: 10px;
  font-family: 'Anonymous Pro', monospace;
  background: transparent;
  color: rgba(44, 198, 44, 0.88);
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  scrollbar-width: none;
} 

.terminal-wrapper.flipped {
  transform: rotateY(180deg);
}

.terminal-content {
  background: transparent;
  display: flex;
  flex-direction: column;
  white-space: pre-wrap;
}

#terminal-output {
  background: transparent;
  display: inline;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 1.5em;
  font-family: 'Anonymous Pro', monospace;
  font-size: 16px;
  line-height: 1.5;
  color: inherit
}

.prompt {
  background: transparent;
  font-family: 'Anonymous Pro', monospace;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  width: 11.5px;
}

#terminal-input {
  background: transparent;
  border: none;
  color: inherit;
  font-family: 'Anonymous Pro', monospace;
  font-size: inherit;
  line-height: inherit;
  outline: none;
  width: 100%;
  flex: 1;
} 

#matrix-rain {  
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.flicker::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0, 255, 0, 0.04) 0%, rgba(0, 0, 0, 0.01) 70%);
  pointer-events: none;
  z-index: 1;
}

.text-flicker-shift {
  transform: translateX(-1px);
  transition: transform 0.1s ease-in-out;
}

.screen-inner.powering-off {
  animation: powerDown 0.6s ease forwards;
}

@keyframes powerDown {
  0% {
    opacity: 1;
    filter: brightness(1);
    background-color: black;
    background-image: none;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
  }
  100% {
    opacity: 0;
    filter: brightness(0.1);
    background-color: black;
    background-image: none;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
  }
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 20px;
}

header {
  flex:1 1 100%;
  width: 100%;
  color: #00ff04;
}

.about {
  width: 100%;
  color: #00ff00;
  font-family: 'Anonymous Pro', monospace;
  font-size: 14px;
  line-height: 1.2;
  background: transparent;
  padding: 10px;
  margin: 0;
}

.monitor .screen .content-box {
  background: transparent;
  backdrop-filter: none;
  border-radius: 8px;
  padding: 0px;
  max-width: 700px;
  margin: 0;
  z-index: 1;
  position: relative;
  text-align: left;
  color: #00ff00;
  align-self: flex-start;
}

.boot-active .prompt,
.boot-active #terminal-input {
  visibility: hidden;
}

.terminal-wrapper::-webkit-scrollbar {
  display: none;
}

.chat-embed {
  position: absolute;
  bottom: 5%;
  right: 5%;
  width: 50%;
  height: 90%;
  background: #111;
  border: 2px solid #00ff00;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
  overflow: hidden;
  z-index: 10;
}

.chat-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}