/*---------------   BOX SIZING   ---------------*/

html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}


/*---------------   GENERAL LAYOUT   ---------------*/

body {
    margin: 0;
    padding: 0;
    font-family: 'Heebo', sans-serif;
    background-color: #F8F8F8;
}

.wrap {
    max-width: 688px;
    margin: auto;
}


/*---------------   INDEX / WELCOME PAGE   ---------------*/

.index {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    height: 100vh;
    color: #FFF;
    background-color: #3377a1;
    background-image: url(images/bg-mobile.jpg);
    background-repeat: no-repeat;
    background-position: center left;
    background-size: cover;
}

.index div {
    place-self: center;
}

.index h2 {
    padding-bottom: 30px;
    font-size: 0.9em;
    font-weight: 100;
}

.afod-pofa {
    max-width: 50%;
    min-width: 300px;
    padding-bottom: 25px;
}

@media (min-width: 400px) {
    .index {
        background-image: url(images/bg-desktop.jpg);
    }
}


/*---------------   SETUP.html / PART.html  ---------------*/

.top {
    height: 10px;
    width: 100%;
    background-color: #3377a1;
    -webkit-box-shadow: 0px 3px 7px 0px rgba(0,0,0,0.20);
    -moz-box-shadow: 0px 3px 7px 0px rgba(0,0,0,0.20);
    box-shadow: 0px 3px 7px 0px rgba(0,0,0,0.20);
}

.day {
    border-radius: 5px;
    overflow: hidden;
    margin: 30px 0px;
    background-color: #FFF;
    -webkit-box-shadow: 0px 3px 7px 0px rgba(0,0,0,0.20);
    -moz-box-shadow: 0px 3px 7px 0px rgba(0,0,0,0.20);
    box-shadow: 0px 3px 7px 0px rgba(0,0,0,0.20);
}

.activity {
    padding: 28px 18px 35px 18px;
    border-top: 1.5px solid #E8E8E8;
    border-bottom: 1.5px solid #E8E8E8;
}

.part, .setup {
    margin: 0px 10px;
    padding: 0px;
}

.set-h1, .index h1 {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0;
    margin-bottom: 45px;
}

.index h1 {
    margin-bottom: 0px;
}

.set-p {
    font-size: 0.8em;
    color: #B1B1B1;
    margin: 0;
    margin-top: 30px;
}

hr {
    margin: 15px 0px;
}

.day h2 {
    font-size: 1em;
    font-weight: 400;
    color: #FFF;
    background-color: #3377a1;
    margin: 0;
    padding: 22px 18px;
    width: 100%;
}

.setup h2 {
    font-size: 0.8em;
    color: #B1B1B1;
    margin-top: 22px;
}

h3, p {
    font-size: 0.9em;
}


/*---------------   CRITIQUE GUIDE / TOP OF PART.html   ---------------*/

.guide {
    margin-bottom: 30px;
    padding: 12px 10px 10px 10px;
    color: #FFF;
    background-color: #3377a1;
    -webkit-box-shadow: 0px 3px 7px 0px rgba(0,0,0,0.20);
    -moz-box-shadow: 0px 3px 7px 0px rgba(0,0,0,0.20);
    box-shadow: 0px 3px 7px 0px rgba(0,0,0,0.20);


    width: 100%;

}

.guide-inner {
    display: grid;
    grid-template-columns: repeat(9, max-content);
    text-align: center;
    width: max-content;
    margin: auto;
}

.guide .em {
    font-size: 0.9em;
    font-weight: 400;
}

.guide p {
    font-size: 0.5em;
    font-weight: 100;
    padding: 0;
    margin: 0;
}

.guide-hr {
    display: inline;
    width: 1px;
    height: 25px;
    background-color: #FFF;
    margin: 0px 10px;
    align-self: center;
}

@media (min-width: 600px) {
    .guide .em {
        font-size: 1.1em;
    }
    .guide p {
        font-size: 0.7em;
    }
}


/*---------------   PROGRESS BAR   ---------------*/

.bar {
    background-color: #E5E5E5;
    border-radius: 50px;
    width: 90%;
}

.progress {
    background-color: #3377a1;
    border-radius: 50px;
    height: 5px;
    width: 25%
}

