body {
  background: black;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  overflow-x: hidden;
  margin: 0;
}

.matrix-bg {
  position: fixed;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, rgba(0,255,0,0.1) 1px, transparent 1px);
  background-size: 100% 4px;
  z-index: 0;
  pointer-events: none;
  animation: matrixScroll 1.5s linear infinite;
}

.matrix-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 48px;
  color: rgba(0,255,0,0.03);
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
  animation: glitchText 3s linear infinite;
}

.navbar {
  text-align: center;
  background: #001100;
  padding: 20px;
  z-index: 1;
  position: relative;
}

.button-container {
  text-align: center;
  margin: 10px 0;
}

.nav-button {
  background: black;
  color: #00ff00;
  border: 2px solid #00ff00;
  padding: 8px 16px;
  text-decoration: none;
  margin: 0 5px;
  border-radius: 4px;
  font-weight: bold;
  transition: 0.3s;
}

.nav-button:hover {
  background: #00ff00;
  color: black;
}

.side-container {
  position: relative;
}

.side-column {
  position: fixed;
  display: flex;
  flex-direction: column;
  gap: 16px;
  top: 160px;
}

.side-column.left {
  left: 10px;
}

.side-column.right {
  right: 10px;
}

.side-card {
  background: black;
  border: 2px solid #00ff00;
  padding: 10px;
  color: #00ff00;
  box-shadow: 0 0 8px #00ff00;
}

.side-card.tall {
  width: 140px;
  height: 200px;
}

.side-card.short {
  width: 140px;
  height: 100px;
}

.sim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  gap: 20px;
}

.sim-window {
  background-color: black;
  border: 2px solid #00ff00;
  padding: 12px;
  height: 100px; 
  box-shadow: 0 0 6px #00ff00;
  font-size: 13px;
}

.frame-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto 200px;
  padding: 0 20px;
}

.win-frame {
  width: 340px;
  height: 240px;
  background: #111;
  border: 2px solid #00ff00;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 8px #00ff00;
  overflow: scroll;
  transition: transform 0.4s;
}

a.win-frame {
  display: block;
  text-decoration: none;
  color: inherit;
}

.win-frame:hover {
  transform: scale(1.5);
  z-index: 10;
}

.title-bar {
  background: #003300;
  color: #00ff00;
  padding: 8px;
  font-weight: bold;
}

.content {
  padding: 10px;
  overflow-y: auto;
  font-size: 13px;
  flex: 1;
}

.content::-webkit-scrollbar {
  width: 8px;
}

.content::-webkit-scrollbar-thumb {
  background: #00ff00;
}

.terminal {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #001100;
  padding: 6px 12px;
  font-size: 12px;
  color: #00ff00;
  border-top: 2px solid #00ff00;
  z-index: 100;
}

.blinking {
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

@keyframes matrixScroll {
  from {
    background-position-y: 0;
  }
  to {
    background-position-y: 4px;
  }
}

@keyframes glitchText {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-10px);
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 1550px) {
  .side-container {
    display: none;
  }
}

@media (max-width: 1200px) {
  .frame-container {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
  }

  .win-frame {
    width: 90%;
    height: auto;
    transform: none !important;
    overflow: visible;
  }

  .sim-grid {
    grid-template-columns: 1fr;
  }

  .sim-window {
    font-size: 12px;
    height: auto;
  }

  .terminal {
    font-size: 11px;
    padding: 4px 10px;
  }
}
