/* Base Styles */
body {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #edfaf9; /* Website Background Color */
  color: #1D1D1F; /* Default text color */
  margin: 0;
  padding: 0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #FFFFFF; /* Padding behind content */
}

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

.logo {
  max-width: 200px;
  margin-bottom: 10px;
}

.site-title {
  font-size: 32px;
  font-weight: bold;
  color: #1D1D1F;
  margin-bottom: 0;
}

.tagline {
  font-size: 24px;
  font-weight: 600;
  color: #1D1D1F;
  margin-top: 0;
}

.ad-space {
  background-color: #e9ecef;
  padding: 20px;
  text-align: center;
  margin-bottom: 30px;
  border-radius: 8px;
}

.ad-space p {
  margin: 0;
  font-size: 18px;
  color: #6c757d;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 5px;
}

.input-group input[type="text"],
.input-group input[type="number"],
.input-group textarea,
.input-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #CED0CE;
  border-radius: 8px;
  font-size: 16px;
  background-color: #FAFAFA;
  box-sizing: border-box;
  color: #1D1D1F; /* Set default text color */
}

.input-group textarea {
  min-height: 100px;
  resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  border-color: #509d8d;
  background-color: #FFFFFF;
  outline: none;
}

main {
  margin-bottom: 40px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

th, td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid #E0E0E0;
}

th {
  background-color: #F5F5F7;
  font-weight: 600;
  font-size: 16px;
}

td input[type="text"],
td select {
  width: 100%;
  padding: 10px;
  border: 1px solid #CED0CE;
  border-radius: 8px;
  font-size: 16px;
  background-color: #FAFAFA;
  box-sizing: border-box;
  height: 44px;
  color: #1D1D1F; /* Set default text color */
}

td input:focus,
td select:focus {
  border-color: #509d8d;
  background-color: #FFFFFF;
  outline: none;
}

td select {
  color: #1D1D1F; /* Ensure select text color matches input fields */
}

td select option {
  color: #1D1D1F; /* Set option text color */
}

.btn {
  display: inline-block;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background-color: #509d8d; /* Button background color */
  width: auto;
  margin-bottom: 20px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #3d7b6e;
}

.remove-btn {
  background-color: #f3632e; /* Remove button color */
  color: #FFFFFF;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-size: 14px;
}

.remove-btn:hover {
  background-color: #d9541d;
}

.button-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

#scaled-recipe {
  display: none;
  margin-top: 40px;
}

footer {
  text-align: center;
  font-size: 14px;
  color: #6c757d;
  padding: 20px 0;
  border-top: 1px solid #E0E0E0;
}

/* How to Use Image Styling */
#how-to-use {
  text-align: center;
  margin-top: 40px;
}

.how-to-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.note {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 20px;
}

/* Measurement System Styling */
.measurement-system {
  margin-bottom: 20px;
}

.measurement-system label {
  margin-right: 20px;
  font-size: 16px;
  font-weight: 500;
}

.measurement-system input[type="radio"] {
  margin-right: 5px;
}

.clear-button-top {
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .container {
    padding: 15px;
  }

  .site-title {
    font-size: 28px;
  }

  .tagline {
    font-size: 20px;
  }

  .btn {
    padding: 12px 16px;
    width: 100%; /* Full width on mobile */
  }

  .button-group {
    flex-direction: column;
    align-items: stretch;
  }

  .button-group .btn {
    margin-bottom: 10px;
  }

  .measurement-system label {
    display: block;
    margin-bottom: 10px;
  }
}
