/*
Basics
*/

@font-face {
    font-family: "Open Sans";
    src: url("fonts/OpenSans-Regular.ttf");
}

@font-face {
    font-family: "Open Sans Semibold";
    src: url("fonts/OpenSans-Semibold.ttf");
}

@font-face {
    font-family: "Open Sans Bold";
    src: url("fonts/OpenSans-Bold.ttf");
}

@font-face {
    font-family: "Graphik Medium";
    src: url("fonts/Graphik-Medium.otf");
}

html {
    line-height: 1.6;
    color: #333;
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    text-align: center;
}

body {
    margin: 0;
}

/* Minimum padding*/
header, section, footer {
    padding: 7% 5%;
}

/* Content max-widths set here.  Full-screen-width backgrounds should be applied to sections directly */
header > *,
section > *,
footer > * {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

h1, h2, h3 {
    padding: 0;
    margin-top: 0;
    margin-bottom: 5%;
    text-transform: uppercase;
}

h1 {
    max-width: 500px;
    font-family: "Open Sans Semibold", sans-serif;
    font-size: 1.8rem;
    margin-bottom: 5%;
}

h2 {
    font-family: "Open Sans Bold", sans-serif;
    font-size: 1.5rem;
}

h3 {
    font-family: "Open Sans", sans-serif;
    font-size: 1.3rem;
}

p {
    max-width: 500px;
    margin: 0 auto 5%;
    padding: 0;
    color: #888;
}

img {
    display: inline-block;
    max-width: 100%;
}

ul {
    margin: 0 0 5%;
    padding: 0;
    list-style-position: inside;
}

ul > li {
    margin-bottom: 5px;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a:hover,
a:focus,
a:active,
a:visited {
    color: inherit;
    text-decoration: none;
}

:focus {
    outline: none;
}

strong {
    font-family: "Open Sans Bold", sans-serif;
}

nav {
    margin-bottom: 10%;
}

.nav-item {
    display: inline-block;
}

.grid-cell {
    margin-bottom: 10%;
}

.icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 3px;
}

.icon-dna {
    width: 18px;
    height: 24px;
}

.btn,
.btn:visited {
    display: inline-block;
    padding: 10px 20px;
    margin: 0;
    border: none;
    border-radius: 100px;
    appearance: none;
    -webkit-appearance: none;
    font-size: 1.25rem;
    font-family: "Graphik Medium", sans-serif;
    background-color: #0ba0db;
    color: #fff;
    transition: background .3s;
}

.btn:hover,
.btn:focus,
.btn:active {
    color: #fff;
    background-color: #69bee0;
}
.btn:disabled {
    opacity: 0.3;
}

input[type=email]{
    border: none;
    height: 42px;
    width: 220px;
    padding: 0 0 0 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    vertical-align: middle;
    display: inline-block;  
}
input[type=email]:focus,
input[type=email]:active {
    outline: none;
}

.error, .success {
    margin: 10px 0;
    font-weight: bold;
    text-align: center;
}

.error {
    color: #ff6d6d;
}

.success {
    color: #fff;
}

#newsletter-form {
    margin-top: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

#newsletter-form.active {
    opacity: 1;
}

#newsletter-form .btn {
    vertical-align: top;
}

#newsletter-form input {
    display: inline-block;
    vertical-align: top;
}

/*
Section-specific
*/
header {
    position: relative;
    padding-top: 2%;
    padding-bottom: 30%;
    color: #fff;
    overflow: hidden;
}

video#bgvid {
    position: absolute;
    bottom: 0;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    z-index: -1;
    transform: translateX(-50%);
    background: #27293F;
}

.diagram {
    padding: 0 3%;
    margin-bottom: 3%;
}

section#whitepaper {
    background-color: #fcfcfc;
}

section#market {
    color: #fff;
    background-color: #212438;
    padding-bottom: 0;
}

section#market > img {
    display: block;
    width: 110%;
    margin-top: 10%;
    margin-left: -5%;
    max-width: none;
}

