* {
  box-sizing: border-box;
}

/* Make a red outline for each element: */
/* * {
  outline: solid 1px red;
} */

html {
  scroll-behavior: smooth;
}
body {
  padding: 0;
  margin: 0;
  /* background: rgb(55, 147, 61); */
  color: #f5f5dc;
  /* background-color: #f4d03f; */
  background-image: linear-gradient(172deg, #159957 0%, #102d4a 100%);

  /* background-color: rgb(176, 180, 241); */

  /* background-image: url(img/forest.jpg); */
}

.top {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px;
  background-color: #1d212f;
  border-radius: 0 0 25px 25px;
  padding: 20px;
}

.top-top {
  /* padding: 20px; */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  align-items: center;
  /* min-height: 300px;
  background-color: #1d212f;
  border-radius: 0 0 25px 25px; */
}
.logo {
  margin-left: 10px;
  font-family: "Tangerine";
  font-size: 3.5rem;
  color: #ffffff;
  text-align: center;
}

.menu {
  display: flex;
  font-size: 1.3rem;
  align-items: center;
}
.nav-item {
  background-color: #1d212f;
  font-family: "Urbanist";
  color: #ffffff;
  /* padding: 0px 10px; */
}

.nav-item:hover {
  color: #f06d09;
}

.nav-en {
  display: flex;
  justify-content: center;
  /* text-align: center; */
}
.nav-en img {
  height: 25px;
  border-radius: 25px;
  margin-left: 5px;
  /* padding: 10px 20px 10px 20px; */
}

.nav-item:link {
  text-decoration: none;
}
.nav-item:visited {
  text-decoration: none;
}
.nav-item:hover {
  text-decoration: chocolate;
}

.story {
  display: flex;
  justify-content: space-around;
  /* align-items: baseline; */
  margin: 70px 70px 40px 70px;

  /* border: 3px solid #f06d09; */
  border-radius: 15px;
  background-color: #1d212f;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.story-t {
  max-width: 300px;
  font-family: "Urbanist";
  color: #ffffff;
  margin-left: 3rem;
}
.story-p {
  max-width: 400px;
  font-family: "Urbanist";
  color: #ffffff;
  margin-right: 3rem;
  margin-left: 1rem;
}

.wall-front {
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  position: relative;
  top: -4rem;
  width: 75%;
  background-size: contain;
  border-radius: 25px;
}

.form-wall {
  top: -1.5rem;
  width: 98%;
}

/* 
.despre {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 70px;
}
.despre-t {
  font-family: "Urbanist";
}
.despre-p {
  font-family: "Urbanist";
  margin: 0 100px 0 100px;
} */

/* FACILITATI */
.fac {
  display: flex;
  justify-content: space-evenly;
  font-family: "Urbanist";
  display: flex;
  height: auto;
}

.fac-text {
  display: flex;
  flex-direction: column;
  /* max-height: fit-content; */
  height: auto;
  /* justify-content: center; */
  /* height: 35rem; */
  overflow: hidden;
}

.fac-text h2 {
  text-align: center;
  /* padding-left: 40px; */
  max-width: max-content;
  padding-left: 40px;
}

.pair {
  display: flex;
  align-items: center;
  /* overflow-wrap: break-word; */
  /* New wrap ?? */
  /* flex-wrap: wrap; */
  /* text-align: left; */
}

.pair li {
  margin: 10px;
}

.material-symbols-outlined {
  color: coral;
  /* width: 3rem; */
}

li {
  font-size: 1.3rem;
  list-style-type: none;
  font-family: "Urbanist";
  margin: 1rem;
  overflow-wrap: break-word;

  /* height: 3rem; */
  /* text-align: center; */
}

.fac-img {
  display: flex;
  width: 50%;

  overflow: hidden;
}
.pic1 {
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border-radius: 25px;
  position: relative;
  top: 4rem;
  left: 6rem;
  width: 20rem;
  height: 20rem;
  z-index: 3;
}
.pic2 {
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border-radius: 25px;
  position: relative;
  top: 15rem;
  left: -4rem;
  width: 20rem;
  height: 15rem;
  z-index: 2;
}
.pic3 {
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border-radius: 25px;
  position: relative;
  top: 2rem;
  left: -21rem;
  width: 20rem;
  height: 20rem;
  z-index: 1;
}

/* CONTACT */

/* Style inputs */

/* Style the container/contact section */
.contact-t {
  text-align: left;
  margin-top: 50px;
  margin-left: 100px;
  font-family: "Urbanist";
}

.container {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  font-family: "Urbanist";
  display: flex;
  flex-direction: column;
  border-radius: 25px 25px 0 0;
  background-color: #1d212f;
  color: #fff;
  /* border: 5px solid #3b8f3b; */
  padding: 10px;
}

/* Clear floats after the columns */
.row {
  width: auto;
  display: flex;
  justify-content: space-evenly;
  /* justify-content: space-between; */
}
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Create two columns that float next to eachother */
.column1 {
  /* float: right; */
  /* width: 100%; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* padding: 40px; */
  margin-top: 10px;
}

.column2 {
  float: left;
  /* width: 100%; */
  margin-top: 10px;
  padding: 20px;
}
.column2 a:link {
  color: #f06d09;
  text-decoration: none;
}
.column2 a:hover {
  color: #d32919;
}
.column2 img {
  max-width: 50px;
}

.map {
  background-color: #53c053;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 20px;
  width: 95%;
  max-width: 200px;
  border-radius: 45px;
}

/* GALLERY GALLERY GALLERY GALLERY GALLERY*/

/* Position the image container (needed to position the left and right arrows) */
.gallery-container {
  position: relative;
  /* margin: 20px 0; */
}
/* Hide the images by default */
.mySlides {
  margin: 100px;
  /* margin: 0 110px; */
  display: none;
}
.mySlides img {
  border-radius: 35px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
/* Add a pointer when hovering over the thumbnail images */
.cursor {
  cursor: pointer;
}
/* Next & previous buttons */
.prev,
.next {
  background-color: #1d212f;
  cursor: pointer;
  position: absolute;
  top: 25%;
  width: auto;
  /* height: 500px; */
  padding: 16px;
  margin-top: -50px;
  margin: 100px;
  color: #f06d09;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 15px 15px 0;
  user-select: none;
  -webkit-user-select: none;
}
/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 15px 0 0 15px;
}
/* On hover, add a black background color with a little bit see-through */
/* .prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
} */
/* Number text (1/3 etc) */
.numbertext {
  color: #f06d09;
  font-family: "Urbanist";
  font-size: bold 18px;
  padding: 30px 20px;
  position: absolute;
  top: 0;
}
/* Container for image text */
/* .caption-container {
  text-align: center;
  background-color: #222;
  padding: 2px 16px;
  color: white;
} */
.row2:after {
  content: "";
  display: table;
  clear: both;
}

/* Six columns side by side (thumbnails) */
.column {
  padding: 10px;
  float: left;
  width: 120px;
  height: 80px;
  overflow: auto;
}
/* Add a transparency effect for thumnbail images */
.demo {
  opacity: 0.8;
}
.active,
.demo:hover {
  opacity: 1;
}

button {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  font-size: 30px;
  text-align: center;
  color: #1db978;
  border: 2px solid #1db978;
  border-radius: 10px;
  background-color: transparent;
  width: 50px;
  height: 50px;
  margin-left: 10px;
}
.book {
  display: inline;
  /* margin: 0 auto; */
}
.book a {
  display: flex;
  /* flex-direction: column; */
  /* align-items: center; */
  justify-content: center;
  border: 2px solid #077a40;
  border-radius: 20px;
  font-family: "Urbanist";
  color: #ffffff;
  text-align: center;
  width: auto;
  max-width: max-content;
  padding: 9px;
  margin: 0 auto;
  /* margin-bottom: 80px; */
  cursor: pointer;
  text-decoration: none;
}

.book a:hover {
  background-color: #077a40;
  border: 2px solid #1d212f;
  color: #f76d2c;
}

.form {
  /* display: none; */
  padding: 10px 0;
}
/* .prices {
  display: flex;
  justify-content: space-between;

  flex-wrap: wrap;
} */

.price {
  display: flex;
  /* flex-direction: column; */
  justify-content: space-evenly;

  align-items: center;
  margin-bottom: 100px;
}

.price-t {
  width: 300px;
}

.videos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  margin-bottom: 10px;
}

