/*================================================================
Common style
================================================================*/

/* colors
------------------------------------------------------------------------------------
#c62a14 - red links
#ff3506 - red link hover color
#636363 - h2s
#898989 - h3s
#959595 - nav links, breadcrumb hover
#534741 - nav links hover, breadcrumb hover
#d7d7d7 - dividers
#707070 - venture
------------------------------------------------------------------------------------*/

body {
    background: url('/common/templates/www.stephenwolfram.com/images/banner.png') repeat-x left 57px;
    font-family: Georgia, serif;
    font-size: 0.8125rem;
    line-height: 1.6;
}

h1 {
    font-size: 1.75rem;
    font-weight: normal;
    color: #636363;
    line-height: 1.3;
}

.individual h1 {
    margin: 0 0 1.6875rem;
    width: 31.25rem;
}

html,
html._header-thick,
html._header-thin {
    border-top: 0 !important;
}

#content {
    color: #000;
}

#content .individual-content {
    width: 31.563rem;
}

/*================================================================
Header
================================================================*/

#header {
    margin: 0 auto;
    overflow: visible;
    padding: 0 0 0.125rem;
    width: auto !important;
    position: relative;
}

#header>.inner {
    width: 56.25rem;
    margin: 0 auto;
    overflow: visible;
    position: relative;
    z-index: 11;
    height: 3.44rem;
    padding: 0.625rem 0;
    min-width: 16.875rem;
    max-width: 100%;
}

#header>.inner.open {
    background: #fff;
}

/*================================================================
Logo
================================================================*/

#logo {
    margin: 0.2rem 0 0 0 !important;
    padding: 0;
}

#logo a span {
    display: none;
}

#logo,
#logo a {
    display: inline-block;
    font-size: 0;
    width: 15rem !important;
    height: 2.513rem !important;
    margin: 0;
    vertical-align: bottom;
    line-height: 3.125rem;
}

#logo a * {
    fill: #c62a14;
}

#logo a:hover * {
    fill: #D76A00 !important;
}

a:hover {
    color: #e9951c;
}

a {
    text-decoration: none;
    color: #c62a14;
}

.pipe {
    display: none;
    margin: 0 0.3125rem;
    display: inline-block;
}

.writings {
    display: none;
}

.hamburger {
    border: 0;
    background: transparent;
    color: #c62a14;
    display: none;
    font-family: monospace;
    position: relative;
    font-size: 2rem;
    line-height: 1;
    vertical-align: bottom;
    margin: 0 0.3rem 0 0rem !important;
    left: 0.125rem;
}

/*================================================================
Navigation Menu
================================================================*/

#nav {
    font-family: Georgia, 'Times New Roman', serif;
    display: inline-block;
    float: right;
    margin: 0;
}

#nav ul {
    list-style-type: none;
    display: inline-block;
    margin: 1.25rem 0 0;
    padding: 0;
}

#nav ul li {
    display: inline-block;
    vertical-align: middle;
}

#nav ul li a {
    color: #959595;
    font-size: 0.75rem;
    margin: 0 0.5rem 0 0.5rem;
    letter-spacing: .04rem;
}

#nav ul li a:hover {
    color: #534741;
}

#nav ul li .twitter:before,
#nav ul li .facebook:before,
#nav ul li .linkedin:before,
#nav ul li .soundcloud:before,
#nav ul li .twitch:before {
    background: url('/common/templates/www.stephenwolfram.com/images/social-sprite.png') no-repeat;
    background-size: 101px 41px;
    content: '';
    display: inline-block;
    height: 1.25rem;
    width: 1.25rem;
}

#nav ul li .twitter,
#nav ul li .facebook,
#nav ul li .linkedin,
#nav ul li .soundcloud,
#nav ul li .twitch {
    margin: 0 1px;
}

#nav ul li .twitter:before {
    background-position: 0 0;
}

#nav ul li .twitter:hover:before {
    background-position: 0 -20px;
}

#nav ul li .facebook:before {
    background-position: -20px 0;
}

#nav ul li .facebook:hover:before {
    background-position: -20px -20px;
}

