* {
  font-family: 'Gabarito', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background-color: #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100dvh;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

form {
  background-color: #ddd;
  padding: 32px 24px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(100%, 420px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Labels & text input */

label {
  font-weight: bold;
  margin-bottom: 8px;
}

#course-select-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

select#course-dropdown {
  width: 100%;
  padding: 10px 14px;
  font-size: 16px;
  border: 3px solid #555;
  border-radius: 10px;
  background-color: white;
  outline: none;
  cursor: pointer;
  font-family: 'Gabarito', sans-serif;
}

select#course-dropdown:hover {
  border-color: #333;
}

select#course-dropdown:focus {
  border-color: rgba(0, 128, 0, 0.8);
}

input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 16px;
  border: 3px solid #555;
  border-radius: 10px;
  background-color: white;
  outline: none;
  margin-bottom: 0;
}

/* Hole number pill buttons */

#holeNumber {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
}

#holeNumber input {
  display: none;
}

#holeNumber label {
  flex: 1 1 0;
  margin: 0;
  position: relative;
  display: inline-flex;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  padding: 0.5em 0.75em;
  background-color: white;
  color: #555;
  border-radius: 18px;
  border: 3px solid #555;
  transition: all 0.3s ease;
  text-align: center;
}

#holeNumber label:hover {
  background-color: #555;
  color: white;
}

#holeNumber input:checked + label {
  background-color: #555;
  color: white;
}

/* Buttons */

button {
  background-color: rgba(0, 128, 0, 0.8);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 0;
  width: 100%;
  font-size: 15px;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background-color: green;
}

.menu-button {
  background-color: rgba(0, 128, 0, 0.8);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}

.menu-button:hover {
  background-color: green;
}

/* Mobile tweaks */

@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  form {
    padding: 24px 18px;
    width: 100%;
  }

  #holeNumber {
    gap: 10px;
  }

  #holeNumber label {
    font-size: 0.95rem;
    padding: 0.45em 0.5em;
  }
}

/* Slightly larger screens */

@media (min-width: 768px) {
  form {
    padding: 40px 32px;
    width: min(100%, 480px);
  }
}

#errorbox {
  background-color: #ff7777;
  border: 2px solid #ff0000;
  border-radius: 0.25rem;
  padding: 0.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: white;
}

.hidden {
    display: none;
}