/* This whole puppy was done up by Shauvon McGill - smcgill@denyconformity.com */
/* CSS gradient cross browser nonsense brought to us by http://www.visualcsstools.com/#graphicPreviewContainer */

/* Site-specific Helper classes */
.font_script {
    font-family: 'Dawning of a New Day', cursive;
}
.flourish {
    width: 100px;
    height: 50px;
    background-image: url('../images/deco.sprite.png');
    background-position: 0px -58px;
    margin-top: 15px;
}
.swirl {
    width: 100px;
    height: 25px;
    background-image: url('../images/deco.sprite.png');
    background-position: 0px -108px;
    margin-top: 10px;
}
.sig {
    width: 100px;
    height: 58px;
    background-image: url('../images/deco.sprite.png');
    background-position: top left;
    margin-top: 15px;
}
    article > .sig {
        margin: 0;
    }

/*HERE IS ALL OF THE THINGS */
body {
    background: url('../images/bg.texture.tile.jpg') repeat;
    font-family: Arial, sans-serif;
}

#loader {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 9001;
}
    #loader_shadow { /* -24 left, -18 top */
        position: absolute;
        top: -200px;
        left: 20%;
        margin-top: -18px;
        margin-left: -18px;
        width: 224px;
        height: 181px;
        background-image: url('../images/loading.bg.shadow.png');
        opacity: 0.5;

        transform: rotateZ(5deg);
        -ms-transform: rotateZ(5deg);
        -webkit-transform: rotateZ(5deg);
    }
    #loader_content {
        position: absolute;
        top: -200px;
        left: 20%;
        text-align: center;
        width: 191px;
        height: 129px;
        background-image: url('../images/loading.bg.png');

        transform: rotateZ(5deg);
        -ms-transform: rotateZ(5deg);
        -webkit-transform: rotateZ(5deg);
    }
    #loader h1 {
        font-size: 50px;
        color: #442100;
        margin-top: 30px;

        transform: rotateZ(-6deg);
        -ms-transform: rotateZ(-6deg);
        -webkit-transform: rotateZ(-6deg);
    }
    #loader h1 span {
        display: inline-block;
        width: 19px;
        text-align: left;
        position: relative;
        top: -4px;
        left: 1px;
    }
    .loader_show {
        -webkit-animation: show_loader 900ms both;
        animation: show_loader 900ms both;
    }
    #loader_shadow.loader_show {
        -webkit-animation: show_loader_shadow 900ms both;
        animation: show_loader_shadow 900ms both;
    }
    .loader_hide {
        -webkit-animation: hide_loader 900ms both;
        animation: hide_loader 900ms both;
    }
    #loader_shadow.loader_hide {
        -webkit-animation: hide_loader_shadow 900ms both;
        animation: hide_loader_shadow 900ms both;
    }
    
#main {
    width: 100%;
    height: 1656px; /* GOLDEN RATIO! */
    transition: height 1500ms;
    -webkit-transition: height 1500ms;
    background: url('../images/bg.line.tile.png') repeat 0px 20px;
}
#bg_shading {
    width: 100%;
    height: 100%;
    position: relative; /* Firefox needs some hand-holding */
    overflow: hidden;
    
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyYWRpYWxHcmFkaWVudCBpZD0iZyI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSJyZ2JhKDg3LCA3NSwgMzUsIDAuMSkiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9InJnYmEoMzYsIDI3LCAxNiwgMC42KSIvPjwvcmFkaWFsR3JhZGllbnQ+PHJlY3QgeD0iMCUiIHk9IjAlIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJyZ2JhKDM2LCAyNywgMTYsIDAuNikiIC8+PHJlY3QgeD0iMCUiIHk9Ii0xMDAlIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIyMDAlIiBmaWxsPSJ1cmwoI2cpIiAvPjwvc3ZnPg==);
    background-image: -moz-radial-gradient(center top, farthest-side, rgba(87, 75, 35, 0.1) 0%, rgba(36, 27, 16, 0.6) 100%);
    background-image: -ms-radial-gradient(center top, farthest-side, rgba(87, 75, 35, 0.1) 0%, rgba(36, 27, 16, 0.6) 100%);
    background-image: -o-radial-gradient(center top, farthest-side, rgba(87, 75, 35, 0.1) 0%, rgba(36, 27, 16, 0.6) 100%);
    background-image: radial-gradient(farthest-side at center top, rgba(87, 75, 35, 0.1) 0%, rgba(36, 27, 16, 0.6) 100%);
    background-image: -webkit-radial-gradient(center top, 550px 1200px, rgba(87, 75, 35, 0.1) 0%, rgba(36, 27, 16, 0.6) 100%);
}
footer {
    position: absolute;
    bottom: 10px;
    right: 50px;
    color: #f8ecc2;
    font-size: 12px;
    left: 50px;
    text-align: right;
}
footer span {
    display: inline-block;
    margin: 0 40px;
}
#placeholder_logo {
    width: 35px;
    height: 35px;
    background: url('../images/footer.logo.sprite.png') top left;
    margin-left: 5px;
    opacity: 0.5;
}

