
section {
    padding: 2em 0 2em;
    clear: both;
}
    section h3 {
        margin: 0 0 1em;

        font-size: 2em;
        text-align: center;
        /* text-transform: lowercase; */
    }

section p {
    font-size: 1.15em;
}


#motto {
    position: relative;
    padding: 0;
    background: url("../img/home/background/frontpage60px.be43e1d00593.jpg") no-repeat center top;
/*    background-position-y: -570px; */
    color: #fff;
    text-align: center;

/*    -moz-background-size: cover !important;
    background-size: cover !important;
*/
}

        #motto .container {
            position: relative;
            padding: 4em 0;
        }

    #motto h2 {
        margin: 0;

        font-size: 2.5em;

        text-shadow: 1px 1px 3px rgba(0,0,0,.1);
    }
        #motto h2 .kern-r {
            position: relative;
            left: -2px;
        }

    #motto h2,
    #motto h3 {
        padding: 0 5%;
    }

    #motto .button {
        margin-bottom: 1em;
        font-size: 1.5em !important;
    }

    #motto .container h2 { margin: 0 0 .25em 0; line-height: 60%; }
    #motto .container h3 { margin: 0 0 .5em 0; }
        #motto .container h2 strong,
        #motto .container h3 strong {
            font-weight: 900;
            text-shadow: 0 1px 0 rgba(255,255,255,.5);
        }

    /* #motto .container h3 { width:90%; max-width: 360px; margin: auto;} */

    #mottos {
        text-align:left;
        margin: 0 1em;
    }

    #mottos h4 {
        margin-bottom: .1em;
        font-size: 1.8em;
        text-transform: lowercase;
        padding-left: 0.3em;
        font-weight: 500;
    }
    #mottos p {
        font-size: 1.1em;
        margin: 0;
        text-align: center;
    }
        #mottos p.withborders {
            border: 2px solid rgba(255,255,255,.8);
            border-width: 2px 0 0 2px;
            padding: .6em .9em;
            text-align: left;
        }

    #mottos ul {
        margin: 0;
    }

    #mottos .button {
        font-size: 1.1em;
        font-weight: 200;
        margin-top: .5em;
        white-space: nowrap;
    }
        #mottos .button b {
            font-weight: 800;
        }

#motivation {
    margin: 1em 0 3.5em;

    font-size: 2em;
}
    #word-slider {
        display: block;
        position: relative;
        margin: 0;
        padding: 0;

        font-weight: 400;
        list-style: none;
        text-align: center;

        vertical-align: top; /* for position anchoring */
    }
        #word-slider li {
            position: absolute;
            left: 50%;
            top: .5em;
            opacity: 0;
        }
            #word-slider span {
                position: relative;
                left: -50%;
            }

        #word-slider li.active {
            top: 0;
            opacity: 1;
            -webkit-transition: opacity 1s, top 1s ease-out;
                    transition: opacity 1s, top 1s ease-out;
        }
        #word-slider li.out {
            top: -.5em;
            -webkit-transition: opacity 1s, top 1s ease-out;
                    transition: opacity 1s, top 1s ease-out;
        }

.secondary_cta a {
    margin-left: .25em;
}

/* .homepage_headings {
   font-size:300%;
   clear:both;
   width:60% !important;
   max-width:860px !important;
   font-family:Raleway;
   font-weight:200;
} */

.homepage_headings {
    color: darkgrey;
    font-size:300%;
    font-family:Raleway;
    font-weight:200;
    margin: 1em auto !important;
}



.homepage_headings2 {
  font-size: 350%;
}

.homepage_subheading {
    font-family: 'Raleway', sans-serif;
    width: 70%;
    text-align: center;
    text-shadow: none;
    line-height: 1.3;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    font-size: 258% !important;
    text-transform: uppercase;
    color: #ff9b00;
    text-shadow: none;
}

#testimonials .container {
    overflow: hidden;
}
    #testimonials .container + .container {
        margin-top: 2em;
    }
        #testimonials .container.nomargin {
            margin-top: 0;
        }

    #testimonials ul {
        font-size: 1.1em;
        text-align: left;
    }
        #testimonials li + li {
            margin-top: .5em;
        }

    #testimonials .note {
        padding: .5em 1em;

        background: #f0f0f0;
        font-size: 1em;
    }
        #testimonials .container.nomargin .note {
            margin: 0;
            background: transparent;
        }

    #testimonials a.hover {
        height: 1.2em;
    }


