/* Hero Styles
--------------------------------------------------------------*/
#rhisac section.hero {
    background-color: #F6F2F1;
    background-image: url(../images/work/rhisac/rhisac-heading.jpg);
}


/* Content Styles
--------------------------------------------------------------*/
#introduction h1 {
    font-size: 8rem;
    margin-top: 3.5rem;
    padding-bottom: 3rem;
}
#introduction h3 {
    font-size: 2rem;
    text-transform: uppercase;
}

#introduction {
    margin-bottom: 10rem
}

#rhisac figcaption {
    padding-top: 4.5rem;
    margin-bottom: 10rem;
}

#introduction, 
#rhisac figcaption, 
#screens .row, 
.typography.row, 
#styleguide .icons {
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

@media (min-width: 768px) {
    #introduction, 
    #rhisac figcaption, 
    #screens .row, 
    .typography.row, 
    #styleguide .icons {
        width: 750px;
    }
}
@media (min-width: 992px) {
    #introduction, 
    #rhisac figcaption, 
    #screens .row, 
    .typography.row, 
    #styleguide .icons {
        width: 970px;
    }
}
@media (min-width: 1200px) {
    #introduction, 
    #rhisac figcaption, 
    #screens .row, 
    .typography.row, 
    #styleguide .icons {
        width: 1170px;
    }
}
@media (min-width: 1366px) {
    #introduction, 
    #rhisac figcaption, 
    #screens .row, 
    .typography.row, 
    #styleguide .icons {
        width: 1320px;
    }
}

/* Image Styles
--------------------------------------------------------------*/
img {
    width: auto;
    max-width: 100%;
}

/* Research */
#research .image.row {
    max-width: 1391px;
    margin: 0 auto;
}

#research img {
    max-width: 100%;
}
#research img.shadow {
    display: inline-block;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* UX */
#ux .image.row {
    text-align: center;
}
#ux .image.row img.fluid {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    float: none;
    padding: 0 0 6.5rem;
}

#ux .image.row img:not(.fluid) {
    width: 1600px;
    max-width: 100%;
    float: none;
}

#ux figcaption {
    padding-top: 2rem;
}

/* Visual Design */
#visual-design {
    text-align: center;
}
#visual-design img {
    width: auto;
    max-width: 100%;
    float: none;
}

#visual-design figcaption {
    text-align: left;
    padding-top: 0;
}

/* Screens */
#screens .simple-view {
    margin-top: 7.5rem;
    margin-bottom: 10rem;
    
       -ms-flex-line-pack: justify;
    -webkit-align-content: space-between;
            align-content: space-between;
}

#screens .simple-view img {
    border: 3px solid #AEA199;
    border-radius: 8px;
    max-width: 100%;
}

#screens .simple-view.flex .flex {
       -ms-flex-line-pack: justify;
    -webkit-align-content: space-between;
            align-content: space-between;
}
#screens .simple-view.flex .flex img:last-of-type {
    margin-bottom: 5px;
}

/* Typography */
.typography.row {
    overflow: visible;
}

.typography.row > div:first-child {
    text-align: left;
}
.typography.row > div:first-child img {
    margin-top: 7.5rem;
}

.typography.row > div:last-child {
    text-align: right;
    position: relative;
    overflow: visible;
}
.typography.row > div:last-child img {
    opacity: 0;
}

.typography.row > div:last-child::after {
    content: "";
    display: inline-block;
    position: absolute;
    width: 50vw;
    height: 800px;
    background: url(../images/work/rhisac/rhisac-image-style.jpg);
    background-repeat: no-repeat;
    background-size: contain;
    top: 0;
    left: 50px;
}

/* Styleguide */
#ux, #styleguide { overflow: hidden; }
#styleguide .quotes, 
#styleguide .inputs, 
#styleguide .buttons {
    margin-top: 15rem
}

#styleguide .inputs .formList {
    width: 650px;
    max-width: 100%;
    margin: 1.5rem auto;
}
#styleguide .inputs .formList .checkboxes {
    margin-top: 1.2rem;
}
#styleguide .inputs .formList .checkboxes li {
    display: block;
    width: 100%;
    overflow: hidden;
}
#styleguide .inputs .formList li:nth-last-child(n+2) {
    margin-bottom: 2rem;
}

#styleguide .inputs label {
    color: #333;
    font: 400 1.6rem / 1 "IBM Plex Sans", Helvetica, Arial, Verdana, sans-serif;
}

#styleguide .inputs .optional {
    position: relative;
}
#styleguide .inputs .optional::after {
    content: "(optional)";
    font: italic 1.2rem / 1 "IBM Plex Sans", Helvetica, Arial, Verdana, sans-serif;
    color: #aaa;
    position: absolute;
    right: 16px;
    top: .4rem;
}

#styleguide .inputs input[type="text"], 
#styleguide .inputs input[type="url"] {
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #555;
    display: block;
    width: 100%;
    margin-top: 6px;
    font: 400 1.6rem / 1 "IBM Plex Sans", Helvetica, Arial, Verdana, sans-serif;
    padding: 12px 10px;
    transition: all .15s ease-in-out;
    
    -webkit-appearance: none;
            appearance: none;
}
#styleguide .inputs input[type="text"]:focus, 
#styleguide .inputs input[type="url"]:focus {
    outline: none;
    border-color: #333;
    color: #111;
    box-shadow: 0 0 15px rgba(0,0,0,0.02);
}

