:not(:defined) > * {
  display: none;
}

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0 100px; /* 20px on left and right */
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  font-family: Roboto Regular, Helvetica Neue, sans-serif;
}

/* Container for the content */
.content {
  max-width: 800px; /* limits line length for readability */
  margin: 40px auto; /* centers content with space on top/bottom */
  padding: 0 20px; /* horizontal padding on small screens */
  line-height: 1.7; /* improves readability */
  font-family: Roboto Regular, Helvetica Neue, sans-serif;
  color: #333; /* modern dark gray text */
}

/* Headings */
.content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 70px;
  text-align: center; /* optional: center title */
  color: #111;
  letter-spacing: 1px;
  padding-bottom: 0px;
  padding-top: 0px;
}

.content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center; /* optional: center title */
  color: #111;
  letter-spacing: 1px;
  padding-bottom: 60px;
}
/* Paragraphs */
.content p {
  font-size: 1.1rem;
  margin-bottom: 20px; /* space between paragraphs */
  text-align: justify; /* neat alignment for modern look */
}

/* Optional: subtle first-letter styling for elegance */
.content p::first-letter {
  font-size: 2.5rem;
  font-weight: 700;
  color: rgb(0, 0, 0); /* accent color */
  float: left;
  margin-right: 5px;
  line-height: 1;
}

.container {
  max-width: 1200px; /* limits width on desktop */
  margin: 0 auto; /* center container */
  padding: 0 20px; /* space on sides for small screens */
  box-sizing: border-box;
}

@media (max-width: 600px) {
  body {
    padding: 0 10px;
  }

  .photo-grid {
    grid-template-columns: 1fr; /* 1 column on narrow screens */
    gap: 10px;
  }

  .content h1 {
    font-size: 2rem;
  }

  .content p {
    font-size: 1rem;
  }
}

model-viewer {
  width: 100%;
  height: 90%;
  background-color: #ffffff;
}

.progress-bar {
  display: block;
  width: 33%;
  height: 10%;
  max-height: 2%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  border-radius: 25px;
  box-shadow: 0px 3px 10px 3px rgba(0, 0, 0, 0.5),
    0px 0px 5px 1px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background-color: rgba(0, 0, 0, 0.5);
}

.progress-bar.hide {
  visibility: hidden;
  transition: visibility 0.3s;
}

.update-bar {
  background-color: rgba(255, 255, 255, 0.9);
  width: 0%;
  height: 100%;
  border-radius: 25px;
  float: left;
  transition: width 0.3s;
}

#ar-button {
  background-image: url(ar_icon.png);
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-position: 12px 50%;
  background-color: #fff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  bottom: 16px;
  padding: 0px 16px 0px 40px;
  font-family: Roboto Regular, Helvetica Neue, sans-serif;
  font-size: 14px;
  color: #4285f4;
  height: 36px;
  line-height: 36px;
  border-radius: 18px;
  border: 1px solid #dadce0;
}

#ar-button:active {
  background-color: #e8eaed;
}

#ar-button:focus {
  outline: none;
}

#ar-button:focus-visible {
  outline: 1px solid #4285f4;
}

@keyframes circle {
  from {
    transform: translateX(-50%) rotate(0deg) translateX(50px) rotate(0deg);
  }
  to {
    transform: translateX(-50%) rotate(360deg) translateX(50px) rotate(-360deg);
  }
}

@keyframes elongate {
  from {
    transform: translateX(100px);
  }
  to {
    transform: translateX(-100px);
  }
}

model-viewer > #ar-prompt {
  position: absolute;
  left: 50%;
  bottom: 60px;
  animation: elongate 2s infinite ease-in-out alternate;
  display: none;
}

model-viewer[ar-status="session-started"] > #ar-prompt {
  display: block;
}

model-viewer > #ar-prompt > img {
  animation: circle 4s linear infinite;
}

/* Top menu container */
.top-menu {
  position: fixed; /* stays at top when scrolling */
  top: 0;
  left: 0;
  width: 100%;
  background: #111;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

/* Menu links */
.top-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  padding: 15px 12px;
  transition: color 0.2s ease, background 0.2s ease;
}

.top-menu a:hover {
  color: #111;
  background: #fff;
  border-radius: 6px;
}

/* Add spacing below the fixed top menu so content isn't hidden under it */
body {
  padding-top: 60px; /* adjust based on top menu height */
}

/* Bottom menu container */
.bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.3);
}

/* Menu links */
.bottom-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  padding: 6px 12px;
  transition: color 0.2s ease, background 0.2s ease;
}

.bottom-menu a:hover {
  color: #111;
  background: #fff;
  border-radius: 6px;
}

/* Slideshow */
.slideshow-container {
  width: 70%; /* responsive width relative to screen */
  max-width: 100%; /* limit on large screens */
  aspect-ratio: 16/9; /* keeps the slideshow height proportional */
  margin: 20px auto; /* center it */
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.slides-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  flex: 0 0 100%; /* each slide takes full container width */
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* scales image to fit container */
  display: block;
}

/* Fade effect */
.fade {
  animation: infinite;
}

@keyframes fadeEffect {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns */
  gap: 10px;
  margin: 20px;
  padding-bottom: 150px;
}

.photo-grid img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.slide {
  display: none;
}
.slide:first-child {
  display: block;
} /* show first image immediately */

/* Lightbox container */
.lightbox {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* dark overlay */
  justify-content: center;
  align-items: center;
}

/* Enlarged image */
.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  animation: popIn 0.2s forwards;
}

/* Pop-in animation */
@keyframes popIn {
  to {
    transform: scale(1);
  }
}

/* Close button */
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: white;
  cursor: pointer;
  user-select: none;
}

/* Optional: cursor pointer for grid images */
.grid-img {
  cursor: pointer;
  transition: transform 0.2s;
}

.grid-img:hover {
  transform: scale(1.05);
}
