.color-palette {
  color: #9A3F3F;
  color: #C1856D;
  color: #E6CFA9;
  color: #f9f159;
  color: white;
  color: black; 
}

:root {
  --bs-primary: #04ff00;
  --bs-secondary: #04ff00;
  --bs-body-color: black;
  --bs-body-bg: #E6CFA9;
  --bs-navbar-color: #04ff00;
  --bs-navbar-hover-color: #04ff00;
  --bs-navbar-brand-color: #04ff00;
}

.nav {
  --bs-nav-link-color: #E6CFA9;
  --bs-nav-link-hover-color: #E6CFA9;
  --bs-nav-link-disabled-color: #E6CFA9;
  gap: 1rem;
}
    
.text-bg-dark {
  background-color: #9A3F3F !important;
}

.text-bg-highlight {
  background-color: white;
}

.nav-link {
  font-size: 1.25rem;
}

.dropdown-item{ 
  font-size: 1.1rem;
}

.nav-link:hover, .nav-link.dropdown-toggle.show, .nav-link.dropdown-toggle:hover, .text-secondary {
  color: #f9f159 !important;
}

::placeholder {
  color: white !important;
}

.dropdown-menu {
  --bs-dropdown-link-active-bg: white;
  --bs-dropdown-link-active-color: #9A3F3F;
}

header {
  position: relative;
  z-index: 100;
}

main{
  position: relative;
  background-color: black;
  height: 295vh;
}

.video-cover {
  overflow: hidden;
  height: 150vh;
  position: relative;
}

.video-cover video {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.6;
}

.floor-cover{
  overflow: hidden;
  height: 25vh;
  position: relative;
}

.floor-cover img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.2;
}

.cellar-cover {
  overflow: hidden;
  height: 120vh;
  position: relative;
}

.cellar-cover img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.4;
}

.parchment-container {
  position: relative;
  opacity: 0;
  animation: fadeIn 0.8s ease-in forwards;
  z-index: 2;
}

.parchment-image {
  overflow: hidden;
  position: absolute;
  left: 50%;
  transform: translate(-50%,0%);
  width: 230%;
  z-index: 0;
}

.welcome-container {
  position: relative;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
  z-index: 3;
}

.welcome-image {
  position: absolute;
  overflow: hidden;
  transform: translate(-17%,-33%);
  width: 150%;
  height: auto;
}

.text-container {
  position: absolute;
  margin: 25% 18% 25% 17%;
  z-index: 99;
  animation: fadeIn 1s ease-in forwards;
}

.text-nomal {
  font-family: "Architects Daughter", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 1.5em;
}

.text-small {
  font-family: "Architects Daughter", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 1.3em;
}

.text-xsmall {
  font-family: "Architects Daughter", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 1.1em;
}

.text-2xsmall {
  font-family: "Architects Daughter", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 0.9em;
  text-indent: 2em;
}

.text-indented {
  font-family: "Architects Daughter", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 1.5em;
  text-indent: 2em;
}

.text-indented-small {
  font-family: "Architects Daughter", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 1.3em;
  text-indent: 2em;
}

.text-indented-xsmall {
  font-family: "Architects Daughter", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 1.1em;
  text-indent: 2em;
}

.text-indented-2xsmall {
  font-family: "Architects Daughter", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 0.9em;
  text-indent: 2em;
}

.text-carousel-helper {
  font-family: "Architects Daughter", cursive;
  font-weight: 400;
  font-style: italic;
  font-size: 0.8em;
  display: block;
  text-align: center;
}

.text-centered {
  font-family: "Architects Daughter", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 1.5em;
  text-align: center;
}

.h1-centered {
  font-family: "Architects Daughter", cursive;
  text-align: center;
}

.audo-button-container {
  margin-left: 3rem;
}

.main-background-container {
  overflow: hidden;
  height: 295vh;
}

.img-span {
  width: 100%;
  height: auto;
}

.img-container { 
  margin-bottom: 1vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-xsmall {
  width: 30%;
  height: auto;
}

.img-small {
  width: 50%;
  height: auto;
}

.img-medium {
  width: 75%;
  height: auto;
}

.img-large {
  width: 100%;
  height: auto;
}

.city-runner-iframe {
  width: 65vw;
  height: 95vh;
  border: none;
}

[data-audio-button] {
  color: white !important;
  font-size: 2rem !important;
  transition: transform 0.2s ease, opacity 0.2s ease !important;
  cursor: pointer !important;
}

[data-audio-button]:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.label::after {
  background-color: white !important;
}

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 5rem;
    width: 52vw;
}

