*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: none;
}

/* Define the self-hosted font using @font-face */
@font-face {
  font-family: 'RobotoRegular';
  src: url('Roboto-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html {
  font-family: 'RobotoRegular', sans-serif;
  /* font-variant-caps: small-caps; */
  letter-spacing: 0.04em;
}

body {
  padding: 1rem 0.1rem;
  /* background: #f9f9f9; */
  background: #000;
  /* color: #FFF; */
  /* color: #d0d4e0; */
  color: #f0f0f0;
  line-height: 220%;
}

strong {
  color: #f0e29d;       /*  Bright, warm yellowish for contrast */
  font-weight: 500;
  /* font-weight: 700;       Extra bold */
  /* letter-spacing: 0.02em;  */
}

h1 {
  font-size: 2.5rem;
  font-weight: normal;
  background-color: #323949;
  padding: .5rem 1rem;
  border-radius: .5rem;
  max-width: 1200px;
  text-align: center;
  margin: 0rem auto 1rem auto;
  font-variant-caps: small-caps;
}

.tile {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  padding:.5rem; 
  background-color: #323949;
  border-radius: .5rem;
}

.tile-header {
  font-size: 2rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: .5rem;
  border-radius: .5rem;
  /* margin-bottom: .5rem; */
}

.tile-content {
  padding: .5rem;
  font-size: 1.5rem;
}

.slogan {
  font-size: 2.8rem;
  text-align: center;
  padding: 4rem 1rem;
}

.summary {
  font-size: 1.8rem;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 150%;
}

.contact {
  font-size: 2.2rem;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

#facts-list {
  list-style-position: outside;
  padding-left: 1em;
  margin-left: 0;
  line-height: 150%;
}

.carousel {
  position: relative;
  text-align: center;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(50, 57, 73, 0.8);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2.5rem;
  width: 3.5rem;
  height: 3.5rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: background 0.2s, opacity 0.2s;
}

.carousel-button:hover {
  background: #2a3a6e;
  opacity: 1;
}

.carousel-button.prev {
  left: 1rem;
}

.carousel-button.next {
  right: 1rem;
}

.carousel-images {
  position: relative;
  width: 100%;
  /* height: 2350px; Adjust as needed */
  aspect-ratio: 1920 / 1200; /* Maintain aspect ratio */
  overflow: hidden;
  min-width: 250px;
  max-width: 100%;
  margin: 0 auto;
  /* border: #FFF solid 2px; */
}

.carousel-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(.77,0,.18,1), opacity 0.5s;
  z-index: 1;
  pointer-events: none;
  border-radius: .5rem;
}

.carousel-image.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.carousel-image.slide-in-right {
  transform: translateX(100%);
  animation: slideInRight 0.5s forwards;
}

.carousel-image.slide-in-left {
  transform: translateX(-100%);
  animation: slideInLeft 0.5s forwards;
}

.carousel-image.slide-out-left {
  transform: translateX(0);
  animation: slideOutLeft 0.5s forwards;
}

.carousel-image.slide-out-right {
  transform: translateX(0);
  animation: slideOutRight 0.5s forwards;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutLeft {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(-100%); opacity: 0; }
}
@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}

.carousel-dots {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6em;
  z-index: 3;
  pointer-events: none;
}

.carousel-dot {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: #7ec3ff;
  opacity: 0.5;
  display: inline-block;
  transition: opacity 0.2s, background 0.2s;
  pointer-events: auto;
  cursor: pointer;
  /* border: 2px solid #fff; */
}

.carousel-dot.active {
  opacity: 1;
  background: #fff;
  border-color: #7ec3ff;
}

/* Smaller font size on high DPI screens */
@media (min-resolution: 2dppx), (min-device-pixel-ratio: 2) {
  body {
    font-size: 0.8rem;
    padding: 1rem 0.1rem;
    line-height: 1.3;
  }
  h1 {
    font-size: 1.3rem;
  }
  .tile {
    padding: 0.0rem;
    margin-left: .2rem;
    margin-right: .2rem;;
  }
  .tile-header {
    font-size: 1.3rem;
  }
  .tile-content {
    padding: 0.3rem;
    font-size: 1rem;
  }

  .slogan {
    font-size: 1.4rem;
    text-align: center;
    padding: 2rem 1rem;
  }
  .summary {
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.4;
  }
  .contact {
    font-size: 1.3rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
  .carousel-button {
    font-size: 1rem;
    width: 1.5rem;
    height: 1.5rem;
  }

}