@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");
@font-face {
  font-family: "Caviar Dreams";
  src: url("/fonts/Caviar_Dreams_Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}
:root {
  --page-w: 8.5in;
  --page-h: 11in;
  --teal: #4fd1c5;
}

@page {
  size: 8.5in 11in;
  margin: 0;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: #ccc9c3;
}

body {
  background: #ccc9c3;
  margin: 0;
  padding: 0;
  font-family: "DM Sans", sans-serif;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.caviar-dreams {
  font-family: "Caviar Dreams", sans-serif;
  font-weight: bold;
}

.flyer-page {
  width: var(--page-w);
  height: var(--page-h);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ccc9c3;
}
.flyer-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/submerge/images/submerge_background.png");
  background-repeat: no-repeat;
  background-position: center 30%;
  background-size: cover;
  opacity: 1;
  z-index: 0;
}
.flyer-page > * {
  position: relative;
  z-index: 1;
}

.flyer-header {
  text-align: center;
  padding-top: 0.4in;
  flex-shrink: 0;
}

.flyer-title {
  font-size: 4.8rem;
  font-weight: 900;
  color: #6a6c6c;
  letter-spacing: -0.01em;
  text-shadow: 0 0 30px rgb(255, 255, 255), 0 0 60px rgb(255, 255, 255), 0 0 100px rgba(255, 255, 255, 0.8), 0 0 160px rgba(255, 255, 255, 0.5), 0 0 220px rgba(255, 255, 255, 0.3);
}

.flyer-subtitle {
  font-size: 1.4rem;
  color: #848787;
  margin-top: -0.08in;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.flyer-events {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3in 0.4in;
  padding: 0.1in 1in;
  align-content: center;
  justify-items: center;
}

.flyer-event-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 3in;
}

.flyer-event-date {
  position: relative;
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
  margin-bottom: 0.05in;
}
.flyer-event-date::before {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  top: 2px;
  color: rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  pointer-events: none;
  z-index: -1;
}

.flyer-event-image {
  width: 3.2in;
  height: 1.6in;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flyer-event-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  filter: grayscale(100%);
}

.flyer-event-placeholder {
  width: 2.3in;
  height: 2.3in;
  background: rgba(25, 25, 25, 0.6);
  border: 1px solid rgba(79, 209, 197, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flyer-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 0.3in 0.25in;
  flex-shrink: 0;
}

.flyer-cta {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.flyer-time {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.2rem;
  font-weight: 500;
  margin-top: 0.02in;
}

.flyer-qr {
  width: 1.4in;
  height: 1.4in;
}
.flyer-qr img {
  width: 100%;
  height: 100%;
  display: block;
}

.flyer-footer-center {
  text-align: center;
  flex: 1;
  padding: 0 0.2in;
}

.flyer-footer-venue {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.flyer-footer-address {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

.flyer-footer-freq {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.flyer-scy-logo {
  height: 1.21in;
  width: auto;
}

.flyer-events:has(.flyer-event-card:only-child) {
  grid-template-columns: 1fr;
  padding: 0.2in 1.5in;
}
.flyer-events:has(.flyer-event-card:only-child) .flyer-event-card {
  max-width: 5in;
}
.flyer-events:has(.flyer-event-card:only-child) .flyer-event-image {
  width: 5in;
  height: 2.5in;
}
.flyer-events:has(.flyer-event-card:only-child) .flyer-event-date {
  font-size: 3.25rem;
}

.flyer-events:has(.flyer-event-card:nth-child(2):last-child) {
  grid-template-columns: 1fr 1fr;
}
.flyer-events:has(.flyer-event-card:nth-child(2):last-child) .flyer-event-image {
  width: 3.75in;
  height: 1.875in;
}
.flyer-events:has(.flyer-event-card:nth-child(2):last-child) .flyer-event-date {
  font-size: 2.5rem;
}

.flyer-events:has(.flyer-event-card:nth-child(3):last-child) .flyer-event-card:last-child {
  grid-column: 1/-1;
}

@media print {
  html, body {
    width: 8.5in;
    height: 11in;
    margin: 0;
    padding: 0;
    background: #ccc9c3;
  }
  .flyer-page {
    width: 8.5in;
    height: 11in;
    min-height: 100vh;
    page-break-inside: avoid;
  }
}
