/*
 * Stylesheet for the Smith College "Make a Will" landing splash.
 *
 * The design leverages a restrained palette inspired by the
 * original email: a black backdrop with bright red accents and
 * light typography. The overlay covers the entire viewport and
 * centers its content both horizontally and vertically. The
 * responsive layout ensures readability on a range of screen sizes.
 */

/* Reset some default styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f7f7f7;
  color: #222;
}

/* Banner style */
.banner {
  background-color: #004d7a;
  color: white;
  text-align: center;
  padding: 30px 20px;
  cursor: pointer;
  user-select: none;
}

.banner h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.banner:hover {
  background-color: #00619e;
}

/* Overlay styles */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease;
  z-index: 1000;
}

/* The overlay becomes visible when it has the .active class */
.overlay.active {
  visibility: visible;
  opacity: 1;
}

/* Popup container */
.popup-container {
  position: relative;
  background-color: #111;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.close-btn::before {
  content: '\00d7'; /* Unicode multiplication sign (×) */
}

.close-btn:hover {
  opacity: 1;
}

/* Header image */
.header-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Content area */
.content {
  padding: 30px 40px;
  overflow-y: auto;
  color: #ddd;
  flex: 1 1 auto;
}

.content h2 {
  color: #e84a5f;
  font-size: 1.6rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.content p {
  margin-bottom: 18px;
  line-height: 1.5;
}

.content strong {
  color: #f6a623;
}

.content .signature {
  margin-top: 30px;
  font-style: italic;
  color: #bbb;
}

/* Links */
.content a.link {
  color: #e84a5f;
  text-decoration: underline;
}

.content a.link:hover {
  color: #f6a623;
}

/* Layout for text and image */
.text-image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.text-image-row .text {
  flex: 2 1 300px;
}

.text-image-row .image {
  flex: 1 1 200px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.text-image-row .image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #444;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {
  .banner h1 {
    font-size: 1.4rem;
  }
  .content h2 {
    font-size: 1.4rem;
  }
  .content {
    padding: 24px 20px;
  }
  .text-image-row {
    flex-direction: column;
  }
  .text-image-row .text,
  .text-image-row .image {
    flex: 1 1 100%;
  }
}