
/* COMMON FORMATTING */

strong {
    font-weight: bold;
}
h1 {
    font-size: 2em;
    font-weight: bold;
    margin: 1em 0;
}
h2 {
    font-size: 1.5em;
    color: #ba0020;
    margin: 0.6em 0;
}
h3 {
    font-size: 1.2em;
    color: #ba0020;
    font-weight: none;
    margin: 0.3em 0;
}
a {
    color:#fff;
    text-decoration: none;
}
a:hover {
    color:#b2b5b6;
}
a.screen-reader {
    display: none;
}
#content a {
    color:#ba0020;
}
#content a:hover {
    color:#b2b5b6;
}
.rich-text a {
    color:#4548ad;
}
.rich-text a:hover {
    color:#ad4561;
}
.fab,.fas,.far {
    line-height:2;
    margin-right:0.3em;
}
.fa-chevron-down {
    color: #ba0020;
}
.fa-chevron-down:hover {
    color:#b2b5b6;
    cursor: pointer;
}
p.scroll {
    display: none;
}

/* STRUCTURE */

body {
    padding:0;
    margin: 0;
    font-family: "Oxygen",sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    color: #808080;
    background-color:#FFFFFF;
}

.grid {
    display: block;
}
.grid-cell {
    flex: 1;
    padding: 1em;
}

#main {
    width: auto;
    margin: 0 auto;
    text-align:center;
}

/* HEADER */

header {
    padding: 10px;
    background-color:#000000;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.menu li {
    font-size: 1.2em;
    padding: 0.5em;
    white-space: nowrap;
}
.logo {
    text-align: left;
    flex: 1;
    flex-grow: 1;
}
.logo svg {
    max-height: 40px;
}
.logo svg:hover .cls-1 {
    fill: #b2b5b6;
}
.toggle {
    order: 1;
}
.toggle a {
    font-size: 20px;
}
.item {
    width: 100%;
    text-align: center;
    order: 2;
    display: none;
}
.item.active {
    display: block;
}

.about .menu-about a,
.how-it-works .menu-how-it-works a,
.news .menu-news a {
    font-weight: bold;
}

/* FOOTER */

#rc-logo {
    width: 200px;
    padding-right: 5px;
}
.rfa-awards {
    width: 150px;
}
#footer {
    padding: 0.5em;
    justify-content: space-between;
    background-color: #5f6369;
    color: #FFFFFF;
    text-align: left;
    font-size:0.9em;
}
#footer h3 {
    color: #fff;
}
#footer p {
    margin: 0.4em 0;
}
#redcompass a:hover .cls-2 {
    fill: #b2b5b6;
}
#back2top {
    background-color: rgba(0,0,0,.2);
    overflow: hidden;
    z-index: 999;
    display: none;
    cursor: pointer;
    position: fixed;
    bottom: 10px;
    right: 8px;
    padding: 0 5px;
}
.fa-chevron-up {
    color: #fff;
    margin: 0 auto;
}
.fa-chevron-up:hover {
    color: #ba0020;
}


/* CONTENT */

