@font-face {
    font-family: 'BebasNeue';
    src: url('/fonts/BebasNeue/BebasNeueRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BebasNeue';
    src: url('/fonts/BebasNeue/BebasNeueBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'BebasNeue';
    src: url('/fonts/BebasNeue/BebasNeueBook.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

body {
    overflow: hidden;
    overflow-y: scroll;
    height: auto;
    font-family: proxima-nova;
}

.r-header {
    height: 60px !important;
}

::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: transparent;
}

::-webkit-scrollbar {
    display: block;
    width: 8px;
    background-color: transparent;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #555;
}

.btn-default:focus,
.btn-default:active,
.btn-default:hover {
    outline: none;
}

/* Navbar */

.navbar {
    margin-bottom: 0;
    background-color: #1E1E1D;
    width: 100%;
    border: none;
    border-radius: 0;
    position: relative;
    top: 0;
    left: 0;
    height: 45px;
    min-height: 45px;
    z-index: 100;
}

.navbar .container-fluid {
    height: 100%;
}

.navbar-brand, .navbar-right {
    height: 45px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    -ms-grid-row-align: center;
    align-items: center;
}

.navbar-brand {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    -ms-grid-row-align: center;
    align-items: center;
    -webkit-align-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
    text-transform: uppercase;
    font-size: 1.5em;
    font-weight: 300;
    color: #ecf0f1 !important;
}

.navbar-brand img {
    width: 40px;
    height: 40px;
}

.navbar-right {
    margin-right: 0;
}

.navbar-right li a {
    margin-right: 0.66em;
    margin-left: 0.66em;
}

.navbar-right li a.btn, .r-get-started {
    padding: 0 1.5em;
    height: 2.5em;
    border-radius: 1.25em;
    background-color: transparent;
    border: 2px solid #329dd8;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-align-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: all .5s;
    transition: all .5s;
}

.navbar-right li a.btn:hover, .r-get-started:hover,
.navbar-right li a.btn:focus, .r-get-started:focus,
.navbar-right li a.btn:active, .r-get-started:active {
    background-color: #329dd8;
    color: #FFF !important;
    border-color: #329dd8;
}

.navbar-default .navbar-nav>li>a {
    color: #FFF;
}

.navbar-default .navbar-nav>li>a {
    font-size: 1em;
    text-transform: uppercase;
}

.navbar-default .navbar-nav>li>a:focus, .navbar-default .navbar-nav>li>a:hover {
    color: #329dd8;
}

.r-create-button-wrapper {
    margin-right: 1em;
}

.r-create-button {
    border-radius: 0;
    box-shadow: none;
    background-color: #00D4EA;
    border: none;
    color: #FFF;
    font-size: 1.4em;
    text-transform: uppercase;
    font-weight: bold;
    padding: 0.25em 1em;
    height: 70%;
    font-family: BebasNeue;
    letter-spacing: 0.1em;
    text-align: center;
}

.r-create-button:hover {
    background-color: #00D4EA;
    color: #FFF;
}

/* Modal */

.modal {
    background-color: transparent;
    top: 0 !important;
    bottom: 0;
}

.modal-body {
    padding: 20px;
}

.modal-body>.row {
    margin: 1em;
}

.r-social-icons .btn {
    margin: 0.5em 0;
    color: #FFF;
    border: none;
    text-transform: uppercase;
}

#r-personalize, #r-forgot-password, #r-email-sent, #r-skip-step {
    display: none;
}

#facebookButton {
    background-color: #3B5998;
}

#twitterButton {
    background-color: #55ACEE;
}

#googleButton {
    background-color: #4787ed;
}

button#googleButton>div {
    height: 24px !important;
    width: 100% !important;
    background-color: #4787ed;
    color: #FFF;
    box-shadow: none;
}

button#googleButton>div>div {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    -ms-grid-row-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

button#googleButton>div>div>div {
    display: none;
}

button#googleButton>div>div>span {
    font-size: 18px !important;
}

button#googleButton>div>div>span:before {
    content: "Continue with ";
    font-size: 80%;
}

button#googleButton>div>div>span:after {
    content: "Google";
}

button#googleButton>div>div>span>span:first-child,
button#googleButton>div>div>span>span:last-child {
    display: none;
}

.forgotPassword {
    cursor: pointer;
}

.go-back {
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
}

.go-back i {
    padding-right: 10px;
    font-size: 12px;
}

.r-sign-up-form .invalidCredentials, .r-personalize .fieldEmpty {
    display: none;
    color: #a94442;
}