section#breakthroughs .inset {
    max-width: 400px;
    text-align: left;
    margin: 0 auto 0;
}

.breakthroughs-desktop-diagram {
    display: none;
}

section#usecases {
    color: #fff;
    background: #212438 url(images/use-cases-bg.png) center center no-repeat;
    background-size: cover;
}

section p {
  max-width: 900px;
}

section#usecases img {
    display: inline-block;
    width: 150px;
    height: 150px;
    vertical-align: top;
    border-radius: 100px;
    border: 3px solid #888;
}

section#usecases blockquote {
    display: inline-block;
    text-align: left;
    padding: 0 5%;
    margin: 0;
}

section#usecases p {
    font-size: 1.25rem;
    color: #fff;
}

section#usecases footer {
    background: transparent;
    display: block;
    text-align: right;
    font-size: 1.25rem;
    font-style: italic;
}

.slick-dots li button::before {
    opacity: 1;
    color: black;
}

section#news .grid {
    max-width: 700px;
}

section#news .grid-cell {
    padding: 0 1%;
}

section#media {
    color: #fff;
    background-color: #212438;
}

/* Note the 16/9 aspect responsive aspect ratio hack in the padding + absolute positioned inner element */
.ytplayer-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-bottom: 5%;
}

#ytplayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ytthumb {
    display: block;
    margin: 0 10%;
}

.ytthumb img {
    border: 5px solid transparent;
    transition: border .3s;
}

.ytthumb img {
    display: block;
    margin-bottom: 10px;    
}

.ytthumb-title {
    padding: 0 10%;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.ytthumb.active img {
    border-color: #0ba0db;
}

.ytthumb.active .ytthumb-title {
    color: #0ba0db;
}

footer {
    color: #fff;
    background-color: #212438;
}

footer img {
    margin-top: 3%;
}

/* Medium and wider screens */
@media (min-width: 960px) {

    html {
        font-size: 16px;
    }

    nav {
        display: flex;
    }

    .nav-items-left,
    .nav-items-right {
        flex: 1;
    }

    .nav-items-left {
        text-align: left;
    }

    .nav-items-right {
        text-align: right;
    }

    /*
    Simple responsive grid
    (Not relevant until medium+ screens)
    */
    .grid {
        display: flex;
        flex-wrap: wrap;
    }

    .grid-cell {
        flex: 1;
        padding: 0 3%;
    }

    /* Make all diagrams have consistent height */
    .diagram {
        min-height: 200px;
    }

    .diagram > img {
        line-height: 200px;
        vertical-align: middle;
    }

    /*  Join's diagrams are a little taller */
    #join .diagram {
        min-height: 300px;
    }

    #join .diagram > img {
        line-height: 200px;
    }

    #newsletter-form .btn {
        margin-left: -5px;
        border-radius: 0 100px 100px 0;
    }

    #newsletter-form input {
        border-radius: 100px 0 0 100px;
    }

    section#basics h3 {
        min-height: 100px;
        font-size: 1.25rem;
    }

    section#basics p {
        font-size: 0.9rem;
    }

    section#whitepaper h3 {
        text-align: left;
        margin-top: 10%;
    }

    section#whitepaper p {
        text-align: left;
    }

    /* Breakthrough section with enlarged diagram */
    section#breakthroughs {
        position: relative;
        min-height: 750px;
    }

    section#breakthroughs .inset {
        position: absolute;
        bottom: 15%;
        left: 60%;
    }

    section#breakthroughs ul {
        margin: 0 0 5%;
        padding: 0;
        list-style-position: inside;
    }

    section#breakthroughs li {
        margin-bottom: 5px;
    }

    .breakthroughs-mobile-diagram {
        display: none;
    }

    .breakthroughs-desktop-diagram {
        display: block;
        width: 110%;
        max-width: none;
        margin-left: -5%;
    }

    /* Fix video proportions once max content-width of 960px is in play */
    .ytplayer-wrapper {
        width: 896px;
        height: 504px;
        padding-bottom: 0;
    }
}
