.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  position: relative;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.preview-image {
  display: none;
}

.description {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.5;
  margin: 15px 0;
  text-align: left;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

.stars {
  font-size: 24px;
  color: gold;
  margin: 10px 0;
}

.difficulty-maker {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 10px;
  margin: 20px auto;
  max-width: 800px;
}

.maker-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  color: white;
  font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #444;
  background: #333;
  color: white;
}

.form-group textarea {
  height: 100px;
  resize: vertical;
}

#create-difficulty {
  background: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

#create-difficulty:hover {
  background: #45a049;
}

.custom-difficulties {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

.delete-custom {
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 5px 10px;
  margin-top: 5px;
  cursor: pointer;
}

.delete-custom:hover {
  background: #cc0000;
}