main {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
main h1 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}
.vert-container, .button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.button-wrapper {
    text-decoration: none;
    display: flex;
}
button, select {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px;
    background-color: #e8e8e8;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}
.select {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}
select {
    display: inherit;
    width: auto;
}

button:hover {
    background-color: #d4d4d4;
    transform: scale(1.02);
}
.button-text {
    text-align: left;
    flex-grow: 1;
}
.arrow {
    font-size: 20px;
}
.back-button {
    padding: 8px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.back-button-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
}
.back-button-container a {
    text-decoration: none;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
  }
  .input {
    padding: 10px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ddd;
    width: 100%;
    max-width: 320px;
  }
.steps-container {
    display: none;
    margin-top: 20px;
  }
  .steps-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  .steps-list {
    list-style-type: none;
    padding: 0;
  }
  .step {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
  }
  .result-container {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background-color: #e8e8e8;
    border-radius: 4px;
  }
  .result-label {
    font-weight: bold;
    margin-right: 10px;
  }
          .result-container {
            width: 90%;
            margin-top: 20px;
            background-color: #e5e5e5;
            border-radius: 8px;
            padding: 15px;
          }
          .result-steps {
            background-color: white;
            border-radius: 6px;
            padding: 10px;
            margin-bottom: 15px;
            max-height: 200px;
            overflow-y: auto;
          }
          .result-output {
            background-color: white;
            border-radius: 6px;
            padding: 10px;
          }


.fp-container {
      width: 100%;
      max-width: 1300px;
      background-color: #f1f1f1;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    .fp-header {
      font-size: 24px;
      font-weight: bold;
      margin-bottom: 20px;
      text-align: center;
    }
    
    .fp-gridContainer {
      display: grid;
      grid-template-columns: 220px 1fr 2fr 4fr; // 4 columns, more width for exponent/mantissa
      row-gap: 10px;
      align-items: center;
      margin-bottom: 20px;
    }
    .fp-sectionLabel {
      font-weight: bold;
      margin-bottom: 4px;
    }
    
    .fp-signSection {
      background-color: #e0e0f0;
      text-align: center;
      padding: 10px;
      display: flex;
      justify-content: center;
      white-space: nowrap;
      overflow-X: auto;
    }
    .fp-exponentSection {
      background-color: #d0f0d0;
      text-align: center;
      padding: 10px;
      display: flex;
      justify-content: center;
      white-space: nowrap;
      overflow-X: auto;
    }
    .fp-mantissaSection {
      background-color: #f0e0d0;
      text-align: center;
      padding: 10px;
      display: flex;
      justify-content: center;
      white-space: nowrap;
      overflow-X: auto;
    }
    .fp-inputLabel {
      text-align: left;
      font-weight: bold;
      padding: 5px;
    }
    .fp-valueCell {
      text-align: center;
      padding: 10px;
    }
    .fp-binaryCell {
      border: 1px solid #ccc;
      width: 20px;
      height: 20px;
      margin: 0 1px;
      background-color: white;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .fp-inputContainer {
      margin: 15px 0;
      display: flex;
      align-items: center;
    }
    .fp-inputField {
      flex: 1;
      padding: 8px;
      border: 1px solid #ddd;
      border-radius: 4px;
    }
    .fp-readonlyField {
      flex: 1;
      padding: 8px;
      border: 1px solid #ddd;
      border-radius: 4px;
      background-color: lightgrey;
    }
    .fp-buttonContainer {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 10px;
    }
    .fp-button {
      padding: 8px 16px;
      background-color: #e8e8e8;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-weight: bold;
    }
    .fp-numericButton {
      width: 40px;
      height: 40px;
      font-size: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: #e8e8e8;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-weight: bold;
    }
