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

.bird-checkbox:focus+label,
.complete-button:focus,
.back-button:focus {
  outline: 3px solid #4caf50;
  outline-offset: 2px;
}

#mainPage,
#resultsPage,
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

h1,
h2 {
  text-align: center;
  margin-bottom: 30px;
}

.notes {
  display: none;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.bird-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.image-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-item img:hover {
  transform: scale(1.05);
}

.bird-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.bird-name {
  font-size: 16px;
}

/* Checkbox Styling */
.checkbox-wrapper {
  position: relative;
  width: 24px;
  height: 24px;
}

.bird-checkbox {
  opacity: 0;
  position: absolute;
}

.checkbox-wrapper label {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid #333;
  border-radius: 4px;
  cursor: pointer;
  background-color: white;
}

.bird-checkbox:checked+label::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  color: #333;
}

.results-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.results-summary {
  margin: 30px 0;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 10px;
}

.achievement-message {
  font-size: 20px;
  margin: 20px 0;
  padding: 20px;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.results-details {
  margin: 30px 0;
}

#spottedList {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin: 20px 0;
}

#spottedList li {
  padding: 10px;
  background-color: #f0f0f0;
  border-radius: 5px;
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.complete-button,
.back-button,
.reset-button {
  margin-top: 30px;
  padding: 15px 30px;
  font-size: 18px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.complete-button:hover,
.back-button:hover {
  background-color: #45a049;
}

.back-button {
  background-color: #666;
}

.back-button:hover {
  background-color: #555;
}

.reset-button {
  background-color: #cc3300;
}

.reset-button:hover {
  background-color: #b82e00;
}

/* Print Styles */
@media print {
  .container {
    max-width: 100%;
  }

  .image-grid {
    gap: 10px;
  }

  .image-item {
    box-shadow: none;
  }

  .checkbox-wrapper label {
    border: 2px solid black;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .bird-checkbox:checked + label::after {
    color: black;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .bird-name {
    font-size: 12px;
  }

  .button-container {
    display: none;
  }

  .notes {
    display: block;
    break-before: page;
    margin-top: 30px;
    border-bottom: 2px solid #000; /* Adds a visual line for note-taking */
    padding-bottom: 8px;   /* Space between text and underline */
  }
}