/* Independent */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: white;
  font-family: 'Montserrat', sans-serif;
  color: #222;
}
/* Layout */
.layout {
  display: flex;
  max-width: 1600px;
  margin: 0 auto;
}
.top_bar{
  display:none;
}


#mapContainer {
  transition: opacity 0.5s ease;
  display: flex; 
  opacity: 0.9; 
  margin-top: 1rem;
}

/* Sidebar */
.sidebar {
  width: 30vw;
  max-width:300px;
  height: 100%;
  padding: 2rem;
  background: white;
  border-right: 1px solid #eee;
  border-left: 1px solid #eee;
  flex-shrink: 0;
}

.sidebar h1 {
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.sidebar ul {
  list-style: none;
  margin-bottom: 2rem;
}

.sidebar li {
  margin-bottom: 0.5rem;
}

.sidebar a {
  text-decoration: none;
  color: #003366;
}

.contact {
  font-size: 0.9rem;
}

.social-icons {
  margin-top: 1rem;
}

.social-icons a {
  margin-right: 0.5rem;
}

.social-icons img {
  width: 40px;
  height: 40px;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem;
  overflow: hidden;
  position: relative;
  border: none;
  width: 80%;
  box-shadow: none;
}

/* Intro Section */
.intro {
  background: #f2f2f2;
  padding: 2rem;
  text-align: center;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  aspect-ratio: 3 / 1;
  width: 100%;
  max-height: 600px;
}

.intro p {
  margin-bottom: 1rem;
}

/* Language switcher styling */
.language-switch {
  margin-top: 1rem;
}

.language-switch button {
  margin-right: 0.5rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
  background: #e0e0e0;
  border: none;
  border-radius: 3px;
}

.language-switch button:hover {
  background: #ccc;
}

/* Gallery Grid */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 2rem 0;
  background: white;
}

/* Tile container */
.tile {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: white;
}

/* Image itself */
.tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 0;
}

/* Overlay with title */
.tile .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 1.4rem;
  /*font-weight: bold;*/
  text-align: center;
}

/* Hover effect */
.tile:hover img {
  transform: scale(1.02);
  opacity: 0.8;
}

.tile:hover .overlay {
  opacity: 1;
}

/* Click Zoom */
.click-zoom {
  display: inline-block;
  overflow: auto;
  position: relative;
}

.click-zoom input[type="checkbox"] {
  position: absolute;
  outline: none;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.click-zoom img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.25s ease, transform-origin 0.25s ease;
  cursor: zoom-in;
}

.click-zoom input[type=checkbox]:checked ~ img {
  transform: scale(2);
  cursor: zoom-out;
}

/* Project Gallery */
.project-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 2rem 0;
  background: white;
}

.project-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 0;
}

.project-text {
  padding: 1rem 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  max-width: 600px;
  margin: 0 auto;
}

/* Card 1 */
#mainCard {
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  padding-top: 76%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  color: #000000;
  box-sizing: border-box;
  overflow: hidden;
}

#mainCard .content {
  position: absolute;
  top: 2rem;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.5rem;
}

#mainCard h2 {
  font-size: 4rem;
  font-weight: normal;
  margin: 0;
}

#mainCard p {
  font-size: 2rem;
  margin: 0;
  max-width: 600px;
}

/* Peek Pane */
.peek-pane {
  position: absolute;
  top: -10rem;
  bottom: -10rem;
  right: -300px;
  width: 200px;
  height: calc(100% + 20rem);
  box-sizing: border-box;
  background: rgba(255,255,255,0.5);
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: right 0.3s ease;
  cursor: pointer;
  padding: 0 1rem;
  overflow: hidden;
}

#mainCard:hover .peek-pane {
  right: -3rem;
}
.card h2 {
  font-size: 1.5rem;
  font-weight: normal; /* makes the h2 text non-bold */
  text-transform: uppercase; /* makes the h2 text uppercase */
  margin-bottom: 3rem; /* adds space below the h2 */
}

/* Card Nav */
.card-nav ul {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  list-style: none;
}

.card-nav li {
  cursor: pointer;
  padding: 0.4rem 1rem;
  background: #eee;
  border-radius: 5px;
  transition: background 0.2s ease;
  width: 100%;
}

.card-nav li:hover {
  background: #ccc;
}

/* Card Container */
.card-container {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  width: 100%;
  position: relative;
  height: 100%;
}

.card-container.visible {
  display: block;
  opacity: 1;
}