#main p {
    max-width:950px;
    margin: 0.8em auto;
}
.auth #main p {
    max-width: none;
}
.homepage .page-header,
.about .page-header,
.how-it-works .page-header,
.news .page-header {
    margin-top: 0;
    min-height: 400px;
    padding: 2em;
    background-color: #000000;
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: scroll;
    background-size: cover;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.homepage .page-header h1,
.about .page-header h1,
.how-it-works .page-header h1,
.news .page-header h1 {
    background-color: #ba0020;
    color: #fff;
    font-size: 1.5em;
    padding: 0.3em 1em;
    width: 100%;
    max-width: 300px;
}

.homepage .page-header p.scroll,
.about .page-header p.scroll,
.how-it-works .page-header p.scroll,
.news .page-header p.scroll {
    display: block;
}

#content .page-header h1 a {
    color: #fff;
}
#content .page-header h1 a:hover {
    color: #b2b5b6;
}
.news .page-header {
    /* https://unsplash.com/photos/Q1p7bh3SHj8 */
    background-image: url(/static/images/earth.jpg);
}
.about .page-header {
    background-image: url(/static/images/about.jpg);
}
.how-it-works .page-header {
    background-image: url(/static/images/how.jpg);
}
.page-content {
    padding: 0;
}
section,
section.block-quote blockquote {
    padding: 1em;
    margin-bottom: 1em;
    max-width: 900px;
    text-align: left;
}
section.block-quote {
    background-color: #ba0020;
    color:#fff;
    padding: 1em;
    max-width: none;
    text-align: left;
}
section.block-quote h2 {
    font-weight: bold;
    color: #fff;
    margin: 0;
}
#main section.block-quote h2 a {
    color: #fff;
}
#main section.block-quote h2 a:hover {
    color:#b2b5b6;
}
.page-content #hubspot-form {
    max-width: 600px;
    margin: 0 auto;
}
.page-content ul,
.page-content ol {
    padding:0 1em;
}
.page-content ul li,
.page-content ol li {
    margin:0.5em;
}
.page-content ul {
    list-style-type: disc;
}
.page-content ol {
    list-style-type: decimal;
}
section.block-list ul {
    list-style-type: none;
    padding:0;
}
section.block-list ul li {
    text-align: center;
    flex: 1;
}
section.block-list ul li h3 {
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    text-align: left;
    padding: 0 0.5em;
}
#main section.block-list ul li p {
    text-align: left;
    margin: 0;
    padding: 0.3em 0.6em;
}
#content b, #content strong {
    font-weight: bold;
}
#content em,
#content .rich-text i {
    font-style: italic;
}
.page-content section.block-table {
    padding: 0;   
}
table {
    border-collapse: collapse;
}
table th {
    font-weight: bold;
    background-color: #eeeeee;
}
table, th, td {
    border: 1px solid #444444;
    padding: 0.4em 0.6em;
}
#main #content section h4 {
    text-align: center;
    margin: 2em;
}
#main #content section h4 a {
    border: solid 1px #ba0020;
    padding: 3px 1em;
    margin: 0 auto;
    font-size: 1.2em;
    color :#ba0020;
}
#main #content section h4 a:hover {
    background-color: #b2b5b6;
}
.rich-text img.richtext-image {
    max-width: 100%;
    height: auto;
}
iframe#twitter-widget-0 {
     width:100% !important;
}
.twitter-block {
     min-width: 48%;
}
.video-responsive {
    overflow:hidden;
    padding-bottom:56.25%;
    position:relative;
    height:0;
}
.video-responsive iframe {
    left:0;
    top:0;
    height:100%;
    width:100%;
    position:absolute;
}

/* HOMEPAGE */

.homepage .page-header {
    /* https://unsplash.com/photos/4NIpiAP3-2Q */
    background-image: url(/static/images/cityscape.jpg);
    background-position: 50% 750px;
    /*min-height: 600px;*/
    justify-content: flex-start;
    padding: 1em;
}
.homepage .page-header p {
    color: #fff;
    font-size: 1.6em;
}
.homepage .page-header p .target {
    color: #ba0020;
}
.homepage section.block-quote {
    text-align: center;
}

#award {
    display: flex;
}
#first-award {
    margin-bottom: 1em;
}
#award-logo-paytech {
    width: 80%;
    display: block;
    margin-left: auto;
}
#award-logo-themis {
    width: 80%;
    display: block;
    margin-right: auto;
}
.homepage img.richtext-image {
    margin-bottom: 1em;
}
.homepage section.block-list li:not(:last-child){
    margin-bottom: 1em;
}

/* POSTS */

ul.posts {
    list-style-type: none;
    margin: 1em auto;
    max-width: 900px;
    text-align: left;
}
ul.posts li {
    margin-bottom: 1em;
}
#content article {
    max-width: 900px;
    text-align: left;
    margin: 1em auto;
    padding: 1em;
}
.page-content ul.posts img {
    max-width: 100%;
    height: auto;
}
.description {
    font-style: italic;
}
.date {
    margin: 0.4em 0;
    font-size: 0.9em;
}
.article-head h1 {
    margin: 0 0 0.5em 0;
}

