/* Base Desktop Layout */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background-color: white;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #2f8589;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

li {
  float: left;
}

li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

li a:hover {
  background-color: black;
}

.active {
  background-color: rgb(0, 85, 115);
}

#title {
  margin-top: 60px;
  padding: 20px;
}

#title h1 {
  color: black;
  font-size: 48pt;
  font-weight: 400;
  text-align: center;
  text-shadow: 3px 3px 0px #d1d1d1;
}

.container {
  display: flex;
  justify-content: flex-start;
  margin: 0 auto;
  max-width: 1200px;
  padding: 20px;
}

.Image {
  width: 50%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid #000000;
  border-radius: 4px;
  padding: 5px;
  margin-right: 20px;
}

.text {
  flex: 1;
}

.foot {
  background-color: #333;
  padding: 10px 0;
  width: 100%;
}

.foot footer ul {
  display: flex;
  justify-content: space-around;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.foot footer ul li {
  flex: 1;
  text-align: center;
}

.foot footer ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}

.foot footer ul li a:hover {
  text-decoration: underline;
}

/* Gallery Styles */
.gallery-container {
  margin: 20px auto;
  max-width: 800px;
  position: relative;
}

.main-image-container {
  position: relative;
  width: 600px;
  height: 400px;
  overflow: hidden;
  margin: 0 auto;
}

.main-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease-in-out;
}

.slide-left { transform: translateX(-100%); }
.slide-right { transform: translateX(100%); }

.thumbnails {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.thumbnail {
  width: 80px;
  height: 60px;
  margin: 0 5px;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.3s ease, border 0.3s ease;
  object-fit: cover;
}

.thumbnail:hover {
  transform: scale(1.1);
  border: 2px solid #007BFF;
}

.navigation-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.nav-button {
  padding: 10px 15px;
  font-size: 16px;
  color: white;
  background-color: rgba(0, 123, 255, 0.7);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  pointer-events: auto;
}

.nav-button:hover {
  background-color: rgba(0, 86, 179, 0.9);
}

/* Tablet Layout (800px and below) */
@media (max-width: 800px) {
  #title {
      margin-top: 60px;
  }
  
  #title h1 {
      font-size: 32pt;
      text-shadow: 2px 2px 0px #d1d1d1;
  }

  .container {
      flex-direction: column;
      align-items: center;
      padding: 10px;
  }

  .Image {
      width: 80%;
      margin-right: 0;
      margin-bottom: 20px;
  }

  .text p {
      font-size: 14px;
  }

  ul {
      display: flex;
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
  }

  li {
      float: none;
      flex: 0 0 auto;
  }

  li[style="float: right"] {
      margin-left: auto;
  }

  li a {
      padding: 12px 10px;
      font-size: 14px;
  }

  /* Gallery Tablet */
  .main-image-container {
      width: 100%;
      height: 300px;
  }
}

/* Mobile Layout (360px and below) */
@media (max-width: 360px) {
  #title {
      margin-top: 180px;
  }
  
  #title h1 {
      font-size: 20pt;
      text-shadow: 2px 2px 0px #d1d1d1;
  }

  .Image {
      width: 95%;
  }

  .text p {
      font-size: 12px;
  }

  ul {
      flex-wrap: wrap;
  }

  li {
      width: 33.33%;
      float: none;
  }

  li[style="float: right"] {
      width: 100%;
      margin-left: 0;
      order: 1000;
  }

  li a {
      padding: 10px 8px;
      font-size: 12px;
  }

  .foot footer ul {
      flex-wrap: wrap;
  }

  .foot footer ul li {
      flex: 0 0 50%;
      padding: 8px 0;
  }

  .foot footer ul li a {
      font-size: 12px;
  }

  /* Gallery Mobile */
  .main-image-container {
      height: 200px;
  }
  .thumbnail {
      width: 60px;
      height: 45px;
  }
}
