#moose-header {
  display: block;
  height: 250px;
  width: 100%;
  object-fit: cover;
  object-position: 40% 40%;
}
h1,
h2 {
  text-align: center;
}
.content {
  width: 33%;
  margin: auto;
  margin-bottom: 30px;
  font-size: 18px;
}
#meWithFish {
  display: block;
  margin: auto;
  width: 300px;
  border-radius: 8px;
}
body {
  background-color: rgba(254, 240, 229, 255) !important;
  font-family: "Merriweather", serif;
  margin: 0;
}

.hideWhileLoading {
  display: none;
}
.hideLoaders {
  display: none;
}
#reedQuestion {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
}
#askButton {
  margin-bottom: 1rem;
}
#inputBox {
  display: none;
}
.visible {
  display: block !important;
}
#factsList {
  height: 900px;
  overflow: scroll;
  display: none;
}
.portal-content {
  width: 60%;
}

@media only screen and (max-width: 1000px) {
  .content {
    width: 80%;
  }
  p {
    font-size: 20px;
  }
  h1 {
    font-size: 46px;
    padding: 0 10px;
  }
  h2 {
    font-size: 42px;
    padding: 0 10px;
  }
  #meWithFish {
    width: 100%;
  }
}

.chat-has-image .content #meWithFish {
  display: none;
}

.content p {
  font-size: 20px;
}

.videoHolder {
  margin: 24px auto 0;
}

.comedy-carousel {
  background: #151515;
  border-radius: 8px;
  overflow: hidden;
}

.comedy-carousel .carousel-item {
  text-align: center;
}

.comedy-carousel video {
  aspect-ratio: 9 / 16;
  background: #000;
  display: block;
  max-height: 72vh;
  object-fit: contain;
  width: 100%;
}

.comedy-carousel .clip-title {
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
  margin: 0;
  padding: 10px 56px;
}

.comedy-carousel .carousel-control-prev,
.comedy-carousel .carousel-control-next {
  bottom: 43px;
  top: 0;
  width: 18%;
}

.comedy-carousel .carousel-control-prev-icon,
.comedy-carousel .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.68);
  border-radius: 999px;
  background-size: 54%;
  height: 44px;
  width: 44px;
}

/* =============== */
/* GLOBAL LAYOUT */
/* =============== */

body:has(.portal-content) {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 10px;
  padding-top: 64px;
}

.portal-content {
  padding: 2rem 3rem;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 700px;
  text-align: center;
  border: 1px solid #30363d;
}

/* =============== */
/* HEADINGS */
/* =============== */
.portal-content h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* =============== */
/* BUTTONS */
/* =============== */
.portal-content .btn {
  margin: 0.3rem;
  border: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.portal-content .btn:hover {
  background-color: #2ea043;
  transform: translateY(-1px);
}

.portal-content .btn:active {
  transform: translateY(1px);
}

/* =============== */
/* FACTS LIST */
/* =============== */
#factsList {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  text-align: left;
  max-height: 400px;
  overflow-y: auto;
  border-top: 1px solid #30363d;
  border-bottom: 1px solid #30363d;
}

#factsList li {
  padding: 10px 12px;
  background: whitesmoke;
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}
#factsList li span {
  width: 80%;
}

#factsList li:hover {
  background: #d8f9ff;
}

/* delete “x” button styling */
#factsList button {
  background: none;
  border: none;
  color: #ff7b72;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.15s ease;
}

#factsList button:hover {
  color: #ffa198;
}

/* =============== */
/* INPUT AREA */
/* =============== */
#inputBox {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

#inputBoxInput {
  flex: 1;
  max-width: 400px;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #30363d;
  outline: none;
  transition: border-color 0.2s ease;
}

#inputBoxInput:focus {
  border-color: #58a6ff;
}

#submitFactButton {
  border: none;
  color: white;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

#submitFactButton:hover {
  background-color: #388bfd;
}

/* Tweak the main card to sit nicely under the navbar */
.portal-content {
  margin-top: 12px;
}

/* ===== Fade-in list animation ===== */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Start hidden; we'll add a .show class via JS */
#factsList li {
  /*opacity: 0;*/
  transform: translateY(6px);
}

/* When .show is present, animate in */
#factsList li.show {
  animation: fadeSlideUp 300ms ease forwards;
}

/* Nice stagger: each item delays slightly */
#factsList li.show:nth-child(1) {
  animation-delay: 40ms;
}
#factsList li.show:nth-child(2) {
  animation-delay: 80ms;
}
#factsList li.show:nth-child(3) {
  animation-delay: 120ms;
}
#factsList li.show:nth-child(4) {
  animation-delay: 160ms;
}
#factsList li.show:nth-child(5) {
  animation-delay: 200ms;
}
/* (it’s fine if more items all share the same later delay) */

#factsList.showing-instructions li {
  background: #1f2937; /* darker */
  border-left: 4px solid #facc15; /* yellow highlight */
  color: whitesmoke;
}
