body {
  background-color: #1e1e1e;
  color: #fff;
  font-family: 'Vecna', sans-serif;
  text-align: center;
  padding-top: 70px;
}

h1 {
  margin-top: 20px;
}

input, select {
  margin: 10px;
  padding: 10px;
  font-size: 16px;
}

#npc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
  max-width: 2000px;
  margin: 0 auto;
}

#enemy-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
  max-width: 2000px;
  margin: 0 auto;
}

.npc-card {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease-in-out;
  flex: 1 1 250px;
  max-width: 300px;
}

.enemy-card {
  background: #222;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease-in-out;
  max-width: 450px;
  min-width: 400px;
  border: 3px solid transparent;
}

.npc-card:hover {
  transform: scale(1.05);
}

.enemy-card:hover {
  transform: scale(1.05);
}

.npc-card h2 {
  font-size: 20px;
  color: saddlebrown;
  margin: 10px 0 5px;
}

.npc-card.player-frame h2 {
  color: green;
}

.npc-card.dead h2 {
  color: grey;
}

.enemy-card h2 {
  font-size: 20px;
  color: #c55;
  margin: 10px 0 5px;
}

.npc-card h3 {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 10px;
}

.enemy-card h3 {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 10px;
}

.npc-card p {
  font-size: 14px;
  color: #ddd;
}

.enemy-card p {
  font-size: 14px;
  color: #ddd;
}

.npc-card img {
  width: 100%;
  border-radius: 10px;
}

.enemy-card img {
  width: 100%;
  border-radius: 10px;
}

.greyed-out {
  filter: grayscale(100%) opacity(60%);
}

hr {
  border: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  margin: 10px auto;
  width: 90%;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

nav {
  background: #1a1a1a;
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 0;
  margin: 0;
}

nav ul li {
  display: inline-block;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  padding: 10px 15px;
  transition: all 0.3s ease-in-out;
  border-radius: 5px;
}

nav ul li a:hover {
  background: rgba(255, 215, 0, 0.2);
  color: gold;
}

#map {
  height: 600px;
  width: 90%;
  max-width: 1200px;
  margin: 20px auto;
  border: 2px solid #555;
  border-radius: 10px;
}

.npc-image-container {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
}

.npc-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease-in-out;
}

.npc-image-container .default-image {
  opacity: 1;
  z-index: 2;
}

.npc-image-container .alt-image {
  opacity: 0;
  z-index: 1;
}

.npc-image-container.has-alt:hover .default-image {
  opacity: 0;
}

.npc-image-container.has-alt:hover .alt-image {
  opacity: 1;
}

.player-frame {
  border: 3px solid green;
  box-shadow: 0 0 15px rgba(0, 128, 0, 0.7);
  padding: 10px;
  border-radius: 12px;
}

.enemy-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.blurred {
  filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 8px;
  transition: filter 0.3s ease-in-out, background 0.3s ease-in-out;
}

.blurred.unlocked {
  filter: blur(0);
  background: none;
}

.minor-frame {
  border-color: #3cb371;
  box-shadow: 0 0 8px rgba(60, 179, 113, 0.7);
  padding: 10px;
  border-radius: 12px;
}

.moderate-frame {
  border-color: #4682b4;
  box-shadow: 0 0 10px rgba(70, 130, 180, 0.7);
  padding: 10px;
  border-radius: 12px;
}

.severe-frame {
  border-color: #ff8c00;
  box-shadow: 0 0 12px rgba(255, 140, 0, 0.7);
  padding: 10px;
  border-radius: 12px;
}

.catastrophic-frame {
  border-color: #b22222;
  box-shadow: 0 0 15px rgba(178, 34, 34, 0.7);
  padding: 10px;
  border-radius: 12px;
}

.eldritch-frame {
  border-color: #800080;
  box-shadow: 0 0 15px rgba(128, 0, 128, 0.7);
  padding: 10px;
  border-radius: 12px;
  animation: eldritchGlow 2s infinite alternate ease-in-out;
}

@keyframes eldritchGlow {
  0% {
    box-shadow: 0 0 10px rgba(128, 0, 128, 0.7);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
  }
  100% {
    box-shadow: 0 0 10px rgba(128, 0, 128, 0.7);
  }
}

@font-face {
  font-family: 'Vecna';
  src: url('../fonts/Vecna.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  #npc-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .npc-card {
    padding: 15px;
  }
}
