* {
  font-family: "noto sans";
}

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  position: relative;
  height: 100%;
  text-align: center;
}

textarea {
  width: calc(100% - 20px);
  margin-top: 10px;
}

button, div:has(> input[type="radio"]) {
  min-width: 50px;
  min-height: 50px;
  margin: 5px;
  color: black;
  border-radius: 0;
  border: 1px solid lightgrey;
  background-color: #aaa;
}

input[type=radio] {
  display: none;
}

div:has(> input[type=radio]:checked) {
  background: blue;
}

button:hover {
  border: 1px solid grey;
}

button, div:has(> label) {
  text-align: center;
  align-items: center;
  justify-content: center;
}

div:has(> label) {
  display: block flex;
}

button {
  display: inline-flex;
  width: calc(100% - 10px);
  font-size: inherit;
}

.seperator {
  height: 0;
  width: calc(100% - 10px);
  margin: 10px 5px;
  border: 1px solid black;
}

.section {
  display: none;
}

#game_over {
  position: absolute;
  bottom: 0px;
  width: 80%;
  height: 70px;
  left: 50%;
  translate: calc(-50% - 5px) 0;
  background-color: #cf3f3f;
  font-size: 2rem;
  display: none;
}

#submit_data, #show_data {
  display: none;
}

#redo {
  display: none;
}

.harmony, .climb {
  display: none;
}

#start {
  position: absolute;
  width: 250px;
  height: 60px;
  bottom: 0px;
  left: 50%;
  transform: translate(-50%, 0);
  margin: auto;
  border-radius: 0;
  border: 0;
  background-color: #cf3f3f;
  font-size: 2rem;
  color: black;
}

#one_eight_buttons {
  display: flex;
  justify-content: space-evenly;
  height: fit-content;
  position: relative;
  margin-bottom: 40px;
}

#climbing {
  display: none;
}

#one_eight_buttons > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: end;
}

#one_eight_buttons > div:first-child > button {
  --translate: 0 calc(200% + 20px);
}

body[data-blue] #one_eight_buttons {
  flex-direction: row-reverse;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type=number] {
    -moz-appearance:textfield; /* Firefox */
}

body[data-section="-1"] > #startup {
  display: block;
}

body[data-section="-1"] > #constant {
  display: none;
}

body[data-section="0"] > #auton, body[data-section="0"] > .proceed {
  display: block;
}

body[data-section="1"] > #teleop {
  display: block;
}

body[data-section="2"] > #climb {
  display: block;
}

body[data-section="3"] > #auton_deposit {
  display: block;
}

body[data-section="4"] > #teleop_deposit {
  display: block;
}

body[data-section="5"] > #final {
  display: block;
}

body[data-section="6"] > #teleop_fail {
  display: block;
}
