body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f4f4f4;
  color: #333;
  padding: 20px;
  max-width: 800px;
  margin: auto;
}

h1, h3 {
  text-align: center;
  color: #444;
}

.controls {
  text-align: center;
  margin-bottom: 15px;
}

input[type="file"]::file-selector-button {
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
}

button {
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #218838;
}

#errorMessage {
  position: relative;
  color: #d8000c;
  background-color: #ffdddd;
  border: 1px solid #d8000c;
  padding: 12px 40px 12px 12px;
  margin-top: 15px;
  border-radius: 4px;
  display: none;
}

#errorMessage .close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  cursor: pointer;
  color: #d8000c;
  font-weight: bold;
  font-size: 16px;
}

.images-row {
  display: flex;
  justify-content: center;
  gap: 20px; 
  margin-top: 15px;
}

.images-row .image-container {
  flex: 1 1 45%;
  max-width: 45%;
  margin: 0;
  border: 1px solid #ccc; 
  padding: 10px;
  background-color: white;
  border-radius: 4px;
  text-align: center;
}

.images-row .image-container img {
  max-width: 100%;
  max-height: 400px;
  display: block;
  margin: auto;
  border-radius: 4px;
  border: 1px solid #ddd;
}

#gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  justify-content: center;
}

#gallery img {
  max-width: 150px;
  border: 2px solid #87CEFA;
  border-radius: 4px;
  padding: 5px;
  background-color: white;
}

.section {
  margin-top: 30px;
}