.news-section .article-image img {
    width: 100%;
}

/* ABOUT */

.about .block-quote {
    margin: 0;
}

/* HOW IT WORKS */

.how-it-works .block-quote {
    margin: 0;
}

.how-it-works .block-html {
    margin-bottom: 0;
}

.how-it-works .block-paragraph {
    margin-top: 0;
}

.how-it-works .block-paragraph img {
    width: 100%;
    height: auto;
    margin: 1em auto;
}

.how-it-works .block-html > #out-of-fog {
    margin: 0;
    padding: 0;
}

/* ACCOUNT */

.auth #main {
 width: 100%;
}

.auth .page-header {
    width: 100%;
    padding: 0;
    background-image: url(/static/images/cityscape.jpg);
    background-attachment: scroll;
    background-size: cover;
    color:#fff;
}

.auth .page-header h1 {
    margin: 0;
    padding: 1em;
    background-color: rgba(0, 0, 0, .5);
    text-shadow: 1px 1px 1px black;
}

.auth #content {
    margin: 0 auto;
    min-width: 300px;
    text-align:center;
}
.auth #content a {
    color: #000;
}

.auth #content a > span {
    color: #ba0020;
    text-decoration: underline;
}
.auth #content a:hover > span {
    color: #5f6369;
}
.auth button,
.auth input[type=submit] {
    display:block;
    margin: 1em auto;
    background-color:#000;
    color:#FFF;
    padding:0.6em 2em;
    font-size:1.1em;
    border: none;
}
.auth button:hover,
.auth input[type=submit]:hover {
    background-color:#5f6369;
    cursor: pointer;
}
ul.fields li {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

ul.fields > li:not(:last-child) {
    margin-bottom: 1em;
}
ul.fields li label {
    padding: 8px;
    letter-spacing: .09em;
    text-align: left;
}
ul.fields li .helptext {
    font-size: 0.9em;
    font-style: italic;
    text-align: left;
}
ul.fields li input,
ul.fields li textarea {
    padding: 10px;
    border: none;
    font-size: 1.1em;
    border-bottom: 1px solid #fff;
    background-color: #980c24;
    color: #fff;
}
ul.fields li input[type=text]:required:focus,
ul.fields li input[type=text]:focus {
    outline: auto;
    border: 1px dotted #fff !important;
    background-color: #980c24;
}

ul.fields li input[type=checkbox] {
    transform:scale(1.3);
    margin-left: 1em;
}
ul.fields ::-webkit-input-placeholder {
    color: #ddd;
    font-weight: 200;
    font-style:italic;
    font-size: 0.9em;
    text-transform: lowercase;
}
ul-fields :-ms-input-placeholder {
    color: #ddd;
    font-weight: 200;
    font-style:italic;
    font-size: 0.9em;
    text-transform: lowercase;
}
ul.fields ::placeholder {
    color: #ddd;
    font-weight: 200;
    font-style:italic;
    font-size: 0.9em;
    text-transform: lowercase;
}
label[for=id_captcha] {
    display: none;
}
.auth #main #content p {
    text-align: center;
    font-size: 1.2em;
    margin: 1.2em;
}
.auth #main #content p.notes {
    text-align: center;
    font-size: 1em;
    margin: 1.5em;
}
input[type="checkbox"]#accept {
    transform:scale(1.5, 1.5);
    margin: 0.6em;
}

ul.errorlist {
    display: block;
    width: 100%;
    text-align: left;
    background-color: #eee;
    color: #770000;
    padding: 5px;
    font-weight: bold;
}

/* SLICK SLIDER CSS OVERRIDES */

.slick-slider {
    display: flex;
    align-items: center;
}

.slick-arrow {
    background-color: transparent;
    border: none;
    transform: scale(.7);
}

.slick-prev::before {
    content: url('https://f.hubspotusercontent40.net/hubfs/5522198/arrow-1.png');
}
  
.slick-next::before {
    content: url('https://f.hubspotusercontent40.net/hubfs/5522198/arrow-2.png');
}

