* { 
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0 auto;
  font-family:  Arial, sans-serif;
  font-size: 0.75vw;
  width: 80vw;
  /* background-color: rgb(245, 243, 243); */
  background-color: rgb(248, 226, 201);
  border: 0.5em ridge rgb(224, 223, 223, 0.4);
}

/******************************************************************************
********************************* header + intro background **************************************
*******************************************************************************/

.common-bg {
  position: relative;
  background-image: url(img_slideshow/Haus_außen4.jpg); /* Replace 'your-image.jpg' with the path to your image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Optional, for fixed background
  /*height: 100vh; /* Adjust this value to your preference */

  /* Apply a color overlay */
  &::after {
      content: "";
      /*background-color: rgba(180, 237, 245, 0.4); /* Replace with your desired color and opacity */
      /*background-color: rgba(255, 255, 255, 0.4); /* Replace with your desired color and opacity */
      background-color: rgb(248, 236, 201, 0.4);
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
  }
}


/******************************************************************************
********************************* header **************************************
*******************************************************************************/

.header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  /* background-image: linear-gradient(white, gray); creating liner gradient as background image */
  /* background-color: white; */
  /* background-color: rgba(204, 168, 101, 0.6);  */
  background-color: rgba(180, 209, 212, 0.6);
  padding: 1.5em;
  z-index: 1;
}

.header .logo {
  color: black;
  font-size: 1.25em;
  margin-left: 1em;
  text-transform: uppercase;
  text-decoration: none;
}

.header nav {
  font-size: 1.5em;
  text-align: center;
  /* word-spacing: 1em; */
  text-decoration: none;
} 

.header a {
  padding-right: 1em;
}

.header a, a:hover, a:visited, a:link, a:active {
  color: black;
  text-decoration: none;
}

.header a:hover {
  color: SlateBlue;
  text-decoration: none;
}

/******************************************************************************
********************************* main ****************************************
*******************************************************************************/

/*******************************************************************************/
/******************************** intro ***************************************/

.intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: left;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  height: 60vh;
  row-gap: 2.5em;
  z-index: 1;
  padding: 2.5em;
  /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.65) 100%), url(image.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; */
}

.intro h1 {
  font-size: 3.5em;
  color: black;
  font-weight: bold;
  /* text-transform: uppercase; */
}

.intro p {
  width: 100%;
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1.5em;
  color: black;
}

.intro button {
  background-color: rgb(0, 0, 0);
  color: white;
  padding: 0.4em 1em;
  border: none;
  border-radius: 5px;
  font-size: 1.5em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.4)
}

/*******************************************************************************/
/****************************** room and furnishing ****************************/

/******************************** icons **************************************/

.RoomFurnisher {
  /* background-color: rgba(224, 195, 67, 0.4); */
  background-color: rgba(209, 241, 245, 0.4);
  padding-bottom: 2em;
}

.sectionRoom {
  text-align: center;
  padding-top: 2em;
  padding-bottom: 2em;
}

.iconcontainer {
  display: flex;
  flex-direction: row;
  /* flex-wrap: wrap; */
  justify-content: center;
  align-items: flex-start;
  height: 15vh;
  /* border-bottom: 2px solid gray; */
}

/* CSS for captions */
.iconcaption {
  margin-top: 0.5em;
  font-size: 1em; /* Use relative font size */
}

/* CSS for each item in the row */
.iconitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 3% ;
  /* max-width: 150px; */
  margin: 0 2em; /* Adjust the margin value for spacing between items */
  /* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);  */
}

/* CSS for SVG images */
.iconitem img {
  width: 100%; /* Adjust the percentage width as needed */
  max-width: 200px; /* Set a maximum width for each item */
  height: auto; /* Allow the height to adjust proportionally */
}

/****************************** pop-up ****************************/

.popupcontainer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.underline-text {
  text-align: center;
  font-size: 1.5em;
  cursor: pointer; /* Change the cursor to a pointer to indicate it's clickable */
  text-decoration: underline; /* Add an underline to the text */
  color: black; /* Set the text color to blue (you can choose any color you prefer) */
}

.underline-text:hover {
  text-decoration: none; /* Remove the underline on hover */
  color: SlateBlue; /* Change the text color on hover (you can choose any color you prefer) */
}

.popup {
  display: none; /* Hide the popup by default */
  position: fixed;
  top: 0;
  left: 0;

  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5); /* Add a semi-transparent background overlay */
  
  z-index: 100; /* Ensure the popup is on top of other content */
  overflow: auto;
}

.popup-content {
  position: absolute;
  width:50%;
  height:78%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: auto;

  background-color: #faf9f1;
  padding-top: 1.25em;
  padding-right: 1.25em;
  padding-bottom: 0;
  padding-left: 2.5em;
  border-radius: 0.3em;
  box-shadow: 0 0.25em 0.5em 0 rgba(0, 0, 0, 0.5);
}

.popup-close {
  position: absolute;
  top:  0.25em;
  right:  0.625em;
  font-size: 1.5em;
  cursor: pointer;
}

.popup-content h2 {
  font-size: 1.5em; /* Style the captions as needed */
  text-align: left;
}

