/* Custom CSS for RSA 2017 by Erun Ruby 2017 */

body {
    color: #425363;
}

strong {
    color: #263746;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

nav li {
    display: none;
}

nav li img {
    display: none;
}

@media screen and (min-width: 64em) {
    nav li {
        display: inline-block;
        width: 13.9%;
        text-align: center;
    }
}

nav li a {
    display: block;
    color: #fff;
    text-align: center;
    padding: 1em .25em;
    text-decoration: none;
}

.main-nav,
.main {
    position: relative;
}

.main-nav {
    background: transparent;
    z-index: 150;
    margin-bottom: -80px;

}

header,
.main-nav-scrolled {
    background: #00a5b5;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
    position: fixed;
    width: 100%;
    top: 0;
}

.main-nav-scrolled {
    opacity: 0;
    animation: fadeIn .5s ease-in 1 forwards;
}

.main-nav-scrolled img {
    display: inline-block;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}


/* Hero */

.hero-container {
    margin: auto;
    width: 1000px;
    max-width: 90%;
}

.hero-cover {
    display: -ms-flexbox;
    display: flex;
    position: relative;
    height: 85vh;
    min-height: 650px;
    color: #f5f5f5;
    transition: all .2s;
    -ms-flex-align: center;
    align-items: center;
}

.hero-cover .cover-logo {
    position: absolute;
    display: block;
    left: 50%;
    top: 7rem;
    width: 12rem;
    margin-left: -6rem;
}

@media (min-width: 64em) {
    .hero-cover .cover-logo {
        width: 16rem;
        margin-left: -8rem;
    }
}

.hero-cover .scroll-link {
    position: absolute;
    bottom: 1rem;
    display: block;
    left: 50%;
    width: 3rem;
    margin-left: -1.5rem;
    
}

.hero-cover .scroll-link:hover,
.hero-cover .scroll-link:focus {
    animation: point-down 1s infinite;
}

.hero-cover .hero-content {
    position: relative;
    z-index: 2;
    margin: auto;
}

.hero-cover .hero-content .hero-title {
    margin-top: 30px;
    color: #f5f5f5;
    font-family: 'fira sans', system-ui, -apple-system, roboto, 'segoe ui', sans-serif;
    text-align: center;
    padding-bottom: 2rem;
    transition: all .2s;
    font-size: 2.125em;
    line-height: 1.125em;
    text-shadow: 2px 2px 10px #0033a0;
}

@media (min-width: 45em) {
    .hero-cover .hero-content .hero-title {
        margin-top: 50px;
        font-size: 3em;
        line-height: 1.125em;
    }
}

@media (min-width: 60em) {
    .hero-cover .hero-content .hero-title {
        margin-top: 125px;
        font-size: 3.5em;
        line-height: 1.125em;
    }
}

.hero-cover .hero-content img {
    display: block;
    margin: 0 auto;
    max-width: 250px;
}

.hero-cover .hero-content img {
    max-width: 350px;
}

.hero-cover .hero-content h2 {
    color: #f5f5f5;
    font-weight: 300;
}

.hero-cover .hero-content h2 strong {
    color: #f5f5f5;
    font-weight: 400;
}

@keyframes point-down {
    0%,
    50%,
    100% {
        transform: translateY(-10%);
    }
    
    25%,
    75% {
        transform: translateY(30%);
    }
}

/* Backgrounds */
.teal-gradient {
    background: linear-gradient(0deg, #00A5B5 25%, #0033A0 75%);
}
.teal-gradient-with-bg {
    background: url(../imgs/rsa2017-bg-rain-reverse-30.png) 0px -50px repeat-x, linear-gradient(0deg, #00A5B5 25%, #0033A0 75%);
}
.rain-horz {
    background: url(../imgs/rsa2017-bg-rain-horz.png) left repeat-y, #fff;
    background-size: 400px;
}
.rain-horz-r {
    background-image: none;
    background-color: #fff;
}

@media screen and (min-width: 45em) {
    .rain-horz-r {
    background-image: url(../imgs/rsa2017-bg-rain-horz-r.png);
    background-repeat: repeat-y;
    background-position: right;
    background-size: 400px;
    }
}

.rain-vert {
    background: url(../imgs/rsa2017-bg-rain-vert.png) repeat-x, #fff;
    background-size: 500px;
    background-position-y: top;
}
.rain-vert-b {
    background: url(../imgs/rsa2017-bg-rain-vert-b.png) repeat-x, #fff;
    background-size: 500px;
    background-position-y: bottom;
}
.mountains1 {
    background: url(../imgs/rsa2017-bg-mountains1.png) bottom, #fff;
    background-size: cover;
}
.mountains2 {
    background: url(../imgs/rsa2017-bg-mountains2.png) bottom, #fff;
    background-size: cover;
}
.mountains3 {
    background: url(../imgs/rsa2017-bg-mountains3.png) bottom, #fff;
    background-size: cover;
}

/* Sections */
section.row {
    min-height: none;
    padding-top: 2em;
}

@media screen and (min-width: 45em) {
    section.row {
    min-height: 450px;
    padding-top: 6em;
    }
}

/* Footer */
footer {
    background: #eeeff0;
}
footer p {
    margin: 1em;
}

/*Containers*/
div.circle-white {
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    background-color: #fff;
    border: 3px solid #00A5B5;
    min-width: 1em;
    border-radius: 50%;
    vertical-align: text-top;
    max-width: 500px;
}
div.circle-white:before {
    content: '';
    float: left;
    width: auto;
    padding-bottom: 100%;
}
div.circle-content {
    position: relative;
}
div.circle-content h2,
div.circle-content p {
    padding: 0 2em;
}
div.box-white {
    background: #fff;
    border: 3px solid #0071ce;
    padding: 1em;
}

/*Headings*/
h2 {
    font-family: 'fira sans', system-ui, -apple-system, roboto, 'segoe ui', sans-serif;
    color: #0071ce;
    text-align: center;
}

}
h3 {
    color: #425363;
}
h3 {
    font-family: 'fira sans',
    system-ui,
    -apple-system,
    roboto,
    'segoe ui',
    sans-serif;
    color: #425363;
}

/*Images*/
.img-circle {
    border-radius: 50%;
    border: 3px solid #00A5B5;
    display: block;
    margin: 0 auto;
}

/* Custom Styles */
.speaker .img-circle {
    margin-top: 3em;
}
@media (min-width: 90em) {
    h2 {
        font-size: 2.125em;
    }
}
ul.social {
    list-style-type: none;
}
ul.social li {
    display: inline;
    font-size: 1em;
    margin-left: 0;
}
.svg-fill-teal {
    fill: #00a5b5;
}
.svg-size-1 {
    width: 3em;
    height: 3em;
}
@media (min-width: 60em) {
    ul.social li {
        margin-left: 20px;
    }
}

.top-content {
    margin-top: 4em;
}

@media (min-width: 45em) {
    .top-content {
    margin-top: 0;
    }
}