/* RFA NEW HERO */

.homepage .page-header .page-header__hero {
    display: block;
    margin: 2em 0;
}
.homepage .page-header .page-header__hero img {
    width: 90%;
    height: auto;
    object-fit: cover;
}
.homepage .page-header__disclaimer {
    width: max-content;
    margin: 0 auto;
}
.page-header__disclaimer-image {
    display: none;
}
.page-header__disclaimer-image--hidden {
    display: block;
    margin: 0 auto;
}
.homepage .page-header__disclaimer > h1 {
    text-align: center;
}
.homepage .page-header__disclaimer-text {
    display: block;
    text-align: left;
}
.homepage .page-header__disclaimer-text > a:hover {
    color: #ba0020 !important;
}
.homepage .page-header__disclaimer-text > a {
    color: #fff !important;
    font-size: 0.85em;
    text-shadow: 1px 1px 1px black;
}  
.homepage .page-header h1.page-header__title--primary {
    padding: 0;
    background-color: transparent;
    max-width: none;
    margin: 0;
}
.homepage .page-header h1.page-header__title--primary > span{
    font-size: .8em;
    font-weight: 300;
}
.homepage .page-header h2.page-header__title--secondary {
    font-weight: 700;
}
.homepage .page-header h3.page-header__title--tertiary {
    font-weight: 700;
    font-size: 1.5em;
    color: #b2b5b6;
    text-shadow: 1px 1px 1px black;
}

/* TABLET */

@media all and (min-width: 600px) {
    .homepage .page-header {
        background-position: 50% 450px;
    }

    .auth .page-header {
        width: 100%;
        padding: 6em 0;
    }

    #first-award {
        margin-right: 1em;
        margin-bottom: 0;
    }
    .grid {
        display: flex;
        align-items: flex-start;
        flex-flow: row wrap;
    }
    .logo svg {
        max-height: 50px;
    }
    .toggle {
        flex: 1;
        text-align: right;
        order: 2;
    }
    .about .page-header h1,
    .how-it-works .page-header h1,
    .news .page-header h1 {
        font-size: 1.5em;
        padding: 0.3em 1em;
    }    
    #footer #redcompass {
        text-align: right;
    }
    section.block-list ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: top;
    }
    .news-section {
        display: flex;
    }
    .news-section .posts {
        margin-right: 0.75em;
    }
    .news-section .twitter-block {
        margin-left: 0.75em;
    }
    .video-responsive {
        width: 100%;
        padding-bottom:28%;
        height: auto;
    }
    .flex-text {
        padding: 0 1em;
    }
    #out-of-fog,
    #award {
        display: flex;
    }
    ul.fields li {
        flex-direction: row;
        align-items: center;
    }
    ul.fields li input,
    ul.fields li textarea {
        background-color: #ba0020;
    }
    ul.fields > li > label {
        flex: 1 1 30%;
        max-width: 200px;
        text-align: right;
    }
    ul.fields > li > label + * {
        flex: 1 1;
    }
    ul.fields li input[type=checkbox] {
        flex: 0 1 auto;
    }

    section,
    section.block-quote blockquote {
        margin: 2em auto;
    }
    .homepage .page-header {
        background-position: 50% 800px;
        min-height: 400px;
    }
}

/* DESKTOP */
@media all and (min-width: 900px) {
    .homepage .page-header {
        background-position: 50% 350px;
    }

    .homepage .page-header .page-header__hero {
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-width: 1200px;
        margin: 3em 0;
    }

    .homepage .page-header h1.page-header__title--primary,
    .homepage .page-header h2.page-header__title--secondary,
    .homepage .page-header h3.page-header__title--tertiary {
        text-align: left;   
    }

    .homepage .page-header__disclaimer {
        margin: 0;
    }

    .page-header__disclaimer-image {
        display: block;
    }

    .page-header__disclaimer-image--hidden {
        display: none;
    }
    
    section,
    section.block-quote blockquote {
        margin: 3em auto;
    }
    #award-logo-paytech {
        width: 60%;
    }
    #award-logo-themis {
        width: 60%;
    }
    .item {
        display: block;
        width: auto;
    }
    .toggle {
        display: none;
    }
    .logo {
        order: 0;
    }
    .logo svg {
        max-width: 200px;
        max-height: 100px;
    }
    .item {
        order: 1;
    }
    .menu li {
        padding: 0.5em 1.2em;
    }
    .homepage .block-list {
        margin: 0 auto;
    }
    .homepage .block-paragraph {
        margin: 0 auto;
        margin-bottom: 2em;
    }

    .how-it-works .block-paragraph img {
        width: 80%;
        display: block;
        margin: 2em auto;
    }

    .auth #main #content .notes {
        text-align: left !important;
    }
}