#nav ul li .linkedin:before {
    background-position: -40px 0;
}

#nav ul li .linkedin:hover:before {
    background-position: -40px -20px;
}

#nav ul li .soundcloud:before {
    background-position: -60px 0;
}

#nav ul li .soundcloud:hover:before {
    background-position: -60px -20px;
}

#nav ul li .twitch:before {
    background-position: -80px 0;
}

#nav ul li .twitch:hover:before {
    background-position: -80px -20px;
}

#nav ul li .social a {
    margin: 0;
}

#nav li ul {
    margin: 0;
}

#nav li.contact {
    margin-right: .5rem;
}

#nav li.contact:before {
    display: none !important;
}

ul.social {
    margin: -0.25rem 0 0 0.4375rem !important;
}

/*================================================================
Footer
================================================================*/

#footer {
    clear: both;
    width: 56.25rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 1.25rem 0;
    font-size: 0.563rem;
    font-weight: normal;
    font-family: Helvetica, Arial, sans-serif;
}

#footer p,
#footer a {
    line-height: 0.625rem;
}

#footer .inner {
    padding: 0 2.5rem;
}

#footer p {
    padding: 0.625rem 0;
}

#footer * {
    font-size: 0.563rem;
}

#footer a {
    color: #c42c1f;
}

#footer a:hover {
    color: #d76a00;
}

#footer .pipe {
    display: inline;
    margin: 0 0.3125rem;
}

/* ========================================================================== 
    responsive breakpoint styles 
 ============================================================================ */

/* 
styles for medium screens (1200px)
============================================================================= */

@media (max-width: 1200px) {
    /*logo*/
    #logo {
        width: 15rem;
        float: none !important;
        margin: 0.2rem 0 0 0.375rem !important;
    }
    #logo a {
        width: 14.5rem;
        padding: 0 .1rem 0 0;
        margin-left: 0px !important;
    }
    #header>.inner,
    #footer {
        margin: 0 !important;
        overflow: visible !important;
        width: 100% !important;
    }
    /*    header*/
    #header {
        padding: 0 !important;
        overflow: visible !important;
    }
    #header>.inner {
        height: 50px; 
        padding: .8rem 3rem 0.25rem 2rem;
        margin: 0 !important;
    }
    #nav {
        height: 0;
    }
    #nav ul li a {
        margin: 0 5px;
    }
    .hamburger {
        display: inline-block;
        margin: 0 0 0 -2rem;
    }
    #nav ul {
        line-height: 1;
        margin: 0 !important;
        padding: 0;
    }
    #nav .links {
        background: #fff;
        height: 0;
        left: 0;
        overflow: hidden;
        right: 0;
        position: absolute;
        top: 51px;
        transition: height .5s ease;
        z-index: 11;
        margin: 0 !important;
    }
    #nav .links.show {
        height: 18rem;
        transition: height .5s ease;
    }
    #nav .links li {
        display: block;
    }
    #nav .links a {
        display: block;
        padding: 1rem;
    }
    #nav .social {
        margin: 0 !important;
        position: relative;
        top: 0.9375rem;
    }
    #header .overlay {
        background: rgba(0, 0, 0, .3);
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1;
    }
}

/* 
styles for medium screens (900px)
============================================================================= */

@media (max-width: 900px) {
    #header>.inner {
        padding: .8rem 2.5rem 4px 2rem;
    }
}

/* 
styles for medium screens (600px)
============================================================================= */

@media (max-width: 600px) {
    #logo {
        width: 14.5rem;
    }
    #logo a {
        width: 14rem;
    }
    .hamburger {
        left: 0;
    }
    #nav .social {
        display: none;
    }
    #header>.inner {
        padding: .8rem 0 4px 1rem;
    }
    .main>.inner,
    .main .main-header .inner,
    #footer .inner {
        padding: 0 1rem;
    }
    .hamburger {
        margin: 0;
    }
}

/* 
styles for medium screens (320px)
============================================================================= */

@media (max-width: 320px) {
    #logo {
        width: 13.3rem !important;
    }
}