body {
  font-family: 'Roboto', sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

h1 {
  font-size: 36px;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}

#uploadContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 50px;
  position: relative;
}

#imageInput {
  display: none;
}

label {
  background-color: #3a9bc6;
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s;
}

label:hover {
  background-color: #327fa8;
}

label:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: scaleX(0);
  transition: transform 0.5s;
  transform-origin: left;
}

label:hover:before {
  transform: scaleX(1);
}

#uploadedImages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.imageWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  cursor: pointer;
  transition: box-shadow 0.3s;
  position: relative;
  }
  
  .imageWrapper:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .imageWrapper img {
  max-width: 100px;
  max-height: 100px;
  }
  
  .notification {
  display: none;
  position: fixed;
  bottom: 20px;
  background-color: #3a9bc6;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  }
  .spinner {
      display: none;
      width: 30px;
      height: 30px;
      border: 4px solid rgba(0, 0, 0, 0.1);
      border-left-color: #3a9bc6;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      }
      
      @keyframes spin {
      0% {
      transform: rotate(0deg);
      }
      100% {
      transform: rotate(360deg);
      }
      }
/* Add this for the enlarged image container */
.enlarged-image-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  display: none;
}

.enlarged-image {
  max-width: 80vw;
  max-height: 80vh;
}

/* Add these lines for the fade-in effect */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.imageWrapper {
  animation: fadeIn 0.5s;
}

body.dark-mode {
  background-color: #1e1e1e;
  color: #f4f4f4;
}

body.dark-mode h1 {
  color: #f4f4f4;
}

body.dark-mode #uploadContainer label {
  background-color: #327fa8;
  color: #f4f4f4;
}

body.dark-mode .imageWrapper {
  background-color: #333;
}

body.dark-mode .notification {
  background-color: #327fa8;
}
.copyButton {
  display: none;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #3a9bc6;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  z-index: 1;
  padding: 5px 10px;
  font-family: 'Roboto', sans-serif;
  border: 2px solid #3a9bc6; /* Add the same color border */
  margin-top: 5px; /* Add padding from the image border */
  font-size: 14px; /* Make the text slightly bigger */
}

.copyButton:hover {
  background-color: #327fa8;
}
/* Add styles for the copy button */
.imageWrapper .copy {
  position: absolute;
  top: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  display: none;
}

.imageWrapper:hover .copy {
  display: block;
}
.imageWrapper:hover .copyButton {
  display: block;
}
@media screen and (max-width: 768px) {
  #uploadedImages {
      width: 100%;
      padding: 0 20px;
      box-sizing: border-box;
  }
  
  .imageWrapper img {
      width: 100%; /* Fit images to the width of the screen on mobile */
  }
}

/* Toggle button styles */
#darkModeToggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 20px;
  transition: background-color 0.3s;
}

#darkModeToggle span {
  font-family: 'Roboto', sans-serif;
  margin-bottom: 5px;
}

#darkModeToggle .toggleSwitch {
  display: inline-block;
  width: 40px;
  height: 20px;
  background-color: #ccc;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
}

#darkModeToggle .toggleSwitch .toggleCircle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.dark-mode #darkModeToggle .toggleSwitch {
  background-color: #444;
}

.dark-mode #darkModeToggle .toggleSwitch .toggleCircle {
  transform: translateX(20px);
}



/* Add styles for the modal and responsive image sizes */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  margin: 15% auto;
  display: block;
  width: 80%;
  max-width: 700px;
  height: auto;
}

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

.imageWrapper img {
  width: 100%;
  height: auto;
  max-width: 200px;
  max-height: 200px;
  object-fit: cover;
}

/* Add media query for responsive design */
@media (max-width: 768px) {
  .imageWrapper img {
    max-width: 100px;
    max-height: 100px;
  }
}