﻿/* defaults */
html {
    overflow-x: hidden;
    overflow-y: scroll;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

body {
    color: #202020;
    font-family: Barlow,BlinkMacSystemFont,-apple-system,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
    font-weight: 400;
    margin: 0;
}

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

h1, h2, h3, h4, h5, h6, p {
    margin-top: 0;
}

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

button {
    border: none;
    font-family: Barlow,BlinkMacSystemFont,-apple-system,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    section {
        padding-left: 2em;
        padding-right: 2em;
    }
}

@media (min-width: 769px) {
    html {
        font-size: 18px;
    }
}

@media (min-width: 1024px) {
    html {
        font-size: 20px;
    }
}

/*
  mobile: up to 768px
  tablet: from 769px
  desktop: from 1024px
  widescreen: from 1216px
  fullhd: from 1408px
*/

.decode2018-title {
    font-size: 35px;
}

#success-msg {
    color: green;
}

/* flex helpers */
.fl {
    display: flex;
}

.fl-cen {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fl-cen-bet {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fl-al-cen {
    display: flex;
    align-items: center;
}

/* layout helpers */
.block {
    display: block;
}

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

.max-desktop {
    max-width: 1196px;
    margin: 0 auto;
}

.abs-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.abs-bot {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* misc helpers */
.uppercase {
    text-transform: uppercase;
}

.text-white {
    color: #fff;
}

.text-primary {
    color: #ed1c24;
}

.text-center {
    text-align: center;
}

.loose {
    line-height: 1.75;
}

.has-shadow {
    box-shadow: 0 0.25em 1em rgba(0, 0, 0, 0.3);
}

.no-margin {
    margin: 0;
}

/* button */
.button {
    background-color: #ed1c24;
    color: #fff;
    cursor: pointer;
    padding: 0.5em 0.75em;
}

    .button.medium {
        font-size: 1.25em;
        padding: 0.6em 0.8em;
    }

/* sections */

/* --header */
.header {
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 999;
    transition: all 300ms;
}

    .header > .header-content {
        height: 80px;
    }

        .header > .header-content .decodeph-logo {
            margin-left: 1em;
            margin-right: 0.5em;
            width: 175px;
        }

            .header > .header-content .decodeph-logo.black {
                display: none;
            }

        .header > .header-content > .nav-items {
            margin-right: 1em;
        }

            .header > .header-content > .nav-items > .nav-item {
                padding: 4px 0;
            }

                .header > .header-content > .nav-items > .nav-item:not(:last-child) {
                    margin-right: 0.75em;
                }

    .header.headroom--not-top {
        background: #fff;
        color: #202020;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    }

    .header > .header-content > .nav-menu {
        display: none;
        position: relative;
    }

        .header > .header-content > .nav-menu > .fa {
            cursor: pointer;
            font-size: 1.5rem;
            margin-right: 0.5em;
            padding: 0.5em;
            transition: 300ms;
        }

            .header > .header-content > .nav-menu > .fa:hover {
                color: #ed1c24;
            }

        .header > .header-content > .nav-menu > .nav-items {
            background: #fff;
            bottom: -16px;
            color: #202020;
            position: absolute;
            right: 0;
            transform: translate(100%, 100%);
            transition: 300ms ease-out;
        }

        .header > .header-content > .nav-menu > .fa.active {
            color: #ed1c24;
        }

            .header > .header-content > .nav-menu > .fa.active ~ .nav-items {
                transform: translate(0, 100%);
            }

        .header > .header-content > .nav-menu > .nav-items > .nav-item {
            font-size: 1.25em;
            padding: 0.5em 1em;
            transition: 300ms;
        }

            .header > .header-content > .nav-menu > .nav-items > .nav-item:hover {
                background: #ed1c24;
                color: #fff;
            }

@media (max-width: 768px) {
    .header > .header-content > .nav-items {
        display: none;
    }

    .header > .header-content > .nav-menu {
        display: block;
    }
}

.header.headroom--not-top > .header-content .decodeph-logo.white {
    display: none;
}

.header.headroom--not-top > .header-content .decodeph-logo.black {
    display: block;
}

.header.headroom--pinned {
    transform: translateY(0%);
}

.header.headroom--unpinned {
    transform: translateY(-100%);
}

/* --home */
.home {
    background: linear-gradient(#071514, #134f65);
    height: 55em;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

    .home > .bg-blocks {
        animation: float-blocks-top 45s ease-out infinite;
        opacity: 0.6;
        transform: translateY(-55%);
    }

    .home > .bg-blocks-bot {
        opacity: 0.3;
        top: 35%;
    }

    .home > .bg-specks {
        top: -45%;
        opacity: 0.7;
    }

    .home > .bg-specks-bot {
        top: 55%;
        opacity: 0.35;
    }

    .home > .home-content {
        margin: 0 auto;
        max-width: 500px;
        position: relative;
    }

        .home > .home-content > .decodeph-title-img {
            max-width: 500px;
            margin-bottom: 1em;
        }

        .home > .home-content > .info-row {
            align-items: baseline;
        }

            .home > .home-content > .info-row > .fa {
                flex-shrink: 0;
                margin-right: 0.25em;
                width: 25px;
            }

@media (max-width: 1024px) {
    .home > .bg-blocks-bot {
        left: 2%;
        top: auto;
        bottom: -30%;
    }
}

@media (max-width: 768px) {
    .home {
        height: 100vh;
    }

        .home > .bg-blocks {
            animation: none;
            transform: translate(6%, -40%) scale(1.2);
        }

        .home > .bg-blocks-bot {
            left: 6%;
            bottom: -10%;
        }
}

@media (max-width: 480px) {
    .home > .bg-blocks {
        transform: translate(6%, -40%) scale(1.5);
    }

    .home > .bg-blocks-bot {
        bottom: -5%;
        left: 10%;
        top: auto;
    }
}

@media (min-width: 1680px) {
    .home > .bg-blocks {
        animation: float-blocks-top-wide 60s ease-out infinite;
        transform: translateY(-60%);
    }
}

/* --about */
.about {
    background-color: #fff;
    position: relative;
    z-index: 1;
}

    .about > .about-content {
        padding: 4em 0;
    }

        .about > .about-content > .decode-visual {
            flex: 1;
            max-width: 350px;
            padding: 2em;
        }

        .about > .about-content > .text {
            flex: 1;
            margin: 1em;
        }

@media (max-width: 768px) {
    .about > .about-content {
        flex-direction: column;
    }

        .about > .about-content > .decode-visual {
            min-width: 250px;
            width: 50%;
        }
}

.img-carousel {
    width: 70%;
    height: 100%;
    margin-left: 15%;
}

.img-carousel-w {
    width: 30%;
    height: 100%;
    margin-left: 35%;
}

/* --speakers */
.speakers {
    background: linear-gradient(#10121D, #333244);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

    .speakers > .bg-specks {
        opacity: 0.5;
    }

    .speakers > .speakers-content {
        padding: 2em 0;
        position: relative;
    }

        .speakers > .speakers-content > .speakers-list {
            display: flex;
            flex-wrap: wrap;
        }

        .speakers > .speakers-content > .title {
            margin: 1em 0;
        }

        .speakers > .speakers-content > .speakers-list > .speaker-item {
            flex: 1 0 25%;
            margin: 1em auto;
            max-width: 360px;
            min-width: 300px;
            padding: 1.25em;
            position: relative;
            transition: 300ms;
        }

            .speakers > .speakers-content > .speakers-list > .speaker-item:hover {
                background: #fff;
                box-shadow: 0 0.5em 2em rgba(0, 0, 0, 0.4);
                color: #202020;
                transform: translateY(-4px);
            }

            .speakers > .speakers-content > .speakers-list > .speaker-item > .container > .avatar {
                border-radius: 50%;
                margin-bottom: 1em;
                padding: 1em;
                width: 100%;
            }

@media (max-width: 768px) {
    .speakers > .bg-specks {
        display: none;
    }
}

@media (max-width: 768px) {
    .speakers > .speakers-content > .speakers-list > .speaker-item {
        max-width: 300px;
        min-width: 250px;
    }
}

/* --highlights */
.highlights {
    background-color: #fff;
    position: relative;
    z-index: 1;
}

    .highlights > .highlights-content {
        padding: 2.5em 2em;
    }

    .highlights > .carousel-container {
        background-color: #202020;
        height: 80vh;
        min-height: 640px;
    }

        .highlights > .carousel-container > .carousel {
            height: 100%;
        }

            .highlights > .carousel-container > .carousel .carousel-cell {
                background: transparent no-repeat center center;
                background-size: cover;
                height: 100%;
                position: relative;
                width: 100%;
                z-index: 2;
            }

            .highlights > .carousel-container > .carousel .flickity-prev-next-button {
                opacity: 0.5;
            }

            .highlights > .carousel-container > .carousel .flickity-page-dots {
                display: none;
            }

@media (max-width: 768px) {
    .highlights {
        padding: 0;
    }

        .highlights > .carousel-container {
            height: 35vh;
            min-height: 480px;
        }
}

@media (max-width: 480px) {
    .highlights > .highlights-content > .heading-container {
        flex-direction: column;
        height: 100px;
        justify-content: space-between;
    }
}

/* --resources */
.resources {
    background: linear-gradient(#071514, #134f65);
    overflow: hidden;
    padding-bottom: 4em;
    padding-top: 4em;
    position: relative;
    z-index: 1;
}

    .resources > .bg-blocks-bot, .resources > .bg-specks-bot {
        opacity: 0.5;
    }

    .resources > .resources-content {
        background: #fff;
        box-shadow: 0 0.25em 2em rgba(0, 0, 0, 0.4);
        flex-direction: column;
        max-width: 600px;
        padding: 2em;
    }

        .resources > .resources-content > .input > .input-field {
            letter-spacing: 4px;
        }

        .resources > .resources-content > .error-msg {
            display: none;
            margin: 1.5em auto 0;
            width: 50%;
        }

            .resources > .resources-content > .error-msg.is-error {
                display: block;
            }

        .resources > .resources-content > .button-container {
            margin-top: 1.5em;
        }

@media (max-width: 1024px) {
    .resources > .bg-blocks-bot {
        left: 2%;
    }
}

@media (max-width: 768px) {
    .resources > .bg-blocks-bot,
    .resources > .bg-specks-bot {
        display: none;
    }

    .resources > .resources-content > .error-msg {
        width: 80%;
    }
}

/* --location */
.location {
    background-color: #fff;
    height: 500px;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* --details */
.details {
    background-color: #fff;
    padding-bottom: 4em;
    padding-top: 4em;
    position: relative;
    z-index: 1;
}

    .details > .details-content > .info-row {
        align-items: baseline;
        font-size: 1.5rem;
        margin: 0 auto;
    }

        .details > .details-content > .info-row > .fa {
            color: #ed1c24;
            flex-shrink: 0;
            width: 60px;
        }

/* --register */
.register {
    background: linear-gradient(#071514, #134f65);
    overflow: hidden;
    padding-bottom: 4em;
    padding-top: 4em;
    position: relative;
    z-index: 1;
    display: none;
}

    .register > .bg-blocks-bot, .register > .bg-specks-bot {
        opacity: 0.5;
    }

    .register > .register-content {
        background: #fff;
        box-shadow: 0 0.25em 2em rgba(0, 0, 0, 0.4);
        flex-direction: column;
        max-width: 600px;
        padding: 2em;
    }

        .register > .register-content > *:not(:last-child) {
            margin-bottom: 1rem;
        }

        .register > .register-content > .button-container {
            width: 60%;
        }

        .register > .register-content .button {
            width: 100%;
        }

@media (max-width: 560px) {
    .register > .register-content > .g-recaptcha {
        transform: scale(0.8);
    }

    .register > .register-content > .button-container {
        width: 80%;
    }
}

@media (max-width: 1024px) {
    .register > .bg-blocks-bot {
        left: 2%;
    }
}

@media (max-width: 768px) {
    .register > .bg-blocks-bot,
    .register > .bg-specks-bot {
        display: none;
    }
}

/* --footer */
.details {
    margin-bottom: 400px;
}

.footer {
    background-color: #202020;
    bottom: 0;
    height: 400px;
    left: 0;
    position: fixed;
    width: 100%;
    z-index: 0;
}

    .footer > .footer-content {
        height: 100%;
        padding: 0 1em;
    }

        .footer > .footer-content > .attrib {
            text-align: right;
        }

            .footer > .footer-content > .attrib .decodeph-logo {
                width: 250px;
            }

            .footer > .footer-content > .attrib > .attrib-text {
                margin: 1em 0 0;
            }

@media (max-width: 768px) {
    .details {
        margin-bottom: 0;
    }

    .footer {
        height: auto;
        padding: 2em;
        position: static;
    }

        .footer > .footer-content {
            flex-direction: column;
            text-align: center;
        }

            .footer > .footer-content > .attrib .decodeph-logo {
                width: 100%;
            }

            .footer > .footer-content > .attrib {
                margin-top: 3em;
                text-align: center
            }
}

/* inputs */
.input {
    width: 100%;
}

.input-field {
    -webkit-appearance: none;
    border: none;
    border-bottom: 2px solid #d4d4d4;
    border-radius: 0;
    color: #ed1c24;
    flex-grow: 1;
    font-family: Barlow,BlinkMacSystemFont,-apple-system,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
    font-weight: 700;
    padding: 0.5em 0.75em 0.25em;
    position: relative;
    transition: all 200ms;
    width: 100%;
}

    .input-field:focus {
        background-color: #fff6f6;
        border-bottom-color: #ed1c24;
        outline: none;
    }

    .input-field::placeholder {
        color: #d4d4d4;
        font-weight: normal;
    }

.input-label {
    color: #202020;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 1.5em;
    width: 80px;
}

/* rellax */
@media (max-width: 768px) {
    .rellax {
        transform: translate3d(0,0,0) !important;
    }
}

/* hover sweep to right */
.hvr-sweep-to-right {
    display: inline-block;
    vertical-align: middle;
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px transparent;
    position: relative;
    transition-property: color;
    transition-duration: 0.3s;
}

    .hvr-sweep-to-right:before {
        content: "";
        position: absolute;
        z-index: -1;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        transform: scaleX(0);
        transform-origin: 0 50%;
        transition-property: transform;
        transition-duration: 0.3s;
        transition-timing-function: ease-out;
    }

    .hvr-sweep-to-right:hover, .hvr-sweep-to-right:focus, .hvr-sweep-to-right:active {
        color: #ed1c24;
    }

        .hvr-sweep-to-right:hover:before, .hvr-sweep-to-right:focus:before, .hvr-sweep-to-right:active:before {
            transform: scaleX(1);
        }

/* hover grow */
.hvr-grow {
    display: inline-block;
    vertical-align: middle;
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px transparent;
    transition-duration: 0.3s;
    transition-property: transform;
}

    .hvr-grow:hover, .hvr-grow:focus, .hvr-grow:active {
        transform: scale(1.1);
    }

/* hover underline from left */
.hvr-underline-from-left {
    display: inline-block;
    vertical-align: middle;
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px transparent;
    position: relative;
    overflow: hidden;
}

    .hvr-underline-from-left:before {
        content: "";
        position: absolute;
        z-index: -1;
        left: 0;
        right: 100%;
        bottom: 0;
        background: #ed1c24;
        height: 4px;
        transition-property: right;
        transition-duration: 0.3s;
        transition-timing-function: ease-out;
    }

    .hvr-underline-from-left:hover:before, .hvr-underline-from-left:focus:before, .hvr-underline-from-left:active:before {
        right: 0;
    }

@keyframes float-blocks-top {
    50% {
        transform: translateY(-50%);
    }
}

@keyframes float-blocks-top-wide {
    25% {
        transform: translateY(-65%);
    }

    50% {
        transform: translateY(-60%);
    }

    75% {
        transform: translateY(-55%);
    }
}

/* Video */
.video {
    background: linear-gradient(#333244, #10121D, #333244);
    overflow: hidden;
    padding-bottom: 4em;
    padding-top: 4em;
    position: relative;
    z-index: 1;
    display: block;
}

    .video > .bg-blocks-bot, .video > .bg-specks-bot {
        opacity: 0.5;
    }

    .video > .video-content {
        background: #fff;
        box-shadow: 0 0.25em 2em rgba(0, 0, 0, 0.4);
        flex-direction: column;
        max-width: 800px;
        height: 550px;
        padding: 2em;
    }

        .video > .video-content > *:not(:last-child) {
            margin-bottom: 1rem;
        }

        .video > .video-content > .button-container {
            width: 60%;
        }

        .video > .video-content .button {
            width: 100%;
        }

@media (max-width: 560px) {
    .video > .video-content > .g-recaptcha {
        transform: scale(0.8);
    }

    .video > .video-content > .button-container {
        width: 80%;
    }
}

@media (max-width: 1024px) {
    .video > .bg-blocks-bot {
        left: 2%;
    }
}

@media (max-width: 768px) {
    .video > .bg-blocks-bot,
    .video > .bg-specks-bot {
        display: none;
    }
}

#video-teaser {
    color: #ED1C24;
    font-weight: bold;
}

    #video-teaser:hover {
        color: #7F0000;
    }