.progress-num {
    float: right;
    margin-top: -12.5px;
}

@media (min-width: 600px) {
    .bar {
        width: 95%;
    }
}


/*---------------   LIKERT SCALE / RADIO BUTTONS   ---------------*/

/* Code Source: https://codepen.io/skeddles/pen/PbROLK */

input[type=radio] {
  position: absolute;
  visibility: hidden;
  display: none;
}

label {
    font-size: 0.6em;
    color: #FFF;
    display: inline-block;
    cursor: pointer;
    padding: 6px 0px 5px 0px;
    width: 50px;
    background: #134162;
    text-align: center;
    margin-bottom: 0px;
    transition: all 0.15s ease;
}

label:hover {
    background: #072539;
}

input[type=radio]:checked + label{
  color: #FFF;
  background: #7a8084;
}

label + input[type=radio] + label {
  border-left: solid 2px #FFF;
}

.radio-group {
  border: solid 2px #FFF;
  display: inline-block;
  margin: 10px 0px;
  border-radius: 5px;
  overflow: hidden;
}

@media (min-width: 600px) {
    label {
        font-size: 0.8em;
        width: 58px;
        padding: 6px 0px 4px 0px;
    }
}


/*---------------   INPUTS / TEXTAREAS   ---------------*/

textarea, input {
    display: block;
    box-sizing: padding-box;
    overflow: hidden;
    padding: 9px;
    width: 100%;
    font-size: 0.85em;
    border-radius: 5px;
    border: 2px solid #E8E8E8;
}

textarea::placeholder, input::placeholder {
    color: #B1B1B1;
    font-size: 0.9em;
}


/*---------------   PREV, NEXT, START, GETSTARTED / BUTTONS   ---------------*/

.nav {
    display: grid;
    /*grid-template-columns: 1fr 1fr;*/
    grid-template-columns: 1fr;
    padding: 15px 20px;
    margin-top: 30px;
    position: relative;
    bottom: auto;
    width: 100%;
    background-color: #FFF;
    -webkit-box-shadow: 0px 0px 7px 0px rgba(0,0,0,0.05);
    -moz-box-shadow: 0px 0px 7px 0px rgba(0,0,0,0.05);
    box-shadow: 0px 0px 7px 0px rgba(0,0,0,0.05);
}

.wrap {
    padding-bottom: 0px;
    padding-top: 0px;
}

.form {
    padding-bottom: 20px;
}

@media (min-width: 600px) {
    .nav {
        /*position: fixed;*/
        bottom: 0;
    }
    .guide {
        position: fixed;
        top: 0;
    }
    .wrap {
        padding-bottom: 90px;
/*        padding-top: 95px;*/
    }
    .form {
        display: grid;
        grid-column-gap: 10px;
        grid-template-columns: 1fr 1fr;
    }
    .form-name {
        grid-column: 1 / 3;
    }
    .part {
        padding-top: 95px;
    }
}

button {
    text-decoration: none;
    font-size: 0.9em;
    border: 0;
}

button:hover {
    cursor: pointer;
}

.prev {
    padding: 8px 0px;
    color: #3377a1;
    margin-left: 10px;
    justify-self: start;
    background: 0;
}

.next, .start, .final-submit {
    text-decoration: none;
    padding: 8px 20px 8px 28px;
    color: #FFF;
    background-color: #3377a1;
    border-radius: 50px;
    justify-self: end;
}

.getstarted {
    padding: 8px 20px;
    color: #FFF;
    background-color: #072539;
    border-radius: 50px;
    font-size: 0.9em;
    margin-top: 30px;
}

.prev img, .next img, .start img {
    padding: 0px 8px 2px 8px;
}

.prev, .next, .start, .getstarted, .final-submit {
    transition: all 0.15s ease;
}

.prev:hover {
    color: #3377a1;
    opacity: 0.8;
}

.next:hover, .start:hover, .getstarted:hover, .final-submit:hover {
    text-decoration: none;
    color: #FFF;
    opacity: 0.8;
}

 /*SPA specific css*/
.survey-page {
    /*display: none; by default, they are turned off, js displays the correct panel*/
}

.header-code {
    font-size: 1.1em;
}

.splash {
    font-size: 1.5em;
}

#scale-key-bar {
    display: none;
}
