/* general styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  background-image: url('images/background.jpg');
 }
 
 /* styling the app */
 #app {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
 }

 h1 {
  color: #98947f;
 }

 a {
  color: #98947f;
 }
 
 /* styling the upload button */
 .upload-btn {
  background-color: #e2b08d;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.4s;
 }
 
 .upload-btn:hover {
  background-color: #98947f;
  color: #fff;
 }
 
 /* styling the image preview */
 .preview-container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
 }
 
 .preview-container img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid #ddd;
  padding: 5px;
  margin: 0 10px 10px 0;
 }

 div.gallery {
  margin: 5px;
  display: flex;
  flex-wrap: wrap;
}

div.gallery:hover {
  border: 1px solid #777;
}

div.gallery img {
  width: 100%;
  height: auto;
  flex: 1 0 200px; /* Allow the image to grow and shrink, with a minimum width of 200 pixels */
  margin: 10px; /* Add some margin between the images */
}

#uploading {
  visibility: none;
  max-height: 300px;
  padding: 5px;
  margin: 20px;
}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
  max-width: 500px;
  max-height: 700px;
  margin-top: 10px;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: inherit;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 30px;
  color: #e2b08d;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: #98947f;
}

#counter {
  display: block;
  text-align: center;
  font-family: Arial, sans-serif;
  /* push image counter between prev and next */
  position: inherit;
  top: 20px;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: none;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 0.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}


/* Media query for screens with a maximum width of 768px (typical for mobile devices) */
@media screen and (max-width: 768px) {
  .mySlides {
    width: 100%;
    max-height: 300px; /* Adjust the maximum height as needed */
  }

  body {
    width: 100%;
    max-height: 300px;
  }

  .dot {
    margin: 0 4px;
  }
}