@import url('https://fonts.googleapis.com/css2?family=Rubik+Mono+One&display=swap');

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Rubik Mono One', sans-serif;
  background-color: #94592F;
  color: #C3A28A;
  text-align: center;
  overflow-x: hidden;
  overflow-y: auto;
}
.title {
  color: #C3A28A;
  z-index: 1;
  text-align: calc(50% - 50px);
  font-size: 3em;
}
.header-bg {
  background-color: #94592F;
  min-height: 20vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.header-content h1 {
  margin: 5px 0;
  font-size: 2.5em;
  color: #1D1004;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.dropdown {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 10px;
}

.lvl {
  background-color: #8B4513;
  color: #1D1004;
  font-size: 1.2em;
  font-weight: bold;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.lvl:hover {
  background-color: #C3A28A;
  color: #94592F;
  transform: scale(1.1);
}

.lvl-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  padding: 10px 0;
  z-index: 2;
  border-radius: 10px;
  overflow: hidden;
}

.dropdown-content a {
  color: #1D1004;
  padding: 10px 20px;
  text-decoration: none;
  display: block;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #b86a33;
  color: #94592F;
}

.lvl-dropdown:hover .dropdown-content {
  display: block;
  background-color: #C3A28A;
}

.bg-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 0;
  overflow: hidden;
}

.bg-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./img/bg.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(30%);
  z-index: -1;
}

.main-content {
  color: #C3A28A;
  z-index: 1;
  position: relative;
  background: rgba(29, 16, 4, 0.7);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.video {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}
.gallery {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.gallery img {
  width: 200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

.gallery img:hover {
  transform: scale(1.1);
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox:target {
  display: flex;
}

.lightbox-content {
  position: relative;
  width: 80%;
  max-width: 800px;
  max-height: 80%;
  overflow: hidden;
  background: white;
  box-shadow: 0 0 0 3px white, 0 5px 8px 3px rgba(0, 0, 0, 0.6);
}

.lightbox-content img {
  width: 100%;
  height: auto;
  display: block;
}

.lightbox .prev,
.lightbox .next,
.lightbox .close {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 24px;
  text-decoration: none;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
}

.lightbox .prev {
  left: 10px;
}

.lightbox .next {
  right: 10px;
}

.lightbox .close {
  top: 10px;
  right: 10px;
  transform: none;
}footer {
  background-color: #1D1004;
  color: #C3A28A;
  text-align: center;
  padding: 10px 0;
  font-size: 0.9em;
  position: fixed;
  bottom: 0;
  width: 100%;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Mobile view adjustments */
@media (max-width: 768px) {
  .bg-image {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .main-content {
    padding: 10px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .text-video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
  }

  .quest-description {
    font-size: 1em;
    line-height: 1.5;
    padding: 10px;
    color: #C3A28A;
    max-width: 100%; /* Prevent text from overflowing */
    word-wrap: break-word;
    box-sizing: border-box;
  }

  iframe.centered-video {
    width: 100%;
    height: auto;
    max-width: 90vw; /* Limit video to fit within viewport */
    aspect-ratio: 16 / 9;
    box-sizing: border-box;
  }

  html, body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .dropdown {
    flex-direction: column;
    gap: 10px;
  }

  .lvl {
    font-size: 0.9em;
    padding: 8px 12px;
  }

  /* Disable hover effect on mobile */
  .lvl-dropdown:hover .dropdown-content {
    display: none;
  }
}