body {
  font-family: "Arial", sans-serif;
  background: #f8f9fa;
  margin: 0;
  padding: 20px;
}

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

.carousel-container {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
  display: flex;
  height: 400px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  position: absolute;
}

.carousel-slide img.active {
  opacity: 1;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.dot.active {
  background: #fff;
}

.controls {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

select {
  width: 100%;
  padding: 1rem;
  border: 2px solid #4caf50;
  border-radius: 8px;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.color-picker {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.color-option {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform 0.2s;
}

.color-option.selected {
  border-color: #333;
  transform: scale(1.1);
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

button {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  background: #4caf50;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #45a049;
}

.card-container {
  perspective: 1000px;
  margin: 2rem auto;
  width: min(90%, 400px);
}

.name-card {
  background: #fff;
  padding: 2rem;
  text-align: center;
  font-size: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.name-card.flip {
  transform: rotateY(180deg);
}

.favorites {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  margin-top: 2rem;
}

#favoritesList {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

#favoritesList li {
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}
