body,
html {
    margin: 0 1rem 1rem 1rem;
    font-size: 20px;
    background-color: #cbd3d5;
    font-family: "Roboto", serif;
    color: #212B37;
    -webkit-text-size-adjust: 100%;
}

.intro,
.masthead,
.endless-element {
    padding: 1rem 2rem 1rem 2rem;
    line-height: 1.9rem;
}

.endless-element {
    padding-right: 0;
}

.endless-element p {
    line-height: 1.9rem;
    font-weight: 300;

}

.masthead {
    padding: 1rem;
    position: relative;
    line-height: 4rem;
    color: #fff;
    background-color: #2d545e;
}

.masthead .bg-animation {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    overflow: hidden;
}

@keyframes animSawtooth {
    from {
        background-position: 0;
    }

    to {
        background-position: -1.5rem;
    }
}

.masthead::after {
    background: linear-gradient(-45deg, #12343b 0.75rem, transparent 0), linear-gradient(45deg, #12343b 0.75rem, transparent 0);
    background-position: left bottom;
    background-repeat: repeat-x;
    background-size: 1.5rem 1.5rem;
    content: " ";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5rem;
    /*-webkit-animation: animSawtooth 1.25s linear infinite;
    -moz-animation: animSawtooth 1.25s linear infinite;
    -ms-animation: animSawtooth 1.25s linear infinite;
    animation: animSawtooth 1.25s linear infinite;*/
}

.intro {
    font-weight: 300;
    color: #fff;
    background-color: #12343b;
    text-align: center;
}

.emphasis {
    text-align: center;
    line-height: 3rem;
    font-size: 2.8rem;
    font-family: "Roboto Slab", serif;
}

.emphasis span {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

#content .intro h3 {
    font-size: 1rem;
    font-family: "Roboto", serif;
    margin: 0;
    padding: 0;
}

#content .intro ul {
    display: inline-block;
    margin: 0 0 0 -0.25rem;
    padding: 0;
}

#content .intro ul li {
    display: inline-block;
    padding: 0.25rem 0.5rem 0.25rem 0.5rem;
    margin: 0.25rem 0.25rem 0.25rem 0.25rem;
    background-color: #2d545e;
    border-radius: 0.25rem;
}

.fade-in {
    opacity: 1;
    animation-name: fade-in-opacity;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 0.9s;
}

.formpage #content,
.project #content {
    padding-bottom: 8rem;
}

@keyframes fade-in-opacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#content {
    margin-left: auto;
    margin-right: auto;
    max-width: 70rem;
    padding: 1rem;
    position: relative;
    /*padding-top: 4.3rem;*/
    margin-top: 1rem;
    background-color: #fff;
}

#content a {
    color: #2d545e;
    text-decoration: underline;
}

#content>h1,
#content article {
    max-width: 45rem;
    margin-left: auto;
    margin-right: auto;
}

#content article .block-paragraph,
.formpage #content article p {
    line-height: 1.9rem;
}

#content article .block-paragraph p,
.formpage #content article p {
    margin-bottom: 1.5rem;
}

#content .block-paragraph a:hover {
    text-decoration: none;
}

.navbar-nav {
    margin: 0;
    padding: 0;
}

#nav-outer {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

#nav-outer li {
    display: inline-block;
    padding: 0rem;
    border: 0.125rem solid #2d545e;
}

#nav-outer a {
    text-transform: uppercase;
    position: relative;
    display: block;
    font-weight: 900;
    padding: 0.5rem 1rem 0.5rem 1rem;
    font-size: 0.9rem;
    text-decoration: none;
    overflow: hidden;
    background-color: #fff;
    background-repeat: no-repeat;
    transition: background-color 300ms  ease-in-out;
    transition: color 600ms  ease-in-out;
}

#nav-outer a:hover {
    color: #fff;
    background-color: #2d545e;
    transition: background-color  600ms  ease-in-out;
    transition: color  300ms  ease-in-out;
    
}



.masthead h1 {
    text-align: center;
    font-size: 5rem;
    line-height: 4.5rem;
    font-weight: 500;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    font-family: "Roboto Slab", serif;
}

.masthead h2 {
    text-align: center;
    font-size: 2.5rem;
    line-height: 2.5rem;
    font-weight: 100;
    margin-top: 0;
    margin-bottom: 4rem;
    font-family: "Roboto Slab", serif;
}

