/*-----ベース-----*/

body {
    margin: 0;
    padding: 0;
    background: #010d0d;
    color: #464646;
    line-height: 2;
    font-size: 14px;
}

img {
    border: none;
}

h1,
h3 {
    margin: 0;
    padding: 0;
    font-weight: bold;
}

a {
    color: #e0214a;
    font-weight: bold;
    font-size: 1em;
}

h3 {
    font-size: 1.3em;
    font-weight: bold;
}

a:hover {
    color: #333;
}


/* Header */

#header {
    padding: 40px 10px;
    background-size: auto 100%;
    position: relative;
    margin-bottom: 30px;
}

#header:after {
    position: absolute;
    bottom: -16px;
    height: 40px;
    width: 100%;
    background: url('/National_Library/oe_/http://www.jackzelig.com/images/img2.gif') no-repeat center;
    left: 0;
}

#header * {
    text-align: center;
    text-decoration: none;
    color: #8F3844;
}

#header h1 {
    font-size: 2em;
    line-height: 2;
}

#header h1 a {
    font-size: 1em;
    color: #737373;
}

#header h1 a:hover {
    -webkit-transition: all ease-in 0.2s;
    -o-transition: all ease-in 0.2s;
    transition: all ease-in 0.2s;
    color: #fff;
}


/* Content */

#menu {
    padding-bottom: 20px;
    margin-bottom: 20px;
    text-align: center;
}

#menu li {
    padding-left: 5px;
    padding-right: 5px;
}

#menu a {
    font-size: 1.1em;
    font-weight: bold;
    color: #bd1d40;
    background: transparent;
}

.show {
    -webkit-display: inline-block !important;
    -moz-display: inline-block !important;
    -ms-display: inline-block !important;
    -o-display: inline-block !important;
    display: inline-block !important;
}

#menu a:hover,
#menu a.active {
    background: transparent;
    color: #ffffff;
}

.nav.navbar-nav {
    -webkit-display: inline-block;
    -moz-display: inline-block;
    -ms-display: inline-block;
    -o-display: inline-block;
    display: inline-block;
    float: none;
    width: auto;
}

.cv-menu {
    display: none;
    margin-top: 10px;
    margin-bottom: 10px;
}

.cv-menu span {
    height: 5px;
    width: 30px;
    background: #d43349;
    display: block;
    margin-top: 15px;
    margin-bottom: 15px;
    position: relative;
}

.cv-menu span:after,
.cv-menu span:before {
    content: '';
    width: 100%;
    height: 5px;
    background: #d43349;
    display: block;
    position: absolute;
    left: 0;
}

.cv-menu span:before {
    top: -10px;
}

.cv-menu span:after {
    bottom: -10px;
}

.cv-menu:hover {
    cursor: pointer;
}

.cv-menu:hover span,
.cv-menu:hover span:after,
.cv-menu:hover span:before,
.cv-menu.cur span,
.cv-menu.cur span:after,
.cv-menu.cur span:before {
    background: #ffffff;
}

#slider {
    margin-top: 30px;
    display: table;
    width: 100%;
    background: #010d0d;
}

#slider img {
    width: 100%;
}

img.top-img {
    float: left;
    width: 35%;
    padding-right: 10px;
    padding-bottom: 10px;
    max-width: 35%;
}

.twoCol img.top-img {
    width: 50%;
    max-width: 50%;
}

.threeCol img.top-img,
#sidebar img.top-img {
    width: 100%;
    max-width: 100%;
    float: none;
    padding-right: 0;
}

#sidebar {
    margin-top: 30px;
    margin-bottom: 30px;
}

#footer {
    clear: both;
    padding: 30px 0;
    background: #010d0d;
    color: #fff;
}

#footer p {
    margin: 0;
    text-align: center;
}


/* Boxed */

.boxed {
    background: #fff;
}

.boxed .title {
    margin: 0;
    padding: 10px 5px;
}

#footer a:hover {
    color: #fff;
    text-decoration: none;
}

.prl-block {
    text-align: center;
    padding: 30px 0;
    position: relative;
    background: #cecece;
}

#prlinks h3 {
    color: #000;
    font-size: 1.6em;
    letter-spacing: 0.2em;
    text-shadow: 0 0 0.2px #000, 0 0 0.2px #000;
    margin-bottom: 15px;
}

ul.prlink {
    list-style: none;
    margin: 0;
    padding: 0;
}

.prl-block:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(/National_Library/oe_/http://www.jackzelig.com/images/ft.jpg) repeat fixed;
    opacity: 0.2;
}

.prlink li {
    margin-bottom: 7px;
}

.sub-post {
    padding: 20px 0;
}

@media only screen and (max-width: 991px) {
    #header {
        height: auto;
        padding: 20px 0;
    }
    #header h1 {
        padding: 20px 5px;
        font-size: 1.7em;
        font-weight: bold;
    }
    h3 {
        font-size: 1.5em;
        font-weight: bold;
    }
    #menu {
        float: none;
    }
    #menu:before {
        display: none;
    }
    .cv-menu {
        display: inline-block;
        vertical-align: top;
        transition: all ease 0.2s;
    }
    .nav {
        /*display: none;*/
        visibility: hidden;
        opacity: 0;
        background: #9e182a;
        transition: all ease 0.2s;
        position: absolute;
        left: 50%;
        top: 100%;
        z-index: 100;
        -webkit-transform: rotateX(90deg) translateX(-80%);
        -ms-transform: rotateY(90deg) translateX(-80%);
        -o-transform: rotateX(90deg) translateX(-80%);
        transform: rotateX(90deg) translateX(-80%);
    }
    #menu .nav.show {
        display: block;
        transition: all ease 0.2s;
        opacity: 1;
        visibility: visible;
        -webkit-transform: rotateX(0deg) translateX(-50%);
        -ms-transform: rotateX(0deg) translateX(-50%);
        -o-transform: rotateX(0deg) translateX(-50%);
        transform: rotateX(0deg) translateX(-50%);
    }
    #menu .nav li,
    #menu .nav.show li,
    #menu .nav.show li a {
        float: none;
        display: block;
    }
    #menu .nav.show li,
    #menu .nav.show li a {
        background-size: 100% 100%;
        color: #fff;
    }
    #menu .nav.show li a {
        white-space: nowrap;
        border-radius: 0;
        padding: 10px 5px;
    }
    #menu .nav.show li a:hover {
        color: #8F3844;
        background: #E4CED1;
    }
    #menu .nav.show li a.active {
        color: #ffffff;
        text-decoration: underline;
    }
    img.top-img {
        float: left;
        width: 50%;
        max-width: 50%;
    }
    .twoCol img.top-img {
        width: 50%;
        max-width: 50%;
    }
    .threeCol img.top-img,
    #sidebar img.topimg {
        width: 50%;
        max-width: 50%;
        float: left;
        padding-right: 10px;
    }
}

@media only screen and (max-width: 768px) {
    #header h1 {
        font-size: 1.4em;
    }
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    .row.row-inner {
        margin-left: -15px;
        margin-right: -15px;
    }
}

@media only screen and (max-width: 640px) {
    #menu .nav.show li a {
        font-size: 1em;
    }
    img.top-img,
    .twoCol img.top-img,
    .threeCol img.top-img,
    #sidebar img.topimg {
        float: none;
        width: 100%;
        max-width: 100%;
        padding-right: 0;
    }
}

@media only screen and (max-width: 480px) {
    #header h1 {
        font-size: 1.2em;
    }
    h3 {
        font-size: 1em;
    }
}
div#main-content {
    padding: 20px 0;
}