/* ==========================================================================
   ABOUT BUTTON & MODAL WINDOW STYLING
   ========================================================================== */

/* 1. The Trigger Button (Top Left of Canvas) */
#about-btn {
  position: absolute;
  top: 420px; /* Pushes it down below "AN INTERACTIVE CLIMATE MAP" */
  left: 20px;
  z-index: 1000;
  
  font-size: 14px; 
  font-family: monospace;
  font-weight: bold;
  padding: 8px 16px;
  
  background: #1a1a1a;
  color: #ffffff;
  border: 1px solid #444444;
  border-radius: 4px;
  cursor: pointer; 
  transition: all 0.2s ease-in-out;
}

#about-btn:hover {
  background: #2a2a2a;
  border-color: #ff5555; /* Accent flash on hover */
  color: #ff5555;
}

/* 2. The Main Window Container */
#about-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Perfectly centers the window on screen */
  width: 500px;
  max-width: 90%; /* Responsive safeguard for smaller screens */
  z-index: 9999; /* Ensures it sits above everything, including the trigger button */
  
  /* Matching your existing dashboard window look */
  background: rgba(20, 20, 20, 0.95); /* Sleek dark theme with slight transparency */
  color: #ffffff;
  border: 1px solid #444444;
  border-radius: 6px;
  font-family: monospace;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  
  /* Flexbox to keep layout structure aligned */
  display: flex;
  flex-direction: column;
}

/* 3. Modal Header Layout */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333333;
  padding-bottom: 12px;
  margin-bottom: 15px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #ff5555; /* Dashboard primary accent color */
  letter-spacing: 0.5px;
}

/* 4. The Close (X) Button */
.close-btn {
  background: none;
  border: none;
  color: #888888;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 5px;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #ffffff;
}

/* 5. Artist / Project Credit Link Line */
.project-credit {
  font-size: 0.95rem;
  margin-top: -5px;
  margin-bottom: 20px;
  color: #aaaaaa;
}

.project-credit a {
  color: #ff5555;
  text-decoration: none;
  border-bottom: 1px dotted #ff5555;
  transition: all 0.2s ease;
}

.project-credit a:hover {
  color: #ff7777;
  border-bottom: 1px solid #ff7777;
  background: rgba(255, 85, 85, 0.1); /* Subtle highlight behind your link */
}

/* 6. Body Paragraph Text */
.modal-body p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 16px;
  color: #dddddd;
}

/* Emphasized terms within the text block */
.modal-body strong {
  color: #ffffff;
  font-weight: bold;
}