#fieldEmptyMessage::first-letter {
    text-transform: uppercase;
}

.r-sign-up-form .btn {
    margin-top: 0.5em;
    text-transform: uppercase;
    background-color: #43A047;
    border-color: #43A047;
}

.agreement-text {
    display: inline-block;
    margin-top: 10px;
}

/* Rich Capsules Section */
.r-rich-capsule-wrapper {
    height: 600px;
    max-width: 1020px;
    margin: auto;
    width: auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    -ms-grid-row-align: flex-start;
    align-items: flex-start;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding-top: 60px;
}

.r-rich-capsule-wrapper .r-capsule-display {
    height: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-left: 3em;
    margin-right: 3em;
    background-color: #FFF;
}

.r-rich-capsule-wrapper .r-related-capsules-wrapper {
/*
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
*/

/* Hiding related videos until we have better recommendations and a consumption angle. */
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    height: 100%;
    overflow: hidden;
    overflow-y: scroll;
    width: 25%;
    padding: 1.5em;
    /*box-shadow: 1px 2px 4px 1px rgba(0, 0, 0, 0.35), 1px 2px 2px 0.5px rgba(0, 0, 0, 0.15);*/
}

.r-rich-capsule-wrapper .r-capsule-display .r-capsule-container {
    margin: 0;
    height: 100%;
}

.r-capsule-card-container {
    margin-top: 0;
}

.r-capsule-card-container .r-capsule-card {
    margin-left: 0;
    margin-right: 0;
}

#navbuttonsBar {
    margin: 0;
}

#navbuttonsBar .navbuttons .icon.arrow-left {
    position: absolute;
    left: -15%;
}

#navbuttonsBar .navbuttons .icon.arrow-right {
    position: absolute;
    right: -15%;
}

#videoTranscript {
    text-align: center;
    font-size: 16px;
    margin-top: 3em;
    padding: 1em;
}

#videoTranscript h3 {
    font-size: 30px;
}

#videoTranscript strong, #videoTranscript h4 {
    font-size: 20px;
    margin-top: 1em;
    display: block;
}

#videoTranscript h6 {
    font-size: 16px;
}

.progress {
    margin-bottom: 0;
}

/* Grid item */
.grid {
    width: 100%;
}

.r-grid-item {
    padding: 0;
    position: relative;
    color: inherit;
    background: #fff;
    height: calc(84vh / 2);
    cursor: pointer;
    text-align: center;
    margin-right: 0.5em;
    margin-bottom: 0.5em;
    min-height: 20vh;
    overflow: hidden;
}

/* Grid item "border" */
.r-grid-item::before {
  position: absolute;
  content: '';
  top: 0px;
  right: 55px;
  bottom: 0px;
  left: 55px;
  border-bottom: 1px solid rgba(74, 74, 74, 0.075);
}

.r-grid-item * {
  z-index: 10;
}

