:root {
  --cor-texto: #ffffff;
  --padding-padrao: 10px;
  --list-width: 755px;
  --min-width: 750px;
  --line-heigth: 50px;
}

* {
  font-family: 'Segoe UI', 'Trebuchet MS', Arial, sans-serif;
}

body {
  margin: 0 5px;
  padding: 10px;
  color: #666;
  font-size: 75%;
}

h1,
h2,
h3 {
  font-weight: bold;
  color: black;
  margin: 23px 0;
}

h1 {
  font-size: 4.5em;
  line-height: 36pt;
  letter-spacing: -3px;
  margin: 16px 0 0 5px;
  max-width: 560px;
}

h2 {
  letter-spacing: -1px;
  font-size: 27px;
}

h3 {
  letter-spacing: 0px;
  font-size: 21px;
}

div.divider {
  max-width: 900px;
}

div.corpo {
  max-width: 675px;
  float: left;
  margin: 0 5px;
  font-size: 1.4em;
  line-height: 1.4em;
  text-align: left;
}

div.bar {
  max-width: 300px;
  float: right;
  padding: 0;
  margin-right: 5px;
  font-size: 0.8em;
  line-height: 1.3em;
  text-align: left;
}

div.ad300x250r {
  float: right;
  padding-left: 10px;
}

div.ad300x250l {
  float: left;
  padding-right: 10px;
  min-width: 300px;
}

a {
  color: #00d;
  text-decoration: underline;
}

a:hover {
  color: #0080ff;
}

.submit {
  height: 30px;
  width: 130px;
  font-size: 1.2em;
  font-weight: bold;
}

img {
  border: 0;
}

#totalcal,
#totalProteinas,
#totalCarboidratos,
#totalGorduras {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 14px;
  text-align: center;
  font-weight: bold;
  color: #cc0000;
  width: 150px;
  height: 20px;
}

.mt20 {
  margin-top: 20px;
}
.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

@media screen and (min-width: 531px) {
  /* #escolha { height: 248px; } */
}

@media screen and (max-width: 920px) {
  div.bar,
  div.corpo,
  h1 {
    float: none;
    margin: 0 auto;
    width: 98%;
    padding: 0;
  }
  div.bar {
    text-align: center;
  }
}

.bold {
  font-weight: bold;
}
p {
  margin: 18px 0;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background-color: #1d3557;
  color: #ffffff;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.top-bar__brand {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.top-bar__nav {
  display: flex;
  gap: 12px;
}

.top-bar__link {
  color: #ffffff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.top-bar__link:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.top-bar__link.active {
  background-color: rgba(255, 255, 255, 0.25);
}

.history-day__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.history-day__header h3 {
  margin: 0;
  color: #1d3557;
  font-size: 1.2rem;
}

.history-day__totals {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.history-day__totals .result-item {
  text-align: center;
  color: #666;
}

.history-day__totals .result-item p {
  margin: 0;
  font-weight: bold;
  color: #333;
  font-size: 0.85rem;
}

.history-day__totals .result-item div {
  color: #cc0000;
  font-weight: bold;
  font-size: 0.9rem;
}

@media (max-width: 540px) {
  .history-day__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.history-day {
  padding-bottom: 24px;
  margin-bottom: 30px;
  border-bottom: 1px solid #ddd;
}

.history-day:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