/* Elements */
a {
    color: #627723;
    text-decoration: none;
}
a:hover {color: #b0d236;}
p {
    margin: 10px 0;
    line-height: 1.25;
}
p.font_script {
    font-size: 1.6em;
    color: #442100;
}
.twocolumn {
    width: 650px;
}
.firstchar:first-letter {
    font-size: 2.5em;
    float: left;
    margin: 0 10px 0 0;
    display: block;
    height: 40px;
}
    
/* Topnav */
nav {
    position: fixed;
    top: -10px;
    left: 0px;
    z-index: 100;
}
    #topnav {
        right: 0px;
    }
nav #logo {
    width: 337px;
    height: 230px;
    text-indent: -9999em;
    display: block;
    background-image: url('../images/topnav.logo.sprite.png');
    background-position: top left;
    margin-left: -50px;
    top: 0px;
    position: relative;
    
    -webkit-transition: top 300ms;
    transition: top 300ms;
}
nav #logo:hover {
    top: 10px;
}
nav .btns {
    position: absolute;
    top: -15px;
    right: 20px;
}
nav .btn {
    display: inline-block;
    text-decoration: none;
    color: #FFF;
    background-image: url('../images/topnav.btn.bg.png');
    background-position: top center;
    background-repeat: repeat-x;
    padding: 35px 10px 0;
    height: 45px;
    top: 0px;
    margin-left: 30px;
    position: relative;
    font-size: 30px;
    
    -webkit-transition: top 300ms;
    transition: top 300ms;
}
nav .btn:after {
    content: "";
    top: 0px;
    left: 0px;
    height: 87%;
    width: 100%;
    position: absolute;
    z-index: -1;
    box-shadow: -3px 6px 15px rgba(0,0,0,0.4);
}
nav .btn:nth-child(1) {
    background-position: top left;
}
nav .btn:nth-child(2) {
    background-position: top center;
}
nav .btn:nth-child(3) {
    background-position: top right;
}
nav .btn:hover {
    top: 15px;
}

hr {
    height: 35px;
    border: 0px;
    margin: 0 0 30px 0;
    background: url('../images/content.hr.png') center bottom no-repeat;
    width: 100%;
}

/* Content Stuff */
.page * {
    position: relative;
    z-index: 6;
}
.page article {
    padding-bottom: 35px;
    margin: 0px 0 30px 0;
    background: url('../images/content.hr.png') center bottom no-repeat;
    position: relative;
}
    .page article.count_3:last-of-type {
        background: none;
        padding-bottom: 0px;
        margin-bottom: 10px;
    }
.page .twocolumn article {
    background: url('../images/content.hr.twocolumn.png') center bottom no-repeat;
}
    .page article h2 {
        color: #442100;
        font-size: 50px;
        line-height: 60px;
        margin-bottom: 10px;
    }
    .page article .article_text {
        height: 200px;
        overflow: hidden;
    }
    .article_text object, .article_text iframe {
        display: block;
        margin: auto;
        position: relative;
        left: 500%;
        box-shadow: -3px 5px 10px rgba(0,0,0,0.3);
    }
    .article_text p {
        text-indent: 1.5em;
    }
        .page article.count_1 .article_text {
            height: auto;
            max-height: 1100px;
        }
        .page article.count_2 .article_text {
            height: auto;
            max-height: 400px;
        }
        .page article.count_3 .article_text {
            height: auto;
            max-height: 250px;
        }
        .page article.full_post .article_text {
            height: auto;
            overflow: visible;
        }
    .page article .ellipses {
        /*
        position: absolute;
        top: 270px;
        right: 0px;

        display: none;
        */
        display: inline-block;
    }
    .page article .comment_count {
        margin: 10px 0 0 0;
    }
    
    .page article .post_image {
        width: 240px;
        position: relative;
        height: 195px;
        overflow: hidden;
        border: 15px solid #FFF;
        border-radius: 10px;
        box-shadow: 2px 6px 10px rgba(0,0,0,0.2);
        margin: 13px 20px 30px 0;
        
        -webkit-transform: rotateZ(-5.5deg);
        -ms-transform: rotateZ(-5.5deg);
        transform: rotateZ(-5.5deg);
    }
    .page article .post_image.auto-size {
        width: auto;
        height: auto;
        margin-right: 30px;
    }
    .page article .post_image.pull-right {
        margin-left: 20px;
        margin-right: -5px;
        -webkit-transform: rotateZ(5deg);
        -ms-transform: rotateZ(5deg);
        transform: rotateZ(5deg);
    }
    .page article .post_image img {
        min-width: 100%;
        min-height: 100%;
    }
    .page article .post_image .overlay {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0px;
        left: 0px;
        background: url('../images/post.image.overlay.png') no-repeat center center;
        opacity: 0.8;
    }
    .page article .after_post a {
        margin-left: 20px;
    }

    .page .page_link {
        font-size: 36px;
    }
    
