@font-face {
    font-family: RobotoSlab-ExtraBold;
    src: local("RobotoSlab-ExtraBold"), url(RobotoSlab-ExtraBold.ttf);
}

@font-face {
    font-family: RobotoSlab-SemiBold;
    src: local("RobotoSlab-SemiBold"), url(RobotoSlab-SemiBold.ttf);
}

@font-face {
    font-family: RobotoSlab-Regular;
    src: local("RobotoSlab-Regular"), url(RobotoSlab-Regular.ttf);
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    background: rgb(255, 255, 255);
    font-family: 'Roboto Slab', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Heading sizes */
h1 {
    font-size: 8vh;
}

h2 {
    font-size: 7vh;
}

h3 {
    font-size: 6vh;
}

header h4 {
    font-size: 3.75vh;
}


header {
    background-color: #A32638;
    width: 100vw;
    height: 15vh;
}

.container {
  display: flex;
  align-items: center;
  flex-direction: row;
  height: 100%;
  width: 100vw;
  padding: 0.75em;
  margin: 0 2rem;
  gap: 1em;
}

.logo-container {
  height: 100%;
  flex-shrink: 0;;
  flex-grow: 0;
}

.logo-container img {
  height: 100%;
  width: auto;
}

.title-container {
  text-align: left;
  color: white;
  flex-shrink: 0;;
  flex-grow: 0;
}

.title-container h4 {
  margin: -1rem 0 auto 0;
}

.image-container img {
    height: 100%;
    width: auto;
    border-radius: 1.5rem;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2),
                -4px -4px 8px rgba(0, 0, 0, 0.1),
                0 8px 16px rgba(0, 0, 0, 0.3);
}

.text-container .text {
    font-size: 2.5rem; /* Default font size */
    line-height: normal;
    overflow: hidden;
//    display: -webkit-box;
//    -webkit-line-clamp: 11; /* Initial number of lines to show */
//    -webkit-box-orient: vertical;
    color: black;
    margin-bottom: 0.5rem;
}

.text-container .more-info {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: normal;
    color: black;
    margin-top: 0.5rem;
}

footer {
    background-color: #A32638;
    color: white;
    height: 10vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 2em;
}

.footer-container {
    display: flex;
    gap: 2em;
    align-items: center;
    text-align: right;
}

.main-content {
    height: calc(100vh - 25vh); /* Remaining space between header and footer */
    display: flex;
    justify-content: center; /* Center carousel */
    align-items: center;
    padding: 2rem 2rem;
    box-sizing: border-box;
    gap: 10rem;
    overflow: hidden;
}

.carousel-content {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.rectangle {
  flex: 0 1 auto;
  aspect-ratio: 3 / 4;
  border-radius: 1.5rem;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2),
              -4px -4px 8px rgba(0, 0, 0, 0.1),
              0 8px 16px rgba(0, 0, 0, 0.3);
  background: #f4f4f4;
  overflow: hidden;
  position: relative;
  max-height: calc(100vh - 25vh - 10rem);
}

/* First rectangle: original size */
.rectangle:nth-child(1) {
  width: calc(45%); /* or use flex-basis instead of width */
  transform: translateY(-4rem);
}

/* Second rectangle: 1.2x size */
.rectangle:nth-child(2) {
  width: calc(54%); /* 1.2 × 45% */
  transform: translateY(4rem);
}

.rectangle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 1.5rem;
}

.text-content {
  padding: 1rem;
}

.text-content .text-title {
  line-height: normal;
  font-size: 3rem;
  color: #A32638;
  margin-bottom: 1rem;
}

.carousel-item {
    display: none;
  width: 100%;
  height: 100%;
}

.carousel-item.active {
    display: block;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