#testimonials .person .name {
    margin: .35em 0 0;
}

#testimonials .person .location {
    font-size: 1.15em;
}

#community {
    background: #319eb3;
    color: #fff;
}
    #community .social {
        margin: 0 2% 2em;
    }
        #twitter,
        #facebook .widthfix,
        #instagram {
            min-height: 150px;

            background: #fff;
            border: 1px solid #4F555F;
            box-shadow: 0 0 2px rgba(0,0,0,.15);

            overflow: hidden;
        }

        .social iframe {
            display: block !important;
        }

        a.twitter-timeline,
        .fb-xfbml-parse-ignore {
            display: block;
            padding: 1em;
        }

        #fb-root {
            display: none;
        }
            #facebook * {
                display: block;
                margin: 0 auto;
            }

        #instagram .header {
            margin-top: .5em;
            line-height: 3.5em;
        }
            #instagram .header a:hover {
                opacity: .5;
                text-decoration: none;
            }
            #instagram .header img {
                height: 3.5em;
                margin: 0 .5em .5em;

                border: 1px solid #999;
                border-radius: 3.5em;

                vertical-align: middle;
            }
            #instagram .header strong {
                font-size: 1.5em;
            }

        #instagram iframe {
            margin: 0 2.5%;
            width: 95%;

            border: 0;
            overflow: hidden;
        }


#team {
    text-align: center;
}
    #team p {
        padding: 0 2%;
        text-align: center;
    }
    #team a {
        margin-top: 1em;
        font-size: 1em;
    }

.map-illustration {
    background-color: #eee;
}
    .map-illustration .container {
        max-width: 90%; display: flex;
    }

.image-container {
    width: auto;
}
    .image-container img {
        max-width: 100%
    }

.racery-promises {
    border-top: 2px solid #319eb3;
    border-bottom: 2px solid #319eb3;
    width: 50%;
    list-style-type: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    }

    .promise {
        font-family: 'Raleway', sans-serif; font-size: 1.925rem; margin-bottom: 2rem; font-weight: 200;
    }
    .promise strong {
        font-family: 'Raleway', sans-serif; font-size: 2.925rem; margin-bottom: 2rem; font-weight: 700;
    }

    .promise-more-link, promise-more-link a {
        width: 100%; text-align: right !important; font-family: 'Raleway', sans-serif;
    }

#contact_form {
    margin-top: 2em;
    line-height: 2.25em;
    font-size: 1.2em;
    font-weight: 400;
}

    #contact_form .field > label {
        vertical-align: top;
        padding-top: 0.5em;
        display: inline-block;
        margin-right: 1em;
        text-align: right;
        width: 12em;
        line-height: 1em;
    }

    #contact_form .field {
        clear: both;
    }

    #contact_form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), #contact_form textarea, #contact_form select {
        border: 1px solid #ccc;
        box-shadow: 0 0 4px rgba(49, 158, 179, 0);
        transition: border 0.6s ease 0s, box-shadow 0.6s ease 0s;
    }

    #contact_form textarea, #contact_form input[type="text"], #contact_form input[type="date"], #contact_form input[type="password"], #contact_form input[type="email"] {
        width: 395px;
    }

    #contact_form input[type="text"], #contact_form input[type="date"], #contact_form input[type="password"], #contact_form input[type="email"], #contact_form textarea, #contact_form select, #contact_form .helptext {
        line-height: 1.4em;
        padding: 0 0.15em;
    }

    #contact_form label:not(.dd-selected-text):not(.dd-option-text):not(.notransform) {
        text-transform: lowercase;
    }

    #contact_form .field > ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
    }

    #contact_form .field > ul li {
        padding-left: 1%;
    }

    #contact_form .field > ul, #contact_form select {
        width: 395px;
    }

    #contact_form .field > ul {
        display: inline-block;
    }

    #contact_form li > label {
        text-align: left !important;
    }

    #contact_form button {
        margin: auto;
        display: block;
    }

#cform {
    padding: 0 0;
    max-width: 800px;
    margin: auto;
}

    #cform fieldset {
        border: none;
    }


.container {
    max-width: 100%;
}

