.pet-card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-top: 24px;
}

.pet-card {
  background: #fafbfc;
  border: 1.5px solid #d8dee9;
  border-radius: 16px;
  width: 200px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 24px 12px 16px 12px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}

.pet-card {
  /* Ensure the card takes up all available vertical space and centers content */
  max-height: 220px;
  justify-content: center;
}

.pet-card > .pet-theme,
.pet-card > .pet-name,
.pet-card > .pet-gender {
  margin-top: 0;
  margin-bottom: 0;
}

.pet-theme {
  margin-bottom: auto;
}

.pet-name {
  margin: 0 auto;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.pet-gender {
  margin-top: auto;
}

.pet-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.pet-theme {
  font-size: 1.05em;
  color: #666;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}
.pet-name {
  font-size: 2em;
  font-weight: bold;
  color: #222;
  margin: 0 0 12px 0;
  text-align: center;
  cursor: pointer;
  letter-spacing: 1px;
}
.pet-gender {
  font-size: 1em;
  color: #888;
  margin-top: auto;
  text-align: center;
}

/* Mobile styles: two cards per row, smaller text */
@media (max-width: 600px) {
  .pet-card {
    width: 45%;
    margin: 1%;
    padding: 14px 6px 10px 6px;
    font-size: 0.95em;
  }
  .pet-name {
    font-size: 1.2em;
  }
  .pet-theme {
    font-size: 0.95em;
  }
  .pet-gender {
    font-size: 0.9em;
  }
  /* Ensure container wraps cards */
  .pet-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .theme-number-row {
    flex-direction: row !important;
    gap: 8px !important;
    margin-bottom: 8px;
  }
  .theme-number-row > div {
    min-width: 0;
    flex: 1 1 0;
    margin-bottom: 0 !important;
  }
  .theme-select-col, .number-names-col {
    width: 50%;
    min-width: 100px;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
  }
  .theme-select-col select, .number-names-col input {
    width: 100%;
    min-width: 0;
    font-size: 1em;
  }
  .number-names-col p {
    margin-bottom: 0;
  }
  .label-text {
    font-size: 1em;
  }
}

@media (min-width: 560px) and (max-width: 992px) {
  .wrapper-body {
    margin-bottom: 20px !important;
  }
} 

.page-content {
  margin-left: 50px;
  margin-right: 50px;
  max-width: 1400px;
  width: 100%;
}

@media (max-width: 768px) {
  .page-content {
    margin-left: 5px;
    margin-right: 5px;
  }
}

.form-buttons {
  padding-left: 15px;
}

.btn-md {
  font-size: 1em !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
}