/* General Styles */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  font-family: 'Menlo', monospace;
  color: #fff;
  transition: color 0.3s;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Light Mode */
body.light-mode {
  background: linear-gradient(-45deg, #ff9a9e, #fad0c4, #a1c4fd, #c2e9fb);
  background-size: 400% 400%;
  animation: gradient-light 15s ease infinite;
  color: #000;
}

@keyframes gradient-light {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Terminal Window */
.terminal-window {
  width: 800px;
  height: 500px;
  background-color: #1e1e1e;
  border-radius: 8px;
  overflow: scroll;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  position: relative;
}

.light-mode .terminal-window {
  background-color: #fff;
  color: #000;
}

/* Header */
.header {
  height: 30px;
  background-color: #333;
  display: flex;
  align-items: center;
  padding: 0 10px;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.light-mode .header {
  background-color: #e0e0e0;
}

.dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}

.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }

#theme-toggle-button {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  margin-right:12px;
}

.light-mode #theme-toggle-button {
  color: #000;
}

/* Content */
.content {
  padding: 25px 20px 20px 20px; /*top padding */
  color: #00ff00;
  overflow-y: auto;
  flex-grow: 1;
}

.light-mode .content {
  color: #000;
}

/* Input Field */
.input {
  width: 100%;
  background: transparent;
  border: none;
  color: inherit;
  font-family: 'Menlo', monospace;
  font-size: 16px;
  outline: none;
  caret-color: #00ff00;
}

.light-mode .input {
  caret-color: #000;
}

/* Help Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
  background-color: #444;
  color: #f5f5f5;
}

.light-mode table {
  background-color: #e0e0e0;
  color: #000;
}

th, td {
  padding: 8px;
  text-align: left;
  border: 1px solid #666; /* Reduced border width */
}

th {
  background-color: #555;
}

.light-mode th {
  background-color: #d0d0d0;
}

td {
  background-color: #444;
}

.light-mode td {
  background-color: #e0e0e0;
}

table th, table td {
  border-width: 1px; /* Further reducing border size for a cleaner look */
}

.hidden {
  display: none;
}

/* Additional styling for terminal prompt output */
div {
  word-wrap: break-word;
}

a {
  color: rgb(0, 238, 255);
  text-decoration: none;
}

.light-mode a {
  color: #ff0000;
}

a:hover {
  color: rgb(255, 0, 0);
}

.light-mode a:hover {
  color: #00ff00;
}
