:root {
  --bg-dark: #000;
  --text-dark: #0f0;
  --border-dark: #0f0;
  --bg-light: #f0f0f0;
  --text-light: #111;
  --border-light: #444;
}

body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

body.light-mode {
  background-color: var(--bg-light);
  color: var(--text-light);
}

body {
  font-family: 'Courier New', Courier, monospace;
  margin: 0;
  padding: 0;
  transition: background 0.4s, color 0.4s;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 90%;
  max-width: 900px;
  height: 90vh;
  border: 2px solid currentColor;
  padding: 15px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 20px currentColor;
  background-color: inherit;
  position: relative;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.terminal {
  flex: 1;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: 15px;
  border: 1px solid currentColor;
  padding: 10px;
  background-color: inherit;
}

.terminal::after {
  content: "|";
  animation: blink 1s step-start infinite;
}

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

.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  padding: 30px;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  background-color: var(--bg-light);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  color: var(--text-light);
  width: 400px;
}

.modal-content input {
  padding: 12px;
  font-size: 16px;
  background-color: var(--bg-light);
  color: var(--text-light);
  border: 1px solid var(--border-light);
  border-radius: 5px;
  width: 80%;
}

.modal-content button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: var(--bg-dark);
  color: var(--text-light);
  border: none;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: var(--border-light);
}

.downloads {
  display: none;
  justify-content: space-evenly;
  gap: 20px;
  margin-top: 20px;
  padding: 20px;
  border-radius: 10px;
  background-color: var(--bg-light);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.downloads button {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  background-color: var(--bg-dark);
  color: var(--text-light);
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.downloads button:hover {
  background-color: var(--border-light);
}
