/* Allgemeines Styling */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f9fc;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Header Styling */
header {
  margin: 20px 0;
}

/* Banner Styling */
.banner-wrapper {
  width: 100%;
  max-width: 1200px;
  height: auto;
  aspect-ratio: 4 / 1; /* Breite-Höhe-Verhältnis */
  background: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px; /* Abstand zwischen Banner und Bedienelementen */
}

.banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Bedienelemente Styling */
.image-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px; /* Abstand zwischen Button und Miniaturbildern */
  margin-bottom: 20px; /* Abstand zu Vorschaufenster */
}

.upload-button {
  display: inline-block;
  padding: 12px 24px;
  background: #2196F3;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.upload-button:hover {
  background: #1769aa;
  transform: scale(1.05);
}

.upload-button:active {
  transform: scale(0.95);
}

/* Beispielbilder Styling */
.example-images {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.example-images h2 {
  font-size: 1.5rem;
  color: #555;
  margin-bottom: 10px; /* Abstand zwischen Überschrift und Miniaturbildern */
}

.thumbnails {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px; /* Abstand zwischen Miniaturbildern */
}

.thumbnail {
  width: 100px;
  height: auto;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thumbnail:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.thumbnail.active {
  border-color: #4CAF50;
  box-shadow: 0 4px 8px rgba(0, 128, 0, 0.4);
}

/* Canvas Styling */
.canvas-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

canvas {
  border: 2px solid #ddd;
  border-radius: 10px;
  max-width: 90%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer Styling */
footer {
  margin-top: 30px;
  font-size: 0.9rem;
  color: #666;
}

/* Responsiveness */
@media (max-width: 768px) {
  .banner h2 {
    font-size: 1.5rem;
  }

  .image-preview {
    min-height: 300px;
  }

  .upload-button {
    font-size: 1rem;
    padding: 10px 20px;
  }
}
