@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;700&display=swap');

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: #000;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  flex: 1 0 auto;
}

#wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

#bg-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.08);
  font-size: 24px;
  line-height: 24px;
  white-space: pre-wrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: block;
}

#header-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 16px 24px;
  box-sizing: border-box;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#header-row a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  letter-spacing: 0.08em;
}

#header-row a:hover {
  text-decoration: underline;
}

#header-row .nav-current {
  font-weight: bold;
  text-decoration: underline;
}

#content {
  padding: 24px;
  box-sizing: border-box;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px 24px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

footer .footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  text-align: center;
}

footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


.main-container {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

.event-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid #fff;
  padding: 16px;
  border-radius: 8px;
  max-width: 600px;
  background: #111;
}

.event-thumb {
  width: 140px;
  height: auto;
  border-radius: 6px;
}

.event-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  align-items: flex-start;
}

.event-title {
  margin: 0 0 8px 0;
}

.event-info p {
  margin: 2px 0;
}

.event-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: #e63946;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.event-button:hover {
  background-color: #c1121f;
}

@media (min-width: 1024px) {
  .main-container {
    max-width: 60%;
    margin: 0 auto;
  }
}

/* image above text in event cards on mobile */
@media (max-width: 600px) {
  .event-card {
    flex-direction: column;
  }

  .event-thumb {
    width: 100%;
    height: auto;
  }
}

.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  /* hide popup on page load, script changes on button click */
  justify-content: center;
  align-items: center;
  padding: 16px;
  z-index: 9999;
}

.popup-content {
  background: white;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: 8px;
  border: 3px solid #fff;
  overflow-y: auto;
  /* scroll if content too tall */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 20px;
  border: none;
  color: #fff;
  background: none;
  cursor: pointer;
  padding: 8px;
}