/* Styles for all pages

   developer:   suef
   ========================================================================== */

/* ==========================================================================
   Main
   ========================================================================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
    color: #757575;
}
.inner {
    font-size: 1rem;
    margin: 0 auto;
    max-width: 56rem;
    padding: 2.1875rem 1.25rem 4.0625rem;
}
a {
    color: #33aadd;
    text-decoration: none;
}
a:hover {
    color: #1681a4;
}
.inner ul li a {
    color: #757575;
}
.inner ul li a:hover {
    color: #33aadd;
}
p {
    margin: 0 0 1.25rem;
    line-height: 1.5;
    font-size: 1rem;
}
p:last-child {
    margin: 0;
}
p.intro {
    font-size: 1.3125rem;
    font-weight: 300;
}
h1 {
    font-size: 2.5rem;
    color: #33aadd;
    font-family: 'Enriqueta';
    font-weight: 600;
    margin: 1.6rem 0;
}
h2 {
    font-size: 1.3125rem;
    color: #1681a4;
    margin: 0 0 .3125rem;
    font-weight: 400;
}
h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #33aadd;
    margin: 1.5625rem 0 .3125rem;
}
.left {
    float: left;
}
.right {
    float: right;
}
.center {
    display: block;
    margin: 0 auto;
}
.row * {
    float: none;
}
.half {
    width: 45%;
    display: inline-block;
    vertical-align: top;
    margin: 0 1.875rem 0 0;
}
.half + .half {
    margin: 0;
}
.third {
    width: 30%;
    display: inline-block;
    vertical-align: top;
    margin: 0 1.875rem 0 0;
}
.third:nth-child(3n) {
    margin: 0;
}
hr {
    border: 0;
    background: #ddd;
    height: 1px;
    margin: 1.5625rem 0;
}
table + hr {
    margin: 1.875rem 0 1.5625rem;
}
a.button, input.button {
    font-size: 1rem;
    color: #fff;
    padding: .5rem 1.5625rem;
    background: #33aadd;
    border: 1px solid #1681a4;
    border-radius: 3px;
    line-height: 3;
    cursor: pointer;
}
input.button {
    line-height: 1;
    font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
}
a.button:hover, input.button:hover {
    background: #1681a4;
}

a.breadcrumb {
    background: #1681a4;
    padding: .3125rem 1.25rem;
    color: #fff;
    top: -1.875rem;
    position: relative;
}
a.breadcrumb:hover {
    background: #33aadd;
}
.sub-caption {
    font-size: 10px; /* hard pixel value so it doesn't shrink even smaller */
    color: #ababab;
}

/* ==========================================================================
   NoScript
   ========================================================================== */
#_noscript {
    color: #000;
    font-family: 'Source Sans Pro', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.3;
    z-index: 999999999;
}

#_noscript div {
    background: #fff6aa;
    border-bottom: 1px solid #eeca48;
    left: 0;
    line-height: 1;
    padding: .5rem 1rem;
    position: absolute;
    right: 0;
    text-align: center;
    top: 4.375rem;
    width: 100%;
    z-index: 9999999999 !important; /* place it above the global header */
}

#_noscript i {
    background: url('/National_Library/20160521004321oe_/http://www.computerbasedmath.org/common/framework/img/noscript.png') no-repeat;
    display: inline-block;
    font-size: 0;
    height: 16px;
    line-height: 0;
    margin: .2rem .5rem 0 0;
    vertical-align: top;
    width: 18px;
}

#_noscript a {
    color: #dd1100;
    text-decoration: none;
}

#_noscript a:focus,
#_noscript a:hover { color: #000; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
    margin: 0 auto;
    text-align: left;
    background: #3b393a;
    position: relative;
    z-index: 100;
    font-size: 0;
}
.nav-inner {
    padding: 0;
    margin: 0 auto;
    max-width: 75rem;
    position: relative;
    text-align: right;
}
.nav a {
    display: inline-block;
    vertical-align: middle;
    font-size: .9375rem;
    line-height: 1.375rem;
}
.nav-inner > a {
    float: left;
    margin: .625rem 0 .625rem 1.25rem;
}
.nav a img {
    display: inline-block;
    vertical-align: middle;
    margin: 0 .625rem 0 0;
    border: 0;
}
.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
    text-align: left;
}
.nav li {
    display: inline-block;
    vertical-align: top;
}
.nav ul a {
    display: block;
    color: #fff;
    padding: 1.5rem 1.125rem;
    position: relative;
    background: transparent;
}
.nav #apply-menu {
    background: transparent;
}
.nav ul li:hover,
#apply-menu:hover,
#making-the-case-index #making-the-case,
#apply-index #apply-menu,
#news-index #news,
#community-index #community,
#materials-index #materials,
#what-is-cbm-index #what-is-cbm {
    background: #33aadd;
}
.nav #apply {
    display: inline-block;
    padding: 1.5rem .4375rem 1.5rem 1.125rem;
}
.nav .apply-button {
    background: url('/National_Library/20160521004321oe_/http://www.computerbasedmath.org/assets/img/global/d-u-arrow@2x.png') no-repeat -27px center;
    background-size: 38px;
    border: 0;
    width: 1.75rem;
    height: 2rem;
    outline: none;
    vertical-align: middle;
    position: relative;
}
.nav .show-apply .apply-button {
    background: url('/National_Library/20160521004321oe_/http://www.computerbasedmath.org/assets/img/global/d-u-arrow@2x.png') no-repeat 0 center;
    background-size: 38px;
}
.nav .dropdown {
    background: #1681a4;
    position: absolute;
    display: none;
}
.nav .dropdown li {
    display: block;
    text-align: left;
}
.nav .dropdown a {
    padding: .3125rem 1.125rem;
}