.card-container .card {
  flex: 0 0 100%;
  padding: 2rem;
  background: white;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.5s ease, opacity 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.card-container .card.active {
  opacity: 1;
  transform: translateX(0%);
  position: relative;
}

.card-container .card.slide-left {
  transform: translateX(-100%);
}

.card-container .card.slide-right {
  transform: translateX(100%);
}

.card img {
  max-width: 100%;
  margin-bottom: 1rem;
}

/* Navigation Arrows */
.hover-pane.nav-left,
.hover-pane.nav-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  background: rgba(220,220,220,0.3);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hover-pane.nav-left {
  left: 0;
}

.hover-pane.nav-right {
  right: 0;
}

.card:hover .hover-pane.nav-left,
.card:hover .hover-pane.nav-right {
  opacity: 1;
}
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white; /* or black if your theme is dark */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.nav ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav li {
  padding: 0.25rem 0;
  border-bottom: 1px solid #ddd;
}

.nav li:last-child {
  border-bottom: none;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  display: inline-block;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #000;
  text-decoration: underline;
}
.image-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.image-left,
.image-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.image-left {
  flex: 2.2;
}

.image-right {
  flex: 0.8;
  width:80%;
  height: auto;
}

.click-zoom img {
  max-width: 100%;
  height: auto;
  display: block;
}
@media all and (min-width:1025px){
.sidepanel,.top_bar, .bottom-bar {
  display:none;
  pointer-events:none;
}
}


@media all and (max-width: 1024px) {
  
    html {
        font-size: 10px;
    }
    .sidebar{
      display:none;
    }
    #mapFrame{
        max-height:150px;
        font-size:1rem;
    }
    
    .sidepanel {
  height: 100%; /* Specify a height */
  width: 250px; /* 0 width - change this with JavaScript */
   transition: transform 0.5s ease;
  transform: translateX(-100%); /* Hide the sidepanel by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Stay on top */
  top: 0;
  left: 0;
  background-color: #ffffff;
  border-right: #eeeeee 1px solid;
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 0; /* Place content 60px from the top */
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidepanel */
}
.sidepanel.open {
  transform: translateX(0);
}
.sidepanel .nav_link,
.mobile_nav .nav_link {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  box-sizing: border-box;
}
/* The sidepanel links */
.sidepanel a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

/* When you mouse over the navigation links, change their color */
.sidepanel a:hover {
  color: #f1f1f1;
}

/* Position and style the close button (top right corner) 
.sidepanel .closebtn {
  position: absolute;
  padding-bottom: -32px;
  top: 0;
  right: 25px;
  font-size: 4rem;
  margin-left: 50px;
  border:none;
}*/
.sidepanel .closebtn {
  position: relative; /* or just remove 'position' entirely */
  top: auto;
  right: auto;
  margin-left: 0;
}
.closebtn-container {
  height: 10vh;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 2rem; /* optional: aligns the × to the right */
}

/* Style the button that is used to open the sidepanel */
.openbtn {
  font-size: 20px;
  cursor: pointer;
  background-color: #fff;
  color: black;
  margin-left:1rem;
  padding: 10px 15px;
  border: none;
  font-size: 3rem;
}

.openbtn:hover {
  background-color: #444;
}
.mobile_nav ul {
  list-style: none;
  padding: 0;
  padding-right: 6rem;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile_nav li {
  padding: 0.25rem 0;
  padding-right: 1rem;

  border-bottom: 1px solid #ddd;
  width:100%;
}

.mobile_nav li:last-child {
  border-bottom: none;
}

.mobile_nav a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  display: inline-block;
  transition: color 0.2s ease;
}
#mainCard h2 {
  font-size: 2rem;
  font-weight: normal;
  margin: 0;
}

#mainCard p {
  font-size: 1rem;
  margin: 0;
  max-width: 600px;
}
.peek-pane {
  position: absolute;
  top: -10rem;
  bottom: -10rem;
  right: -5rem;
  width: 13rem;
  height: calc(100% + 20rem);
  box-sizing: border-box;
  background: rgba(255,255,255,0.5);
  color: #222;
  display: flex;
  align-items:center;
  justify-content: left;
  font-weight: bold;
  transition: right 0.3s ease;
  cursor: pointer;
  padding: 0 1rem;
  overflow: hidden;
}
.hover-pane.nav-left,
.hover-pane.nav-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  background: rgba(220,220,220,0.3);
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.hover-pane.nav-left {
  left: 0;
}

.hover-pane.nav-right {
  right: 0;
}
.card-container .card.active {
    width: 90%;
    margin: 0 auto;
  }
.click-zoom input[type=checkbox]:checked ~ img {
  transform: none;
  cursor: zoom-out;
}
.top_bar{
      display:flex;
      border-bottom: 1px solid #eee;
      height: 10vh;
      padding: 0 1rem;
      justify-content: space-between;
    }
.language-switch {
  display: flex;

  padding: 10px 15px;
  margin-right: 1rem;
  border: none;
}

.language-switch button {
  width: 4rem;
  margin-left: 1rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
  background: #e0e0e0;
  border: none;
  border-radius: 3px;
}
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10vh;
  background-color: white;
  display: flex;
  justify-content: flex-end; /* Align icons to the right */
  align-items: center;
  border-top: 1px solid #eee;
  padding-right: 3rem; /* Space from right edge */
  z-index: 10;
  box-sizing: border-box;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-icons img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 2rem 0;
  background: white;
}
.main-content{
  padding-bottom:10vh;
}

}