/* LOGIN/REGISTRATION CHANGES */
.login-banner {
    padding: 1.5em;
    background-color: #eeeeee;
}

.login-banner > p {
    margin: 0 !important;
    color: #000;
    font-weight: 600;
}

.login-banner > a {
    display: inline-block;
    margin-top: .5em !important;
    font-size: 1.2em;
    font-weight: 600;
}

.auth .fields {
    padding: 0 1.5em;
}

.auth h1 {
    padding: 0 1em;
}

.item a.sign-up {
    display: block;
    margin-top: 1em;
}
.item a.sign-up:hover {
    color: #b2b5b6;
}

@media all and (min-width: 600px) {
    .item a.sign-up {
        padding: .5em;
    }
}

@media all and (min-width: 900px) {
    .item a.sign-up {
        display: inline-block;
        margin: 0 auto;
        padding: .5em;
        margin-left: 1.5em;
        background-color: #ba0020;
        max-width: max-content;
    }
}

/*Sign-up section overrides*/
.auth #signup_form {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding: 2em 0;
}

.auth #signup_form > *:not(button) {
    color: #000;
}

.auth #signup_form label {
    flex: none;
    font-weight: 600;
    max-width: none;
}

.auth #signup_form input {
    background-color: transparent;
    border-bottom: 2px solid #000;
}

.auth #signup_form button {
    background-color: #ba0020;
    color: #fff;
    font-weight: 600;
}

.auth #signup_form button:hover {
    background-color: #5f6369;
}

#signup_form ul.fields li input[type=text]:required:focus, ul.fields li input[type=text]:focus {
    border: none;
    border-bottom: 2px solid #000;
}

#signup_form ul.fields li input,
ul.fields li textarea {
    padding: 10px;
    font-size: 1.1em;
    color: #000;
}

/*Login section overrides*/
.auth .login {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 2em 0;
}

.auth .login > *:not(button) {
    color: #000;
}

.auth .login ul.fields li input,
ul.fields li textarea {
    padding: 10px;
    font-size: 1.1em;
    color: #000;
}

.auth .login label {
    flex: none;
    max-width: none;
    font-weight: 600;
}

.auth .login input {
    background-color: transparent;
    border-bottom: 2px solid #000;
}

.auth .login a {
    color: #ba0020 !important;
    text-decoration: underline;
    font-size: 1em;
}

.auth .login a:hover {
    color: #5f6369 !important;
}

.auth .login button {
    background-color: #ba0020;
    color: #fff;
    font-weight: 600;
}

.auth .login button:hover {
    background-color: #5f6369;
}

/*Password reset section overrides*/
.auth .password_reset .fields li {
    justify-content: center;
    color: #000;
}

.auth .password_reset .fields label {
    flex: 0;
    font-weight: 600;
}

.auth .password_reset .fields input {
    color: #000;
    flex: 0;
    background-color: transparent;
    border-bottom: 2px solid #000;
}

.auth .password_reset input[type="submit"] {
    background-color: #ba0020;
    color: #fff;
}

.auth .password_reset input[type="submit"]:hover {
    background-color: #5f6369;
}

/*Navigation button style override*/
a.sign-up:hover {
    color: #fff !important;
    background-color: #5f6369;
}

@media (min-width: 600px) {
    .auth .login label {
        flex-basis: 90px;
    }

    .auth .password_reset .fields label {
        flex-basis: 90px;
    }
}