/* Super cool book */
#book {
    position: absolute;
    top: 100px;
    left: 50%;
    margin-left: -1415px;
    width: 1912px;
    height: 1485px;
    z-index: 5;
    
    transition: transform 2s, -ms-transform 2s, left 2s, top 2s;
    -webkit-transition: -webkit-transform 2s, left 2s, top 2s;
}
    #book #front_cover, #book #back_cover, #book #front_cover_turn {
        position: absolute;
        top: 0px;
        width: 896px;
        height: 1486px;
        background: url('../images/cover.texture.tile.jpg') repeat;
        z-index: 2;
        box-shadow: -4px 5px 15px rgba(0,0,0,0.5);
        border-radius: 25px 3px 3px 25px;
    }
        #book #front_cover, #book #front_cover_turn {
            left: 1016px;
            border-radius: 5px 25px 25px 3px;
        }
        #book #front_cover:after, #book #back_cover:after, #book #front_cover_turn:after,
        #book #front_cover:before, #book #back_cover:before, #book #front_cover_turn:before {
            content: "";
            position: absolute;
            top: 0px;
            right: 0px;
            width: 100%;
            height: 100%;
            border-top: 7px solid rgba(255,255,255,0.04);
            border-right: 7px solid rgba(120,120,120,0.07);
            border-radius: 5px 25px 25px 3px;
            
            -moz-box-sizing: border-box;
            box-sizing: border-box;
        }
        #book #front_cover:before, #book #back_cover:before, #book #front_cover_turn:before {
            border-bottom: 7px solid rgba(0,0,0,0.09);
            border-left: 7px solid rgba(0,0,0,0.07);
            border-radius: 5px 25px 25px 3px;
        }
        #book #back_cover:before, #book #back_cover:after {
            border-radius: 25px 5px 5px 25px;
        }
        #book #front_cover_turn.front_cover_transition {
            z-index: 10;
            -webkit-transform-origin: 0% 50%;
            -ms-transform-origin: 0% 50%;
            transform-origin: 0% 50%;
            box-shadow: none;
        }
        #book #front_cover_turn.animate {
            -webkit-animation: front_cover_open 3s both;
            animation: front_cover_open 3s both;
        }
        #book #front_cover_turn.close {
            -webkit-animation: front_cover_close 2s both;
            animation: front_cover_close 2s both;
        }
        #book #front_cover_turn #front_cover_image {
            width: 769px;
            height: 918px;
            background: url('../images/cover.image.png') no-repeat top left;
            display: block;
            margin: 100px auto 0px;
            opacity: 0.8;
        }
    #book #spine {
        position: absolute;
        top: 15px;
        left: 896px;
        width: 120px;
        height: 1456px;
        background: url('../images/cover.spine.tile.jpg') repeat-y top right;
        box-shadow: -4px 19px 10px rgba(0,0,0,0.5);
        z-index: 1;
    }
        #book #spine:before {
            content: "";
            width: 100%;
            height: 15px;
            position: absolute;
            background: url('../images/cover.spine.caps.sprite.png') no-repeat top right;
            top: -15px;
        }
        #book #spine:after {
            content: "";
            width: 100%;
            height: 15px;
            position: absolute;
            background: url('../images/cover.spine.caps.sprite.png') no-repeat bottom right;
            bottom: -15px;
        }
            #book #spine.front_cover_transition {
                box-shadow: -10px 19px 20px rgba(0,0,0,0.5);
                left: 990px;
                -webkit-transform-origin: 0% 50%;
                -ms-transform-origin: 0% 50%;
                transform-origin: 0% 50%;
                
                -webkit-transform: scaleX(1);
                -ms-transform: scaleX(1);
                transform: scaleX(1);
            }
            #book #spine.front_cover_transition:before {
                border-radius: 15px 0 0 0;
            }
            #book #spine.front_cover_transition:after {
                border-radius: 0 0 0 15px;
            }
            #book #spine.animate {
                -webkit-animation: book_spine_open 3s both;
                animation: book_spine_open 3s both;
            }
            #book #spine.close {
                -webkit-animation: book_spine_close 2s both;
                animation: book_spine_close 2s both;
            }
    
    #book #page_shadow {
        width: 1851px;
        height: 1427px;
        position: absolute;
        top: 26px;
        left: 33px;
        z-index: 3;
        border-radius: 18px;
        box-shadow: -3px 5px 20px rgba(0,0,0,0.5);
    }
    
    #book #front_page, #book #back_page {
        /*z-index: 4;*/
        left: 50%;
        border-left: 2px solid #3C392E;
    }
    #book #back_page {
        left: 66px;
        border-radius: 17px 0 0 17px;
        border-left: 0px;
        border-right: 2px solid #3C392E;
    }
    #book #back_page:before {
        left: auto;
        right: 0px;
                
        background-image: -webkit-gradient(linear, right center, left center, color-stop(0%, #a39b7d), color-stop(100%, #f8ecc2));
        background-image: -webkit-linear-gradient(right, #a39b7d 0%, #f8ecc2 100%);
        background-image: -moz-linear-gradient(right, #a39b7d 0%, #f8ecc2 100%);
        background-image: -ms-linear-gradient(right, #a39b7d 0%, #f8ecc2 100%);
        background-image: -o-linear-gradient(right, #a39b7d 0%, #f8ecc2 100%);
        background-image: linear-gradient(to left, #a39b7d 0%, #f8ecc2 100%);
    }
        #book .layers {
            height: 1392px;
            position: absolute;
            top: 43px;
            left: 1836px;
            width: 50px;
            background-image: url("../images/page.layers.tile.png");
            background-repeat: repeat-y;
            background-position: top right;
            z-index: 2;
        }
        #book .layers:before, #book .layers:after {
            content: "";
            position: absolute;
            top: -19px;
            right: 0px;
            height: 19px;
            width: 100%;
            background-image: url("../images/page.layers.caps.sprite.png");
            background-repeat: no-repeat;
            background-position: top right;
        }
        #book .layers:after {
            top: auto;
            bottom: -19px;
            background-position: bottom right;
        }
        #book #front_layers {
            
        }
        #book #back_layers {
            right: auto;
            left: 30px;
            background-position: top left;
        }
        #book #back_layers:after, #book #back_layers:before {
            background-position: top left;
        }
        #book #front_page .layers {
            left: auto;
            right: 0px;
            top: 18px;
        }
            #book #front_page.animate .layers {
                -webkit-animation: book_back_layers_open 3s both;
                animation: book_back_layers_open 3s both;
            }
            #book #front_page.close .layers {
                -webkit-animation: book_back_layers_close 2s both;
                animation: book_back_layers_close 2s both;
            }
        
        #book .page.front_cover_transition {
            left: 1017px;
        }
            #book .page.front_cover_transition.animate {
                -webkit-animation: book_page_open 3s both;
                animation: book_page_open 3s both;
            }
            #book .page.front_cover_transition.close {
                -webkit-animation: book_page_close 2s both;
                animation: book_page_close 2s both;
            }
        #book .showing_wrapper .page.front_cover_transition {
            left: 59px;
        }
            #book .showing_wrapper .page.front_cover_transition.animate {
                -webkit-animation: book_wrapped_page_open 3s both;
                animation: book_wrapped_page_open 3s both;
            }
            #book .showing_wrapper .page.front_cover_transition.close {
                -webkit-animation: book_wrapped_page_close 2s both;
                animation: book_wrapped_page_close 2s both;
            }
            
        #book #front_page.front_cover_transition {
            left: 1015px;
            z-index: 5;
            -webkit-transform-origin: 0% 50%;
            -ms-transform-origin: 0% 50%;
            transform-origin: 0% 50%;
        }
            #book #front_page.front_cover_transition.animate {
                -webkit-animation: book_front_page_open 3s both;
                animation: book_front_page_open 3s both;
            }
            #book #front_page.front_cover_transition.close {
                -webkit-animation: book_front_page_close 2s both;
                animation: book_front_page_close 2s both;
            }
            
        #book #page_spine {
            position: absolute;
            top: 139px;
            left: 50%;
            z-index: 5;
            bottom: 0px;
        }
        #book #page_spine .thread {
            width: 5px;
            height: 212px;
            background: url('../images/page.thread.jpg') no-repeat top left;
            margin: 0 0 300px -3px;
        }
        #book #page_spine.front_cover_transition {
            left: 1015px;
            opacity: 0;
        }
        #book #page_spine.front_cover_transition.animate {
            -webkit-animation: book_page_spine_open 3s both;
            animation: book_page_spine_open 3s both;
        }
        #book #page_spine.front_cover_transition.close {
            -webkit-animation: book_page_spine_close 2s both;
            animation: book_page_spine_close 2s both;
        }
        
