* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  background: rgb(244, 225, 147);

  font-family: Arial, Helvetica, sans-serif;

  display: flex;
  flex-direction: column;
  align-items: center;

  color: black;
}

/* ------------------------- */
/* INTRO */
/* ------------------------- */

#intro {
  width: 100%;
  text-align: center;

  padding-top: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

#welcome_text {
  font-size: clamp(2.5rem, 7vw, 5rem);
  margin: 0;
  word-break: break-word;
}

#welcome_text::after {
  content: "|";

  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ------------------------- */
/* SHABBAT */
/* ------------------------- */

#shabbat-countdown {
  margin-top: 1rem;
}

#shabbat-countdown h2 {
  margin: 0;
  font-size: clamp(1rem, 3vw, 1.6rem);
}

/* ------------------------- */
/* PAGES CONTAINER */
/* ------------------------- */

#pages {
  width: min(1200px, 92%);

  margin-top: 3rem;
  margin-bottom: 5rem;

  background: rgb(250, 241, 197);

  border-radius: 2rem;

  padding: 2rem;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  gap: 2rem;
}

/* ------------------------- */
/* PAGE CARD */
/* ------------------------- */

.page-card {
  background: rgb(220, 200, 120);

  border-radius: 1.5rem;

  padding: 1rem;

  flex: 1 1 260px;
  max-width: 320px;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.page-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-card a {
  text-decoration: none;

  color: black;

  display: flex;
  flex-direction: column;

  gap: 1rem;

  height: 100%;
}

/* ------------------------- */
/* CARD CONTENT */
/* ------------------------- */

.page-title {
  font-size: 1.5rem;
  font-weight: bold;

  text-align: center;
}

.page-image {
  width: 100%;

  aspect-ratio: 1 / 1;

  object-fit: cover;

  border-radius: 1rem;
}

.page-description {
  font-size: 1rem;

  line-height: 1.4;

  flex-grow: 1;
}

/* ------------------------- */
/* LINKS */
/* ------------------------- */

a:link,
a:visited {
  color: black;
}

a:hover {
  color: hotpink;
}

a:active {
  color: hotpink;
}

/* ------------------------- */
/* FOOTER */
/* ------------------------- */

#footer-wrapper {
  width: 100%;

  margin-top: auto;

  background: black;

  color: white;

  text-align: center;

  padding: 1rem;
}

/* ------------------------- */
/* MOBILE */
/* ------------------------- */

@media (max-width: 600px) {
  #pages {
    padding: 1rem;
    gap: 1rem;
  }

  .page-card {
    max-width: 100%;
  }

  .page-title {
    font-size: 1.3rem;
  }

  .page-description {
    font-size: 0.95rem;
  }
}