.testimonials {
    padding: .75em 5%;
    background: #319eb3;
    color: #fff;

    font-size: 2.5em;
    text-align: center;
    font-style: italic;
    font-weight: bold;
}


#header {
    position: fixed;
    width: 100%;
    top: 0;
}

#create-your-virtual-race-button {
    text-decoration: none;
    color: white;
}

    #create-your-virtual-race-button h1:hover {
        background-color: rgba(255,255,255,0.5) !important;
        /* color: #319eb3; */
    }

#footer {
    margin-top: 0;
}

#header {
    background: none;
}

.homepage_motto {
    padding-top:50px !important;
}

.featured-race h2 {
    text-align: center;
}

#featured-search {
    width: 90%;
}

@media (min-width: 640px) {

    #featured-search {
        width: 70%;
    }

    #motto .container {
        padding: 3em 0;
    }
    #motto h2 {
        font-size: 5.5em;
    }
        #motto h2 .kern-r {
            left: -4px;
        }
    #mottos {
        margin: 0 auto;
        max-width: 450px;
    }
        #mottos p {
            font-size: 1.15em;
            text-align: left;
        }
        #mottos ul {
            font-size: 1.05em;
        }
        #mottos .button {
            font-size: 1.3em;
        }

    #motivation {
        margin: .75em 0 2.5em;
    }

    #motivation,
    section h3 {
        font-size: 2.5em;
    }

    #word-slider {
        display: inline-block;
        width: 3.3em;
        text-align: left;
    }
        #word-slider li {
            left: 0;
        }
            #word-slider span {
                position: static;
            }

    #testimonials .person {
        margin: 0 auto 3em;
        max-width: 30em;
    }
}

@media (min-width: 640px) {
    #mottos .button {
        font-size: 1.4em;
    }

    #testimonials,
    #community {
        overflow: hidden;
    }
        #testimonials .person {
            float: left;
            width: 29%;

            margin: 0;

            font-size: .8em;
        }
        #community .social {
            max-width: 400px;
            margin: 0 auto 2em;
        }

}

@media (min-width: 800px) {
    #featured-search {
        width: 60%;
    }
    #community {
        padding: 2em 0 0;
    }

    #testimonials .person,
    #community .social {
        font-size: .9em;
    }
    #community .social {
        float: left;
        width: 29%;

        margin: 0 2% 2em;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .promise {
        font-size: 1.325rem;
    }
    .promise strong {
        font-size: 1.925rem;
    }
    #motto .top-container {
        max-width: 100% !important;
    }
    #motto .top-container .homepage_headings {
        width: 90% !important;
        font-size: 220%;
    }
}

@media (min-width: 1280px) and (max-width: 1890px) {
    .top-container {
        max-width: 100% !important;
    }
    .homepage-heading {
        font-size:250%;
    }
/*
    .motto-container {
        width: 70% !important;
    }
    .img-globus {
        width: 30% !important;
    }
*/
}



@media (min-width: 1024px) {
    #featured-search {
        width: 50%;
    }
    #testimonials .person,
    #community .social {
        font-size: 1em;
    }

}
@media (max-width: 1023px) {
    .map-illustration .container {
        flex-wrap: wrap;
        max-width: 100%;
    }
    .racery-promises {
        width: 90%;
    }
    .img-globus {
        display: none;
    }
    .motto-container {
        width: 100% !important;
    }
    .top-container {
        max-width: 100% !important;
    }
}


@media (max-width: 640px) {
   #contact_form .field > label {
        text-align: left;
   }

   #contact_form textarea, #contact_form input[type="text"], #contact_form input[type="date"], #contact_form input[type="password"], #contact_form input[type="email"] {
        width: 96%;
   }

   #contact_form .field > ul, #contact_form select {
        width: 96%;
   }

   .homepage_headings {
        font-size: 140% !important;
   }

   .homepage_headings2 {
       font-size: 180%;
       margin-bottom: .5rem !important;
   }
   .homepage_subheading {
       font-size: 165%!important;
   }
   #motto h2, #motto h3 {
    padding: 0 !important;
   }
}


@media (max-width: 920px) {
   #cssmenu {
        padding-left: 0;
   }
   #cssmenu > ul > li > a, #cssmenu > ul > li > a > span:first-child {
       font-size: 14px;
       padding: 14px 4px;
   }
   #social {
       display: none;
   }

}