#book .page {
    width: 892px;
    height: 1428px;
    position: absolute;
    top: 25px;
    left: 958px;
    z-index: 5;
    background-color: #f8ecc2;
    border-radius: 0px 17px 17px 0px;
    padding: 35px 35px 35px 57px;
    
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
#book .showing {
    z-index: 6;
}
#book .page:before {
    content: "";
    width: 60px;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 5;
    
    background-image: -webkit-gradient(linear, left center, right center, color-stop(0%, #a39b7d), color-stop(100%, #f8ecc2));
    background-image: -webkit-linear-gradient(left, #a39b7d 0%, #f8ecc2 100%);
    background-image: -moz-linear-gradient(left, #a39b7d 0%, #f8ecc2 100%);
    background-image: -ms-linear-gradient(left, #a39b7d 0%, #f8ecc2 100%);
    background-image: -o-linear-gradient(left, #a39b7d 0%, #f8ecc2 100%);
    background-image: linear-gradient(to right, #a39b7d 0%, #f8ecc2 100%);
}
#book .page:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 3;
    border-radius: 17px;
    box-shadow: 20px 3px 100px rgba(0,0,0,0.5);
    opacity: 0;
}

#book .page .number {
    color: #442100;
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 30px;
}
    #book .showing_wrapper, #book .turned_wrapper {
        width: 892px;
        height: 1428px;
        position: absolute;
        top: 25px;
        left: 958px;
    }
    #book .showing_wrapper .page {
        top: 0px;
        left: 0px;
    }
    #book .turned_wrapper {
        display: none;
    }
    
        #book .showing_wrapper.turn_page,
        #book .turned_wrapper.turn_page,
        #book .showing_wrapper.turn_back,
        #book .turned_wrapper.turn_back {
            width: 1640px;
            height: 1740px;
            top: -130px;
            left: 583px;
            overflow: hidden;
            display: block;
            
            -webkit-transform: rotateZ(45deg);
                -ms-transform: rotateZ(45deg);
                    transform: rotateZ(45deg);
            
             -webkit-transform-origin: 820px 870px;
                 -ms-transform-origin: 820px 870px;
                     transform-origin: 820px 870px;
        }
            #book .showing_wrapper.turn_back {
                width: 370px;
                -webkit-transform: rotateZ(0deg);
                    -ms-transform: rotateZ(0deg);
                        transform: rotateZ(0deg);
            }
            #book .turned_wrapper.turn_back {
                -webkit-transform: rotateZ(0deg);
                    -ms-transform: rotateZ(0deg);
                        transform: rotateZ(0deg);
                left: -682px;
                top: -130px;
                
                -webkit-transform-origin: 2085px 870px;
                    -ms-transform-origin: 2085px 870px;
                        transform-origin: 2085px 870px;
            }
        #book .turned_wrapper.turn_page,
        #book .turned_wrapper.turn_back{
            z-index: 6;
            display: block;
        }
            #book .showing_wrapper.turn_page .page,
            #book .showing_wrapper.turn_back .page{
                top: 154px;
                left: 375px;
                
                -webkit-transform: rotateZ(-45deg);
                -ms-transform: rotateZ(-45deg);
                transform: rotateZ(-45deg);
                
                -webkit-transform-origin: 50% 50%;
                -ms-transform-origin: 50% 50%;
                transform-origin: 50% 50%;
            }
            #book .showing_wrapper.turn_back .page {
                -webkit-transform: rotateZ(0deg);
                -ms-transform: rotateZ(0deg);
                transform: rotateZ(0deg);
            }

            #book .turn_page .turned_page,
            #book .turn_back .turned_page {
                display: block;
                background-color: #f8ecc2;
                top: 155px;
                left: 2005px;
                overflow: hidden;
                border-radius: 20px 0 0 20px;
                
                -webkit-transform-origin: 50% 50%;
                -ms-transform-origin: 50% 50%;
                transform-origin: 50% 50%;

                -webkit-transform: rotateZ(45deg);
                -ms-transform: rotateZ(45deg);
                transform: rotateZ(45deg);
            }
                #book .turn_back .turned_page {
                    box-shadow: 0px 0px 0px rgba(0,0,0,0);
                    -webkit-transform: rotateZ(0deg);
                    -ms-transform: rotateZ(0deg);
                    transform: rotateZ(0deg);
                    left: 745px;
                }
            #book .turn_page .turned_page:before,
            #book .turn_back .turned_page:before{
                height: 500%;
                left: 0px;
                width: 0px;
                top: 714px;
                
                background-image: -webkit-gradient(linear, right center, left center, color-stop(0%, #a39b7d), color-stop(100%, #f8ecc2));
                background-image: -webkit-linear-gradient(right, #a39b7d 0%, #f8ecc2 100%);
                background-image: -moz-linear-gradient(right, #a39b7d 0%, #f8ecc2 100%);
                background-image: -ms-linear-gradient(right, #a39b7d 0%, #f8ecc2 100%);
                background-image: -o-linear-gradient(right, #a39b7d 0%, #f8ecc2 100%);
                background-image: linear-gradient(to left, #a39b7d 0%, #f8ecc2 100%);
                
                -webkit-transform: rotateZ(-45deg);
                -ms-transform: rotateZ(-45deg);
                transform: rotateZ(-45deg);
                
                -webkit-transform-origin: 0px 714px;
                -ms-transform-origin: 0px 714px;
                transform-origin: 0px 714px;
            }
                #book .turn_back .turned_page:before {
                    -webkit-transform: rotateZ(0deg) translateY(-1000px);
                    -ms-transform: rotateZ(0deg) translateY(-1000px);
                    transform: rotateZ(0deg) translateY(-1000px);
                    left: 832px;
                    width: 70px;
                    top: 0px;
                }

#book .showing_wrapper.turn_page {
    -webkit-animation: turn_page 2s both;
    animation: turn_page 2s both;
}     
#book .turned_wrapper.turn_page {
    -webkit-animation: turn_page_turned_wrapper 2s both;
    animation: turn_page_turned_wrapper 2s both;
}            
#book .showing_wrapper.turn_page .page {
    -webkit-animation: turn_page_page 2s both;
    animation: turn_page_page 2s both;
}
#book .turn_page .turned_page {
    -webkit-animation: turn_page_turned_page 2s both;
    animation: turn_page_turned_page 2s both;
}
#book .turn_page .turned_page:before {
    -webkit-animation: turn_page_turned_page_shading 2s both;
    animation: turn_page_turned_page_shading 2s both;
}

#book .showing_wrapper.turn_back {
    -webkit-animation: back_page 2s both;
    animation: back_page 2s both;
}     
#book .turned_wrapper.turn_back {
    -webkit-animation: back_page_turned_wrapper 2s both;
    animation: back_page_turned_wrapper 2s both;
}            
#book .showing_wrapper.turn_back .page {
    -webkit-animation: back_page_page 2s both;
    animation: back_page_page 2s both;
}
#book .turn_back .turned_page {
    -webkit-animation: back_page_turned_page 2s both;
    animation: back_page_turned_page 2s both;
}
#book .turn_back .turned_page:before {
    -webkit-animation: back_page_turned_page_shading 2s both;
    animation: back_page_turned_page_shading 2s both;
}

#bookmark {
    position: absolute;
    background: #627723;
    color: #442100;
    top: -25px;
    left: 1258px;
    padding: 3px;
    -webkit-transform: rotateZ(-0.5deg);
    -ms-transform: rotateZ(-0.5deg);
    transform: rotateZ(-0.5deg);
    z-index: 5;
    border-radius: 10px;
    box-shadow: -4px 5px 15px rgba(0,0,0,0.4);
    
    -webkit-transform-origin: 50% 0%;
    -ms-transform-origin: 50% 0%;
    transform-origin: 50% 0%;
}
    #bookmark .border {
        padding: 10px 10px 20px;
        border: 3px #442100 solid;
        min-height: 700px;
        width: 143px;
        border-radius: 10px;
    }
    #bookmark.open {
        -webkit-animation: bookmark_open 3s both;
        animation: bookmark_open 3s both;
    }
    #bookmark.close {
        -webkit-animation: bookmark_close 2s both;
        animation: bookmark_close 2s both;
    }
    #bookmark.stayopen {
        left: 1200px;
        top: -25px;
        -webkit-transform: rotateZ(-0.5deg);
        -ms-transform: rotateZ(-0.5deg);
        transform: rotateZ(-0.5deg);
    }
    #bookmark.show {
        -webkit-animation: bookmark_show 1800ms both;
        animation: bookmark_show 1800ms both;
    }
        #bookmark.keepout {
            left: 1240px;
            top: 50px;
            -webkit-transform: rotateZ(4deg);
            -ms-transform: rotateZ(4deg);
            transform: rotateZ(4deg);
            z-index: 10;
        }
    #bookmark.remove {
        -webkit-animation: bookmark_remove 1800ms both;
        animation: bookmark_remove 1800ms both;
    }
    #bookmark h4 {
        font-size: 2em;
        text-align: center;
        margin-bottom: 15px;
        cursor: pointer;
    }
    #bookmark a {
        color: #FFF;
    }
    #bookmark h3 {
        font-weight: bold;
        margin: 10px 0px 5px;
        text-align: center;
    }
#bookmark li {
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.2;
}
#bookmark li span a {
    display: block;
}
#bookmark li span a span {
    display: none;
}
#bookmark li .post-date {
    display: block;
}

.comment_page {
    position: absolute;
    width: 600px;
    height: 960px;
    box-sizing: border-box;
    padding: 15px 15px 45px 20px;
    box-sizing: border-box;
    border-radius: 0 20px 20px 0;
    background: #f9efcc;
    box-shadow: -8px 5px 25px rgba(0,0,0,0.4);
    z-index: 10;
    -webkit-backface-visibility: hidden;
}
    .comment_page h2 {
        font-size: 3em;
        margin-bottom: 20px;
        color: #442100;
    }
    .comment_page:before {
        content: "";
        position: absolute;
        top: 0px;
        left: -13px;
        width: 14px;
        height: 100%;
        background: url('../images/paper.tear.sprite.png') top left;
    }
    .comment_page article {
        padding: 0 10px 20px 10px;
        background: url('../images/content.hr.twocolumn.png') bottom center no-repeat;
        margin-bottom: 20px;
    }
        .comment_page article.hasReplies {
            background: none;
            padding-bottom: 0px;
            margin-bottom: 0px;
        }
    .comment_page article h3 {
        font-size: 2em;
        color: #442100;
    }
    .comment_page article a {
        float: right;
        position: relative;
        top: -0.7em;
    }

    .comment_page > a {
        font-size: 2em;
    }
    .comment_page.ready {
        transition: top 1500ms, left 1500ms, transform 1500ms, -ms-transform 1500ms;
        -webkit-transition: top 1500ms, left 1500ms, -webkit-transform 1500ms;
    }

#submit_comment {
    position: fixed;
    z-index: 5000;
    top: 50%;
    left: 120%;
    width: 526px;
    -webkit-backface-visibility: hidden;
    margin-top: -225px;
    background: #eddca0;
    font-family: Georgia;
    padding: 10px;
    border-radius: 5px;
    color: #442100;
    box-shadow: -4px 6px 20px rgba(0,0,0,0.4);
    max-width: 60%;
    transition: left 1s, transform 1s, -ms-transform 1s;
    -webkit-transition: left 1s, -webkit-transform 1s;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}
#submit_comment #comment_success {
    width: 298px;
    height: 297px;
    background: url(../images/comment.submit.stamp.png) no-repeat;
    position: absolute;
    top: 10px;
    left: -109px;
    margin-left: 50%;
    -webkit-transform: rotateZ(25deg);
    display: none;
}
#submit_comment > a {
    margin-top: 5px;
}
    #submit_comment .border {
        border: 2px solid #442100;
        padding: 5px;
    }
    #submit_comment h3 {
        font-size: 2.5em;
        clear: both;
        text-align: center;
    }
    #submit_comment h5 {
        font-size: 0.7em;
    }
    #submit_comment p, #submit_comment .row {
        margin: 0px 4px;
        padding: 0px;
        position: relative;
    }
        #submit_comment .row {
            overflow: hidden;
        }
        #submit_comment .row .left {
            float: left;
        }
        #submit_comment .row .right {
            overflow: hidden;
        }
    #submit_comment input {
        background: transparent;
        border: 0px;
        border-bottom: 1px solid #442100;
        font-family: Courier New;
        width: 100%;
        font-size: 13px;
        margin-left: 5px;
    }
    #submit_comment .comment_label {
        position: absolute;
        top: 0px;
        left: 0px;
        padding-bottom: 2px;
        padding-right: 2px;
        background: #eddca0;
    }
    #submit_comment textarea {
        background: url('../images/comment.submit.line.bg.png') transparent;
        text-indent: 5.7em;
        width: 99%;
        border: 0px;
        height: 120px;
        line-height: 20px;
        font-family: Courier New;
        font-size: 13px;
    }
    #submit_comment .dateline {
        position: absolute;
        top: 66px;
        right: 19px;
    }
        #submit_comment .dateline .date_1 {
            width: 100px;
            display: inline-block;
            text-align: center;
            border-bottom: 1px solid #442100;
        }
        #submit_comment .dateline .date_1 span {
            font-size: 2.5em;
            display: inline-block;
            line-height: 10px;
            position: relative;
            transform: rotateZ(-10deg);
            -webkit-transform: rotateZ(-10deg);
            -ms-transform: rotateZ(-10deg);
            color: #000;
        }
        #submit_comment .dateline .date_2 {
            width: 30px;
            display: inline-block;
            text-align: center;
            border-bottom: 1px solid #442100;
        }
        #submit_comment .dateline .date_2 span {
            font-size: 2.5em;
            display: inline-block;
            line-height: 10px;
            position: relative;
            transform: rotateZ(-12deg);
            -webkit-transform: rotateZ(-12deg);
            -ms-transform: rotateZ(-12deg);
            color: #000;
        }
    
#headshot {
    cursor: pointer;
}

#headshot_1 {
    -webkit-transition: opacity 500ms;
    transition: opacity 500ms;
    opacity: 1;
}
#headshot_2 {
    -webkit-transition: opacity 500ms;
    transition: opacity 500ms;
    opacity: 0;
    position: absolute;
    top: 0px;
    left: 0px;
}

.calendar_container {

    /* calendar style
    width: 1070px;
    min-height: 500px;
    padding-bottom: 40px;
    */
    /* agenda style */
    width: 701px;
    padding: 20px 20px 40px 20px;
    /* */

    background: #f8ecc2;
    border-radius: 0 0 20px 20px;
    position: absolute;
    top: -100px;
    right: -100%;
    z-index: 4;
    box-shadow: -3px 0px 20px rgba(0,0,0,0.6);
    -webkit-backface-visibility: hidden;
    -webkit-transition: -webkit-transform 1500ms, right 1500ms, top 1500ms;
    transition: transform 1500ms, right 1500ms, top 1500ms;
}
        .calendar_container:before {
            /* calendar view
            height: 2000px;
            */
            
            height: 741px;

            position: absolute;
            top: 1px;
            left: 0px;
            width: 14px;
            background: url(../images/paper.tear.sprite.png) center right;
            content: "";
            -webkit-transform: rotateZ(-90deg);
            -webkit-transform-origin: 0% 0%;
            transform: rotateZ(-90deg);
            transform-origin: 0% 0%;
        }
    .calendar_container h2 {
        /* calendar mode
        margin-top: 20px;
        text-align: center;
        margin-right: 100px;
        */
        font-size: 40px;
        color: #627723;
        position: relative;
        z-index: 5;
        cursor: pointer;
    }
    .calendar_container > .flourish {
        margin: 40px 0 0 50%;
        position: relative;
        left: -50px;
    }
    .calendar_container > .sig {
        margin: 40px 0 0 80%;
    }
    .calendar_container .calendar_dropdown {
        display: block;
        position: absolute;
        top: 50px;
        left: 50px;
        background-color: #f8ecc2;
        padding: 0px 20px 10px;
        overflow: hidden;
        height: 6px;
        z-index: 3;
        transition: height 500ms, box-shadow 200ms;
    }
    .calendar_container .calendar_dropdown:before, .calendar_container .calendar_dropdown:after {
        content: "";
        width: 14px;
        background-image: url('../images/paper.tear.sprite.png');
        background-position: top right;
        height: 100%;
        position: absolute;
        top: 0px;
        left: -1px;
    }
        .calendar_container .calendar_dropdown:after {
            left: auto;
            right: -1px;
            background-position: top left;
        }
    .calendar_container .calendar_dropdown.open {
        height: 328px;
        box-shadow: 0px 5px 30px rgba(0,0,0,0.3) inset;
        border-radius: 0 0 20px 20px;
    }
        .calendar_container .calendar_dropdown .carrot {
            width: 100%;
            font-size: 18px;
            text-align: center;
            color: #627723;
            font-weight: bold;
        }
            .calendar_container .calendar_dropdown .carrot span {
                transform: rotateZ(-90deg);
                -ms-transform: rotateZ(-90deg);
                -webkit-transform: rotateZ(-90deg);
                display: block;
                transition: transform 500ms, -ms-transform 500ms;
                -webkit-transition: -webkit-transform 500ms;
            }
            .calendar_container .calendar_dropdown.open .carrot span {
                transform: rotateZ(90deg);
                -ms-transform: rotateZ(90deg);
                -webkit-transform: rotateZ(90deg);
            }
        .calendar_container .calendar_dropdown .dropdown_month {
            margin-right: 20px;
        }
        .calendar_container .calendar_dropdown h5 {
            font-size: 20px;
            margin-bottom: 5px;
            cursor: pointer;
            color: #b0d236;
        }
        .calendar_container .calendar_dropdown h5.current {
            color: #442100;
        }
    .calendar_container .calendar {
        width: 850px;
        border: 4px solid #627723;
        border-radius: 20px;
        margin: 15px 0 0 55px;
    }
        .calendar_container .calendar table {
            width: 100%;
        }
        .calendar_container .calendar table td {
            width: 14.28%;
            padding: 5px;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
            height: 100px;
            border-right: 1px solid #442100;
            border-bottom: #442100 1px solid;
            color: #442100;
        }
        .calendar_container .calendar table td:last-child {
            border-right: 0px;
        }
        .calendar_container .calendar table tr:last-child td {
            border-bottom: 0px;
        }
        .calendar_container .calendar table .normal-day-heading, .calendar_container .calendar table .weekend-heading {
            height: 30px;
            vertical-align: bottom;
            border-bottom: 2px solid #442100;
            border-right: 0px;
        }
        