.popup-list-container {
  margin: 1.25em 0em; /* Add space between lists */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  row-gap: 0.625em;
  overflow: auto;
}

.popup-list-container h3 {
  font-size: 1.125em; /* Style the captions as needed */
  text-align: left;
}

.popup-column-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.popup-column-list li {
  width: calc(100% / 3); /* 3 items in a row with some spacing */
  margin-bottom: 0.625em;

  display: flex;
  align-items: center; /* Vertically center the bullet and text */
}

/*This way, the bullet is part of the content and will be affected by changes to 
the background color or any other styles applied to the <li> element. 
Additionally, it won't affect the width when using flexbox or other layout techniques.*/
.popup-column-list li::before {
  content: "\2022"; /* Use a bullet character */
  color: #000; /* Adjust the bullet color if needed */
  font-size: 1em; /* Adjust the bullet size if needed */
  margin-right: 0.5em; /* Adjust the space between bullet and text */
}


/******************************** slideshow gallery **********************************/

.image-gallery-background
{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80vh; /* Set the maximum height of the image gallery */
  width: 100%; /* Set the width of the image gallery */
  /* background-color: #faf9f1; */
  background-color: rgb(250, 249, 241,0.8);
  padding-bottom: 2em;
}

.image-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%; /* Set the maximum height of the image gallery */
  width: 80%; /* Set the width of the image gallery */
  row-gap: 1em;
  /* background-color: rgba(224, 195, 67, 0.4); */
  /* border: 0.5em solid rgba(224, 195, 67, 0.4); */
}

.sectionGalery {
  text-align: center;
  padding-top: 2em;
  padding-bottom: 1em;
}

.show-selected-image {
  max-width: 100%;
  max-height: 80%; /* Set the height of the selected image container */
  text-align: center;
  overflow: hidden;
}

.show-selected-image img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  margin: 0 auto;
}

.thumbnail-slider {
  max-width: 100%;
  max-height: 20%;
  display: flex;
  justify-content: space-between; /* Space items evenly between the start and end of the container */
  align-items: center; /* Vertically align items in the center */
  /*By setting margin: 0 auto;, you're telling the browser to automatically calculate
  equal margins on the left and right of the .thumbnail-slider, effectively centering it horizontally.*/
  margin: 0 auto; /* Center the .thumbnail-slider horizontally */
}

/* Position the thumbnail image container */
.thumbnail-image-container {
  position: relative;
  max-width: 95%;
  text-align: center;
  margin: 0 auto;
  overflow-x: auto;
  white-space: nowrap;
  position: relative;
  height: 100%;
}

.image-container {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 1em; /* Adjust the gap between images as needed */
  justify-content: center; /* Center images horizontally */
  height: 100%; /* Make .image-container 100% of the .container's height */
  max-width: 100%; /* Limits the width to 100% of the container's width */
}

/*image-container-helper is a container for the images: I effectively establish a new context for these images.
I ensure that they are now block-level elements (the default behavior for a flex container's child),
and flex properties like justify-content and gap within the .image-container affect how the .image-container-helper elements are laid out.
This helps ensure that the images receive the correct spacing and are centered properly.*/
.image-container-helper {
  height: 100%;
  /* padding: 5px; */
}

.image-container-helper img {
  flex: 0 0 auto;
  max-width: 100%; /* Limits the width to 100% of the container's width */
  max-height: 95%;
  width: auto;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s;
}

/* Style the Previous and Next buttons */
.prev {
  font-size: 2em;
  cursor: pointer;
  z-index: 1;
  left: 0;
}

.next {
  font-size: 2em;
  cursor: pointer;
  z-index: 1;
  right: 0;
}

/******************************** location map **********************************/

.LocationMap {
  width: 100%;
  height: 50vh;
  /* background-color: rgba(224, 195, 67, 0.4); */
  background-color: rgba(209, 241, 245, 0.4);
  padding-top: 2em;
  padding-bottom: 2em;
  padding-left: 1em;
  padding-right: 1em;

  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: 1fr 1fr; /* Use a 1:2 ratio for the columns */
  gap: 1em;

  overflow: auto;
}

.sectionLocation {
  grid-column: 1 / span 2;
  grid-row: 1;

  text-align: center;
  padding-bottom: 1em;
}

/* Set a fixed size for the map container */
#map {
  grid-column: 1;
  grid-row: 2;

  height: 100%;
  z-index: 1;
}

.description {
  grid-column: 2;
  grid-row: 2;

  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center; /* Center vertically with justify-content because of the flex-direction*/ 
  row-gap: 1em;
}

.description p {
  text-align: left;
  font-size: 1.5em;
}

/******************************************************************************
********************************* footer **************************************
*******************************************************************************/

.footer {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  column-gap: 5%; /*normal;*/

  font-size: 1.5em;
  /* background-color: rgba(204, 168, 101, 0.6);  */
  background-color: rgba(180, 209, 212, 0.6);
  min-height:50px;
}

.footer a, a:hover, a:visited, a:link, a:active {
  color: black;
  text-decoration: none;
}

.footer a:hover {
  color: SlateBlue;
  text-decoration: none;
}
