body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

header {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

#main-container {
  
}

main {
  display: flex;
  justify-content: center;
  padding: 20px;
  flex-direction: column; /* Default to column layout */
}

/* Estilos para telas maiores (a partir de 769px de largura) */
@media (min-width: 769px) {
  main {
    flex-direction: row; /* Change to row layout on larger screens */
  }

  .section {
    width: 45%; /* Adjust width for larger screens */
    margin: 0 10px; /* Adjust margins for larger screens */
  }


}

/* Estilos para telas menores (até 768px de largura) */
@media (max-width: 768px) {
  .section {
    width: 95%; /* Adjust width for smaller screens */
    margin: 10px 0; /* Adjust margins for smaller screens */
  }

  input[type="number"] {
    width: 100%; /* Adjust input width for smaller screens */
  }

  button {
    width: 100%; /* Adjust button width for smaller screens */
  }

}

.section {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
  color: #333;
}

input[type="number"] {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100px;
}

button {
  background-color: #5cb85c;
  color: #fff;
  border: none;
  padding: 10px 15px;
  margin-top: 10px;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #4cae4c;
}

.meal, .frequent-meal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.meal-name {
  flex: 1; /* Allow the name column to take up available space */
}

.meal-calories {
  /* Adjust width as needed to align calories */
  width: 80px; 
  text-align: right; /* Align calories to the right */
}

.remove-meal, .remove-frequent-meal, .copy-meal {
  border: none;
  padding: 5px 10px;
  margin-left: 10px;
  border-radius: 4px;
  cursor: pointer;
  width: 40px;
  
}

.remove-meal, .remove-frequent-meal {
  background-color: #d9534f;
  border: none;
  padding: 5px 10px;
  margin-left: 10px;
  border-radius: 4px;
  cursor: pointer;
  width: 40px;
  
}

.copy-meal {
  background-color: #178cd5c5;
}

.meal-checkbox  {
  margin-right: 10px;;
}

.clear-checks {
  border: none;
  padding: 5px 10px;
  margin-left: 10px;
  border-radius: 4px;
  cursor: pointer;
  width: 40px;
  background-color:darkorange;
}

.meal-info {
  flex-grow: 1; /* Allows meal-info to take up available space */
}

.button-container {
  padding-left: 20px;
  white-space: nowrap; /* Prevents buttons from wrapping to the next line */
}


/* Estilos para o popup */
.popup {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 30%;
}

.close-popup {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-popup:hover,
.close-popup:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#balance {
  font-size: 40px;
  font-weight: bold;
  color: #28a745; /* Verde */
  margin-top: 15px;
  margin-bottom: 15px;
}

#max-calories, 
#burned-calories {
  font-size: 16px; /* Ajuste o tamanho da fonte aqui */
  text-align:right;
}

.input-label {
  font-weight: bold;
  margin-right: 5px; 
  text-align: right;
}

#meals-list  {
  margin-top: 10px; 
}

.parent-container {


}

.input-group {
  display: flex;
  align-items: center; 
  margin-bottom: 10px; 
  flex-direction: row;
  flex-wrap: nowrap;       /* Prevent the input-group from wrapping */ 
  flex-grow: 1; 
}

.input-label {
  font-weight: bold;
  margin-right: 10px;
  flex: 0 0 100px;      /* Label takes up fixed 100px */
  flex-grow: 1; 
  
}

.parent-container .input-label:nth-child(2) {
  justify-content: flex-end;
}

#total-checked{
  margin-left: 50px;
}
