body {
  font-family: sans-serif;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
  background-color: #f9f9f9;
  color: #333;
  box-sizing: border-box;
}

h1 {
  text-align: center;
}

canvas{
  min-height: 300px;
}

.tac {
  text-align: center;
}
.notes {
  background-color: lightgrey;
  padding: 15px;
  border-radius: 3px;
  margin: 30px 0;
}

/* BEGIN, range control rotation */
#rightInputs, #leftInputs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1px;
  justify-content: space-evenly;
}

.input-group, .input-group-right {
  display: flex;
  padding: 5px;
  border-radius: 5px;
  height: 300px;
  box-sizing: border-box;
}

.frequency, .value {
  text-align: center;
  background-color: white;
  font-size: 12px;
  border-radius: 3px;
  writing-mode: sideways-lr;
  padding: 3px;
}

.frequency {
  min-height: 50px;
}

.value {
  min-height: 25px;
}

.slider{
  writing-mode: vertical-lr;
  direction: rtl;
  vertical-align: middle;
}

label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
}
/* END, range control rotation */

.input-group {
  background-color: rgba(0, 0, 255, 0.8);
}

.input-group-right {
  background-color: rgba(255, 0, 0, 0.8);
}

/* BEGIN, calculate button */
#calculateButton {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  max-width: 400px;
}

#calculateButton:hover {
  background-color: #45a049;
}
/* END, calculate button */

@media (max-width: 419px) {
  #rightInputs, #leftInputs {
    justify-content: center;
  }
  .input-group, .input-group-righ{
    width:32px;
  }
}

