:root {
  --ruler-height: 50;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 10px;
  text-align: left;
}

h2 {
  text-align: left;
}

.scale-wrapper {
  position: relative;
  overflow-x: auto;
  white-space: nowrap;
  box-sizing: border-box;
  height: calc(var(--ruler-height) * 5px);;
}

.scale-container {
  position: relative;
  border: 1px solid #ccc;
  display: flex;
  align-items: flex-end; /* For the upper scale */
}

.brushed-metal {
  width: 100px;
  font-size: 4em;
  height: 80px;
  border-radius: .2em;
  background-image:      linear-gradient(to right, hsla(0, 0%, 100%, 0), hsla(0, 0%, 100%, 0.1)),
    linear-gradient(to right, hsla(0, 0%, 0%, 0), hsla(0, 0%, 0%, 0.03)),
    linear-gradient(180deg, hsl(0, 0%, 78%) 0%, hsl(0, 0%, 90%) 50%, hsl(0, 0%, 78%) 53%, hsl(0, 0%, 70%) 100%);
}

#scale-upper {
  height: calc(var(--ruler-height) * 2px);
  width: 1000px;
}

#scale-lower {
  position: absolute;
  width: 990px; /* Lower scale is narrower */
  height: calc(var(--ruler-height) * 1px);
  align-items: flex-start; /* Flip markings to the top */
}

.marking {
  position: absolute;
  background: black;
  width: 1px;
}

.marking.long {
  height: 30px;
}

.marking.medium {
  height: 20px;
}

.marking.short {
  height: 10px;
}

.label {
  position: absolute;
  font-size: 12px;
}

.label-top {
  bottom: 35px;
}

.label-bottom {
  top: 25px;
}

.label-bottom-zero {
  color: red;
  font-weight: bold;
}

.marking-bottom-zero {
  background: red;
  font-weight: bold;

}

.control-panel {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.control-panel button {
    font-size: 24px;
    padding: 5px 10px;
    cursor: pointer;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.control-panel button:hover {
    background-color: #0056b3;
}

.inputs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.inputs input {
    width: 100px;
    padding: 5px;
    font-size: 18px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.inputs input:focus {
    outline: none;
    border-color: #007BFF;
    background-color: #fff;
}
.how-to-read {
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  overflow: hidden;
  max-height: 0;
  padding: 0;
  margin-top: 20px;
  text-align: left;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
}
.how-to-read.expanded {
    max-height: 1000px; /* Set to a large enough value to accommodate content */
    padding: 1rem;
}
.how-to-read h2 {
  margin-top: 0;
  font-size: 1.5em;
  color: #333;
}
.how-to-read p {
  margin: 10px 0;
  line-height: 1.6;
}
.how-to-read ol {
  padding-left: 20px;
}
.how-to-read li {
  margin: 5px 0;
}
li {
  line-height: 1.5em;
}
.bold-red {
  color: red;
  font-weight: bold;  
}
.triangle {
    display: inline-block;
    cursor: pointer;
    font-size: 1.2rem; /* Adjust size as needed */
    margin-right: 8px; /* Add space between the triangle and text */
    transition: transform 0.3s ease; /* Smooth rotation */
}

/* Rotate the triangle when expanded */
.triangle.expanded {
    transform: rotate(90deg); /* Rotate to the right */
}
.step-by-step {
  margin-top: 5px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: left;
}