body {
  font-family: Arial, sans-serif;
  padding: 2rem;
  background: #f4f4f4;
  color: #333;
}
h1 {
  color: #245D38;
}
label {
  display: block;
  margin-top: 1.5rem;
  font-weight: bold;
}
.input-group {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
  position: relative;
}
.input-group input[type="number"] {
  width: 80px;
  margin-left: 1rem;
}
.input-group input[type="range"] {
  flex: 1;
  margin-left: 1rem;
}
.input-group output {
  position: absolute;
  top: 1.8em;
  left: 0;
  /*transform: translateX(-50%);*/
  background: #245D38;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
}
.result {
  margin-top: 2rem;
}
button {
  margin-top: 2rem;
  padding: 0.5rem 1rem;
  background: #B22028;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}
button:hover {
  background: #911a21;
}
.paired-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.pair {
  display: grid;
  grid-template-columns: 3fr 0.5fr 0.5fr 3fr;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid #ccc;
  padding: 0.75rem 1rem;
  border-radius: 5px;
}
.pair .label {
  font-weight: bold;
  color: #245D38;
}
.pair .value {
  text-align: right;
}
.pair .units {
  font-weight: normal;
  text-align: left;
  color: #333;
}
.pair .equation {
  font-family: "MathJax_Main", "serif";
  /*font-size: 0.95rem;*/
  font-size: 1.2rem;
  text-align: right;
}
.tabs {
  display: flex;
  border-bottom: 2px solid #ccc;
  margin-bottom: 1rem;
}
.tab-btn {
  padding: 0.5rem 1rem;
  border: none;
  background-color: #5D1115;
  cursor: pointer;
  font-weight: bold;
  margin-right: 0.25rem;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
.tab-btn.active {
  background-color: #B22028;
  border-bottom: 2px solid #fff;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.sidebar {
  margin: 0;
  padding: 0;
  width: 400px;
  background-color: #f1f1f1;
  position: fixed;
  height: 100%;
  overflow: auto;
}

.sidebar a {
  display: block;
  color: black;
  padding: 16px;
  text-decoration: none;
}
 
.sidebar a.active {
  background-color: #04AA6D;
  color: white;
}

.sidebar a:hover:not(.active) {
  background-color: #555;
  color: white;
}

div.content {
  margin-left: 400px;
  padding: 1px 16px;
  /*height: 1000px;*/
}

@media screen and (max-width: 700px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .sidebar a {float: left;}
  div.content {margin-left: 0;}
}

@media screen and (max-width: 400px) {
  .sidebar a {
    text-align: center;
    float: none;
  }
}