/* Add CSS styles for the page layout */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
}

h1 {
  margin: 30px 20px;
  font-size: 36px;
  color: #222;
  text-align: center;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

ul {
  word-wrap: break-word;
  max-width: 80ch;
}

/* Add CSS styles for the form and input fields  */
form {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f5f5f5;
}

label {
  display: inline-block;
  width: 150px;
  margin: 10px 0;
  font-weight: bold;
}

input[type="number"] {
  width: 100px;
  padding: 5px;
  margin: 10px 0;
  border: none;
  border-radius: 3px;
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
  -moz-appearance:textfield; /* Firefox */
}

input[type="number"]:focus {
  outline: none;
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.4);
}

input[type="submit"] {
  padding: 10px 20px;
  margin-top: 20px;
  border: none;
  border-radius: 3px;
  background-color: #4285f4;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #3c78d8;
}

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

/* Add CSS styles for the ideal teapot fill range result cell */
#idealFillRangeCell {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f5f5f5;
  font-weight: bold;
}

/* Add CSS styles for the result cell */
#resultCell {
  margin: 20px 0;
  padding: 20px;
  border-radius: 5px;
  font-size: 24px;
  text-align: center;
}

/* Add CSS styles for the explanatory sections */
section {
  max-width: 840px;
  margin: 0 auto;
}

.collapsible {
  position: relative;
  padding-left: 20px; /* add some padding to the left of the heading */
  cursor: pointer;
}

.collapsible::after {
  content: '+';
  position: relative;
}

.collapsible.active::after {
  content: '-';
}

.active {
  display: block;
}

aside {
  display: none;
  padding-left: 20px;
  padding-right: 10px
}

.grey,
#grey-explanation {
  background-color: #a5a5a5;
  color: #fff;
  font-weight: bold;
}

.red,
#red-explanation {
  background-color: #ffc7ce;
  color: #9c0006;
  font-weight: bold;
}

.yellow,
#yellow-explanation {
  background-color: #ffeb9c;
  color: #9c6500;
  font-weight: bold;
}

.green,
#green-explanation {
  background-color: #c6efce;
  color: #006100;
  font-weight: bold;
}
