
html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

.drop-zone {
  border: 2px dashed #ccc;
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
  cursor: pointer;
  position: relative;
}

.drop-zone.dragover {
  background: #e1e1e1;
  border-color: #999;
}

.drop-zone input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.controls {
  margin: 20px 0;
  display: flex;
  gap: 20px;
  align-items: center;
}

.controls input[type="number"] {
  width: 80px;
  padding: 5px;
}

.controls select {
  padding: 5px;
}

.preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.preview-item {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 4px;
}

.preview-item img {
  max-width: 100%;
  height: auto;
}

.preview-item .download {
  display: block;
  margin-top: 10px;
  padding: 5px 10px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  text-align: center;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
}

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