/* Reset base */
  body, html {
    margin: 0; padding: 0; height: 100%;
    font-family: 'VT323', monospace;
    color: #58a6ff;
    overflow: hidden;
    background-color: #000016;
  }

  .hidden {
  display: none !important;
}

  .ascii {
  font-family: 'Courier New', monospace;
  font-size: 8px;
  line-height: 0.85;
  white-space: pre-wrap;
  color: #58a6ff;
  text-shadow: 0 0 3px #58a6ff, 0 0 6px #2989c7;
  background-color: transparent;
  padding: 1rem;
  overflow-x: auto;
  max-width: 100%;
}


  /* Scanlines overlay */
  .scanlines {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
      to bottom,
      rgba(88,166,255, 0.1),
      rgba(88,166,255, 0.1) 1px,
      transparent 1px,
      transparent 3px
    );
    z-index: 9999;
    mix-blend-mode: overlay;
  }

  .container {
    display: flex; height: 100vh;
    background: #080f22;
  }

  .sidebar {
    width: 160px;
    background: #0a142f;
    border-right: 2px solid #ff69b4;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
  }
  .sidebar button {
    background: none;
    border: none;
    color: #58a6ff;
    font-size: 1.1rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s, color 0.2s;
  }
  .sidebar button:hover {
    background: #ff69b4;
    color: #000010;
    font-weight: bold;
  }

  /* Main content area */
  .main-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    color: #58a6ff;
    font-size: 1.1rem;
    line-height: 1.5;
    user-select: text;
  }

  .console-container {
    position: fixed;
    bottom: 0; left: 160px; right: 0;
    background: #001132;
    border-top: 2px solid #ff69b4;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
  }
  .console-prompt {
    color: #ff69b4;
    font-weight: bold;
    margin-right: 0.5rem;
  }
  #console-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #58a6ff;
    font-family: 'Eurostile', monospace;
    font-size: 1.1rem;
    outline: none;
  }

  /* Scrollbar for main-content */
  .main-content::-webkit-scrollbar {
    width: 8px;
  }
  .main-content::-webkit-scrollbar-thumb {
    background: #ff69b4;
    border-radius: 4px;
  }

  /* For dynamic loaded content to blend in */
  .loaded-html h1, h2, h3, p {
    color: #58a6ff;
  }
  .loaded-html img {
    max-width: 100%;
    margin-top: 1rem;
    border: 1px solid #ff69b4;
  }

  .site-header {
  background: #080f22;
  border-bottom: 2px solid #ff69b4;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  position: relative;
  z-index: 10;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.vertical-line {
  width: 4px;
  height: 100%;
  background-color: #ff69b4;
  margin-right: 1rem;
}

.logo {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 0 3px #ff69b4);
}

.site-title {
  font-size: 1.5rem;
  color: #ff69b4;
  text-shadow: 0 0 3px #ff69b4, 0 0 6px #c864a8;
  font-weight: bold;
  text-transform: uppercase;
}

#full-entry {
  background-color: transparent;
  border: 2px solid #ff69b4;
  color: #58a6ff;            
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow:
    0 0 5px #ff69b4,
    0 0 10px #ff69b4;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
  margin: 1rem 1rem 1rem 0rem;
}

#full-entry:hover, #full-entry:focus {
  background-color: #ff69b4;
  color: #000010;
  outline: none;
  box-shadow:
    0 0 10px #ff69b4,
    0 0 20px #ff69b4;
}

