/* === Global Body === */
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Georgia', serif;
    background-color: #0c0f0a;
    color: #aef7ae;
}

/* === Header === */
header {
    background-color: #111;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #59f159;
}

nav a {
    color: #aef7ae;
    margin-left: 20px;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #59f159;
}

/* === Main Hero Section === */
main {
    flex: 1;
    text-align: center;
    padding: 80px 20px 40px;
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 10px;
    color: #b8ffb8;
    text-shadow: 0 0 8px #59f159;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* === Button === */
.btn {
    padding: 12px 25px;
    background-color: #59f159;
    color: black;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 6px #59f159;
}

.btn:hover {
    background-color: #7aff7a;
    box-shadow: 0 0 12px #7aff7a;
}

/* === Card Section === */
.card-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.card {
    background-color: #131a13;
    border: 1px solid #59f159;
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    box-shadow: 0 0 10px rgba(89, 241, 89, 0.2);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #b8ffb8;
    text-shadow: 0 0 4px #59f159;
}

.card p {
    font-size: 0.95em;
    margin-bottom: 15px;
}

/* Default: hidden before animation */
.card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When ready: fade in */
.card.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Realm images in cards */
.card img,
.realm-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
  
  
  /* === Codex Page Styling === */
  .codex-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 30px;
  }
  
  .codex-entry {
  background: #1b1b1b;
  border: 1px solid #59f159;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 0 15px rgba(89, 241, 89, 0.2);
  margin: 0 auto 40px;
  text-align: center;
}
  
  .codex-entry h3 {
    color: #aef7ae;
    text-shadow: 0 0 4px #59f159;
  }
  
  .codex-entry p {
    color: #c1f0c1;
    font-size: 0.95em;
  }
  
  .codex-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  border: 2px solid #59f159;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(89, 241, 89, 0.3);
}

  /* === Tavern Page Styling === */
  .tavern-image {
    display: block;
    max-width: 80%;
    height: auto;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(89, 241, 89, 0.2);
    border: 2px solid #59f159;
  }
  
  .tavern-whispers {
    margin: 30px auto;
    max-width: 700px;
    list-style: none;
    padding: 0;
    color: #c1f0c1;
  }
  
  .tavern-whispers li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
  }
  
  .tavern-whispers li::before {
    content: "☾";
    position: absolute;
    left: 0;
    color: #59f159;
  }
  
  /* === Footer === */
  footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    background-color: #111;
    color: #888;
    margin-top: 80px;
  }

  /* === Comment Page Styling === */
.comment-section {
    max-width: 700px;
    margin: 60px auto;
    padding: 20px;
    background-color: #131a13;
    border: 1px solid #59f159;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(89, 241, 89, 0.2);
    text-align: center;
  }
  
  .comment-section h2 {
    color: #aef7ae;
    margin-bottom: 30px;
    text-shadow: 0 0 6px #59f159;
  }
  
  .comment-section form textarea {
    width: 90%;
    height: 120px;
    padding: 10px;
    border: 1px solid #59f159;
    border-radius: 8px;
    background-color: #0c0f0a;
    color: #c1f0c1;
    resize: vertical;
    font-family: Georgia, serif;
    margin-bottom: 20px;
  }
  
  .comment-section .btn {
    margin-top: 10px;
  }
  
  /* Comment List */
  .comment-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
    color: #d1ffd1;
  }
  
  .comment-list li {
    background-color: #1b1b1b;
    border: 1px solid #2c7a2c;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 0 8px rgba(89, 241, 89, 0.1);
  }
  
  .comment-list strong {
    color: #7aff7a;
  }
  
  /* ========== Media Queries ========== */

/* Smartphones */
@media (max-width: 480px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  nav a {
    display: block;
    margin: 10px 0;
  }

  .hero h2 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1em;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .card {
    width: 90%;
  }

  .codex-entry, .comment-section {
    width: 95%;
    padding: 15px;
  }

  .tavern-whispers {
    padding: 0 10px;
  }

  .comment-section form textarea {
    width: 100%;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .card-section {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 80%;
  }

  .codex-entry, .comment-section {
    width: 90%;
  }

  .tavern-whispers {
    max-width: 90%;
  }
}

/* === Admin Dashboard Styling === */
.admin-dashboard {
  max-width: 700px;
  margin: 100px auto;
  padding: 30px;
  background-color: #131a13;
  border: 1px solid #59f159;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(89, 241, 89, 0.3);
  text-align: center;
}

.admin-dashboard h1 {
  font-size: 2.8em;
  color: #aef7ae;
  text-shadow: 0 0 8px #59f159;
  margin-bottom: 10px;
}

.admin-dashboard p {
  font-size: 1.2em;
  color: #c1f0c1;
  margin-bottom: 25px;
}

.btn {
  display: inline-block;
  margin: 10px 15px;
  padding: 12px 25px;
  background-color: #59f159;
  color: #0c0f0a;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 10px #59f159;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  background-color: #7aff7a;
  box-shadow: 0 0 16px #7aff7a;
}

/* === Realm Image Styling === */
.realm-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(89, 241, 89, 0.3);
  border: 2px solid #59f159;
}


  