@media (max-width: 640px) {
   #header > .container > h1 {
        width: 18px;
        height: 45px;
        overflow: hidden;
   }
   #cssmenu {
        padding-left: 0;
   }
   #cssmenu > ul > li > a, #cssmenu > ul > li > a > span:first-child {
       font-size: 9px;
       padding: 14px 4px;
   }
   #social {
       display: none;
   }
   #login_logout {
       margin-left: 0 !important;
   } 
   #testimonials > .container img {
       max-width: 100% !important;
   }
   #testimonials > .container > div > div {
       width: 100% !important;
   }
   .nomargin-mobile {
       margin: 0 !important;
   }
   .hide-mobile {
       display: none;
   }
   .clearboth-mobile {
       clear:both;
       display: block;
   }
   #cssmenu li ul a {
       font-size: 11px !important;
   }
   .homepage_motto {
       padding-top:15px !important;
   }
   #login_logout .runner .icon {
       margin-right: -0.6em ! important;
   }
   .featured-race {
       width: 97%;
       padding-bottom: 97%;
   }
}

/*vega*/
.img-container img {
    /* border: 1px solid #eee; */
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12), 0 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.headline {
    font-family: 'Raleway', sans-serif;
    font-weight: bold;
    color: #319eb3;
    text-align: left;
    font-size: 2.4rem;
    margin: auto;
    width: 920px;
    max-width: 90%;
    padding: 20px 10px;
}

.logo-container, .insta-container  {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 800px;
    max-width: 100%;
    margin: auto;
    flex-wrap: wrap;
    text-align: center;
}

.homepage-logos {
    padding: 0;
}

.homepage-featured-races {
    text-align: center;
}

.homepage-featured-see-more {
    font-size: 1.5em;
}

.insta-container img {
    border: none;
    width: 180px;
    height: auto;
}

.light-green {
    color: #2bc085;
}

.fancy-divider {
    width: 920px;
    max-width: 100%;
    height: 15px;
    margin: 50px auto 0 auto;
    text-align:center;
    border-top: 5px solid;
    /* border-image:   linear-gradient(to right, #329db3 25%, #3853c0 25%, #3853c050%,#3784ca 50%, #3784ca 75%, #24c9b9 75%) 5; */
    border-image:   linear-gradient(to right, #329db3 25%, #3853c0 25%, #3853c0 50%,#3784ca 50%, #3784ca 75%, #24c9b9 75%) 5;
}

@media(max-width: 800px) {
     .promise strong {
        font-size: 1.925rem;
    }
}



.align-self-center {
    align-self: center!important;
}


.col-6, .col-md-3 {
    position: relative;
    width: 100%;
    min-height: 1px;
    margin-bottom: 10px;
    /* padding-right: 15px;
    padding-left: 15px; */
}

.col-6 {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
}

@media (min-width: 768px) {
    .col-md-3 {
        -ms-flex: 0 0 25%;
        flex: 0 0 25%;
        max-width: 25%;
    }
}


@media(max-width:359px) {
    .logos, .logo-container, .insta-container {
        width: 320px;
    }
}
@media(max-width: 375px) {
    .logos, .logo-container, .insta-container {
/*        width: 370px; */
    }
    .racery-promises {
        padding-left: 35px;
    }
}


@media (min-width: 320px) and (max-width: 768px) {
    .logos, .logo-container, .insta-container {
        margin: auto;
    }

    .homepage_motto {
        width: 90% !important;
    }

    .homepage_headings {
/*        width: 100% !important; */
    }
    .container {
        max-width: 720px;
    }
    #motto .button-trial-homepage {
        font-size: 1.2em !important;
    }
}

@media (min-width: 768px) and (max-width: 769px) {
    .logos {
        width: 740px;
    }
    #motto .button-trial-homepage {
        font-size: 1.5em !important;
    }
    #motto h2, #motto h3 {
    padding: 0 !important;
   }
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.insta-link {
    width: 800px;
    text-align: right;
    margin: 0px auto 20px auto;
    font-weight: bold;
    font-family: 'Raleway';
    max-width: 90%;
}

.insta-link a:link, .insta-link a:hover  {
    font-family: 'Raleway', sans-serif;
}