#styleguide .inputs input[type="checkbox"] {
    opacity: 0;
    float: left;
    width: 1.6rem !important;
    height: 1.6rem;
    margin-top: .1rem;
    margin-right: .6rem;
    margin-left: .2rem;
    display: inline-block;
    cursor: pointer;
    z-index: 2;
    position: absolute;
    
    -webkit-appearance: none;
            appearance: none;
    
    -webkit-backface-visibility: hidden;
    -webkit-tap-highlight-color: transparent;
        -webkit-transform-style: preserve-3d;
}
#styleguide .inputs input[type="checkbox"] + label {
    position: relative;
    display: inline-block;
    float: left;
    line-height: 1.8rem;
    margin-left: 2.5rem;
    max-width: calc(100% - 2.5rem);
    z-index: -1;
    font-size: 1.4rem;
}
#styleguide .inputs input[type="checkbox"] + label::before {
    content: "";
    display: inline-block;
    width: 1.6rem;
    height: 1.6rem;
    background: linear-gradient(#00a89e, #00a89e) 50% 50% / 0 0 no-repeat #fff;
    border: 1px solid #ccc;
    border-radius: 2px;
    position: absolute;
    top: .1rem;
    left: -2.3rem;
    transition: all .24s ease-in-out;
    
    -webkit-appearance: none;
            appearance: none;
}
#styleguide .inputs input[type="checkbox"]:hover + label::before {
    border-color: #555;
}
#styleguide .inputs input[type="checkbox"]:checked + label::before {
    background-size: calc(100% - .6rem) calc(100% - .6rem);
    border-color: #555;
    
    -webkit-appearance: none;
            appearance: none;
}

/* Buttons*/
#styleguide .buttons .button-wrapper {
    display: inline-block;
    width: auto;
    margin: 1rem 2rem;
} 
#styleguide .buttons .button-wrapper .button::after {
    display: none;
}

#styleguide .buttons .button-wrapper .button {
    background: #00a89e;
    border: 1px solid #00a89e;
    border-radius: 4px;
    color: #fff;
    display: inline-block;
    font: normal 1.6rem / 1.1 'RalewayTitle', Helvetica, Arial, Verdana, sans-serif;
    padding: 2rem 3.5rem 1.9rem;
    text-transform: uppercase;
    letter-spacing: .0625em;
    transition: all .42s ease-in-out;
}
#styleguide .buttons .button-wrapper .button:hover {
    background: #008077;
    border-color: #008077;
}
#styleguide .buttons .button-wrapper .button:focus {
    outline: 2px dotted #00a89e;
    outline-offset: 5px;
}

#styleguide .buttons .button-wrapper .button.secondary {
    background: #fff;
    color: #00a89e;
}
#styleguide .buttons .button-wrapper .button.secondary:hover {
    background: #fff;
    border-color: #008077;
    box-shadow: inset 0 0 0 2px #008077;
    color: #008077;
}

#styleguide .buttons .button-wrapper .button.link {
    background: rgba(255,255,255,0);
    border: none;
    color: #00a89e;
    padding: .6rem .4rem .5rem;
    position: relative;
    margin-top: 2rem;
}
#styleguide .buttons .button-wrapper .button.link:hover {
    color: #008077;
}
#styleguide .buttons .button-wrapper .button.link::after {
    content: "";
    position: absolute;
    display: inline-block;
    height: 2px;
    width: 0;
    bottom: 0;
    left: 0;
    opacity: 1;
    background-color: #00a89e;
    transition: all .3s ease-in-out;
}
#styleguide .buttons .button-wrapper .button.link:hover::after {
    width: 100%;
    transform: none;
}

/* Illustrations */
#styleguide .illustrations {
    margin-top: 15rem;
    margin-bottom: 1rem;
}

#styleguide .icons {
    -webkit-box-pack: justify;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    
       -ms-flex-line-pack: center; 
    -webkit-align-content: center; 
            align-content: center; 
}

#styleguide .icons:first-of-type {
    margin-bottom: 7.5rem;
}
#styleguide .icons:last-of-type {
    margin-bottom: 10rem;
}
#styleguide .icons:last-of-type li {
    padding: 2.5rem;
    width: 20%;
}


/* TECH */
#tech.row figcaption {
    margin-bottom: 0
}

#styleguide .quotes.row svg, 
#screens .color-palette.row svg {
    max-width: 100%;
}

@media screen and (max-width: 899px) {
    #styleguide .quotes.row {
        margin-left: 10px;
        margin-right: 10px;
    }
}

@media screen and (max-width: 767px) {
    #introduction h1 {
        font-size: 6.5rem
    }
    #tech.row figcaption {
        width: 100%
    }
    a.pageLink {
        margin-bottom: 7.5rem;
    }
}

@media screen and (max-width: 699px) {
    #styleguide .inputs.row {
        margin-left: 10px;
        margin-right: 10px;
    }
    #styleguide .icons.circle.row {
        width: 400px;
        max-width: 100%;
        
           -webkit-box-pack: center; 
              -moz-box-pack: center; 
              -ms-flex-pack: center; 
    -webkit-justify-content: center;
            justify-content: center;
    }
    #styleguide .icons.circle.row li {
        padding: 5px 10px;
    }
}