/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.container-rows {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
}

.container-columns {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 10pt;
}

.separate_stash_left_block {
    margin-right: -5pt;
}


.text_labels {
    -webkit-hyphens: none;
    -moz-hyphens: none;
    hyphens: none;
    white-space: nowrap;
    font-size: 16pt;
    padding: 3;
}

.calculator_input {
    font-size: 16pt;
    font-family: Roboto, sans-serif;
    width: 10ch;
    text-align: right;
    border: solid black 1px;
}

.input_div {
    height: 30pt;
    min-height: 30pt;
    vertical-align: middle;
}

.result_block {
    margin-top: 0pt;
}


.result_field {
    display: block;
    height: 24pt;
    min-height: 24pt;
}

/* https://www.w3schools.com/howto/howto_css_hide_arrow_number.asp */
/* Chrome, Safari, Edge, Opera */
.calculator_input::-webkit-outer-spin-button,
.calculator_input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

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

.case_title {
    height: 60pt;
    min-height: 25pt;
    min-width: 1px;
    font-size: 16pt;
    display: flex;
    flex-direction: column;
    align-content: flex-end;
    justify-content: center;
}

.labeled_switch {
    display: flex;
    align-content: center;
    flex-direction: row;
    justify-content: center;

}

.switch_label {
    margin-left: 5px;
}


.small_case_title {
    font-size: 12pt;
}

.result_field {
    height: 20pt;
    font-size: 16pt;
}

.title_item {
    min-height: 30pt;
    height: 30pt;
    vertical-align: middle;
}

.better_result {
    color: green;
}

.worse_result {
    color: red;
}