.nav .menu {
    display: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 1.625rem 0;
    overflow: hidden;
    background: #eee;
    border-top: .25rem solid #ddd;
}
.footer .inner {
    padding: 0 1.25rem;
    color: #9e9e9e;
    font-size: .6875rem;
    line-height: 2.18;
}
.footer .right a {
    color: #828282;
    display: inline-block;
}

.footer .right a:hover {
    color: #33aadd;
}

.linkedin-icon {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    vertical-align: middle;
}
.linkedin-icon {
    background: url('/National_Library/20160521004321oe_/http://www.computerbasedmath.org/assets/img/global/social.png') right top;
    background-size: cover;
    margin: 0 .125rem 0 .3125rem;
}

/* ==========================================================================
   Thickbox
   ========================================================================== */
#TB_overlay {
    position: fixed;
    z-index:99999;
    top: 0;
    left: 0;
    height:100%;
    width:100%;
    padding: 0;
    margin: 0;
}
.TB_overlayMacFFBGHack {background: url(/National_Library/20160521004321oe_/http://www.computerbasedmath.org/common/images/TBmacFFBgHack.png) repeat;}
.TB_overlayBG {
    background-color:#000;
    filter:alpha(opacity=75);
    -moz-opacity: 0.75;
    opacity: 0.75;
    padding: 0;
    margin: 0;
}
#TB_window {
    position: fixed;
    background: transparent;
    z-index: 100000;
    display: none;
    text-align: left;
    top: 0;
    left: 0;
    padding: 0;
    margin: auto !important;
    right: 0;
    bottom: 0;
    height: 355px;
    max-width: 100%;
}
#TB_window iframe {
    max-width: 100% !important;
}
/* ==========================================================================
   Miscellaneous
   ========================================================================== */
.hide {
    display: none !important;
}
.show {
    display: block !important;
}
iframe, img {
    max-width: 100%;
}
img {
    height: auto;
}
table {
    border-collapse: collapse;
    width: 100%;
    text-align: left;
    table-layout: fixed;
}
table tr th {
    background: #33aadd;
    color: #fff;
    border: 1px solid #ddd;
    padding: .3125rem 0 .3125rem 1.875rem;
    font-weight: 400;
}
table tr:nth-child(odd) {
    background: #f8f8f8;
}
table tr td {
    border: 1px solid #ddd;
    padding: .3125rem .3125rem .3125rem 1.875rem;
    vertical-align: top;
}
table tr td:nth-child(1n) {
    width: 12.5rem;
}

/* ==========================================================================
   responsive breakpoint styles
   ========================================================================== */

/* styles for medium screens (900px)
   ========================================================================== */
@media all and (max-width: 900px) {
    .nav-inner {
        text-align: center;
    }
    .nav-inner > a {
        float: none;
        margin: 0;
    }
    .nav a img + img {
        display: none;
    }
    .nav-inner ul li a {
        padding: 1.5rem .9rem;
    }
}
/* styles for small screens (600px)
   ========================================================================== */
@media all and (max-width: 600px) {
    #_noscript div {
        top: 4.75rem;
    }
    .nav-inner {
        text-align: left;
    }
    .nav-inner > a {
        margin: .5rem;
    }
    .nav ul {
        display: none;
        background: #1681a4;
        padding: .3125rem 0;
    }
    .nav .menu {
        display: inline-block;
        border: 0;
        border-top: .75rem double #fff;
        width: 1.375rem;
        height: 1.25rem;
        background: transparent;
        position: relative;
        float: right;
        margin: 1.75rem 1.25rem 1.5rem 0;
        cursor: pointer;
        outline: none;
    }
    .nav .menu:after {
        content: '';
        width: 1.375rem;
        height: .23rem;
        background: #fff;
        display: block;
        position: absolute;
        left: 0;
    }
    .nav .menu:hover {
        border-top: .75rem double #33aadd;
    }
    .nav .menu:hover:after {
        background: #33aadd;
    }
    .nav li {
        display: block;
    }
    .nav ul li a, .nav #apply {
        padding: .3125rem 1.125rem;
    }
    .show-apply {
        background: #33aadd;
    }
    .nav .dropdown {
        background: #33aadd;
        position: relative;
    }
    .nav .dropdown a:hover, .nav #apply:hover {
        color: #0d6684;
    }
    .half {
        width: 100%;
        display: block;
    }
    footer .right {
        font-size: 0;
    }
    footer .left {
        margin: 6px 0 0 0;
    }
    .linkedin-icon, .mail-icon {
        width: 32px;
        height: 32px;
    }
    .mail-icon {
        background: url('/National_Library/20160521004321oe_/http://www.computerbasedmath.org/assets/img/global/social-responsive.png') left top;
        background-size: cover;
        margin: 0 6px 0 0;
        vertical-align: middle;
    }
    .linkedin-icon {
        background: url('/National_Library/20160521004321oe_/http://www.computerbasedmath.org/assets/img/global/social-responsive.png') right top;
        background-size: cover;
        margin: 0 6px 0 0;
    }
}