.products-list {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.product-entry {
  border: 2px solid #0a76ff; /* bright blue border */
  background: #001530; /* dark blue background */
  padding: 1em;
  border-radius: 6px;
  cursor: pointer;
  outline-offset: 2px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.product-entry h3 {
  margin: 0 0 0.3em 0;
  font-family: 'VT323', monospace;
  font-size: 1.5em;
  color: #7ab8ff;
}

.product-entry p {
  margin: 0;
  color: #b0d4ff;
  font-family: 'VT323', monospace;
  font-size: 1.1em;
}

.product-entry:hover,
.product-entry:focus {
  background: #0a76ff;
  border-color: #4da1ff;
  color: white;
}

.members-list {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.member-entry {
  border: 2px solid #0a76ff;
  background: #001530;
  padding: 1em;
  border-radius: 6px;
  display: flex;
  align-items: center;
  cursor: default;
  outline-offset: 2px;
  gap: 1em;
}

.member-info {
  flex: 1;
  font-family: 'VT323', monospace;
  color: #b0d4ff;
}


.member-entry:focus,
.member-entry:hover {
  background: #0a76ff;
  border-color: #4da1ff;
  color: white;
}


.member-info h3 {
  margin: 0 0 0.3em 0;
  color: #7ab8ff;
  font-size: 1.5em;
}

.member-info p {
  margin: 0;
  font-size: 1.1em;
}

.member-pfp {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #0a76ff;
  object-fit: cover;
  flex-shrink: 0;
}


.auth-box {
  position: fixed;           
  top: 50%;                 
  left: 50%;               
  transform: translate(-50%, -50%); 
  background: #0a142f;
  padding: 3em 3.5em;
  border-radius: 12px;
  color: #b0d4ff;
  width: 420px;
  max-width: 90vw;
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  z-index: 9999;           
}

.auth-box h2 {
  margin-bottom: 1em;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  font-family: 'VT323', monospace !important;
}

.auth-form.hidden {
  display: none;
}

.auth-form input {
  padding: 0.6em;
  background: #001530;
  color: #b0d4ff;
  border: 1px solid #0a76ff;
  font-family: inherit;
  font-size: 1em;
}

.auth-form button {
  padding: 0.6em;
  background: #0a76ff;
  color: black;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-family: 'VT323', monospace !important;
}

.auth-toggle {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-bottom: 1em;
}

.auth-toggle button {
  background: #001530;
  border: 1px solid #0a76ff;
  color: #b0d4ff;
  padding: 0.4em 1em;
  cursor: pointer;
}

.auth-toggle .active {
  background: #0a76ff;
  color: black;
}

.auth-error {
  color: #ff4455;
  font-size: 0.9em;
  margin-top: 0.5em;
}

.close-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff4455;
  color: black;
  border: none;
  padding: 0.4em;
  cursor: pointer;
  font-weight: bold;
}


/* Increase sizes of inputs and buttons accordingly */
.auth-form input {
  padding: 0.9em;
  font-size: 1.2rem;
}

.auth-form button {
  padding: 0.9em;
  font-size: 1.2rem;
}

.auth-toggle button {
  padding: 0.6em 1.5em;
  font-size: 1.1rem;
}

button:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  background-color: gray;
}

.forgot-btn {
  background: none;
  border: none;
  color: #008cff;
  font-size: 0.85em;
  margin-top: 4px;
  cursor: pointer;
  text-decoration: underline;
}
.forgot-btn:hover {
  color: #ccc;
}


@media (max-width: 600px) {
   html, body {
    height: auto !important;
    overflow-y: auto !important;
  }


  .container {
    flex-direction: column;
    height: auto;
  }

  .sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 2px solid #ff69b4;
    flex-direction: row;
    padding: 0.5rem 0;
    overflow-x: auto;
    white-space: nowrap;
  }
  .sidebar button {
    flex: none;
    display: inline-block;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    text-align: center;
    border-right: 1px solid #ff69b4;
  }
  .sidebar button:last-child {
    border-right: none;
  }

  .main-content {
    font-size: 1.2rem;
    padding: 1rem 0.8rem;
  }

  .console-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.4rem 0.8rem;
    margin-top: 1rem;
    font-size: 0.9rem;
  }

  .console-prompt {
    font-weight: normal;
    margin-right: 0.3rem;
  }
  #console-input {
    font-size: 1rem;
  }

  .auth-box {
    width: 95vw;
    padding: 2rem 2.5rem;
    font-size: 1rem;
  }

  .site-header {
    height: 50px;
    padding: 0.3rem 0.8rem;
  }
  .site-title {
    font-size: 1.2rem;
  }
  .header-bar {
    gap: 0.5rem;
  }
  .vertical-line {
    width: 3px;
  }
  .logo {
    height: 24px;
  }

  .product-entry, .member-entry {
    padding: 0.8em;
  }
  .product-entry h3, .member-info h3 {
    font-size: 1.2em;
  }
  .product-entry p, .member-info p {
    font-size: 1rem;
  }

  .member-pfp {
    width: 48px;
    height: 48px;
  }
}
