




/* Grundopsætning */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #CBE2D6;
  margin: 0.0;
  padding: 0;
  color: #C27854;
  text-align: center;
}

/* Container for hele formularen */
.score-container {
  max-width: 1000px;
  
  margin: 0rem auto;
  background-color: #77DD77;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 2px solid #CBE2D6;
  text-align: center;
}

/* Overskrift */
.score-container h2 {
  color: #C27854;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Form elementer */
form label {
  font-weight: bold;
  display: block;
  margin-top: 0.0rem;
  margin-bottom: 0.0rem;

  font-size: 0.8rem;
  color: #C27854;
}

form input, form select, form textarea {
  height: 30px;
  width: 90%;
  margin-bottom: 0.0rem;
  padding: 0.0rem 0.0rem;
  margin: 0.2rem auto 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: left;
  transition: border 0.2s;
}

form input:focus, form select:focus, form textarea:focus {
  border-color: #C27854;
  outline: none;
}

/* Knapper */
button, .button {
  background-color: #C27854;
  color: white;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.3s;
}
button:hover, .button:hover {
  background-color: #a85d3e;
}

/* Grupper og grids */
.form-grid, .slider-row, .filter-row, .spiller-info, .hcp-sph-row {
  display: flex;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0rem;
}

.form-grid .col, .slider-item, .filter-row label, .spiller-info label, .hcp-sph-row label {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 120px;
  align-items: center;
}

/* Slider styling */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  margin-top: 0.2rem;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 28px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #C27854;
}
input:checked + .slider:before {
  transform: translateX(22px);
}
small {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #5F5144;
}

/* Hulvisning */
.hole-scores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1.0rem;
}
.hole-scores label {
  flex: 1 1 calc(100% / 9 - 1rem);
  min-width: 50px;
  font-weight: bold;
  color: #5F5144;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hole-scores input {
  width: 50px;
  text-align: center;
  margin-top: 0.1rem;
}

/* Mobiltilpasning */
@media (max-width: 768px) {
  .score-container {
    padding: 1.5rem;
  }

  .hole-scores {
    grid-template-columns: 1fr;
  }
}
.page-wrapper {
  width: 60%;
  margin: 2rem auto;
  background-color: white;
  padding: 2rem 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 4px solid #CBE2D6;
}