@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

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

body {
  background-color: #0a0a0a;
  color: #33ff33;
  font-family: 'VT323', monospace;
  font-size: 20px;
  line-height: 1.4;
  text-shadow: 0 0 5px #33ff33;
  overflow-x: hidden;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background-color: #000;
  border-bottom: 3px solid #33ff33;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 20px #33ff33;
}

header h1 {
  font-size: 36px;
  letter-spacing: 4px;
  margin-bottom: 5px;
  animation: flicker 3s infinite alternate;
}

header h2 {
  font-size: 22px;
  color: #00cc00;
}

/* Layout */
.layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Navigation */
nav {
  width: 250px;
  background-color: #000;
  border-right: 3px solid #33ff33;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
}

.nav-title {
  font-size: 22px;
  text-align: center;
  border-bottom: 2px solid #33ff33;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.nav-btn {
  background-color: transparent;
  color: #33ff33;
  border: 2px solid transparent;
  padding: 12px 15px;
  margin: 5px 0;
  font-family: 'VT323', monospace;
  font-size: 20px;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s;
  text-shadow: 0 0 5px #33ff33;
}

.nav-btn:hover, .nav-btn.active {
  background-color: #33ff33;
  color: #000;
  border: 2px solid #33ff33;
  box-shadow: 0 0 15px #33ff33;
  text-shadow: none;
}

.nav-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 2px solid #33ff33;
}

.back-link {
  color: #33ff33;
  text-decoration: none;
  font-size: 18px;
  display: block;
  padding: 10px;
  text-align: center;
  border: 2px solid #33ff33;
  transition: all 0.3s;
}

.back-link:hover {
  background-color: #33ff33;
  color: #000;
  box-shadow: 0 0 15px #33ff33;
}

/* Main Content Area */
main {
  flex: 1;
  display: flex;
  background-color: #000;
}

#list-pane {
  width: 350px;
  border-right: 2px solid #33ff33;
  padding: 20px;
  overflow-y: auto;
  background-color: #0a0a0a;
}

#detail-pane {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  background-color: #000;
}

/* Boot Message */
.boot-message {
  text-align: center;
  font-size: 28px;
  margin-top: 100px;
}

/* List Items */
.list-item {
  background-color: #000;
  border: 2px solid #33ff33;
  padding: 15px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.list-item:hover, .list-item.active {
  background-color: #33ff33;
  color: #000;
  box-shadow: 0 0 10px #33ff33;
  text-shadow: none;
}

.list-item-title {
  font-size: 24px;
  margin-bottom: 5px;
}

.list-item-subtitle {
  font-size: 18px;
  color: #00cc00;
}

.list-item.active .list-item-subtitle {
  color: #006600;
}

/* Detail Content */
.detail-content h3 {
  font-size: 32px;
  margin-bottom: 15px;
  border-bottom: 2px solid #33ff33;
  padding-bottom: 10px;
}

.detail-content h4 {
  font-size: 26px;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #00ff00;
}

.detail-content p {
  margin-bottom: 15px;
  font-size: 20px;
}

.detail-content ul, .detail-content ol {
  margin-left: 30px;
  margin-bottom: 15px;
}

.detail-content li {
  margin-bottom: 8px;
}

.detail-content pre {
  background-color: #0a0a0a;
  border: 2px solid #33ff33;
  padding: 15px;
  overflow-x: auto;
  margin: 15px 0;
  font-family: 'VT323', monospace;
  font-size: 18px;
}

.detail-content .warning {
  border: 3px solid #ff3333;
  background-color: #1a0000;
  color: #ff3333;
  padding: 15px;
  margin: 15px 0;
  text-shadow: 0 0 5px #ff3333;
}

.detail-content .secret {
  border: 2px solid #ffff33;
  background-color: #1a1a00;
  color: #ffff33;
  padding: 15px;
  margin: 15px 0;
  text-shadow: 0 0 5px #ffff33;
}

/* Footer */
footer {
  background-color: #000;
  border-top: 3px solid #33ff33;
  padding: 15px;
  text-align: center;
  font-size: 16px;
  color: #00cc00;
  box-shadow: 0 0 20px #33ff33;
}

/* Animations */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #33ff33;
  border: 1px solid #000;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .layout {
    flex-direction: column;
  }
  
  nav {
    width: 100%;
    border-right: none;
    border-bottom: 3px solid #33ff33;
  }
  
  main {
    flex-direction: column;
  }
  
  #list-pane {
    width: 100%;
    border-right: none;
    border-bottom: 2px solid #33ff33;
  }
}

/* Login Screen */
#login-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #0a0a0a;
}

.login-container {
  max-width: 600px;
  width: 90%;
  border: 3px solid #33ff33;
  background-color: #000;
  padding: 40px;
  box-shadow: 0 0 30px #33ff33;
  text-align: center;
}

.login-container h1 {
  font-size: 36px;
  letter-spacing: 4px;
  margin-bottom: 10px;
  animation: flicker 3s infinite alternate;
}

.login-container h2 {
  font-size: 22px;
  color: #00cc00;
  margin-bottom: 40px;
}

.login-prompt p {
  font-size: 24px;
  margin-bottom: 30px;
  color: #ffff33;
  text-shadow: 0 0 5px #ffff33;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#login-form label {
  font-size: 20px;
  text-align: left;
}

#login-form input[type="password"] {
  background-color: #000;
  border: 2px solid #33ff33;
  color: #33ff33;
  font-family: 'VT323', monospace;
  font-size: 24px;
  padding: 15px;
  text-shadow: 0 0 5px #33ff33;
  outline: none;
}

#login-form input[type="password"]:focus {
  box-shadow: 0 0 15px #33ff33;
}

#login-form button {
  background-color: transparent;
  border: 2px solid #33ff33;
  color: #33ff33;
  font-family: 'VT323', monospace;
  font-size: 22px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s;
  text-shadow: 0 0 5px #33ff33;
}

#login-form button:hover {
  background-color: #33ff33;
  color: #000;
  box-shadow: 0 0 20px #33ff33;
  text-shadow: none;
}

#error-message {
  min-height: 25px;
  font-size: 20px;
}

.login-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #33ff33;
}

.logout-btn {
  background-color: transparent;
  border: 2px solid #33ff33;
  color: #33ff33;
  font-family: 'VT323', monospace;
  font-size: 18px;
  padding: 10px;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.3s;
  text-shadow: 0 0 5px #33ff33;
  width: 100%;
}

.logout-btn:hover {
  background-color: #33ff33;
  color: #000;
  box-shadow: 0 0 15px #33ff33;
  text-shadow: none;
}

/* Creature Images */
.creature-image-block {
  margin: 20px 0;
  text-align: center;
  border: 3px solid #33ff33;
  padding: 10px;
  background-color: #0a0a0a;
  box-shadow: 0 0 15px #33ff33;
}

.creature-image {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  border: 2px solid #33ff33;
  display: block;
  margin: 0 auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