.videos video {
  border: 1px solid #1d212f;
  border-radius: 15px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  height: 500px;
  width: 350px;
  margin: 15px;
}

/* POP-up for Terms&Conditions */
#popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

#popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  color: black;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: opacity 2s ease-in-out; /* Add this line to set the transition effect */
  width: 80%; /* Set width to 80%*/
  max-height: 80vh; /* Set the maximum height to 80% of the viewport height */
  overflow-y: auto; /* Add scrollbars if the content exceeds the maximum height */
}

#popup-content h5 {
  font-size: 1rem;
}

#close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-weight: bold;
  font-size: 16px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: black; /* Add this line to set the text color to black */
  border: 1px solid black; /* Add this line to set the border color to black */
}
/* END of POP-up for Terms&Conditions */

/* Litigii ANPC */

.litigii-container {
  display: flex;
  justify-content: left; /* Align images horizontally */
  align-items: center;
}

.litigii-container a {
  width: auto;
  height: auto;
  margin-right: 10px; /* Add some space between the images */
}

.litigii-container img {
  max-width: 250px; /* Adjust the width to the actual image size */
  max-height: 100%; /* Adjust the height to the actual image size */
}

/* MEDIA LAYOUT - screen is less than 900px wide */

@media screen and (max-width: 900px) {
  /* ensure layout doesn't allow content to overflow on small screens */
  .fac {
    flex-direction: column;
    padding: 0 16px; /* prevent content touching viewport edges */
  }

  .fac-text {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  /* icon + text pairs: force the icon to one small column and let the text wrap */
  .pair {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    margin: 0;
  }

  .pair .material-symbols-outlined {
    flex: 0 0 36px; /* fixed icon column */
    min-width: 36px;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* make the text take remaining space and wrap to next line when needed */
  .pair li {
    flex: 1 1 calc(100% - 46px);
    min-width: 0; /* allow shrinking */
    word-break: break-word;
    white-space: normal;
    margin: 0.35rem 0;
    padding-right: 8px;
  }

  /* reduce global li spacing on mobile inside facilities */
  .fac-text li {
    margin-left: 0;
  }

  .column {
    width: 100%;
    margin-top: 0;
    padding: 10px;
  }
  .top-top,
  .menu,
  .story,
  .price {
    flex-direction: column;
  }

  .menu,
  .logo {
    padding: 0;
    margin-left: 0;
  }
  .logo {
    font-size: 3.4rem;
  }

  .story {
    align-items: center;
    margin: 3rem 1rem;
    padding-bottom: 30px;
  }

  .story-p {
    margin: 1rem;
    text-align: justify;
  }
  .story-t {
    font-size: 2rem;
    margin: 0.1rem;
    text-align: center;
  }

  .fac {
    flex-direction: column;
    min-height: auto;
    flex-wrap: wrap;
    overflow: hidden;
  }

  .fac-text {
    height: auto;
    /* min-height: fit-content; */
    overflow-wrap: break-word;
  }

  .pair li {
    overflow-wrap: break-word;
    text-overflow: clip;
    /* display: none; */
  }

  .fac-text h2 {
    text-align: center;
  }
  .fac-img {
    /* height: auto; */
    position: relative;
    min-height: 30rem;
    width: auto;
    /* overflow: hidden; */
    /* height: auto; */
  }
  .pic1 {
    left: 1rem;
  }
  .pic2 {
    left: -5rem;
  }
  .pic3 {
    left: -23rem;
  }
  .row {
    flex-direction: column;
  }

  .column1 {
    flex-direction: row;
    justify-content: flex-start;
  }
  .map {
    background-color: #53c053;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 45px;
    margin: 20px;
    max-width: 100px;
  }

  .contact-t {
    text-align: left;
    margin-left: 20px;
  }

  .logo-mobile {
    display: flex;
    justify-content: space-around;
  }

  .mySlides {
    margin: 20px;
  }
  .prev,
  .next {
    margin: 20px;
  }

  .btn {
    display: inline-block;
    cursor: pointer;
  }
  .nav ul {
    display: none;
  }
  /* mobile */
  .book a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-shrink: 1;
    /* margin: 0 0 100px 0; */
  }
  .videos {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
  }

  .litigii-container {
    flex-direction: column; /* Display children vertically */
    align-items: flex-start;
  }
  .litigii-container a {
    margin-bottom: 5px; /* Reduce space between the images */
  }
  .litigii-container a:last-child {
    margin-bottom: 0; /* Remove bottom margin for the last child */
  }
}

/* Reduce left indent for the facilities list and tighten icon spacing */
.fac-text ul {
  padding-left: 8px; /* reduce default ul indent (was ~40px) */
  margin-left: 0;
}

/* smaller gap between icon and text and slightly smaller icon column */
.pair .material-symbols-outlined {
  margin-right: 6px;
  flex: 0 0 30px;
  min-width: 30px;
}

/* Mobile overrides to ensure no overflow and tighter spacing */
@media screen and (max-width: 900px) {
  .fac-text ul {
    padding-left: 8px;
  }
  .pair .material-symbols-outlined {
    margin-right: 6px;
    flex: 0 0 30px;
    min-width: 30px;
  }
  .pair li {
    margin: 0.25rem 0;
    padding-right: 6px;
    word-break: break-word;
  }
}
