﻿body {
    font-family: NexusSansCompPro, Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #505050;
}

@font-face {
    font-family: 'ArialNarrow';
    src: url('../fonts/ArialNarrowRegular.woff') format('woff');
}

form {
    padding: 0 30px;
    box-sizing: unset;
}

.action-button {
    background-color: #007398;
    margin: 4px;
    padding: 7px 12px;
    color: #fff;
    outline: 0;
    border: 0;
    font-weight: normal;
    font-size: 20px;
    line-height: 28px;
}

    .action-button:hover, .action-button:focus {
        background-color: rgb(233, 113, 28);
    }

table.calc-desc {
    float: left;
    margin-bottom: 20px;
}

.video-area {
    width: 400px;
    float: left;
}

    .video-area span {
        padding-bottom: 10px;
        font-size: 18px;
        font-weight: bold;
        color: #323232;
        text-transform: uppercase;
        display: block;
    }

    .video-area video {
        width: 350px;
    }

td {
    text-align: left;
}

td, th {
    padding: 7px 14px;
}

table {
    border-collapse: collapse;
}

#resultTable {
    margin-bottom: 30px;
}

    #resultTable tbody tr:nth-child(odd) {
        background-color: #eef4f7;
    }

thead tr th {
    border-bottom: solid 1px #4a4a4a;
}

.table-output {
    padding: 5px;
}

th.outputTableH2 {
    background-color: white;
    padding-left: 10px;
}

th span {
    display: block;
    font-weight: normal;
    cursor: pointer;
}

.last-input-result {
    border-right: solid 1px #4a4a4a;
}

.unit {
    margin-left: 5px;
}

.input .interact .unit, .output .interact .unit {
    color: #007398;
}

.title {
    margin-bottom: 2px;
    font-size: 14px;
    line-height: 22px;
    color: #007398;
}

.interact {
    margin-bottom: 10px;
}

.input .interact * {
    color: #323232;
    font-size: 20px;
    border: 0;
    outline: 0;
    margin: 2px 15px 3px 0;
    padding: 4px 0;
    background-color: transparent;
    vertical-align: baseline;
}

.input .interact select {
    color: #007398;
}

.input, .output, .options {
    display: inline-block;
    padding: 0;
    margin-bottom: 0;
}

.input, .output {
    padding: 5px;
    margin-bottom: 5px;
}

.input {
    background-color: #f0f0f0;
    display: inline-block;
    padding: 10px;
}

#errorMsg {
    color: red;
}

table select {
    border: 0;
    outline: 0;
}

.calc-msg {
    font-size: 14px;
    border: solid 2px #c83727;
    padding: 20px;
    margin: 15px 0;
    display: inline-block;
}

    .calc-msg span {
        display: block;
    }

#bmp {
    border: solid 1px #000;
    vertical-align: top;
    margin: 30px;
}

.title-container {
    position: relative;
}

.radio-container {
    display: inline-block;
}

hr {
    display: none;
}

a {
    text-decoration: none;
}

#infoAnchor {
    background-image: url('../Images/info.svg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 24px 24px;
    padding-left: 30px;
    line-height: 24px;
    font-size: 16px;
    color: #007398;
    margin-top: 40px;
    float: right;
}

h1 {
    font-weight: normal;
    font-size: 36px;
    line-height: 48px;
    margin-bottom: 0;
    float: left;
}

    h1 a {
        color: #505050;
    }

h2 {
    text-transform: uppercase;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #323232;
    margin-top: 30px
}

#selectCalcText {
    display: none;
}

#availableCalcsSelect {
    display: none;
    border: 0;
    outline: 0;
    margin: -1px 0 0 -10px;
}

.option-title {
    font-size: 20px;
}

