/* ========== MAIN AD GRID ========== */

.board-main {
  flex: 1;
  display: flex;
  padding: 0; /* top right bottom left */
}

.ads-area {
  flex: 1;
  display: grid;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 12px 12px 0 12px;
  box-sizing: border-box;
}




/* =========================================================
   ALERT POPUP
   ========================================================= */
.alert-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 25px;
  background: rgba(255, 0, 0, 0.85);
  color: #fff;
font-family:
  system-ui,
  -apple-system,
  BlinkMacSystemFont,
  "Segoe UI",
  "Noto Color Emoji",
  "Apple Color Emoji",
  "Segoe UI Emoji",
  sans-serif;  font-weight: bold;
  text-align: center;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
}

.alert-popup.hidden {
  opacity: 0;
  pointer-events: none;
}

.alert-content {
  max-width: 80%;
}

.alert-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.alert-body {
  font-size: 32px;
}
/* MAKE ADS VISIBLE — THIS WAS MISSING */
#ads-area {
  background: rgba(0,0,0,0.3);
}

.ad-slot {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 16px;
}

/* Default image base */
.ad-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: center;
}

/* LEFT / HERO ADS — fill the space */
.ad-slot-hero img {
  object-fit: cover;
}

/* RIGHT / STACKED ADS — show full poster */
.ad-slot-side img {
  object-fit: contain;
}




#alert-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert-box {
  background: #111827;
  color: white;
  padding: 60px;
  max-width: 80%;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}

.alert-box h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.alert-box p {
  font-size: 1.8rem;
}

.alert-box.amber { border: 6px solid #facc15; }
.alert-box.emergency { border: 6px solid #ef4444; }
.alert-box.extremeWeather { border: 6px solid #38bdf8; }
.content {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;   /* 👈 THIS fixes vertical centering */
}
.type {
  font-size: 14px;
  letter-spacing: 2px;
  opacity: 0.7;
}

.name {
  font-size: 40px;
  font-weight: 900;
}

.status {
  font-size: 14px;
  opacity: 0.6;
}
body {
  background: var(--bg);
  color: var(--text);
}
.accent {
  color: var(--accent);
}

#board-lock-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.lock-box {
  text-align: center;
  max-width: 600px;
}

.lock-icon {
  font-size: 80px;
  margin-bottom: 20px;
}

.lock-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 10px;
}

.lock-message {
  font-size: 22px;
  opacity: 0.85;
}
.alert-box.emergency { background: #b00020; }
.alert-box.amber { background: #ffb300; color: #000; }
.alert-box.extremeWeather { background: #1e88e5; }
.alert-box.silver { background: #9e9e9e; }

/* Lock slot */
.ad-slot {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* VIDEO: fully constrained */
.ad-slot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* IMAGE: preserve aspect ratio */
.ad-slot img {
  width: 100%;
  height: auto;
  max-height: 100%;
  display: block;
}

