/* Normalize */

*,
*:after,
*:before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.clearfix:before,
.clearfix:after {
    display: table;
    content: '';
}

.clearfix:after {
    clear: both;
}


/* Body */

body {
    font-family: Avenir, 'Helvetica Neue', 'Lato', 'Segoe UI', Helvetica, Arial, sans-serif;
    color: #444;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    outline: none;
    color: #3298dc;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #d3394c;
}

.hidden {
    position: absolute;
    overflow: hidden;
    width: 0;
    height: 0;
    pointer-events: none;
}


/* Header */

.header {
    text-align: center;
    margin: 30px 0 0;
}

.header img {
    margin-right: 15px;
    position: relative;
    top: -13px;
}

.header h1 {
    margin: 0.5em 0 0 0;
    letter-spacing: -1px;
    font-size: 2.5em;
    line-height: 1;
    vertical-align: top;
    display: inline-block;
    height: 100%;
}

.header a {
    height: 200px;
}

.header a h1 {
    color: #444;
    height: 100%;
}

.h2_margin {
    margin-bottom: 60px;
}

nav {
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    padding: 0 0 20px 0;
}

nav li {
    list-style-type: none;
    display: inline;
}

nav li:after {
    content: "|";
    padding: 0 10px;
}

nav li:last-child:after {
    content: "";
}


/* Content */

.strong {
    font-weight: bold;
}

.content {
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    padding: 0 0 3em 0;
}

.align-left {
    text-align: left;
    padding-left: 50px !important;
    padding-right: 50px !important;
}

.box {
    background-color: #f2f2f2;
    padding: 2rem 1rem;
    border-radius: 8px;
    border: solid 2px #bbb;
}

.box + .box {
    margin-top: 2rem;
}

.question {
    margin: 30px;
}

.question label {
    font-weight: bold;
    display: block;
    margin: 15px;
}

.question_radio {
    margin: 30px;
}

.question_radio div {
    margin: 15px;
}

select {
    padding: 7px 30px 7px 5px;
    line-height: 2em;
}

input[type="radio"] {
    margin: 0 5px 0 20px;
}

.spacer-bar {
    padding-bottom: 40px;
    margin-bottom: 30px;
    border-bottom: solid 1px #6f4043;
}

.spinner {
    vertical-align: -50%;
    margin: 10px;
}


/* Cards */

/* Float three columns side by side */
.column {
    float: left;
    width: 33.33%;
    padding: 0 10px;
}

/* Remove extra left and right margins, due to padding */
.row {margin: 35px -5px 0 -5px;}

/* Clear floats after the columns */
.row:after {
    content: "";
    display: table;
    clear: both;
}

/* Style the counter cards */
.card {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    padding: 16px;
    height: 150px;
    text-align: center;
    background-color: #3298dc;
    border: solid 2px #207ab7;
    border-radius: 8px;
}

.card a {
    color: #fff;
}


/* Form Elements */

.fail-red {
    color: #d3394c;
}

.upload {
    margin-top: 50px;
}

.upload-icon {
    width: 100px;
}

.inputfile {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.inputfile + label {
    max-width: 80%;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
    padding: 0.625rem;
}

.inputfile:focus + label,
.inputfile.has-focus + label {
    outline: 1px dotted #000;
    outline: -webkit-focus-ring-color auto 5px;
}

.inputfile-upload + label {
    color: #00c6a8;
}

.upload-button {
    width: 406px;
    max-width: 80%;
    height: 50px;
    background-color: #3298dc;
    color: #fff;
    font-size: 16pt;
    border: solid 2px #3298dc;
    border-radius: 8px;
}

.upload-fail {
    font-weight: 700;
    color: #d3394c;
    height: 40px;
    margin: 0;
    padding: 15px;
}

.fail {
    width: 100px;
    margin-top: 10px;
    cursor: pointer;
}

.response_box {
    width: 49%;
    padding: 20px;
    min-height: 230px;
    border-radius: 8px;
    margin: 20px 0;
}

.response_box_left {
    float: left;
    border: solid 2px #bbb;
}

.response_box_right {
    float: right;
    border: solid 2px #bbb;
}


/* Smaller Screens */
@media screen and (max-width: 50em) {
    .inputfile-upload + label strong {
        display: block;
    }

    .upload-button {
        width: 200px;
    }

    .column {
      width: 100%;
      display: block;
      margin-bottom: 20px;
    }

    .response_box {
        width: 100%;
        max-width: 370px;
        display: block;
        height: auto;
    }

    .response_box_left, .response_box_right {
        float: none;
        margin: 20px auto;
    }
}
