/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background: #f7f7f7;
  color: #333;
}

/* Header */
header {
  background: linear-gradient(135deg, #1e90ff, #00bfff);
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  position: relative;
}
header h1 {
  margin: 0;
  font-size: 2em;
}
header button {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  border: none;
  background: #fff;
  color: #1e90ff;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}
header button:hover {
  background: #e0e0e0;
}

/* Footer */
footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 15px 10px;
}
footer a {
  color: #1e90ff;
  text-decoration: none;
}

/* Hauptcontainer */
.main-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
}

/* Mode Selector – "Strassen-Slider" */
.mode-selector {
  margin-bottom: 30px;
}
#modeSliderContainer {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 0;
  background: #444;
  border-radius: 30px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}
/* Hier wurde der Slider explizit eingegrenzt */
#modeSlider {
  margin: 0 20px;
}
#modeSlider .ui-slider-range { background: #1e90ff; }
.mode-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  color: #fff;
  font-weight: 500;
}

/* Share URL */
.share p {
  text-align: center;
  margin-top: 10px;
}
.share input {
  width: 90%;
  max-width: 400px;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

/* Content Bereich */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wheel-container {
  position: relative;
  margin-bottom: 30px;
}
.wheel-container canvas {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border: 5px solid #333;
  cursor: pointer;
}

/* Pointer – Pfeil, der in das Rad zeigt */
.pointer {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 20px solid #e74c3c;
  z-index: 10;
}

/* Input Container */
.input-container {
  width: 100%;
  max-width: 500px;
  text-align: center;
}
#textInput {
  width: 100%;
  height: 200px;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
  resize: vertical;
  transition: border 0.3s, box-shadow 0.3s;
}
#textInput:focus {
  border-color: #1e90ff;
  box-shadow: 0 0 8px rgba(30,144,255,0.5);
  outline: none;
}
#results {
  margin-top: 20px;
  text-align: left;
}
#results h3 {
  margin-bottom: 10px;
}
#results ul {
  list-style: none;
  padding: 0;
}
#results li {
  background: #fff;
  padding: 10px;
  margin-bottom: 5px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Overlay (Modal) */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#overlayContent {
  background: #fff;
  border-radius: 15px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  overflow: hidden;
}
.overlay-header {
  background: linear-gradient(135deg, #1e90ff, #00bfff);
  padding: 15px;
  text-align: center;
  color: #fff;
}
.overlay-header h2 {
  margin: 0;
  font-size: 1.8em;
}
.overlay-body {
  padding: 30px;
  text-align: center;
}
.overlay-body p {
  font-size: 20px;
  margin-bottom: 20px;
}
.overlay-body button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  margin: 5px;
}
.btn-primary {
  background: #1e90ff;
  color: #fff;
}
.btn-primary:hover {
  background: #007acc;
}
.btn-secondary {
  background: #ccc;
  color: #666;
}
.btn-secondary:hover {
  background: #bbb;
}

/* Responsive Anpassungen */
@media (min-width: 768px) {
  .content {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }
  .wheel-container {
    margin-right: 30px;
  }
  #textInput {
    height: 300px;
  }
}
