:root > * {
  --md-primary-fg-color: #b49dda;
}

/* header/nav bar */
.md-header {
  position: absolute;
  background: transparent !important;
}

.md-header.scrolled {
  background: var(--md-primary-fg-color) !important;
  position: sticky !important;
}

/* footer */
.md-footer-meta__inner_override {
  justify-content: center;
}

.md-footer-meta {
  background-color: white !important;
  color: black !important;
}

.md-footer-meta.md-typeset a {
  color: black !important;
}

/* home page */
.hero {
  width: 100%;
  height: 100vh;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  background-size: cover;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/assets/images/hero.jpg");
  background-position: center;
  background-repeat: no-repeat;
}

.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;

  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: lighter;

  /* Allow wrapping and prevent overflow */
  white-space: normal;
  max-width: 85%;
  line-height: 1.3;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.image-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 15px;
  height: 100%;
  width: 100%;
  position: relative;
}

.img-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.img-item:hover {
  transform: scale(1.02);
}

.img1 {
  grid-column: span 2;
  grid-row: span 2;
}

.img2 {
  grid-column: span 2;
}

.img3 {
  grid-row: span 2;
}

.collage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

/* Fixed slogan overlay */
.slogan-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: bold;
  text-align: center;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9);
  padding: 25px 40px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);

  /* Allow wrapping and prevent overflow */
  white-space: normal;
  max-width: 85%;
  line-height: 1.3;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.image-collage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

@media (max-width: 768px) {
  .image-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
  }

  .img1 {
    grid-column: span 2;
    grid-row: span 1;
  }

  .slogan-overlay {
    font-size: clamp(1.2rem, 4vw, 2rem);
    max-width: 95%;
    padding: 20px 25px;
    letter-spacing: 1px;
  }

  /*
        the language drop down needs to be modified so that we don't
        overflow causing the entire page to be horizontally scrollable
        on mobile devices
     */

  .md-select__inner {
    left: 0;
  }

  .md-select__inner:after {
    left: 75%;
  }

  .button {
    font-size: 1rem !important;
    /* TODO why do we have to do !important? */
  }
}

/* video */
.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.video-container iframe {
  max-width: 100%;
  /* height: 500px; */
  aspect-ratio: 16/9;
  /* Adjust as needed */
}

.button {
  background-color: var(--md-primary-fg-color);
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  color: white !important;
  overflow: hidden;
}

.button:hover {
  transform: scale(1.02);
}

.button-container {
  margin-top: 1rem;
}

.donation-box {
  display: flex;
  justify-content: center;
  justify-items: center;
  background-color: black;
  flex-direction: column;
  align-items: center;
  color: white;
  padding: 2rem;
  font-size: 2rem;
}

.btn-sm {
  font-size: 1rem;
}

.info {
  display: flex;
  justify-content: right;
}

.version {
  margin-right: 1rem;
  color: gray;
}

.welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.my-logo {
  max-width: 100%;
  width: 400px;
}

@media (min-width: 700px) {
  .welcome {
    flex-direction: row;
  }
}

.main-content {
  display: flex;
  flex-direction: column;
}