.form-window-small {
  width: 60%;
  height: auto;
  padding: 2rem;
}

#formMessage {
    height: 10rem;
}

.form-floating {
    position: relative;
    margin-bottom: 1rem;
}

.form-control, .form-check-input {
  background-color: white;
}

.form-control:focus {
  background-color: #efefef;
  border-color: #c95252;
}

.btn-primary {
  background-color: #9A3F3F;
  border-color: #9A3F3F;
}
.btn:hover {
  background-color: #6f2f2f !important;
  border-color: #6f2f2f !important;
}

@media (orientation: portrait) {
  .welcome-image {
    position: absolute;
    top: 25%; left: 50%;
    transform: translate(-50%,-33%);
    width: 400%;
    height: auto;
    object-fit: cover;
  }

  main {
    background-color: #E6CFA9;
    height: auto;
  }

  .main-background-container {
    display: none;
  }

  .text-container {
    position: relative;
    background-color: #f3ca88;
    padding: 2rem;
    margin: 0;
    border-radius: 10px
  }

  .img-xsmall {
    width: 100%;
    height: auto;
  }

  .img-small {
    width: 100%;
    height: auto;
  }

  .img-medium {
    width: 100%;
    height: auto;
  }

  .img-large {
    width: 100%;
    height: auto;
  }
}

.carousel-fixed-size {
    width: 75%;
    max-width: 800px;
    height: 50vh;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease-in-out;
    cursor: pointer;
    position: relative;
}

.carousel-fixed-size.expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-fixed-size .carousel-inner {
    height: 100%;
}

.carousel-fixed-size .carousel-item {
    height: 100%;
}

.carousel-image {
    height: auto;
    object-fit: cover;
    object-position: center;
    transition: height 0.4s ease-in-out;
}

.carousel-fixed-size.expanded .carousel-image {
    height: auto;
    width: auto;
    max-height: 90vh;
    max-width: 90vw;
    object-fit: contain;
    display: block;
    margin: auto;
}

.carousel-fixed-size.expanded .carousel-inner {
    width: 100%;
    height: 100%;
}

.carousel-fixed-size.expanded .carousel-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.carousel-fixed-size.expanded .carousel-item.active {
    z-index: 2;
}

/* Close button for fullscreen mode */
.carousel-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.2s ease;
}

.carousel-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.carousel-fixed-size.expanded .carousel-close-btn {
    display: flex;
}

/* Hide inactive carousel items to prevent edge visibility */
.carousel-fixed-size.expanded .carousel-item:not(.active) {
    display: none !important;
}

.carousel-fixed-size.expanded .carousel-control-prev,
.carousel-fixed-size.expanded .carousel-control-next {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
    opacity: 0.8;
}

.carousel-fixed-size.expanded .carousel-control-prev:hover,
.carousel-fixed-size.expanded .carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 1;
}

.carousel-fixed-size.expanded .carousel-control-prev {
    left: 20px;
}

.carousel-fixed-size.expanded .carousel-control-next {
    right: 20px;
}

.carousel-fixed-size.expanded .carousel-indicators {
    bottom: 20px;
    z-index: 10000;
}

.carousel-fixed-size.expanded .carousel-indicators button {
    background-color: rgba(255, 255, 255, 0.7);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-fixed-size.expanded .carousel-indicators button.active {
    background-color: white;
}

@media (max-width: 768px) {
    .carousel-fixed-size {
        width: 90%;
        height: 300px;
    }
    
    .carousel-fixed-size.expanded {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.95);
    }
    
    .carousel-image {
        height: 300px;
    }
    
    .carousel-fixed-size.expanded .carousel-image {
        height: auto;
        width: auto;
        max-height: 90vh;
        max-width: 90vw;
        object-fit: contain;
        display: block;
        margin: auto;
    }
}

@media (min-resolution: 125dpi) {
  body {
    background-color: black;
  }

  .text-container {
    background-color: #fedaa0;
    padding: 2rem;
    border-radius: 10px
  }
  
  .flex-wrap {
    flex-wrap: nowrap !important;
  }

  .audo-button-container {
    margin-left: 0;
    margin-right: 5rem;
  }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }