@import url(css/reset.css);
@import url(css/layout.css);

/*
Theme Name: Snail by Jim Dugan
Theme URI: http://elisabethtovabailey.net
Description: Starkers with SASS
Version: 1.1
Author: Jim Dugan
Author URI: http://jimdugan.com
Tags: starkers, html5, naked, clean, basic, SASS
*/

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.wrapper {
    display: block;
    background: #f9f6f0;
    max-width: 1050px;
    width: 90%;
    position: relative;
    margin: 30px auto 20px auto;
    padding: 0px;
    -moz-box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.4);
    -webkit-box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.4);
    box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.4);
}

img {
    max-width: 100%;
    height: auto;
}

.outer {
    margin: 0 auto 0 auto;
}

html {
    width: 100%;
}

body {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 14px;
    position: relative;
    /* width: 100%; */
}

.pager {
    width: 200px;
}

.floatright {
    float: right;
    margin: 20px;
}

.wrapper>aside {
    width: 30%;
    float: left;
    background-color: rgba(231, 219, 191, 0.5);
    padding: 0 10px 10px 10px;
    height: 100%;
    margin: 20px 0 0 20px;
    position: relative;
    top: 0;
}

.wrapper>article {
    width: 67%;
    float: right;
    padding: 20px;
}

.wrapper>article ul {
    font-size: 14px;
    line-height: 20px;
}

.page-template-onecolumn-page-php .wrapper>article {
    width: 1000px;
    float: none;
    padding: 20px;
}

article img {
    max-width: 100%;
    height: auto;
}

.wrapper>header {
    padding: 0px 20px 0px 20px;
    clear: both;
}

.hgroup {
    height: 1px;
    position: relative;
    left: -9999px;
}

img.logo {
    position: relative;
    top: 22px;
}

a {
    color: #000000;
    text-decoration: underline;
}

a:hover {
    color: #000000;
}

a:visited {
    color: #000000;
}

.wrapper>footer h3 {
    clear: both;
    background-color: #2e662d;
    color: #ffffff;
    text-align: center;
    padding: 10px;
    font-size: 1.5em;
}

.wrapper>footer h3 a {
    text-decoration: underline;
    color: #ffffff;
}

.wrapper>footer h3 a:visited {
    color: #ffffff;
}

.wrapper>footer h3 a:hover {
    color: #ffffff;
}

aside a {
    text-decoration: underline;
    color: #2e662d;
}

aside a:visited {
    color: #2e662d;
}

aside a:hover {
    color: #2e662d;
}

.menu-stamp {
    height: 180px;
    clear: both;
}

.menu-stamp li {
    position: relative;
    display: block;
    float: left;
    width: 220px;
    height: 180px;
    margin: 8px;
}

.linktitle {
    font-family: Georgia, "Times New Roman", Times, serif;
    display: block;
    padding: 5px;
    width: 220px;
    height: 40px;
    position: absolute;
    bottom: 0px;
    left: 0px;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.textwidget p,
.textwidget ol,
.textwidget ul {
    color: #2e662d;
    margin-bottom: 12px;
}

.textwidget ul li {
    list-style: disc;
    margin-left: 30px;
}

.textwidget h5+p {
    margin-top: 0;
}

.menu-stamp img {
    -moz-box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.4);
    -webkit-box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.4);
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.4);
}

.menu-topnav-container {
    width: 100%;
    min-height: 35px;
    background-color: #2e662d;
}

.menu-topnav-container ul {
    margin: 0 0 0 0;
    min-height: 30px;
}

.menu-topnav-container li {
    display: inline-block;
    line-height: 2em;
    margin-left: 0;
}

.menu-topnav-container li a {
    padding: 8px;
    background-color: #2e662d;
    color: #2A56A3;
}

.menu-topnav-container li a:visited {
    color: #2A56A3;
}

.menu-topnav-container li a:hover {
    color: #fff;
}

article>header>h2 {
    margin-top: 0px;
}

.home article>header>h2 {
    display: none;
}

article>article {
    margin-top: 46px;
}

.wp-caption,
wp-caption-dd,
wp-caption-dt {
    background: none !important;
    margin: 10px 5px;
    border: none !important;
    padding: 5px;
}


/* Sidebar Stuff
-------------------------------------------------------------- */

aside ul>li {
    list-style: none;
    margin: 1em 0 0 0;
}

aside ol>li {
    list-style: decimal;
    margin: 0 0 0 2em;
}

aside ul>li ul>li {
    margin: 0;
}

aside>ul>li:first-child {
    margin-top: 0;
}

aside li h3 {
    color: #2e662d;
    font-size: 20px;
    line-height: 1.2em;
    padding: 0px;
    margin-top: 20px;
    -moz-hyphens: none;
    -ms-hyphens: none;
    -webkit-hyphens: none;
    hyphens: none;
}


/* Typography
-------------------------------------------------------------- */

body {
    color: #000;
    text-rendering: optimizeLegibility;
    vertical-align: baseline;
}


/* =Headings
-------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-weight: bold;
    line-height: 1.5rem;
    margin: 24px 0 0 0;
    margin: 1rem 0 0 0;
    color: #2A56A3;
}

h1 {
    font-size: 24px;
    font-size: 1.5rem;
    line-height: 1.5em;
}

header>h1 {
    margin-top: 0;
}

h2 {
    font-size: 24px;
    font-size: 1.285714286rem;
    line-height: 1.6;
}

h3 {
    font-size: 18px;
    font-size: 1.142857143rem;
}

h4 {
    font-size: 16px;
    font-size: 1rem;
}

h5 {
    font-size: 13px;
    font-size: 0.928571429rem;
}

h6 {
    font-size: 12px;
    font-size: 0.857142857rem;
}

hr {
    background-color: #222;
    border: 0;
    height: 1px;
    margin: 0;
    margin-bottom: 1.714285714rem;
    margin-top: 1.714285714rem;
}

aside h1,
aside h2,
aside h3,
aside h4,
aside h5,
aside h6 {
    color: #2e662d;
}

article header h2 a {
    color: #2A56A3;
}

article header h2 a:visited {
    color: #2A56A3;
}

article h1,
article h2,
article h3,
article h4,
article h5,
article h6,
.textwidget h4,
.textwidget h3 {
    margin-bottom: 15px;
}

aside h1,
aside h2,
aside h3,
aside h4,
aside h5,
aside h6 {
    color: #2e662d;
}


/* =Text elements
-------------------------------------------------------------- */

p {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 14px;
    line-height: 20px;
    margin: 0 0 24px;
    margin: 0 0 1rem;
}

ul,
ol {
    margin: 0 0 24px;
    margin: 0 0 1.714285714rem;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 14px;
    line-height: 20px;
    padding: 0;
}

ul {
    list-style: disc outside;
}

article ul {
    list-style-image: url(https://elisabethtovabailey.net/wordpress/wp-content/themes/snail/images/blue-square.png);
}

article ul li {
    margin-bottom: 10px;
}

ol {
    list-style: decimal outside;
}

aside ol {
    list-style: decimal outside !important;
}

ul ul,
ol ol,
ul ol,
ol ul {
    margin-bottom: 0;
}

li {
    margin: 0 0 0 24px;
    margin: 0 0 0 1.714285714rem;
}

dl {
    margin: 0 24px;
    margin: 0 1.714285714rem;
}

dt {
    font-weight: bold;
    margin-bottom: 24px;
    margin-bottom: 1.714285714rem;
}

dd {
    line-height: 1.714285714;
    margin: 0 0 24px;
    margin: 0 0 1.714285714rem;
}

strong {
    font-weight: bold;
}

cite,
em,
i {
    font-style: italic;
}

cite {
    border: none;
}

big {
    font-size: 128.571429%;
}

.mceContentBody blockquote {
    font-style: italic !important;
    font-weight: normal;
    margin: 0;
    padding: 24px;
    padding: 1.714285714rem;
}

pre {
    border: 1px solid #ededed;
    color: #666;
    font-family: Consolas, Monaco, Lucida Console, monospace;
    font-size: 12px;
    font-size: 0.857142857rem;
    line-height: 1.714285714;
    margin: 24px 0;
    margin: 1.714285714rem 0;
    overflow: auto;
    padding: 24px;
    padding: 1.714285714rem;
}

code,
kbd,
samp,
var {
    font-family: Consolas, Monaco, Lucida Console, monospace;
    font-size: 12px;
    font-size: 0.857142857rem;
    line-height: 2;
}

abbr,
acronym,
dfn {
    border-bottom: 1px dotted #666;
    cursor: help;
}

address {
    display: block;
    line-height: 1.714285714;
    margin: 0 0 24px;
    margin: 0 0 1.714285714rem;
}

del {
    color: #333;
}

ins {
    background: #fff9c0;
    border: none;
    color: #333;
    text-decoration: none;
}

sup,
sub {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

input[type="text"] {
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: inherit;
    padding: 6px;
    padding: 0.428571429rem;
}

textarea {
    border: 1px solid #d5d2ca;
    border-radius: 3px;
    font-family: inherit;
    font-size: 12px;
    font-size: 0.857142857rem;
    line-height: 1.714285714;
    padding: 10px;
    padding: 0.714285714rem;
    width: 96%;
}

p.wp-caption-text {
    margin-top: 5px;
    margin-bottom: 0;
    font-size: 1em;
    line-height: 1em;
}

p.wp-caption-text em {
    font-size: .9em;
}

.textwidget img.aligncenter {
    margin-top: 10px;
}


/* =Links
-------------------------------------------------------------- */

a,
a em,
a strong {
    text-decoration: underline;
    outline: none;
}

h3+p {
    margin-top: 0;
}

h4.medical {
    font-style: italic;
    margin-bottom: 1em;
}


/* DROP DOWN MENU STUFF 
----------------------------*/

ul#menu-topnav {
    display: table;
    border: none;
    border: 0px;
    margin: 0px;
    padding: 0px;
    width: 100%;
}

#menu-topnav ul {
    background: #2e662d;
    height: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#menu-topnav li {
    position: relative;
    /*this allows the child items to be 100% of parent, not screen or child text*/
    float: left;
}

#menu-topnav li a {
    /*detailed background properties for precision edits of last:child*/
    background-color: #2e662d;
    background-image: url("images/seperator.gif");
    background-position: bottom right;
    background-repeat: no-repeat;
    border-right: thin solid #2e662d;
    color: #ffffff;
    display: block;
    font-size: 15px;
    font-weight: normal;
    line-height: 35px;
    margin: 0px;
    padding: 0px 11px;
    text-decoration: none;
}

#menu-topnav li:last-child a {
    background-image: none;
}


/*Gets rid of last seperator*/

#menu-topnav>li:last-child a:hover {
    /*Gets rid of last seperator/ width hides last:child blue edge so it fills menu bar*/
    background-image: url("images/hover.gif");
    background-position: bottom center;
    background-repeat: no-repeat;
    width: 109%;
}

#menu-topnav li:last-child.current-menu-item a {
    background-image: none, url("images/hover.gif");
    background-repeat: none, norepeat;
    width: 109%;
}

#menu-topnav li a:hover,
#menu-topnav li.current-menu-item a,
#menu-topnav li.current-menu-parent a {
    /*sets two background images plus a color on current page and ancestor parent*/
    background-image: url("images/seperator.gif"), url("images/hover.gif");
    background-repeat: no-repeat, norepeat;
    background-color: #2A56A3;
    background-position: bottom right, bottom center;
}

#menu-topnav li ul {
    background: #2e662d;
    display: none;
    height: auto;
    padding: 0px;
    margin: 0px;
    border: 0px;
    position: absolute;
    z-index: 200;
}

#menu-topnav li:hover ul {
    /*Gives dropdown list side borders / links have bottom borders instead of image*/
    border-right: thin solid #000;
    border-left: thin solid #000;
    display: block;
}

#menu-topnav li li {
    display: block;
    float: none;
    margin: 0px;
    padding: 0px;
}

#menu-topnav li:hover li a {
    background: none;
}

#menu-topnav li ul a {
    display: block;
    height: 35px;
    font-size: 14px;
    font-style: normal;
    margin: 0px;
    padding: 0px 10px 0px 15px;
    text-align: left;
}

#menu-topnav li ul a:hover,
#menu-topnav li ul li:hover a {
    background: #2A56A3 url("images/hover-sub.gif") center left no-repeat;
    border: 0px;
    color: #ffffff;
    text-decoration: none;
}

ul#menu-topnav li:hover>ul.sub-menu {
    /*Keeps sub menu children minimum width of parent*/
    min-width: 100%;
    white-space: nowrap;
}

#menu-topnav ul.sub-menu li.menu-item a {
    display: block;
    border-bottom: thin solid black;
}

#menu-topnav p {
    clear: left;
}

#respond {
    clear: both;
}

article.post {
    clear: both;
}

blockquote {
    padding: 20px;
    background-color: rgba(46, 102, 45, 0.4);
    margin-bottom: 12px;
    font-style: italic;
}

blockquote p {
    padding: 0;
    margin: 0;
}

header+h3 {
    margin-top: 0;
}

.editions {
    display: block;
    float: left;
    width: 157px;
    height: 320px;
    margin: 5px;
    text-align: center;
}

.editions img {
    vertical-align: baseline;
}

.editions p {
    margin: 0 !important;
    font-size: .8em;
}

.editionstable {
    margin-top: 6px;
}

.editionstable th,
.editionstable td {
    width: 200px;
    vertical-align: top;
    text-align: center;
    font-size: .8em;
    margin-left: 15px;
}

td.editionstext {
    vertical-align: top;
    height: 120px;
    padding: 10px 0 40px;
}

td.editionstext strong {
    display: box;
    line-height: 1.5em;
}

header+h4 {
    margin-top: 0;
}

a[href$='.pdf'],
a[href$='.PDF'] {
    display: inline-block;
    height: 23px;
    margin-left: 0;
    background: url("images/pdf.gif") no-repeat scroll 0% 30% transparent;
    padding: 2px 0px 0px 25px;
    text-decoration: underline;
    clear: none;
}

a[href$='.pdf']>p,
a[href$='.PDF']>p {
    margin-top: 0;
}

