*, *::before, *::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

ul {
  list-style: none;
}

section {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9fafb;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
}

.form-container {
  background-color: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 420px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-field {
  position: relative;
}

.form-field input {
  width: 100%;
  height: 52px;
  padding: 1.2rem 1rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background-color: transparent;
  font-size: 1rem;
  color: #111827;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  outline: none;
}

.form-field label {
  position: absolute;
  left: 0.9rem;
  top: 1.05rem;
  color: #6b7280;
  font-size: 1rem;
  transition: all 0.2s ease;
  pointer-events: none;
  background: transparent;
  padding: 0;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label {
  transform: translateY(-1.6rem) scale(0.85);
  color: #6366f1;
  background: #fff;
  padding: 0 0.3rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
}

button {
  padding: 0.75rem 1rem;
  background-color: #6366f1;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #4f46e5;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

.card {
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease;
}

.card p {
  font-size: 1rem;
  color: #111827;
}

.card span {
  font-weight: 500;
  color: #4f46e5;
}

.grid-container .card:nth-child(3),
.grid-container .card:nth-child(4) {
  grid-column: 1/-1;
}

@media (max-width: 700px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}
.star {
  position: relative;
  width: 100%;
  /* Positions in percentages based on polar coords for a pentagon */
}
.star img {
  position: relative;
  width: 100%;
  padding: 1rem;
}
.star__numbers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.star .point {
  position: absolute;
  width: 8%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.star .point:nth-child(1) {
  top: 5%;
  left: 50%;
}
.star .point:nth-child(2) {
  top: 40%;
  left: 95%;
}
.star .point:nth-child(3) {
  top: 93.5%;
  left: 78%;
}
.star .point:nth-child(4) {
  top: 93.5%;
  left: 22%;
}
.star .point:nth-child(5) {
  top: 40%;
  left: 5%;
}
.star .point:nth-child(6) {
  top: 37%;
  left: 38%;
}
.star .point:nth-child(7) {
  top: 37%;
  left: 62%;
}
.star .point:nth-child(8) {
  top: 60%;
  left: 70%;
}
.star .point:nth-child(9) {
  top: 75%;
  left: 50%;
}
.star .point:nth-child(10) {
  top: 60%;
  left: 30%;
}
.star .point:nth-child(10) {
  top: 60%;
  left: 30%;
}
.star .point:nth-child(11) {
  top: 27%;
  left: 41%;
}
.star .point:nth-child(12) {
  top: 27%;
  left: 59%;
}
.star .point:nth-child(13) {
  top: 43.5%;
  left: 50%;
}
.star .point:nth-child(14) {
  top: 37%;
  left: 73%;
}
.star .point:nth-child(15) {
  top: 54%;
  left: 78%;
}
.star .point:nth-child(16) {
  top: 50%;
  left: 60%;
}
.star .point:nth-child(17) {
  top: 69%;
  left: 72%;
}
.star .point:nth-child(18) {
  top: 80%;
  left: 58%;
}
.star .point:nth-child(19) {
  top: 61%;
  left: 56%;
}
.star .point:nth-child(20) {
  top: 80%;
  left: 42%;
}
.star .point:nth-child(21) {
  top: 69%;
  left: 28%;
}
.star .point:nth-child(22) {
  top: 61%;
  left: 44%;
}
.star .point:nth-child(23) {
  top: 54%;
  left: 22%;
}
.star .point:nth-child(24) {
  top: 37%;
  left: 27%;
}
.star .point:nth-child(25) {
  top: 50%;
  left: 40%;
}

.zahlenstrahl {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 50px;
  border-top: 2px solid black;
  margin: 50px auto 20px auto;
  box-sizing: border-box;
}

.tick {
  position: absolute;
  top: -5px;
  width: 2px;
  height: 10px;
  background: black;
}

.label {
  position: absolute;
  top: 15px;
  font-size: 12px;
  transform: translateX(-50%) rotate(90deg);
  white-space: nowrap;
}

.label-up {
  position: absolute;
  top: -15px;
  font-size: 12px;
  transform: translateX(-50%) translateY(-100%) rotate(90deg);
  white-space: nowrap;
}

.marker {
  position: absolute;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid black;
  transform: translateX(-50%);
}

.marker-blue {
  background: rgba(0, 0, 255, 0.6);
}

.marker-green {
  background: rgba(0, 128, 0, 0.6);
}

.marker-yellow {
  background: rgba(255, 0, 0, 0.6);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 999;
}

.dialog {
  background: rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  transition: all 0.2s ease;
}

.dialog-card {
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 95vw;
  max-width: 600px;
  max-height: 80vh;
  padding: 2rem;
  text-align: left;
  overflow-y: scroll;
}

.dialog-close {
  padding: 0.75rem 1rem;
  background-color: #6366f1;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dialog-close:hover {
  background-color: #4f46e5;
}

.dialog p {
  font-size: 1rem;
  color: #111827;
}

.dialog .bold {
  font-size: 1.2rem;
  font-weight: 700;
}

.show-dialog {
  display: flex;
}

.restart {
  margin: 30px auto;
}

.clickable {
  cursor: pointer;
}

.marker::after {
  content: attr(data-year);
  position: absolute;
  bottom: 120%; /* position above the element */
  left: 50%;
  transform: translateX(-50%);
  background: black;
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  white-space: nowrap;
  z-index: 10000;
}

.marker:hover::after {
  opacity: 1;
}

/*# sourceMappingURL=styles.css.map */
