/* **************************************** */
/* Catch all                                */
/* **************************************** */

hr {
    border-color: #95C93D ; /* For Chrome and Safari */
    background-color: #95C93D; /* For Firefox and Opera */
    color: #95C93D; /* For IE */
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
}

/* **************************************** */
/* Base                                     */
/* **************************************** */

.body {
    background-color: #333333;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 16px;
}

/* Force input tags to inherit from body */
input, select, textarea, button {
    font-family: inherit;
}

.header {
}

.footer {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-content: space-around;
    color: white;
    padding: 10px;
    text-align: center;
}

.base-outer-wrapper {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    margin: 0 auto; /* Center */
    background-color: darkgray;
    padding: 10px;
}


.base-inner-wrapper {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: stretch;
    align-items: stretch;
    flex: 1 1 auto;
    background-color:white;
}

.content {
    border-bottom-style: solid;
    border-right-style: solid;
    border-left-style: solid;
    border-width: 1px;
    padding: 10px;
    overflow: auto;
}

.static-inner-wrapper {
    background-color:white;
    border-style: solid;
    border-width: 1px;
    padding: 10px;
}

.footer-link {
    color: white;
}

/* **************************************** */
/* MENU                                     */
/* **************************************** */

.menu-above {
}

.menu-below {
}

.menu-beside {
    display: flex;
    grid-area: mbeside;
    display: none;
    border-width: 1px;
    border-bottom-style: solid;
    border-left-style: solid;
}

.menu-target-mobile {
    display: block;
}

.menu-item-container {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    background-color: #e4e4e4;
    max-height: 121px;
}

.menu-item-link {
    color: black;
    text-decoration: none;
}

.menu-item-button-inactive-box,
.menu-item-button-inactive-box-above,
.menu-item-button-inactive-box-below {
    border-width: 1px;
    border-left-style: solid;
    max-height: 100px;
}

.menu-item-button-inactive-box-above {
    border-top-style: solid;
}

.menu-item-button-inactive-box-below {
    border-bottom-style: solid;
}

.menu-item-button-active-box {
    border-width: 1px;
    border-top-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    max-height: 100px;
}

.menu-item-button {
    background: none!important;
    color: inherit;
    border: none;
    padding: 0!important;
    font: inherit;
    cursor: pointer;
    width: 100px; /* IE fix */
    height: 100px;
    margin: 0px; /* Safari fix */
    overflow: hidden;
}

.menu-item-image {
    height: 100px;
    margin-bottom: -3px; /* Quick fix */
    position: relative;
    top: 0px;
    left: 0px;
}

.menu-item-box-span {
    font-size: 12px;
    font-weight: bold;
    line-height: 100%;
}

.menu-item-text-inactive-box,
.menu-item-text-inactive-box-above,
.menu-item-text-inactive-box-below {
    width: 100%;
    max-height: 100px;
    padding-left:7px;
    background-color: light-gray;
    border-width: 1px;
    /* Vertical center text */
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: center; /* center align horizontal */
    align-items: center; /* center align vertical */
    text-align: center;
}

.menu-item-text-active-box {
    width: 100%;
    max-height: 100px;
    padding-left:7px;
    background-color: white;
    border-top-style: solid;
    border-right-style: solid;
    border-width: 1px;
    font-weight: bold;
    /* Vertical center text */
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: center; /* center align horizontal */
    align-items: center; /* center align vertical */
    text-align: center;

}

.menu-item-text-inactive-box-above {
    border-top-style: solid;
    border-right-style: solid;
}

.menu-item-text-inactive-box-below {
    border-bottom-style: solid;
    border-right-style: solid;
}

.menu-item-embedded-button {
    width: 160px;
    margin: 2px;
}

.menu-item-embedded-header {

}

.menu-item-embedded-paragraph {
    color: Dimgray;
}

.menu-item-embedded-warning {
    color: #d55757;
}

/* **************************************** */
/* CONTENT BOXES                            */
/* **************************************** */

