.display-6 {
  font-size: 18px !important;
}
p {
  font-size: 16px !important;
  line-height: 1.5 !important;
}
.card {
  background-color: #8ab7f9;
}
a {
text-decoration: none;
color: black;
}
a.selected {
  font-weight: bold;
  color: #0d6efd; /* Bootstrap primary color */
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100svh;
  height: 100svh;
  background: #f5f5f7;
  overflow: hidden;
}
.main-container {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}
.carousel-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}
.img-row {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  max-height: 40vh;
  width: 100%;
  background: #f5f5f7;
}
.img-row img {
  max-width: 90vw;
  max-height: 90%;
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 1rem;
  border: 2px solid #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.text-row {
  flex: 1 1 0;
  overflow-y: auto;
  padding: 1rem;
  background: #f5f5f7;
  position: relative;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  margin-left: 8px;
  margin-right: 8px;
  min-height: 0;
  max-height: 400px;
}
.text-row::-webkit-scrollbar {
  display: none;
}
.carousel-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.carousel-control {
  position: absolute;
  bottom: 16px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.carousel-control.left {
  left: 16px;
}
.carousel-control.right {
  right: 16px;
}
/* New footer bar styles */
.footer-bar {
  height: 80px;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}
/* 3. Animation for carousel transitions */
#carousel-content {
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), opacity 0.4s cubic-bezier(.4,0,.2,1);
  will-change: transform, opacity;
}
.carousel-anim-left {
  transform: translateX(-100vw);
  opacity: 0;
}
.carousel-anim-right {
  transform: translateX(100vw);
  opacity: 0;
}
.carousel-anim-in {
  transform: translateX(0);
  opacity: 1;
}
.navbar {
  min-height: 56px;
}
@media (max-width: 400px) {
  .img-row {
    height: 250px;
  }
  .img-row img {
    width: 250px;
    height: 250px;
  }
  .text-row {
    max-height: 400px
  }
}