:root {
  --modal-bg-color: #555;
}

section.adventure-map {
  margin-top: 8rem;
  margin-bottom: 5rem;
  background-color: var(--secondary-color);
  h1 {
    font-size: var(--h1-font-size);
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 0.4em;
  }
}

/* MAP *******************************/
#map {
  margin: 0 3rem 5rem 3rem;
  height: 70vh;

  z-index: 20;
}
.marker-heading {
  font-size: 1.8rem;
}
.btn--adventure-module {
  font-family: var(--font-styled);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  border: none;
  padding: 1rem;
  border-radius: var(--button-border-radius);
  cursor: pointer;
}
/***************************************************
  Popup Modals
****************************************************/
.modal-adventure {
  /* display: none; */

  flex-direction: column;
  background-color: rgba(36, 35, 35, 0.9);

  width: clamp(20rem, 70vw, 120rem);
  height: clamp(20rem, 70vw, 90vh);
  border-radius: var(--border-radius);
  position: fixed;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: all 0.5s ease-in-out;
  z-index: 500;
}

.top-bar {
  position: absolute;
  width: 100%;
  height: 5rem;
  background: #000;
  text-align: center;
  line-height: 5rem;
  font-weight: 300;
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);

  p {
    font-family: var(--btn-font-size);
    font-size: var(--normal-font-size);
    color: var(--text-light);
  }
}

.btn-close {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
}

/* Image Carousel ********************************************/

.carousel-container {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

.carousel {
  width: 100%;
  height: 80%;
  overflow: hidden;
}

.img-slider {
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
  transform: translateX(0);
  transition: transform 0.7s ease-in-out;
}

.img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  /* aspect-ratio: 1/1; */
}

.img-container img {
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
  object-fit: contain;
}

#adventure-map .btn-control {
  background-color: red;
}
.btn-control {
  z-index: 5;
  background: rgba(36, 35, 35, 0.784);
  font-size: 2rem;
  color: var(--primary-color);
  padding: 0.5em 0.75em;
  border-radius: 50%;
  margin: 0 0.75rem;
  border: none;
  cursor: pointer;
}

.active-adventure-modal {
  /* display: flex;
   */
  transform: translate(-50%, -50%) scale(1);
}
