body {
  font-family: 'Inknut Antiqua', sans-serif;
  background-color: #1f2b5a;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  position: relative;
  font-size: 16px; /* Base font size for consistency */
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2473ff;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  height: 113px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
}

.logo span {
  color: lightblue;
}

nav ul li a.logout {
  text-decoration: none;
  color: white;
  background-color: #ff5b5b;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

.content {
  display: flex;
  justify-content: space-between;
  width: 90%;
  margin-top: 20px;
  gap: 20px;
}

.modal, .search-container, .macro-tracker {
  width: 33%;
  padding: 20px;
  background: #f4f4f4;
  border-radius: 10px;
  height: fit-content;
  font-size: 16px; /* Consistent font size for all text in sections */
}

.modal h2, .search-container h3, .macro-tracker h2 {
  font-size: 16px; 
  margin-bottom: 30px;
}

.input-group {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.input-group label {
  flex: 1;
  font-size: 16px; /* Explicit font size for labels */
}

.input-group input, .input-group select {
  height: 25px;
  padding: 5px;
  font-size: 16px; /* Match other text */
}

.search-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.search-box-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#combined-search-bar {
  width: 100%;
  padding: 15px;
  font-size: 16px; /* Adjusted to match other text */
  background-color: #f4f4f4;
  margin: 20px 0 10px;
  border-radius: 8px;
  border: 2px solid #2473ff;
  box-sizing: border-box;
}

.food-result {
  background: #fff;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
  padding: 15px;
  margin-bottom: 10px;
  font-size: 16px; /* Consistent font size for search results */
}

.food-result em {
  display: block;
  margin-top: 10px;
}

.food-result .nutrition, .food-result .analysis {
  margin-bottom: 15px;
}

p { 
  color: #f4f4f4;
  font-size: 16px; /* Ensure paragraphs match */
}

#combined-results {
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.submit-btn, .add-macros-btn {
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #2473ff;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px; /* Match button text */
}

#metric, #goal {
  height: 38px;
  padding: 5px;
  font-size: 16px; /* Ensure selects match */
}

.macro-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.macro-table th, .macro-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  font-size: 16px; /* Consistent font size for table */
}

.macro-table th {
  background-color: #2473ff;
  color: white;
}

.macro-table tr:nth-child(even) {
  background-color: #f2f2f2;
}