.grid figure {
    margin: 0 !important;
    min-width: initial !important;
    max-width: 100% !important;
    max-height: initial !important;
    height: 100%;
    background: transparent !important;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.grid figure img {
    /*max-width: initial !important;*/
    opacity: 1 !important;
}

.grid figure img.tall {
    max-width: 100%;
    width: auto;
}

.grid figure img.wide {
    max-height: 100%;
    height: auto;
}

.grid figure figcaption {
    position: absolute;
    top: initial !important;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 1em !important;
    text-align: left;
}

.grid figure h2, .grid figure span {
    margin: 0;
    color: #fff;
    font-family: 'PT Sans Narrow', sans-serif;
    letter-spacing: 0.1em;
    font-size: 1em !important;
    word-spacing: 0 !important;
}

.grid figure h2 {
    font-weight: 700;
}

.grid figure span {
    margin-top: 0.5em;
    font-size: 0.9em !important;
    text-transform: capitalize;
    letter-spacing: 0.05em;
    /*font-family: 'EB Garamond', serif;*/
}

.grid figure.r-hover-effect h2 {
    margin: 0;
    -webkit-transition: -webkit-transform 0.35s;
    transition: transform 0.35s;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

figure.r-hover-effect img {
    min-width: 100%;
    opacity: 0.4;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: scale(1.15);
    transform: scale(1.15);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

figure.r-hover-effect:hover img {
    opacity: 0.4;
    -webkit-transform: scale(1);
    transform: scale(1);
}

figure.r-hover-effect h2 {
    margin-top: 10%;
    -webkit-transition: -webkit-transform 0.35s;
    transition: transform 0.35s;
    -webkit-transform: translate3d(0,20px,0);
    transform: translate3d(0,20px,0);
}

figure.r-hover-effect button {
    margin: 1em 0 0;
    padding: 1em;
    border: 1px solid #fff;
    background-color: transparent;
    border-radius: 0;
    color: #FFF;
    opacity: 0;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: translate3d(0,20px,0) scale(1.1);
    transform: translate3d(0,20px,0) scale(1.1);
} 

figure.r-hover-effect:hover h2 {
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

figure.r-hover-effect:hover button {
    opacity: 1;
    -webkit-transform: translate3d(0,0,0) scale(1);
    transform: translate3d(0,0,0) scale(1);
}

/* Footer */

footer {
    padding: 0;
    text-align: center;
    width: 100%;
    height: 35px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

footer .container .row {
    margin: 0;
}

footer.navbar-fixed-bottom {
    padding: 0;
    background-color: transparent;
}

footer span.copyright {
    text-transform: uppercase;
    text-transform: none;
    line-height: 40px;
}

footer ul.quicklinks {
    margin-bottom: 0;
    text-transform: uppercase;
    text-transform: none;
    line-height: 40px;
}

ul.social-buttons {
    margin-bottom: 0;
}

ul.social-buttons li a {
    display: block;
    width: 4vh;
    height: 4vh;
    border-radius: 100%;
    font-size: 20px;
    outline: 0;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    transition: all .3s;
}

ul.social-buttons li a:hover,
ul.social-buttons li a:focus,
ul.social-buttons li a:active {
    background-color: #fed136;
}

#r-twitter:hover,
#r-twitter:focus,
#r-twitter:active {
    background-color: #00aced;
}
#r-facebook:hover,
#r-facebook:focus,
#r-facebook:active {
    background-color: #3b5998;
}
#r-linkedin:hover,
#r-linkedin:focus,
#r-linkedin:active {
    background-color: #007bb5;
}
#r-google-plus:hover,
#r-google-plus:focus,
#r-google-plus:active {
    background-color: #dd4b39;
}
#r-instagram:hover,
#r-instagram:focus,
#r-instagram:active {
    background-color: #125688;
}
#r-pinterest:hover,
#r-pinterest:focus,
#r-pinterest:active {
    background-color: #cb2027;
}
#r-angellist:hover,
#r-angellist:focus,
#r-angellist:active {
    background-color: #c3c3c3;
}

@media only screen and (max-width: 767px) {
    body {
        overflow-y: scroll;
    }

    .navbar-toggle {
        margin-bottom: 0;
    }

    .r-rich-capsule-wrapper {
        width: 100%;
        height: 400px;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: start;
        -webkit-justify-content: flex-start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        overflow: hidden;
        overflow-y: scroll;
        align-items: flex-start;
        padding: 0;
        padding-top: 60px;
    }

    .r-rich-capsule-wrapper .r-capsule-display {
        width: 100%;
        height: 100%;
        margin-right: 0;
        margin-left: 0;
        padding: 0;
        display: block;
    }

    .r-rich-capsule-wrapper .r-related-capsules-wrapper {
        width: 100%;
        height: auto;
        margin-top: 1em;
        /*overflow: initial;
        overflow-y: initial;*/
        /* HACK Hiding related posts in mobile view. */
        /* TODO Fix this! */
        display: none;
    }

    .r-grid-item {
        height: 30vh;
    }

    .navbar .r-create-button-wrapper .r-create-button {
        display: none;
    }

    footer {
        height: auto;
        position: initial;
    }
}

/* Styles for soft keyboard in Android messing up layouts */
.r-rich-capsule-wrapper.keyboard-open {
    width: 100%;
    height: calc(100vh - 45px);
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    overflow: hidden;
    overflow-y: scroll;
    align-items: flex-start;
    padding: 0;
}

.r-rich-capsule-wrapper .r-capsule-display.keyboard-open {
    width: 100%;
    height: 100%;
    padding: 0;
    display: block;
}

.r-rich-capsule-wrapper .r-related-capsules-wrapper.keyboard-open {
    width: 100%;
    height: auto;
    margin-top: 1em;
    /*overflow: initial;
    overflow-y: initial;*/
    /* HACK Hiding related posts in mobile view. */
    /* TODO Fix this! */
    display: none;
}

.r-grid-item.keyboard-open {
    height: 30vh;
}