.endless-element h3,
#content>h1 {
    font-size: 2rem;
    margin-top: 0;
    font-weight: 900;
    line-height: 2.5rem;
    font-family: "Roboto Slab", serif;
}

.endless-element h3,
.block-heading {
    font-size: 1.4rem;
    margin-top: 0;
    font-weight: 900;
    line-height: 1.8rem;
    font-family: "Roboto Slab", serif;
}

.endless-element {
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    opacity: 0;
    height: 0;
    border-bottom: 0.125rem dashed #cbd3d5;
}

.endless-element.activated {
    opacity: unset;
    height: unset;
    display: flex;
    margin-top: 4rem;
    padding-bottom: 4rem;
}

.endless-element>div {
    width: 100%;
}

.endless-element:last-of-type {
    border-bottom: none;
}

.col-right,
.col-left {
    position: relative;
}
.col-right>div{
    overflow:hidden;
    border-radius: 0.5rem;
}

.page-form label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
}

.page-form :is(textarea, input, select) {
    width: 100%;
    max-width: 500px;
    min-height: 40px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.page-form .helptext {
    font-style: italic;
}

.footer {
    text-align: center;
    width: 100%;
    font-size: 0.8rem;
    margin-top: 2rem;
}

input[type="email"],
textarea {
    padding: 0.5rem;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;

}

button[type="submit"] {
    padding: 0.5rem 1rem 0.5rem 1rem;
    color: #2d545e;
    background-color: #FFF;
    border: solid 0.125rem #2d545e;
    margin: 1rem 0 1rem 0;
    text-transform: uppercase;
    display: block;
    font-weight: 900;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
}

button[type="submit"]:hover {

    color: #fff;
    background-color: #2d545e;
    border: solid 0.125rem #fff;

}

.page-form :is(textarea, input, select) {
    border: 0.125rem solid #212B37;
}

.page-form label {
    font-weight: 600;
}

#content .endless-element .col-left a:last-of-type {
    font-weight: 900;
    position: relative;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2rem;
}

#content .endless-element .col-left a:last-of-type:hover {

    text-decoration: underline;
}

.endless-element .col-left a:last-of-type:after {
    content: '';
    width: 2rem;
    height: 2rem;
    display: block;
    position: absolute;
    right: -1.8rem;
    border-radius: 50%;
    top: -0.05rem;
    background-image: url('/static/images/arrow.svg');
    background-size: contain;
}

a[href*="play.google.com"],
a[href*="apps.apple.com"] {
    display: block;
    background-image: url('/static/images/google.svg');
    background-repeat: no-repeat;
    background-size: contain;
    height: 2rem;
    line-height: 0;
    font-size: 0;
    color: transparent;
}

a[href*="apps.apple.com"] {
    background-image: url('/static/images/apple.svg');

}

@media (min-width:900px) {
    .endless-element>div:nth-child(2) {
        width: calc(100% / 3 * 2);
    }

    .endless-element>div:nth-child(1) {
        width: calc(100% / 3 * 1);
        order: -1;
    }

    .col-left {
        padding-right: 2rem;
    }
}

@media (max-width:900px) {

    body,
    html {
        margin: 0;
        font-size: 16px;
        background-color: #FFF;
    }

    #content {
        padding: 3.25rem 0 0.5rem 0;

    }

    .emphasis {
        margin-top: 2rem;
        margin-bottom: -1rem;
    }

    #nav-outer {
        top: 0.5rem;
        right: 0.5rem;
    }

    #content h1 {
        font-size: 3rem;
        line-height: 3.3rem;
    }

    #content h2 {
        font-size: 2rem;
    }

    .masthead {
        line-height: 2.2rem;
    }

    .intro,
    .masthead,
    .endless-element {
        padding: 1rem 1rem 1rem 1rem;

    }

    .endless-element {
        border-bottom: 0.125rem dashed #2d545e;
    }

    .endless-element.activated {
        margin-top: 2rem;
        padding-bottom: 4rem;
    }

    .project #content,
    .formpage #content {
        padding-top: 5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .footer {
        background-color: #FFF;
        margin: 0;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .page-form :is(textarea, input, select) {
        width: 100%;
        max-width: unset;
    }

}