* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
}

body {
  font-family: 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

.navbar {
  background-color: #2c3e50;
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar h1 {
  font-size: 1.8rem;
  margin-right: 20px;
  text-decoration: none;
  letter-spacing: 1px;
}

.navbar nav a {
  color: white;
  text-decoration: none;
  margin: 0 20px;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.navbar nav a:hover {
  color: #e74c3c;
}

.navbar nav {
  display: flex;
  flex-wrap: wrap;
}

.container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100vh;
  width: 100vw;
  overflow-y: hidden;
  gap: 20px;
  padding: 20px;
}

.index-bar {
  width: 15%;
  background-color: #ecf0f1;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.index-bar ul {
  list-style-type: none;
}

.index-bar ul li {
  margin: 15px 0;
}

.index-bar ul li a {
  text-decoration: none;
  text-align: center;
  color: #333;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.index-bar ul li a:hover {
  color: #e74c3c;
}

.gallery {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: white;
  border-radius: 8px;
  width: 100%;
  height: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 20px;
  text-align: center;
}

#gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}

#gallery-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

#gallery-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 12px rgba(245, 241, 2, 0.918);
  border-radius: 8px;
}

@media (min-width: 1200px) {
  #gallery-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  #gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    height: auto;
  }
.index-bar{
width: 100%;
height: 50px;
overflow-y: hidden;
padding-left: 0;
padding-right: 0;
padding-top: 5px;
padding-bottom: 5px;

}

day-list{
  overflow-y: hidden;
  display: flex;
  justify-content: center;
  margin: auto 5px;
}

.index-bar ul {
  list-style-type: none;

}

.index-bar ul li {
  display: inline;
  margin: auto 10px;
}

.index-bar ul li a {
  text-decoration: none;
  text-align: center;
  color: #333;
  margin: auto auto;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.index-bar ul li a:hover {
  color: #e74c3c;
}     


  .gallery {
    padding: 10px;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: scroll;
    text-align: center;
  }

  #gallery-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
  }

  #gallery-container img:hover {
    transform: scale(1.05);
    border-radius: 8px;
  }

  #gallery-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  #gallery-container img {
    width: 100%;
  }
}

.navbar {
  background-color: #333;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo h1 {
  font-size: 1.5em;
  margin: 0;
  color: white;
  text-decoration: none;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1em;
  transition: color 0.3s;
}

nav a:hover {
  color: #f1f1f1;
}

.footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px 0;
  width: 100%;
  bottom: 0;
}

.footer p {
  margin: 0;
  font-size: 1em;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  margin: 5% auto;
  display: block;
  width: 80%;
  max-width: 700px;
  border-radius: 8px;
}

#caption {
  color: #f1f1f1;
  text-align: center;
  padding: 10px;
  font-size: 1.2em;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 25px;
  color: #f1f1f1;
  font-size: 2em;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: #e74c3c;
}

@media (min-width: 1024px) {
  .modal-content {
    width: 60%;
    max-width: 2500px;
  }
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-width: none;
  }
}
