/* Calculator Container */
.calculator-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 24px;
  background-color: #f9f9ff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Heading and Paragraph */
.calculator-container h1 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 10px;
  color: #333;
}
.calculator-container p {
  text-align: center;
  font-size: 16px;
  color: #555;
}

/* Form Genotype Selectors */
.genotype-selectors {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin: 20px 0;
  background-color: #eef4ff;
  border: 1px solid #cdd6f4;
  border-radius: 10px;
  padding: 20px;
}
.parent-group {
  flex: 1;
}
.parent-group label {
  display: block;
  margin: 8px 0;
  font-weight: 500;
}

/* Results Section */
.results-section {
  margin-top: 30px;
}
.results-section h2 {
  margin-bottom: 12px;
}

/* Punnett Square Table */
#punnett-square {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
#punnett-square th,
#punnett-square td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}
#punnett-square th {
  background-color: #eef;
  font-weight: bold;
}

#punnett-square th[id^="col-head-"],
#punnett-square th[id^="row-head-"] {
  text-transform: none;    /* stop shouting */
  font-variant: normal;    /* stop small-caps */
}

/* Chance Boxes */
.chance-boxes {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
  color: #333;
}
.chance-boxes div {
  margin-bottom:20px;
  background-color: #e8f0ff;
  padding: 5px 16px;
  border-radius: 8px;
  flex: 1;
  text-align: center;
}

.ratios-boxes {
  margin-top:5px;
  padding: 10px;
  background-color: #e8f0ff;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Genotype to Phenotype Table */
.genotype-phenotype {
  margin-top: 30px;
}

.genotype-phenotype table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background-color: #e8f0ff;
}
.genotype-phenotype th,
.genotype-phenotype td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
}

/* ───────────────── Allele card ─ dominant / recessive ───────────────── */
.allele-type {
  /* same “card” styling as .genotype-selectors */
  margin: 20px 0;
  padding: 20px;
  background-color: #eef4ff;
  border: 1px solid #cdd6f4;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

  /* simple two-item row; wraps on narrow screens */
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.allele-type label {
  /* keep each label/input pair together */
  display: block;
  font-weight: 500;
  margin: 8px 0;
}

.allele-type input[type="text"] {
  margin-top: 6px;
  padding: 8px 12px;
  width: 80px;          /* small box */
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: center;
}


/* Action Buttons */
.actions {
  margin-top: 30px;
  text-align: left;
}
.actions button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 18px;
  margin: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.actions button:hover {
  background-color: #0056cc;
}