.content-box-outside-bar {
    text-align: center;
}

.content-box-container {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.content-box-container-side-by-side {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.content-box,
.content-box-two-column-single,
.content-box-two-column-dual {
    border-style: solid;
    border-width: 1px;
    border-color: darkgray;
    background-color: #F2F2F2;
    padding: 5px;
    margin: 5px;
}

.content-box-header {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: space-between;
    padding-bottom: 5px;
}

.content-box-header-title {
    line-height: 24px;
    vertical-align: middle;
    margin-left: 2px;
    font-size: 16px;
}

.content-box-header-icon-container {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: row;
}

.content-box-header-div {
    margin-right: 2px;
}

.content-box-header-button {
    background: none!important;
    color: inherit;
    border: none;
    padding: 0!important;
    margin: 0;
    font: inherit;
    cursor: pointer;
}

.content-box-header-button-image, .content-box-header-button-image-wide {
    background-color: white;
    height: 24px;
}

.content-box-header-button-image {
    width: 24px;
}

.content-box-header-button-image-wide {
    width: 64px;
}

.content-box-column-container {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

.content-box-column-input {
    width: 100%;
}

.content-box-right-column {
    width: 100%;
}

.content-box-right-image-container {
    display: none;
    align-items: stretch;
    justify-content: center;
    margin-right: 5px;
    margin-left: 10px;
    margin-bottom: 5px;
}

.content-box-right-image {
    margin-right: 5px;
    margin-left: 5px;
    margin-bottom: 5px;
    padding: 10px;
    border-style: solid;
    border-width: 1px;
    border-color: darkgray;
    background-color: white;
}

.content-box-image {
    width: 100%;
    display: block;
    margin: 0 auto;
    overflow: auto;
    max-width: 100px;
}

.content-box-results-box {
    align-items: center;
    text-align: center;
    margin-right: 5px;
    margin-left: 10px;
    padding: 5px;
    border-style: solid;
    border-width: 1px;
    border-color: darkgray;
    background-color: white;
    color: darkgreen;
}

.content-box-form-table {
    width: 100%;
}

.content-box-form-table-td-description {
    white-space: nowrap;
}

.content-box-form-table-td-unit {
    width: 100%;
    font-size:12px;
}

.content-box-table-title {
    margin-left: -2px;
    margin-top: 8px;
}

.content-box-drop-down {
    width: 100%;
}

.content-box-label {
    font-size: 12px;
}

.content-box-text-box {
    box-sizing: border-box;
    -webkit-box-sizing:border-box;
    -moz-box-sizing: border-box;
    width: 100%;
}

.content-box-text-box-small-number {
    width: 40px;
    text-align: right;
}

.content-box-error-text {
    color: red;
    font-weight: bold;
}

.content-box-insert-button {
    margin: 10px;
}

.content-box-right-info-box-container {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    background-color: white;
    border-width: 1px;
    border-style: solid;
    border-color: darkgray;
    margin-left: 10px;
    margin-right: 5px;
    justify-content: center;
    align-items: center;
}

.content-box-right-info-box-item {
}

.content-box-main-container-separator {
    width: 90%;
    margin-bottom:50px;
    margin-top:25px;
}

/* **************************************** */
/* Specific rules
/* **************************************** */

.small-note {
    font-style:italic;
    font-size: 12px;
    line-height:140%;
    margin-left:10px;
    margin-right:10px
}

.raw-index-container {
    margin-top: 10px;
    margin-left: 17px;
    margin-right: 17px;
    padding-bottom: 10px;
    background-color: white;
    background: white;
    border-style: solid;
    border-color: black;
    border-width: 1px;
}

.index-header {
    font-size: 20px;
}

.index-subheader {
    font-size: 16px;
    line-height:100%
}

.index-text {
    font-size: 16px;
    line-height:170%
}

.index-button-container {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.index-button {
    color: white;
    background-color: rgb(88, 183, 221);
    width: 175px;
    height: 50px;
    line-height: 50px;
    margin: 5px;
    border-style: solid;
    border-width: 1px;
    border-color: black;
    text-align: center;
}

.index-button-link {
    text-decoration: none;
    font-weight: bold;
}

.index-logo-container {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 50px;
}

.index-logo-image-container {
    width: 40%;
    min-width: 200px;
    max-width: 350px;
    margin: 10px;
}

.index-logo-image {
    width: 100%;
}

.bld-dat-address-label-cell {
    width: 120px;
    line-height: 200%;
}

.bld-dat-button-center {
    margin-top: 20px;
    margin-left:20px;
    margin-right:20px;
}

.bld-dat-button {
    width: 170px;
    height: 30px;
}

.win-direction-button, .win-direction-button-selected {
    background: #F2F2F2!important;
    color: inherit;
    border: 1px solid;
    padding: 0!important;
    font: inherit;
    cursor: pointer;
    width: 70px;
	color: darkgray;
	height: 25px;
    font-size: 15px;
    line-height: 23px;
}

.win-direction-button-selected {
    background: rgb(88, 183, 221) !important;
	color: white;
	font-weight: bold;
	border-color: black;
}

.ins-label-cell {
    width: 120px;
}

.res-container {
    display: none;
}

.res-top-header-container {
    margin-top: 20px;
}

.res-top-header {
    display: inline;
    line-height: 50px;
}

.res-top-logo-container {
    position: relative;
    overflow: hidden;
}

.res-top-logo {
    height: 50px;
}

.res-table {
    width: 100%;
}

.res-table-td-numbers {
    text-align: right;
    white-space: nowrap;
}

.res-table-td-nowrap {
    white-space: nowrap;
}

.res-header-right-container {
    float: right;
}

.res-date-line {
    margin-top: 60px;
    margin-bottom: 40px;
    text-align: right;
    display: block;
}

.help-button-image {
    width: 24px;
    height: 24px;
    background-color: white;
}

.help-table {
    width: 600px;
}

.generic-blue-button, .res-be-button, .res-pdf-button {
    background-color: rgb(88, 183, 221)!important;
    color: white;
    border-style: solid;
    border-width: 1px;
    border-color: black;
    padding: 0!important;
    margin: 5px;
    font: inherit;
    cursor: pointer;
    width: 175px;
    height: 50px;
    line-height: 50px;
    text-align: center;
}

.res-be-button {
    display: none;
    width: 200px;
}

.res-pdf-button {
    width: 200px;
}

.generic-show-mobile {
    display: block;
}

.generic-show-desktop {
    display: none;
}

/* **************************************** */
/* DEBUG CONTAINER
/* **************************************** */

.debug_container {
    width: 100%;
    background-color: white;
    padding: 10px;
    border-width: 1px;
    border-style: solid;
    border-color: black;
    box-sizing: border-box;
}

/* **************************************** */
/* BIG PHONE SPECIAL RULES                  */
/* **************************************** */
@media (min-width: 400px) {

    .content-box {
        max-width: 600px;
    }

    .content-box-column-input {
        max-width: 400px;
    }

    .content-box-right-image-container {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
    }

    .content-box-container-side-by-side {
        align-items: center;
    }

    .content-box-two-column-single {
        width: 300px;
    }

    .content-box-two-column-dual {
        width: 300px;
    }

    .index-header {
        font-size: 24px;
    }

}

/* **************************************** */
/* TABLET SPECIAL RULES                     */
/* **************************************** */
@media (min-width: 800px) {

    .body {
        font-size: 16px;
    }

    .base-inner-wrapper {
        -webkit-flex-direction: row;
        flex-direction: row;
    }

    .footer {
        flex-wrap: wrap;
        flex-direction: row;
    }

    .content {
        width: 100%;
        border-top-style: solid;
        border-bottom-style: solid;
        border-left-style: none;
        line-height: 170%;
    }

    .menu-item-box-span {
        font-size: 12px;
        line-height: 130%;
    }

    .menu-above {
        display: none;
    }

    .menu-below {
        display: none;
    }

    .menu-beside {
        display: block;
    }

    .menu-target-mobile {
        display: none;
    }

    .menu-item-button-inactive-box,
    .menu-item-button-inactive-box-above,
    .menu-item-button-inactive-box-below {
        border-left-style: none;
    }

    .menu-item-button-active-box {
        border-left-style: none;
    }

    .menu-item-text-inactive-box,
    .menu-item-text-inactive-box-above,
    .menu-item-text-inactive-box-below {
        min-width: 250px;
    }

    .menu-item-text-active-box {
        border-bottom-style: solid;
        border-right-style: none;
        min-width: 250px;
    }

    .content-box {
        margin-bottom: 30px;
    }

    .content-box-header-title {
        line-height: 24px;
        font-size: 16px;
    }

    .content-box-header {
        margin-left:10px;
        margin-top:10px;
    }

    .content-box-label {
        font-size: 12px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .content-box-form-table-td-unit {
        width: 100%;
        font-size:12px;
    }

    .content-box-column-container {
        flex-direction: row;
    }

    .content-box-right-column {
        width: 200px;
    }

    .content-box-right-image {
        overflow: auto; /* IE fix */
    }

    .content-box-two-column-single {
        width: 380px;
    }

    .content-box-two-column-dual {
        width: 380px;
    }

    .content-box-right-image-container {
        flex-direction: column;
    }

    .content-box-image {
        max-width: 100%;
    }

    .content-box-insert-button {
        margin: 10px;
        margin-top:15px;
    }

    .raw-index-container {
        margin-top: 100px;
        margin-left: 170px;
        margin-right: 170px;
        padding-bottom: 100px;
    }

    .index-header {
        font-size: 36px;
    }
	
	.index-subheader {
        font-size: 22px;
        line-height:120%;
        margin-top:25px;
    }
	
    .index-text {
        font-size: 22px;
        line-height:200%;
        margin-top:25px;
    }
	
	.index-button-container {
        flex-wrap: nowrap;
    }

    .index-logo-container {
        flex-wrap: nowrap;
    }

    .result-table-container {
        flex-direction: row;
    }

    .res-container {
        display: block;
    }
}

/* **************************************** */
/* DESKTOP SPECIAL RULES                    */
/* **************************************** */
@media (min-width: 1280px) {

    .content {
        padding-left: 75px;
        padding-right: 150px;
    }

    hr {
        margin-top:30px;
        margin-bottom:30px;
    }

    .menu-item-button-inactive-box,
    .menu-item-button-inactive-box-above,
    .menu-item-button-inactive-box-below {
        max-height: 120px;
    }

    .menu-item-button-active-box {
        max-height: 120px;
    }

    .menu-item-text-inactive-box,
    .menu-item-text-inactive-box-above,
    .menu-item-text-inactive-box-below {
        max-height: 120px;
    }

    .menu-item-text-active-box {
        max-height: 120px;
    }

    .menu-item-button {
        width: 120px; /* IE fix */
        height: 120px;
    }

    .menu-item-image {
        width: 120px;
        height: 120px;
    }

    .content-box {
        width: 600px;
    }

    .content-box-column-input {
        width: 400px;
    }

    .content-box-container-side-by-side {
        flex-direction: row;
        align-items: stretch;
    }

    .content-box-two-column-single {
        width: 350px;
    }

    .content-box-two-column-dual {
        width: 720px;
    }

    .index-header {
        font-size: 48px;
    }

	.index-subheader {
        font-size: 28px;
        line-height:120%;
     }

    .index-text {
        font-size: 28px;
        line-height:200%;
    }
	
    .res-container {
        display: block;
    }

    .res-be-button {
        display: inline-block;
    }
	
    .generic-show-mobile {
        display: none;
    }

    .generic-show-desktop {
        display: block;
    }
}