.calc-list {
    list-style: none;
    margin: 0 0 0 -10px;
    padding: 0;
}

    .calc-list li {
        font-family: ArialNarrow;
        font-size: 16px;
        line-height: 20px;
        width: 124px;
        height: 90px;
        box-shadow: 1px 1px 1px 0 rgba(0,0,0,0.5);
        border: solid 1px #cccacc;
        background-color: #fcfcfc;
        vertical-align: top;
        display: inline-table;
        margin: 10px;
        padding: 5px 2px;
        color: #007398;
        cursor: pointer;
        box-sizing: border-box;
    }

        .calc-list li:hover {
            background-color: #ff6c00;
            color: #ffffff;
        }

        .calc-list li.calc-selected-item {
            color: #ffffff;
            box-shadow: none;
            border: 1px solid #fff;
            background-color: #ff6c00;
            background-image: url('../Images/arrow-top.svg');
            background-repeat: no-repeat;
            background-position: center 101%;
        }

        .calc-list li a {
            color: inherit;
            display: table-cell;
            text-align: center;
            vertical-align: middle;
        }

            .calc-list li a:focus {
                outline: 3px solid #ff6c00;
            }

.input .interact input, .input .interact select {
    border-bottom: solid 2px #dcdcdc;
}

.calc-desc {
    color: #323232;
    font-size: 16px;
    line-height: 24px;
    background-color: transparent;
    border-collapse: collapse;
}

    .calc-desc td {
        padding: 0 80px 0 40px;
    }

/* radio */
.calc-radio {
    position: absolute;
    z-index: -1;
    opacity: 0;
    margin: 10px 0 0 7px;
}

.input .interact .calc-radio + label {
    position: relative;
    padding: 0 0 0 35px;
    cursor: pointer;
}

.calc-radio + label:before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 22px;
    height: 22px;
    border: 1px solid #b9b9b9;
    border-radius: 50%;
    background-color: transparent;
    box-sizing: unset;
}

.calc-radio + label:after {
    content: '';
    position: absolute;
    top: 5px;
    left: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e9711c;
    opacity: 0;
    transition: .2s;
    box-sizing: unset;
}

.calc-radio:checked + label:after {
    opacity: 1;
}
/* end radio */

.size-large {
    display: inline-block;
}

.size-small {
    display: none;
}

.section-delimiter {
    clear: both;
}

#app .dialog-box-layer {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: none;
    background-image: url('../Images/dialog_layer2.png');
}

    #app .dialog-box-layer div {
        width: 100%;
        height: 100%;
        background-image: url('../Images/loading_gray.gif');
        background-position: center center;
        background-repeat: no-repeat;
    }


@media (max-width: 960px) {

    .section-delimiter {
        border-bottom: solid 1px #9b9b9b;
    }

    .size-large {
        display: none;
    }

    .size-small {
        display: inline-block;
    }

    h1 {
        margin-bottom: 20px;
    }

    h2 {
        font-size: 18px;
    }

        h2#selectCalcText {
            text-transform: none;
            font-size: 16px;
            margin-top: 15px;
            display: block;
        }

    .calc-list li, #availableCalcsSelect {
        font-family: NexusSansCompPro, Helvetica, Arial, sans-serif;
        font-size: 16px;
        line-height: 20px;
        color: #007398;
        width: auto;
        height: auto;
        box-shadow: none;
        border: 0;
        background: none;
        vertical-align: middle;
        line-height: 16px;
        padding: 5px;
    }

    .calc-list li {
        display: block;
        margin: 0;
    }

        .calc-list li:hover {
            background: none;
            color: #ff6c00;
        }

        .calc-list li.calc-selected-item {
            color: #ff6c00;
            box-shadow: none;
            border: none;
            background: none;
        }

        .calc-list li a {
            display: inline;
            text-align: left;
            vertical-align: middle;
        }

    #selectCalcText {
        float: left;
    }

    #availableCalcsSelect {
        border-bottom: solid 2px #dcdcdc;
        display: inline;
    }

    div.options {
        margin: 10px 15px;
    }

    .calc-desc td {
        padding: 0 80px 0 0;
    }

    #infoAnchor {
        display: none;
    }

    .video-area, .video-area video {
        width: 100%;
    }
}


@media (max-width: 600px) {
    #outputRange {
        width: calc(100vw - 60px);
        overflow-x: auto;
        display: inline-block;
    }

    .page-content {
        left: auto !important;
        width: auto !important;
    }
}


@media (max-width: 320px) {
    #outputRange {
        width: auto;
    }

    .page-content {
        overflow: auto !important;
    }
}
