body {
  font-family: system-ui, sans-serif;
  background: #075aae;
  margin: 0;
  padding: 1rem;
  color: #333;
  padding-bottom: 120px;
}

a {
  display: inline-block;
  margin-bottom: 1rem;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

#upload-area {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

#upload-area input[type="file"] {
  flex: 1 1 auto;
  min-width: 200px;
}

#upload-area button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background: #0077cc;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#upload-area button:hover {
  background: #005fa3;
}

.gallery {
  display: grid;
  gap: 1.5rem;
}

.group {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  
  margin: 10px 0px;
  
  display: flex;
  flex-direction: column;
  gap: 1rem; /* spacing between h2 and items */
}
.group-items {
  display: flex;
  flex-wrap: wrap; /* allows wrapping to next line if needed */
  gap: 1rem; /* space between items */
}

.item {
	position: relative;
	  flex: 0 1 auto; /* don't shrink, allow wrapping */
	  width: 300px; /* or whatever size fits your layout */
	  outline: 2px solid #00c3ff;

}

	.item img {
		display: block;
	}
	
	.group h2.copied {
	  /* background-color: #c1f0d1; */
	  transition: background-color 0.3s;
	}
	
	.group h2.copied::after {
	  content: "Copied!";
	  position: absolute;
	  top: 5px;
	  left: 150px;
	  background: #0077cc;
	  color: #fff;
	  padding: 2px 6px;
	  border-radius: 4px;
	  font-size: 12px;
	  pointer-events: none;
	  z-index: 999;
	  opacity: 1; 
	  animation: fadeOut 1.5s forwards;
	}

.group h2 {
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
  position: relative;
  
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.group p {
  margin: 0 0 0.5rem;
  color: #666;
}

.group .tags {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.group .tag,
.ungrouped .tag {
  background: #e0e7ff;
  color: #3730a3;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
/* 
.media-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.media-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.media-item input[type="checkbox"] {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 10;
  background: white;
  border-radius: 3px;
}

.media-item img,
.media-item video {
  width: 100%;
  height: auto;
  display: block;
}
*/
.ungrouped {
  margin-top: 2rem;
}

@media (max-width: 600px) {
  #upload-area {
    flex-direction: column;
    align-items: stretch;
  }
}


 #progress-container {
    margin-top: 10px;
  }
  #progress-container div {
    font-size: 0.9em;
  }
  
.item.selected {
  outline: 2px dashed #00c3ff;
  position: relative;
}
.item.selected::after {
  content: '✔';
  position: absolute;
  top: 6px;
  right: 6px;
  background: white;
  color: #00c3ff;
  font-size: 14px;
  border-radius: 50%;
  padding: 2px 5px;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
}


.select-button {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  padding: 4px 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
}


#logo-footer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #004a99; /* your preferred blue */
  padding: 10px 15px;
  border-radius: 12px;
  text-align: center;
  color: white;
  font-family: Arial, sans-serif;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  /* pointer-events: none; */
  z-index: 1000;
  max-width: 160px;
}
	#logo-footer a {
		margin: 0;
	}

#footer-logo {
  max-width: 100px;
  height: auto;
  /* margin-bottom: 6px; */
  filter: brightness(1);
}

#footer-website {
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.9;
  word-break: break-word;
}

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

.modal-content {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
}

.modal img {
  max-width: 100%;
  max-height: 80vh;
  margin-bottom: 20px;
}

#closeModal {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

#modal-download {
  background: #075aae;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}
#modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex; justify-content: center; align-items: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  background: white;
  padding: 10px;
  border-radius: 6px;
  max-width: 90%;
  max-height: 90%;
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
}

#modal.hidden {
  display: none;
}


