.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

.controls {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wheel-outside-container {
  text-align: center;
  margin: 0 auto;
}

.wheel-container {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

.preview-container {
  margin-top: 40px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Univers LT Std 55', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
    sans-serif;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.6rem;
  table-layout: fixed;
}
th,
td {
  border: 1px solid black;
  padding: 4px;
  text-align: left;
  vertical-align: middle;
  height: 33px;
}
td.special {
  height: 10px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
}
thead {
  border: 2px solid black;
}
th {
  font-weight: normal;
}
.underline {
  text-decoration: underline;
}

.content-preview-container {
  position: relative;
}
.preview-text-container {
  position: absolute;
  left: 23%;
  top: 10%;
  right: 16%;
}

.preview-text-container h2 {
  font-size: 100%;
  line-height: 0;
  text-decoration: underline;
}
.preview-text-container p {
  line-height: 40px;
}

.handwritten {
  font-family: 'Patrick Hand', cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 1.5rem;
  line-height: 1;
}
.ml-4 {
  margin-left: 20px;
}
.address-flex {
  display: inline-flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}
.mt-4 {
  margin-top: 1rem;
}
.address-contents {
  vertical-align: top;
}
#date-now,
#time-now {
  font-size: 1.4rem;
  margin-left: 2px;
}
#preview {
  font-size: 24px;
  /* min-height: 100px; */
}
#preview[data-applied-styles='Gespiegelt'] {
  transform: scaleX(-1);
}
.signature-img {
  height: 30px;
  width: 80px;
  border-bottom: 1px solid black;
}

.multiplier-btn {
  padding: 8px 16px;
  border: 2px solid #666;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.multiplier-btn.active {
  background: #4caf50;
  color: white;
  border-color: #45a049;
}

.results-display {
  margin: 20px auto;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #f9f9f9;
  text-align: left;
}

.results-display h4 {
  margin: 0 0 10px 0;
  color: #333;
}

.results-display .instruction {
  font-family: 'Patrick Hand', sans-serif;
  font-size: 1.2rem;
  color: #666;
}

.style-toggles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.style-toggle-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
}

.style-toggle-item input[type='checkbox'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.style-toggle-item label {
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

#preview[data-applied-styles='Mirrored'] {
  transform: scaleX(-1);
}

#preview[data-applied-styles='Reversed'] {
  transform: rotate(180deg);
}

#styleWheel {
  width: 100%;
  height: 100%;
}

#image-overlay,
#image {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}
#image {
  visibility: hidden;
}

.settings-dialog {
  padding: 0;
  border: none;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
}

.settings-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

body:has(dialog[open]) {
  overflow-y: hidden;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

.dialog-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.dialog-header button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 8px;
}

.dialog-content {
  padding: 20px;
}

.settings-section {
  margin-bottom: 24px;
}

.settings-section h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #333;
}

.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: #666;
}

.input-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.settings-button {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.settings-button:hover {
  background: #f5f5f5;
}

#spinWheelBtn {
  font-size: 1.5rem;
  color: #fff;
  margin-top: 1rem;
  background: #b70000;
  border: 4px solid #363636;
  border-radius: 4px;
  padding: 10px 20px;
  width: 200px;
}

@media (max-width: 450px) {
  .wheel-container {
    zoom: 0.6;
  }
}

@media (max-width: 700px) {
  .preview-container {
    zoom: 0.8;
  }
}

@media (max-width: 500px) {
  .preview-container {
    zoom: 0.5;
  }
}

@media (max-width: 350px) {
  .preview-container {
    zoom: 0.4;
  }
}

#spinWheel:hover {
  background: #9f0202;
}

#ehrelosigkeitSlider {
  appearance: none;
  width: 200px;
  height: 12px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #006fa9 30%, #dddddd 30%);
  cursor: pointer;
}

/* Thumb: for Chrome, Safari, Edge */
#ehrelosigkeitSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid #333333;
  border-radius: 9999px;
  background: #06b6d4;
  box-shadow: none;
}

/* Thumb: for Firefox */
#ehrelosigkeitSlider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 2px solid #333333;
  border-radius: 9999px;
  background: #06b6d4;
  box-shadow: none;
}

footer {
  margin-top: 1.5rem;
  text-align: right;
  font-size: 0.8rem;
  color: #666666;
}