.calendar_note {
    position: absolute;
    top: 500px;
    left: 100%;
    z-index: 15;
    width: 300px;
    background: #ede5d0;
    padding: 5px;
    box-shadow: -3px 5px 20px rgba(0,0,0,0.5);
    /*border-radius: 10px 5px 20px 15px;*/
    border-radius: 10px;
    -webkit-backface-visibility: hidden;
    -webkit-transition: top 800ms, left 800ms, -webkit-transform 800ms;
    transition: top 800ms, left 800ms, transform 800ms;
}
.calendar_note .border {
    width: 100%;
    padding: 15px 15px 10px;
    border-radius: 15px;
    border: 3px solid #627723;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
    .calendar_note h2 {
        font-size: 40px;
        margin-bottom: 20px;
        color: #442100;
        text-align: center;
    }
    .calendar_note h3 { /* description */
        
    }
    .calendar_note h4 { /* time */
        font-weight: bold;
        font-size: 1.05em;
        margin-top: 5px;
        text-align: center
    }
    .calendar_note a {
        margin-top: 5px;
        text-align: center;
        display: block;
    }
    .calendar_note .closelink {
        position: absolute;
        right: 20px;
        bottom: 20px;
    }
    
.about_book {
    position: absolute;
    top: 100%;
    left: 100%;
    width: 490px;
    z-index: 11;
    background: #f8ecc2;
    padding: 10px 15px 250px 15px;
    -webkit-backface-visibility: hidden;
    box-shadow: -10px 7px 15px rgba(0,0,0,0.3);
}
    .about_book:before, .about_book:after {
        width: 14px;
        background: url('../images/paper.tear.sprite.png') top left;
        position: absolute;
        top: 0px;
        height: 100%;
        left: -13px;
        content: "";
        border-radius: 15px 0 0 15px;
    }
    .about_book:after {
        left: auto;
        right: -13px;
        background-position: top right;
        border-radius: 0 15px 15px 0;
    }
    .about_book.ready, .about_book_cover.ready {
        -webkit-transition: top 1200ms, left 1200ms, -webkit-transform 1200ms;
        transition: top 1200ms, left 1200ms, transform 1200ms;
    }

    .about_additional {
        width: 400px;
        padding-bottom: 20px;
        z-index: 12;
    }

.about_book_cover {
    position: absolute;
    max-width: 25%;
    top: 100%;
    left: -30%;
    -webkit-backface-visibility: hidden;
    z-index: 15;
}
.about_book_cover img {
    width: 100%;
    position: relative;
    z-index: 5;
}
.about_book_cover .about_bookmark {
    position: absolute;
    z-index: 1;
    background: #627723;
    width: 130px;
    right: 39px;
    padding: 25px 10px 10px;
    
    -webkit-transform: translateY(-17px) rotateZ(-3deg);
    -ms-transform: translateY(-17px) rotateZ(-3deg);
    transform: translateY(-17px) rotateZ(-3deg);
    
    -webkit-backface-visibility: hidden;
    text-align: center;
    box-shadow: -2px 8px 10px rgba(0,0,0,0.2)
}
.about_book_cover .about_bookmark:after {
    width: 100%;
    height: 10px;
    position: absolute;
    bottom: -10px;
    left: 0px;
    content: "";
    background: url('../images/topnav.btn.bg.png') bottom center;
}
.about_book_cover a {
    color: #FFF;
    margin-bottom: 5px;
    display: block;
}
.about_book_cover a:hover {
    color: #442100;
}
.about_book_cover .shadow {
    width: 99%;
    height: 99%;
    position: absolute;
    top: 1%;
    right: 0px;
    box-shadow: -6px 4px 15px rgba(0,0,0,0.4);
    background: rgba(0,0,0,0.4);
    z-index: 2;
}

#contingency {
    width: 100%;
    position: fixed;
    bottom: 0px;
    left: 0px;
    background: #627723;
    padding: 5px 0 10px 0;
    z-index: 5000;
    font-size: 25px;
    font-weight: bold;
    color: #FFF;
    text-align: center;
}
#contingency .contingency_top {
    background: url(../images/contingency.png) repeat-x;
    position: absolute;
    top: -13px;
    width: 100%;
    height: 13px;
    left: 0px;
}
#contingency a {
    color: #442100;
}
