/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
    margin:0;
    padding: 0;
    height: 100%
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #222;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */



input {
    padding: 0.5em;
    border: 1px solid #999;
}

.survey_question_container {
    display: flex !important;
    align-content: center;
    justify-content: center;
}

.survey_question {
    width: 100%;
    margin: 0 auto;
}

.quizProgressBar {
    border-radius: 10px;
    margin: 1em 0;
}

.progressBarWrapper {
    border: 1px solid #8cc63e;
    padding: 0.25em;
    border-radius: 1em;
}

.textError{
    border: 1px red solid;
}

.progressPercent {
    color: white;
    font-size: 1.3em;
}

.progressPercentWrap {
    text-align: center;
    position: absolute;
    top: 0.9em;
    left: 0;
    right: 0;
    bottom: 0;
}
.progressBarBackground{
    background-color: #8cc63e;
    border-radius: 10px 0px 0px 10px;
}


#sectionDisplayContent {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 0em;
    padding-top: 0em;
    margin-bottom: 0;
    margin-top: 0em;
}

#sectionDisplayList li:last-child {
    margin-bottom: 0;
}

#sectionDisplayList li {
    margin-bottom: 1em;
    border-radius: 10px;
    padding: 1em;
    font-size: 10px;
    font-weight: bold;
}

#sectionDisplayList li:not(.disabled) {
    background-color: #3ca0d1;
    font-size: 10px;
}

#sectionDisplayList li.disabled {
    background-color: #efefef;
}

#sectionDisplayList li.done {
    background-color: #9C5D90;
    font-size: 10px;
}

#sectionDisplayList li:not(.disabled) a span {
    color: #fff;
}

#sectionDisplayList li.disabled a span {
    color: #333;
}

.login-left-side {
    background-image: url("/img/What-you-get_final-3.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left;
}
.register-left-side {
    background-image: url("/img/register.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#pastSurveys li {
    display: block;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 0.5em;
}

#pastSurveys li:before {
    padding-right: 0.5em;
}

/*Matrix Table*/

.icheckbox {
    display:inline-block;
    width:20px;
    height:20px;
    background:#fff;
    border: 1px solid #aaa;
    float: right;
}
.icheckbox.checked {
    background:#ccc;
}
@media (min-width: 480px) {
    .icheckbox {
        float: none;
    }
}
.responsive-table-input-matrix {
    margin: 1em 0;
    width: 100%;
}
@media (min-width: 480px) {
    .responsive-table-input-matrix .responsive-table-input-matrix {
        width: auto;
    }
}
.responsive-table-input-matrix tr {
    border: none;
    -webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.24);
    -moz-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.24);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.24);
    display: block;
    border-radius: 2px;
    margin-bottom: 0.5rem;
    background-color: #FFF;
    padding: .4rem 0 .4rem;
}
.responsive-table-input-matrix tr:first-of-type {
    display: none;
}
.responsive-table-input-matrix tr td {
    text-align: left;
}
@media (min-width: 480px) {
    .responsive-table-input-matrix tr:first-of-type {
        display: table-row;
    }
    .responsive-table-input-matrix tr td {
        text-align: center;
    }
    .responsive-table-input-matrix tr {
        -webkit-box-shadow: 0;
        -moz-box-shadow: 0;
        box-shadow: 0;
        display: table-row;
        border: 1px solid #E0E0E0;
    }
}
.responsive-table-input-matrix tr td:first-of-type {
    text-align: left;
}
.responsive-table-input-matrix tr td:first-of-type:before {
    width: 0;
}
.responsive-table-input-matrix th {
    display: none;
}
.responsive-table-input-matrix td {
    display: block;
    vertical-align: middle;
    text-align: right;
}
.responsive-table-input-matrix td:first-child {
    padding-top: .5em;
}
.responsive-table-input-matrix td:last-child {
    padding-bottom: .5em;
}
.responsive-table-input-matrix td:before {
    content: attr(data-th);
    font-size: inherit;
    font-weight: 600;
    color: #757575;
    width: 12em;
    display: inline-block;
}
.responsive-table-input-matrix td input[type=checkbox] {
    float: right;
}
@media (min-width: 480px) {
    .responsive-table-input-matrix td:before {
        display: none;
    }
    .responsive-table-input-matrix td input[type=checkbox] {
        float: none;
    }
}
.responsive-table-input-matrix th:first-of-type {
    text-align: left;
}
.responsive-table-input-matrix th, .responsive-table-input-matrix td {
    text-align: center;
    background-color: #FFF;
}
@media (min-width: 480px) {
    .responsive-table-input-matrix th, .responsive-table-input-matrix td {
        display: table-cell;
        padding: .25em .5em;
    }
    .responsive-table-input-matrix th:first-child, .responsive-table-input-matrix td:first-child {
        padding-left: 0;
    }
    .responsive-table-input-matrix th:last-child, .responsive-table-input-matrix td:last-child {
        padding-right: 0;
    }
}
h1 {
    font-weight: normal;
    letter-spacing: -1px;
    color: #34495E;
}
.responsive-table {
    color: #333;
    border-spacing: 0;
    background-color: rgba(0, 0, 0, 0);
}
.responsive-table th, .responsive-table td {
    margin: .5em 1em;
}
.matrix-table {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}
@media (min-width: 480px) {
    .matrix-table {
        -webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.24);
        -moz-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.24);
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.24);
    }
}
@media (min-width: 480px) {
    .responsive-table {
        background: #fff;
    }
    .responsive-table th, .responsive-table td {
        padding: 1em !important;
    }
}
.responsive-table th {
    font-weight: 400;
    color: #757575;
    vertical-align: bottom;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

.userAccountBox {
    position: relative;
    margin: 0px;
    padding-top: 1em;
    width: 100%;
    visibility: inherit; z-index: 20;
    -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, .16), 0 3px 6px rgba(0, 0, 0, .23);
    box-shadow: 0 3px 6px rgba(0, 0, 0, .16), 0 3px 6px rgba(0, 0, 0, .23);
}

