/* Base */
body {
  font-family: 'Fira Mono', monospace;
  background-color: #0b0b0b;
  color: #c0c0c0;
  margin: 0;
  line-height: 1.4;
}

/* Header */
header {
  background-color: #111111;
  padding: 1rem 1rem;
  text-align: center;
  border-bottom: 1px solid #00ff0033;
}

@keyframes neonPulse {
  0%, 100% { text-shadow: 0 0 4px #00ff00, 0 0 10px #33ff33; }
  50% { text-shadow: 0 0 8px #00ff00, 0 0 20px #33ff33; }
}

header h1 {
  margin: 0;
  font-size: 4rem;
  color: #00ff00;
  animation: neonPulse 3s infinite alternate;
}

.subtitle {
  color: #33ff33;
  font-size: 1rem;
  margin-top: 0.25rem;
  animation: neonPulse 3s infinite alternate;
}

.subtitle {
  margin-top: 1rem;     /* keeps space above */
  margin-bottom: 0.25rem; /* slightly smaller space below */
  line-height: 1.4;     /* optional, keeps text readable */
}

/* Container */
.container {
  width: 98%;
  max-width: 1400px;
  margin: 0.5rem auto;
  padding: 0;
}

/* Year selector */
.month-selector {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #00ff00;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.month-selector span {
  margin-right: 1rem;
  font-weight: bold;
  color: #33ff33;
}

.month-selector a {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border: 1px solid #33ff33;
  border-radius: 6px;
  background-color: #101010;
  color: #33ff33;
  text-decoration: none;
  font-weight: bold;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  font-size: 0.9rem;
}

.month-selector a:hover {
  box-shadow: 0 0 6px #33ff33, 0 0 12px #00ff00;
  transform: translateY(-1px);
}

/* Column header */
.message-header {
  display: flex;
  font-weight: bold;
  color: #00ff00;
  border-bottom: 1px solid #00ff0044;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
}

.header-timestamp { flex: 0 0 140px; font-size: 0.8rem; }
.header-message { flex: 1; font-size: 0.9rem; }
.header-txid { flex: 0 0 140px; font-size: 0.8rem; text-align: right; }

/* Message list */
.message-list { display: flex; flex-direction: column; gap: 0.5rem; }

/* Message card */
.message-card {
  background-color: #101010;
  border: 1px solid #00ff0044;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.message-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 12px #00ff0088, 0 0 20px #33ff33aa, 0 0 30px #00ff00bb;
}

.message-timestamp { flex: 0 0 140px; color: #66ff66; font-size: 0.8rem; padding-right: 0.5rem; }
.message-text {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: #00ff00;

  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.message-text.large { font-size: 1.4rem; color: #80ff80; }
.txid { flex: 0 0 140px; text-align: right; font-size: 0.8rem; cursor: help; word-wrap: break-word; }
.txid a { color: #33ff33; text-decoration: none; transition: text-shadow 0.3s ease; }
.txid a:visited { color: #33ff33; }
.txid a:hover { text-shadow: 0 0 6px #33ff33, 0 0 12px #00ff00; }

/* Footer */
footer { text-align: center; font-size: 0.8rem; color: #888; padding: 0.5rem 0; border-top: 1px solid #00ff0044; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

.modal-content {
  background-color: #101010;
  border: 2px solid #33ff33;
  border-radius: 8px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  text-align: center;
  color: #33ff33;
  box-shadow: 0 0 12px #00ff0088, 0 0 20px #33ff33aa;
}

.modal-content h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #00ff00;
  text-shadow: 0 0 4px #00ff00, 0 0 10px #33ff33;
}

/* Unified modal close buttons (including crypto modal) */
.modal-content button {
    margin-top: 1.5rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid #33ff33;
    border-radius: 6px;
    background-color: transparent;  /* remove grey background */
    color: #33ff33;
    font-weight: bold;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.modal-content button:hover {
    background-color: #33ff33;
    color: #000;
    box-shadow: 0 0 6px #33ff33, 0 0 12px #00ff00;
    transform: translateY(-1px);
}

.pgpkey {
    display: block;           /* make sure it’s block */
    text-align: left;         /* left-align text inside */
    align-self: flex-start;   /* override parent flex centering */
    font-family: monospace;
    font-size: 0.8rem;
    background-color: #0f0f0f;
    color: #00ff00;
}

@media (max-width: 700px) {
  /* Header */
  header h1 {
    font-size: 2.8rem;
    line-height: 1.2;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  /* Month/Year buttons */
  .month-selector {
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
  }

  .month-selector a {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }

  /* Hide desktop column headers */
  .message-header {
    display: none;
  }

  /* Message cards stay horizontal for columns */
  .message-card {
    flex-direction: row;  /* keep columns side by side */
    align-items: flex-start;
    padding: 0.25rem 0.5rem;
    gap: 0.25rem;
  }

  /* Timestamp: shrink width */
  .message-timestamp {
    flex: 0 0 90px;    /* smaller than desktop 140px */
    font-size: 0.75rem;
    color: #66ff66;
    white-space: pre-line; /* for line break in mobile timestamp */
  }

  /* Message text: take remaining space */
  .message-text {
    flex: 1 1 auto;
    font-size: 0.85rem;
    line-height: 1.2;
    margin: 0;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .message-text.large {
    font-size: 0.9rem;
  }

  /* TXID: shrink width */
  .txid {
    flex: 0 0 50px;   /* smaller width for mobile */
    font-size: 0.65rem;
    text-align: right;
    word-break: break-all;
  }

  /* Footer padding */
  footer {
    padding: 0.5rem 0;
  }

  /* Modal padding */
  .modal-content {
    padding: 1rem;
    width: 80%;           /* narrower modal */
    max-width: 360px;     /* limit width on small screens */
    border-radius: 10px;  /* slightly more rounded corners */
    font-size: 0.85rem;   /* smaller font for mobile */
    box-shadow: 0 0 8px #00ff0044, 0 0 16px #33ff33aa;
  }

  .modal-content h2 {
    font-size: 1.2rem;    /* smaller heading */
    text-shadow: 0 0 3px #00ff00, 0 0 6px #33ff33;
  }

  .modal-content p {
    line-height: 1.3;
    margin: 0.5rem 0;
  }

  .modal-content button {
    margin-top: 1rem;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    background-color: transparent; /* remove grey background on mobile too */
    color: #33ff33;
    border: 1px solid #33ff33;
  }

  /* mobile pgpkey */
  .pgpkey {
      font-family: monospace;
      font-size: 0.6rem;
      background-color: #0f0f0f;
      color: #00ff00;
      border-radius: 0.5rem;
      overflow-x: auto;           /* allow horizontal scroll if needed */
      word-break: normal;         /* prevent wrapping mid-character */
      box-sizing: border-box;
      max-width: 100%;            /* ensure it never exceeds modal width */
      margin: 1rem 0;
  }

}

/* Contact Me button styling */
.month-selector a.contact {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border: 1px solid #33ff33;
  border-radius: 6px;
  background-color: #101010;
  color: #33ff33;
  font-weight: bold;
  margin-left: 0.5rem;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.month-selector a.contact:hover {
  box-shadow: 0 0 6px #33ff33, 0 0 12px #00ff00;
  transform: translateY(-1px);
}

.contact {
    background-color: #244 !important; /* dark grey background */
    color: #00ff00 !important;        /* neon green text */
    transition: text-shadow 0.2s !important;
}

.contact:hover {
    text-shadow: 0 0 4px #00ff00 !important; /* subtle glow on hover */
}

a.support:link,
a.support:visited {
  color: #ff1a1a; /* bright red */
  font-weight: bold;
  text-decoration: underline;
}

a.support:hover,
a.support:focus {
  color: #ff4d4d; /* lighter red on hover */
  text-decoration: underline;
}

/* Tabs inside modal */
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.tab-link {
  background-color: #101010;
  color: #33ff33;
  border: 1px solid #33ff33;
  border-radius: 6px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  font-weight: bold;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.tab-link.active {
  background-color: #33ff33;
  color: #101010;
}

.tab-link:hover {
  box-shadow: 0 0 6px #33ff33, 0 0 12px #00ff00;
  transform: translateY(-1px);
}

.tab-content {
  text-align: center;
}

.tab-content img {
  width: 300px;
  height: 300px;
  margin-top: 0.5rem;
  border: 2px solid #33ff33;
  border-radius: 6px;
}

.crypto-address {
  font-family: 'Fira Mono', monospace;
  color: #00ff00;
  font-size: 0.9rem;
  margin: 0.25rem 0;
  word-break: break-all;
}

.show-more {
  color: #00ff00;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s ease;
  font-size: 1.1rem;
}

.show-more:hover {
  color: #00ff00;
  font-size: 1.1rem;
}
