body {
  margin: 0;
  padding: 0;
  background-color: #0a0d0f;
  color: #f5f5f5;
  font-family: "Courier New", Courier, monospace;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

/* Outer pad that acts as a smaller page within the main window */
.pad {
  margin: 60px auto;
  padding: 30px;
  /* Use the NYRA avatar as a subtle background image for the pad. A dark
     overlay (via a gradient) is placed on top to ensure text contrast. */
  background-image: linear-gradient(rgba(10, 13, 15, 0.85), rgba(10, 13, 15, 0.85)), url('nyra-avatar.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid #00ff80;
  border-radius: 6px;
  width: 85%;
  max-width: 1000px;
  box-shadow: 0 0 20px rgba(0, 255, 128, 0.3);

  /* Slide in animation for the pad on page load */
  opacity: 0;
  transform: translateY(-20px);
  animation: slideDown 0.8s ease forwards;
}

@keyframes slideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Container that mimics a terminal window */
.terminal {
  margin: 40px;
  padding: 20px;
  background-color: #0d1117;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  width: 90%;
  max-width: 900px;
}

/* ASCII art styling */
/* Legacy ASCII art styling removed from header. */
.ascii {
  display: none;
}

/* Header with avatar and title */
.header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 255, 128, 0.4);
}

.header h1 {
  color: #00ff80;
  margin: 0;
  font-size: 32px;
  line-height: 1;
}

/* Headings use a bright green hue reminiscent of terminal prompts */
h2 {
  color: #00ff80;
  margin-top: 30px;
  margin-bottom: 10px;
}

/* Individual bounty cards */
.bounty {
  margin-bottom: 20px;
  padding: 10px;
  background-color: #161b22;
  border-left: 4px solid #00ff80;
  border-radius: 4px;
}

.bounty h3 {
  margin-top: 0;
  margin-bottom: 5px;
  color: #9ec5e0;
}

/* Navigation bar styling */
.nav {
  display: flex;
  gap: 20px;
  background-color: #161b22;
  padding: 10px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.nav a {
  color: #58a6ff;
  text-decoration: none;
  font-weight: bold;
  position: relative;
}

.nav a:hover {
  text-decoration: underline;
}

/* Highlight the current page in the navigation bar */
.nav a.active {
  color: #00ff80;
}

/* Collapsible challenge details */
.challenge {
  margin-bottom: 15px;
}

.challenge-title {
  cursor: pointer;
  color: #9ec5e0;
  margin: 0;
}

.challenge-details {
  display: none;
  margin-left: 10px;
  margin-top: 5px;
}

.challenge.active .challenge-details {
  display: block;
}

a {
  color: #58a6ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Ensure paragraphs with dynamic typing have space reserved and a monospace look */
p[data-type] {
  min-height: 1.2em;
  white-space: pre-wrap;
}

/* (Optional) blinking caret effect for typed paragraphs */
@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

p[data-type]::after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 16px;
  background-color: #00ff80;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: bottom;
}