.startNewBox{
    font-family:Arial, Helvetica, sans-serif;
    color:#3ca0d1;
    font-size: 1.3em;
    padding: 2em;
    shadow:#CCC;
}

.profileData {
      grid-column:1/3;
      grid-row:1/3;
      display: grid;
      margin: 10px;
      grid-gap: 1em;
      grid-template-columns:repeat(2, 1fr); 
      grid-auto-rows: minmax(50px,auto);   
}

.startNewSurveyBtn{
    background: #FF6C00;
    width: 100%;
    font-family:Arial, Helvetica, sans-serif;
    padding: 0.8em 1em;
    color:#fff;
    font-size: 1.2em;
}

.profileBox{
    font-family:Arial, Helvetica, sans-serif;
    color:#262626;
    padding: 1rem;
    display: flex;
    vertical-align: middle;
    align-items: center;
    height: 100%;
}

.welcome-text {
    text-overflow: ellipsis;
    overflow: hidden;
}

.currentSurveyBox   {
    color:#3ca0d1;
    font-weight: 600;
    background: #f2f2f2;
    
}

.pastSurveyBox   {
    color:#9C5D90;
    font-weight: 600;
    background: #f2f2f2;
    
}

.currentSurveyBox  ul {
    list-style: none;
    color:#262626;
    padding: 0.2em;
    margin:0;
    height: 250px;
    overflow-y: auto;
}

.currentSurveyBox  li {
    display: grid;
    grid-template-columns: 1fr 0.5fr 1fr 1fr;
    padding-top: 6px;
    padding-bottom: 6px;
}

.pastSurveyBox  ul {
    list-style: none;
    color:#262626;
    padding: 0.2em;
    margin:0;
    height: 250px;
    overflow-y: auto;
}

.pastSurveyBox  li {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    padding-top: 6px;
    padding-bottom: 6px;
}

.currentSurveyBox .btn-sm, .pastSurveyBox .btn-sm {
    line-height: 1.3;
    padding-left: 15px;
    padding-right: 15px;
}

.userScoreBoxInner{
    display: grid;
    padding: 2em;
    grid-gap: 1em;
    grid-template-columns:repeat(2, 1fr); 
    grid-auto-rows: minmax(100px,auto);
    background-color: transparent;
    background-repeat: no-repeat;
    background-image: url("/img/what-you-get.jpg");
    background-size: cover;
    background-position:center;
    width: 100%;
    visibility: inherit; z-index: 20;
} 
.fa-poll-h{
    color:#fff;
}

.reportBtn{
    background: #FF6C00;
    width: 80%;
    font-family:Arial, Helvetica, sans-serif;
    padding: 1.2em;
    color:#fff;
    margin:1em;
    position: relative;
}

.footerBox{
    background: #343232;
    padding:1em;
    font-family:Arial, Helvetica, sans-serif;
    text-align: center;
    width:100%;
}

.footerBox p{
    color:#fff;
}

.btn-results {
    color: #FFF !important;
    background-color: #9C5D90;
    border-color: #9C5D90;
}
.btn-results:hover,
.btn-results:focus,
.btn-results:active,
.btn-results.active {
    color: #FFF !important;
    background-color: #8c5381;
    border-color: #7c4a73;
}
.btn-results.disabled:hover,
.btn-results.disabled:focus,
.btn-results.disabled:active,
.btn-results.disabled.active,
.btn-results[disabled]:hover,
.btn-results[disabled]:focus,
.btn-results[disabled]:active,
.btn-results[disabled].active,
fieldset[disabled] .btn-results:hover,
fieldset[disabled] .btn-results:focus,
fieldset[disabled] .btn-results:active,
fieldset[disabled] .btn-results.active {
    color: #FFF !important;
    background-color: #9C5D90;
    border-color: #9C5D90;
}