/* Retro 2000s Hacker Terminal Style - Node.js Edition */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
  color: #00ff41;
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, transparent 98%, rgba(0, 255, 65, 0.03) 100%),
    linear-gradient(-90deg, transparent 98%, rgba(0, 255, 65, 0.03) 100%);
  animation: scanline 4s linear infinite;
  pointer-events: none;
  z-index: 1000;
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

body::after {
  content: 'root@ip-10-24-34-56.eu-central-1.compute.internal ';
  position: fixed;
  bottom: 10px;
  right: 10px;
  color: #00aa00;
  font-weight: bold;
  font-family: monospace;
  z-index: 1001;

  padding-right: 12px;

  /* kurzor középre igazítva */
  background:
    linear-gradient(#00aa00, #00aa00) right center / 10px 0.8em no-repeat;

  animation: cursorBlink 1s steps(1) infinite;
}

@keyframes cursorBlink {
  50% {
    background-size: 0 0.8em;
  }
  100% {
    background-size: 10px 0.8em;
  }
}
.sidebar {
  display: flex;
  float: left;
  width: 220px;
  background: #0a0a0a;
  background-image: linear-gradient(rgba(0, 255, 65, 0.05), transparent);
  padding: 20px 15px;
  border-right: 2px solid #00ff41;
  box-shadow: 
    inset 0 0 20px rgba(0, 255, 65, 0.1),
    0 0 30px rgba(0, 255, 65, 0.2);
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  flex-direction: column;
}

.sidebar-footer {
  margin-top: auto; /* EZ TOLJA LE ALULRA */
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
  font-weight: bold;
  border-top: 1px solid #00ff41;
  padding-top: 15px;
}

.sidebar h2 {
  color: #ffff00;
  text-shadow: 0 0 10px #ffff00;
  margin-bottom: 15px;
  font-size: 18px;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin: 8px 0;
}

.sidebar a {
  color: #00ffff;
  text-decoration: none;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  display: block;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.sidebar a:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: #00ffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
  transform: scale(1.05);
}

.content {
  margin-left: 240px;
  padding: 25px;
/*  min-height: 100vh;*/
}

a {
  color: #00ffff;
  text-decoration: none;
}

a:hover {
  text-shadow: 0 0 10px #00ffff;
  animation: glow 0.5s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 10px #00ffff; }
  to { text-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff; }
}

h1 {
  color: #ffff00;
  text-shadow: 
    0 0 10px #ffff00,
    0 0 20px #ffff00,
    0 0 30px #ffaa00;
  font-size: 2.5em;
  margin-bottom: 20px;
  letter-spacing: 2px;
  position: relative;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff0000, transparent);
  animation: underline 2s ease-in-out infinite;
}

@keyframes underline {
  0%, 100% { width: 0; }
  50% { width: 100%; }
}

h2, h3 {
  color: #ffaa00;
  text-shadow: 0 0 8px #ffaa00;
  margin-top: 30px;
}

code {
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid #00ff41;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  color: #00ff41;
  box-shadow: inset 0 0 10px rgba(0, 255, 65, 0.2);
}

pre {
  background: #0a0a0a;
  border: 1px solid #333;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

button, input[type="submit"] {
  background: linear-gradient(145deg, #001100, #003300);
  border: 2px solid #00ff41;
  color: #00ff41;
  padding: 10px 20px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 5px;
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
  transition: all 0.3s;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
}

button:hover, input[type="submit"]:hover {
  background: linear-gradient(145deg, #003300, #00aa00);
  box-shadow: 0 0 25px rgba(0, 255, 65, 0.7);
  transform: translateY(-2px);
}

/* Glitch effect for fun */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-anim 2s infinite;
  color: #ff00ff;
  left: 2px;
  text-shadow: -2px 0 #ff00ff;
  clip: rect(44px, 450px, 56px, 0);
}

.glitch::after {
  animation: glitch-anim2 2s infinite;
  color: #00ffff;
  left: -2px;
  text-shadow: -1px 0 #00ffff;
  clip: rect(40px, 450px, 52px, 0);
}

@keyframes glitch-anim {
  0% { clip: rect(43px, 9999px, 49px, 0); }
  5% { clip: rect(41px, 9999px, 51px, 0); }
  /* ... more keyframes for glitch effect */
}

@keyframes glitch-anim2 {
  0% { clip: rect(65px, 9999px, 72px, 0); }
  5% { clip: rect(62px, 9999px, 69px, 0); }
  /* simplified */
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    float: none;
    width: 100%;
    height: auto;
    position: relative;
  }
  .content {
    margin-left: 0;
  }
}
