/* Basstil */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  width: 100%;
  background-color: #000;
  background-image: url("../images/sentrix_bg.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto 90%; /* höjd = 90% av fönstret */
  font-family: 'Courier New', monospace;
  color: #c3c6d1;
  overflow: hidden;
}



.desktop {
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* Terminalfönster */
.terminal {
  max-width: 90vw;
  width: 455px;
  background-color: #111827;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  position: absolute;
  top: 10vh;
  left: 5vw;
  font-size: 1rem;
  opacity: 0.89; /* Lägg till detta om det inte finns */
  transition: opacity 0.3s ease-in-out; /* <-- fade */
}

/* Fönster (meny, om etc.) */
.window {
  position: absolute;
  background-color: #1e293b;
  color: #c3c6d1;
  border-radius: 6px;
  padding: 1rem;
  z-index: 3000; /* Ligger framför terminalen */
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

/* Titelrad */
.titlebar {
  display: flex;
  align-items: center;
  background-color: #0f172a;
  padding: 0.5rem;
}

.dot {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.red { background-color: #ef4444; }
.yellow { background-color: #facc15; }
.green { background-color: #22c55e; }

.titlebar img.logo {
  height: 20px;
  margin-left: 1rem;
  margin-right: 0.5rem;
}

.title {
  color: #64748b;
  margin-left: auto;
  margin-right: 1rem;
}

/* Innehåll */
.terminal-body {
  padding: 1rem;
  overflow-y: auto;
  max-height: 70vh;
}

.prompt {
  color: #22d3ee;
  margin: 0.5rem 0;
}

.cmd {
  color: #a5f3fc;
}

ul {
  list-style-type: none;
  padding-left: 1rem;
}

ul li::before {
  content: "❯ ";
  color: #4ade80;
}

ul.menu li {
  cursor: pointer;
  color: #93c5fd;
  transition: color 0.2s;
}
ul.menu li:hover {
  color: #2563eb;
}

/* 🔧 Responsivt för mobil */
@media (max-width: 768px) {
  .terminal {
    width: 95vw;
    top: 5vh;
    left: 2.5vw;
    font-size: 0.85rem;
  }

  .titlebar img.logo {
    height: 16px;
  }

  .terminal-body {
    max-height: 60vh;
    padding: 0.75rem;
  }

  .window {
    width: 90vw;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  body, html {
    background-size: 95%;
    background-position: top center;
  }
}
