body {
  margin: 0;
  font-family: sans-serif;
}

@media (max-width: 600px) {
  .card {
    width: 90%;            /* make card span almost full screen */
    max-width: 90%;        /* prevent desktop max-width from applying */
    max-height: 60vh;       /* allow more height if needed */
    padding: 10px 15px;     /* small but not zero padding */
    font-size: 0.70rem;     /* smaller, readable text */
    box-sizing: border-box; /* include padding in width */
  }

  .image-row img {
    width: 80%;
    max-width: 120px;     /* make images smaller */
    margin-bottom: 10px;  /* space when stacked */
  }

  button {
    width: 90%;           /* make button fit mobile width */
    font-size: 1rem;
    padding: 10px;
  }

  .header {
    padding: 10px;
  }
}


.image-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap; /* allows wrapping on small screens */
  margin-top: 20px;
  gap: 10px; /* spacing between images */
}

.image-row img {
  width: 30%;       /* responsive width instead of fixed px */
  max-width: 200px; /* optional max size */
  height: auto;
  opacity: 0;
  transition: opacity 1s ease-in, filter 0.5s ease;
  filter: grayscale(100%);
}

body {
  background-color: #00385D;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  color: white;
}

.card {
  width: 75%;
  max-width: 600px;
  max-height: 70vh;     /* limit card height to 70% of viewport */
  overflow-y: auto;      /* scroll if content is too tall */
  padding: 20px;
  margin: 20px auto;
  font-size: 1.0rem;
  text-align: center;
  background-color: #192734;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.02);      /* subtle zoom */
  box-shadow: 0 6px 10px rgba(0,0,0,0.15); /* stronger shadow */
  transition: transform 0.2s, box-shadow 0.2s;
}

.header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px 12px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #1d9bf0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 12px;
  font-size: 18px;
}

.name {
  font-weight: bold;
  font-size: 16px;
}

.handle {
  color: #8899a6;
  font-size: 14px;
}

.quote {
  font-size: 23px;
  line-height: 1.5;
  margin: 12px 0;
}

.attribution {
  font-size: 14px;
  color: #8899a6;
}

button {
  margin-top: 24px;
  background-color: #E50022;
  border: none;
  color: white;
  padding: 12px 22px;
  font-size: 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  margin: 20px
}

button:hover {
  background-color: #192734;
  transform: scale(1.05);
}

button:active {
  transform: scale(0.98);
}

.fade-out {
  opacity: 0;
}