:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --gap: 12px;
  --pad: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  background: var(--bg);
  color: #111;
}

.top-row {
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding: calc(var(--pad)) calc(var(--pad) * 1.5);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.6)
  );
  backdrop-filter: saturate(120%) blur(6px);
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.08);
}
.brand .title {
  font-weight: 600;
  letter-spacing: 0.2px;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 16px;
}
.btn-link {
  display: inline-block;
  padding: 10px 14px;
  font-size: 0.95rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03);
}
.btn-link:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: white;
}
.btn-ghost {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid rgba(29, 78, 216, 0.08);
}

@media (max-width: 520px) {
  .top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
  }
  .nav-links {
    margin-left: 0;
  }
}

main {
  padding: 28px;
}

/* html {
  background-image: url('slate.jpeg');
  background-size: cover;
  background-color: rgba(255, 255, 255, 0.6);
  background-blend-mode: lighten;
  font-size: 1rem;
} */

body {
  margin: 10px;
  padding: 20px;
  opacity: 0.99;
}

/* h1 {
    font-size: 2.5rem; 
    padding: 10px;
    border-color: rgb(0, 0, 0);
    border-style: solid;
    width: 700px;
   background-color: cadetblue; 
     min-width: 700px;
}
*/

h3 {
  font-size: 1.5rem;
  padding: 10px;
  /* border-color: rgb(0, 0, 0); */
  border-style: none;
  width: 700px;
  /* background-color: cadetblue; */
  min-width: 700px;
}

.my_table {
  table-layout: fixed;
  min-width: 720px;
  font-size: 0.75rem;
  border-color: rgb(200, 200, 200);
  background-color: rgb(220, 220, 220);
  border-style: solid;
}

.userInputs {
  /*height, weight and gender*/
  /*display: inline; */
  margin: 5px;
  font: 0.75rem;
  font-size: 0.75rem;
}

.read_in {
  height: 240px;
  padding: 5px;
}

.weightSelectButton {
  width: 30px;
}

.metrics_table {
  font-size: 0.75rem;
  padding: 0px;
  min-width: 100px;
}

.metrics_table > tr {
  padding: 40px;
}

.metrics_row_header {
  /*font-weight: bold;*/
  width: 100px;
  padding: 5px;
  white-space: normal;
}

.row_header {
  font-weight: bold;
  min-width: 100px;
  padding: 5px;
}

.column_header {
  font-weight: bold;
  background-color: pink;
}

.odd_row {
  background-color: rgb(178, 225, 241);
  padding: 0px;
}

.even_row {
  background-color: rgb(208, 231, 244);
  padding: 0px;
}

td {
  text-align: center;
}

.row1 {
  display: flex;
  justify-content: space-between;
  /* Distribute items equally with space between them */
  width: 100%;
  max-width: 720px;
  min-width: 720px;
}

.row1 > div {
  /* max-width: 250px; */
  flex: 2;
  /*grow*/
  padding: 0px;
}

canvas {
  display: block;
}

.weightSelectButton {
  border-radius: 8px;
}

.genderSelectButton {
  width: 30px;
  border-radius: 4px;
}
.genderSelectButtonHighlighted {
  background-color: rgb(248, 140, 140);
}

.tableA {
  display: grid;
  padding: 0px;
  /* margin: 5px; */
  border-color: rgb(220, 220, 220);
  background-color: rgb(178, 255, 241);
  min-width: 200px;
}

.row2 {
  display: grid;
  max-width: 720px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.row3 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.output_box {
  border: 2px;
  border-style: solid;
  border-color: black;
  background-color: rgb(178, 225, 241);
  width: 700px;
}

/*used for feed column selection */
.selected {
  background-color: rgba(255, 242, 4, 0.84);
}

/*used for male/female button highlighting, assigned in sketch.js*/
.highlight {
  background-color: rgb(248, 140, 140);
  /* border-radius: 8px; */
}

#disclaimer {
  max-width: 700px;
  font-size: 0.5rem;
  text-align: justify;
}

#dailyEnergyBox,
#dailyProteinBox {
  font-size: x-large;
}
