h1 {
    text-align: center;
}

h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 1em;
}

h3 {
    font-size: 1.5em;
}


input:disabled {
    background-color: lightgrey;
}


input[type='number'] {
    width: 10px;
    color: blue;
}

.input_div {
    margin-bottom: 1em;
}

.output_div {
    margin-bottom: 1em;
}

.input_div input {
    height: 2em;
    width: 10em;
}

.text_input {
    width: 3em;
    background-color: red;
}

.message {
    color: red;
}

.input_div label {
    width: 15em;
}

.rate_options {
    padding: 1em;
    padding-bottom: 2em;
}

.area_options {
    padding: 1em;
    padding-bottom: 2em;
}

.chemical_options {
    padding: 1em;
    padding-bottom: 2em;
}

.chemicals {
    border: solid black 2px;
    margin-bottom: 1em;
}

.chemical_div1 {
    padding: 1em;
}

.chemical_div2 {
    padding: 1em;
}

.chemical_input_div {
    margin-bottom: .5em;
}

.chemical_input_div label {
    width: 4em;
}

.chemical_input_div input {
    width: 4em;
}

.measurement_select {
    height: 2em;
}

.chemical_output_div {
    margin-bottom: .5em;
}

.unknown_for_rate_radio {
    margin-bottom: 2em;
}

.unknown_for_rate_radio p {
    display: inline;
    margin-right: 2em;
}

.submit_div {
    padding: 1em;
}


button {
    appearance: none;
    background-color: #FAFBFC;
    border: 1px solid rgba(27, 31, 35, 0.15);
    border-radius: 6px;
    box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
    box-sizing: border-box;
    color: #24292E;
    cursor: pointer;
    display: inline-block;
    font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    list-style: none;
    padding: 6px 16px;
    position: relative;
    transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: middle;
    white-space: nowrap;
    word-wrap: break-word;
}

button:hover {
    background-color: #F3F4F6;
    text-decoration: none;
    transition-duration: 0.1s;
}

button:disabled {
    background-color: #FAFBFC;
    border-color: rgba(27, 31, 35, 0.15);
    color: #959DA5;
    cursor: default;
}

button:active {
    background-color: #EDEFF2;
    box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
    transition: none 0s;
}

button:focus {
    outline: 1px transparent;
}

button:before {
    display: none;
}

button:-webkit-details-marker {
    display: none;
}

.tip-icon {
    width: 1em;
    height: 1em;
    background: #558855;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: .8em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tip-icon:hover {
    background: #336633;
}

.tip-container {
    position: relative;
    display: inline-block;
}

.tip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    width: 20em;
}

.tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.input-tip-container:hover .tip {
    opacity: 1;
    visibility: visible;
}

.tip-container:hover .tip {
    opacity: 1;
    visibility: visible;
}
