#top-nav,
#nav_footer {
    display:none;
}
html {
    width: auto;
    height: auto;
}
body {
    background: #EFEBE1 !important;
    width: auto !important;
    height: auto !important;
    margin: 0;
    display: block;
    clear: both;
}
.their-wrapper {
    position:relative;
    transform-origin: top center;    
    max-width: 1024px;
    margin: auto;
}
#cover .their-wrapper {
/*    height: 768px;
*/}    
.template-loose .their-wrapper {
    width: 1024px;
    height: 768px;
}
.back_matter .their-wrapper {
    background: #fff;
    height: 768px;
}
.cel-wrapper {
    position:relative;
    margin: auto;
    max-width: 1024px;    
}
.cel-wrapper .container {
    max-width: 1024px;
    background:#fff;
    padding:30px;
}
.cel-copyright {
    margin-top: 80px;
    padding: 20px;
    max-width: 1024px;   
    margin: auto;
}
.cel-copyright p {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 16px;
    color: rgb(51,51,51) !important;
}
.cel-copyright p:first-child {
    margin-bottom:0;
}
.cel-nav {
    position: relative;
    height: 40px;
    padding: 10px;

    /* these must match the body padding-top in template.css */
}
.template-loose .cel-nav {
    margin-bottom: 20px;
}
.cel-nav:after {
    content: "";
    display: block;
    clear: both;
}

.cel-nav .logo img {
    height: 80%;
    width: auto;
}
@media (min-width: 321px) { 
    .cel-nav .logo img {
        height: 100%;
        width: auto;
    }
}
@media (min-width: 769px) { 
    .cel-nav .logo img {
        height: 100%;
        width: auto;
    }
}
.template-loose .cel-nav .logo img {
    height: auto;
    width: 60%;
}
@media (min-width: 370px) { 
    .template-loose .cel-nav .logo img {
        height: 200%;
        width: auto;
    }
}
.cel-nav .buttons {
    float: right;
    font-size: 16px;
    margin-top: 5px;
}

@media (min-width: 370px) { 
    .cel-nav .buttons {
        font-size: 26px;
        margin-top: 0;
    }
}
.cel-nav .buttons a {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin: 0 0 0 10px;
    text-decoration: none;
}

.cel-nav .buttons a i {
    display: none;
}

.cel-nav .buttons span {
    color: #666;
    font-size: 22px;
    line-height: 1;
    display: inline-block;
}


div.image-container {
    background: #ffffff;
}

html .template-loose .main-title {
    /*top: 70px;*/
    /* was top 30 in src*/
}
html .template-loose .text {
    /*top: 160px !important;*/
    /* was top 120 in src*/     
}

html .callouts {
    height: 768px;
}

/*html .regular-overlay {
    top: 60px;
}
html .modal-container {
    top: 58%;
}*/

#cel-toc {
    display: none; 
    position: absolute;
    z-index: 9999;
    right: 10px;
    top: 70px;
    width: 95%;
    height: 850px;
    /* overflow: auto; */
    box-shadow: 0 0 15px #666;
}
.template-loose #cel-toc {
    height: 768px;   
}


@media (min-width: 320px) { 
    #cel-toc {
        left: 10px;
        right: 10px;        
    }    
}

@media (min-width: 769px) { 
    #cel-toc {
        width: 30%;
        right: 10px;  
        left: auto;      
    }    
}
#cel-toc:before {
    content: " ";
    display: block;
    height: 20px;
    width: 20px;
    background: #fff;
    position: absolute;
    top:-10px;
    left:auto;
    right:90px;
    transform: rotate(45deg);
    box-shadow: -3px -3px 4px rgba(0, 0, 0, .2);
}
@media (min-width: 769px) { 
    #cel-toc:before {
        right:90px        
    }    
}
#cel-toc nav {
    background: #fff;
    padding: 20px;  
    color: #000;
    font-family: "Archivo Narrow", sans-serif;
    font-size: 12px;
    height: 100%;
    position: absolute;
    box-sizing: border-box;
    width:100%;
}

#cel-toc nav ol {
    padding: 0 0 0 1em;
    margin-left:0;
}

#cel-toc nav a {
    color: #000;
    font-size: 12px;
    display: block;
    padding: 4px;
    text-decoration: none !important: 
}

#cel-toc nav > ol > li,
#cel-toc nav > ol > li > ol > li > ol > li {
    list-style-type: none;
}
#cel-toc nav > ol > li:first-child > a {
    font-size:16px;
    margin-bottom: 1rem;
}
#cel-toc nav > ol > li:first-child:before {
    content: "Table of Contents";
    display: block;
    text-decoration: none;
    font-family: "Crimson-Roman";
    font-size: 24px;
    margin-bottom: 1rem;
}

#cel-toc nav img {
    height:36px;
    width: auto;
}
.landing .cel-nav .buttons {
    display: none;
}
.landing .their-wrapper img {
    width: 50%;
    height: auto;
    margin: 1rem auto;
    box-shadow: 0 0 15px #999;
}

.landing .their-wrapper {
    padding: 20px 60px;
    background: #fff;
}
.landing .their-wrapper p a {
    font-style: normal;
    color: #77a83e;
}
@media (max-width: 769px) {
    .landing .their-wrapper {
        padding: 20px;
    }  
    .landing .their-wrapper img {

    }
}

#cover #background-image img {
    width: 100%;
    height: auto;
}

/* HACKS */
html .page-14.template-loose .text  {
    top: 150px !important;
}