.wrapper .audio {
    display: block;
    float: left;
    margin: 3px;
}

#submitform {
    padding: 15px;
}

blockquote h4 {
    margin-top: 0;
}

article h3+p {
    margin-top: 6px;
}

[title=ContactLink] {
    color: #2A56A3 !important;
}

[title=PhotosLink] {
    color: #2A56A3 !important;
}

blockquote em {
    font-style: normal !important;
}

#slb_viewer_wrap .slb_theme_slb_black .slb_container {
    background-color: rgba(255, 255, 255, 0) !important;
}

img.fblogo {
    float: right;
    margin-top: 20px;
}

a .post-edit-link {
    clear: both;
}

footer {
    clear: both;
}

.wrapper>article>div.alignleft {
    float: left;
}


/******* Pop-up-lightbox for gallery and book menu***/


/* Add wp-video-lightbox to the rel tag of any image- for a gallery add wp-video-lightbox[yourgalleryname_gallery] to each image rel tag
Add the rel tag through the edit interface as opposed to the html editor. WP was stripping them out.
  
/*click button*/

#clicker {
    width: 160px;
    height: 75px;
    background: url(images/snail1.png) no-repeat;
    margin: 10px auto 10px;
    text-align: center;
    cursor: pointer;
}

#clicker:hover {
    background: url(images/snail2.png) no-repeat 9px 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

#clicker a,
#clicker a:visited {
    font-weight: bold;
    font-size: 16px;
    display: block;
    padding: 50px 0;
    text-decoration: none;
    color: #2e662d!important;
}


/* Pop-up window*/

#pop-up,
#pop-up-eu,
#pop-up-uk,
#pop-up-fr,
#pop-up-cns,
#pop-up-sk,
#pop-up-cn,
#pop-up-jp,
#pop-up-it,
#pop-up-sp,
#pop-up-cat {
    display: none!important;
    margin: -45px;
    width: 450px!important;
    height: 300px;
    background: url(http://elisabethtovabailey.net/images/tricol_bg_wrink.jpg)!important;
    background-color: #fff!important;
    -webkit-border-radius: .5em;
    -moz-border-radius: .5em;
    border-radius: .5em;
    -webkit-box-shadow: 0 0px 25px rgba(0, 0, 0, .9);
    -moz-box-shadow: 0 0px 25px rgba(0, 0, 0, .9);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4);
    border: 5px solid #2E662D;
}

.pp_overlay {
    /*video-lightbox overlay was not covering screen*/
    width: 100%!important;
    height: 120%!important;
    margin-top: -50px!important;
}

.pp_pic_holder {
    psition: absolute!important;
    bottom: 10px!important;
}


/*inside-popup*/

ul.books {
    padding: 0px 20px 10px;
}

ul.books ul li {
    margin: 10px 0px;
}

ul.books ul li {
    list-style-image: url(images/blue-square.png)!important;
}

ul.books li {
    margin-left: 0;
    list-style: none!important;
}

ul.books ul {
    margin-left: 20px;
}

ul.books ul a,
ul.books ul a:visited {
    color: #2E662D;
}

ul.books h1 {
    margin-top: 0px;
    text-align: left;
    color: #2E662D;
}


/* end popup */


/* Accordion Stuff */

#accordion-1 {
    margin-top: -20px;
}

#accordion-1 h3 {
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}

@media screen and (max-width: 1050px) {
    .home .wp-image-1271 {
        margin-top: 60px;
        margin-bottom: -30px !important
    }
    .wrapper {
        margin: 0;
        box-shadow: none;
        width: 100%;
        padding: 0 2%;
    }
    .wrapper>article {
        width: 100%
    }
    .wrapper>aside {
        max-width: 100%;
        width: calc(100% - 40px)
    }
    blockquote {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 20px;
    }
    iframe {
        max-width: 100% !important;
    }
    img.logo {
        max-width: calc(100% - 90px);
        margin-bottom: 10px;
    }
    .wrapper>header {
        padding: 0;
    }
    aside h1,
    aside h2,
    aside h3,
    aside h4,
    aside h5,
    aside h6 {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 580px) {
    footer {
        margin-top: 20px !important;
        float: none;
    }
    img {
        width: 100%;
    }
    img.fblogo {
        width: 20px;
        padding-bottom: 15px;
    }
    img.noresize {
        width: auto !important;
    }
    iframe {
        width: 100% !important;
    }
    .wp-caption.alignright {
        width: 100% !important
    }
    p,
    .wrapper li {
        line-height: 1.6;
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    .wrapper>aside {
        margin-bottom: 20px;
        float: none;
        clear: both;
        padding: 10px 20px;
    }
    .editionstable tr {
        display: block;
    }
    .editionstable th,
    .editionstable td {
        max-width: 40% !important
    }
}