/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }

/* Theme: olive checkerboard with neon green hacker vibe and frosted glass */
:root {
  --olive: #3a5f2a;
  --olive-dark: #2a3e14;
  --green: #39ff14;
  --green-soft: #9aff85;
  --glass: rgba(15, 40, 15, 0.65);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --text: #eafff0;
  --muted: #d8ffd0;
}

html, body {
  height: 100%;
  background-color: var(--olive);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  /* Olive checkerboard background */
  background-image:
    linear-gradient(45deg, rgba(0,0,0,.15) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.15) 75%, rgba(0,0,0,.15)),
    linear-gradient(-45deg, rgba(0,0,0,.15) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.15) 75%, rgba(0,0,0,.15));
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

main { width: 100%; display: flex; justify-content: center; align-items: center; padding: 2rem 1rem; }

/* Frosted glass image frame (hero) */
.image-frame {
  width: min(92vw, 860px);
  background: rgba(0, 40, 0, 0.55);
  border-radius: 14px;
  padding: 1.2rem;
  border: 1px solid rgba(120, 255, 210, 0.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Footer and ad card */
footer {
  width: 100%;
  padding: 1rem;
  margin-top: auto;
  display: flex;
  justify-content: center;
}

.product-ad {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  width: min(92vw, 540px);
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 255, 120, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-ad h3 {
  margin: 0;
  font-size: 1rem;
  color: #e4ffd5;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-shadow: 0 0 6px rgba(60, 255, 180, 0.6);
}

.product-ad a { text-decoration: none; }

.product-ad a p {
  margin: 0;
  padding: 0.6rem 0.9rem;
  color: #062e0a;
  font-weight: 700;
  background: linear-gradient(#2bd64a, #1b8e1a);
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.15);
  min-width: 250px;
  text-align: center;
}

/* Focus/Accessibility */
a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 6px;
}
:focus-visible { outline: none; }

/* Copy below the product ad (copyright) */
footer p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #cfeccf;
  text-align: center;
  width: 100%;
}

/* Responsive behavior */
@media (min-width: 768px) {
  main { padding: 3rem 0; }
  .image-frame { padding: 1.6rem; }
  .product-ad { flex-direction: row; align-items: center; gap: 1rem; }
  .product-ad h3 { font-size: 1.05rem; }
  .product-ad a p { min-width: 320px; }
}

@media (min-width: 1024px) {
  .image-frame { max-width: 900px; }
  .product-ad { justify-content: space-between; padding: 1rem 1.5rem; }
}