body {
    font-size: 1.125em;
    margin:0;
    height: 100%;
    min-height: 500px;
}

a {
    border-bottom:1px solid #9cf;
    color:#09f;
    text-decoration: none;
}

a:hover {
    border-bottom:1px solid red;
    color:red;
}

.no-border,
.no-border:hover,
.no-border:focus {
    border: none;
}

a.s-link {
    display: inline-block;
    margin-right: 1.3rem;
    overflow: hidden;
    width: 40px;
}

a.s-link img {
    box-shadow: none;
    height: 40px;
}

img {
    border-radius: 5px;
    box-shadow: 2px 2px 3px #ccc;
}

ol, ul {
    padding-left:15px;
    margin-left:20px;
}

ol li, ul li {
    margin: 0.5em auto;
}

body > div {
    float:left;
    width:100%;
}

.left {
    float:left;
}

.full_w {
    width:100%;
}

.hidden {
    display: none;
}

#header {
    background: #f9f9f9;
    border-bottom: 1px solid #999;
    box-shadow: 0 3px 2px -2px #ccc;
    height:110px;
    position:relative;
    top:0;
}

#title {
    font-size:110%;
    padding:10px;
    text-align:center;
}

#search input {
    border-radius: 3px;
    border:1px solid #999;
    height:20px;
    padding: 0 5px;
}
#search input:focus {
    border:1px solid #666;
    /*box-shadow: 2px 2px 2px lightblue;*/
    outline: none;
}

#content {
    line-height: 1.5em;
    /*margin-top:155px;*/
    min-height: 500px;
}

#footer {
    font-size: .8em;
    height:40px;
    margin-top:3rem;
    position:relative;
    text-align:center;
}

#footer > div {
    padding:10px;
}

#footer_links {
    font-size: .7rem;
}

#copyright {
    text-align: center;
}

#top_menu {
    display: flex;
    gap: 1.5em;
    justify-content: center;
    margin-left:40px;
    padding:10px;
    text-align: center;
}

.menu_wrap {
    display: inline-block;
    position: relative;
}

.menu_wrap.active {
    background: #fc6;
    border-radius: 4px;
    color: #333;
    padding:3px 7px;
}

.wrap_menu.current {
    border-bottom: none;
}

.menu_wrap .sub_menu {
    background: #f9f9f9;
    border-radius: 4px;
    border:1px solid #ccc;
    /*border-top:none;*/
    box-shadow: 2px 2px 2px 0px #ccc;
    display:none;
    font-size: 80%;
    left: 0;
    padding: 10px 5px 5px 10px;
    position: absolute;
    text-align: left;
    width: 200px;
    z-index:11;
}

.menu_wrap.active .sub_menu, .menu_wrap.current .sub_menu {
    background: #fc6;
    border-top:none;
}

.menu_wrap .sub_menu > div {
    margin: 0 0 15px 0;
}

.menu_wrap:hover .sub_menu {
    display:block;
}

#main_page_link {
    border:none;
    color:#000;
}

#me h3 {
    margin: 15px 0 10px 0;
    text-align: center;
}

#books {
    display: flex;
    gap: 2rem;
    flex-flow: wrap;
    justify-content: center;
    margin: 3rem 1rem;
    text-align: center;
}

.book h4 {
    margin:10px 0 15px 0;
}

.book_cover {
    border-radius:3px;
    border-left:1px solid #eee;
    box-shadow: 3px 2px 3px 2px #ccc;
    height:350px;
    transition: transform .5s;
    -webkit-transition: transform .5s;
    -moz-transition:transform .5s;
    -ms-transition:transform .5s;
}

.book_cover.no_effects {
    box-shadow: none;
    border-left: none;
}

.book_cover:hover {
    -moz-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    -o-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

.buy_block {
    background: #f60;
    border-radius: 4px;
    border-bottom: none;
    box-shadow: 2px 2px 2px #ccc;
    color:#fff;
    cursor:pointer;
    margin:10px auto;
    padding: 10px;
    position: relative;
    width:80px;
    text-align: center;
}

.buy_block:hover {
    background: #f63;
    /*opacity: .6;*/
}

.buy_block .buy_links {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    box-shadow: 3px 3px 3px #eee;
    display: none;
    padding:5px 10px 15px 10px;
    position: absolute;
    width:auto;
    min-width: 130px;
    left:40px;
    top:35px;
}

.buy_block .buy_links .buy_link_box {
    display:inline-block;
    height: 20px;
    margin: 10px 0 0 10px;
    text-align: left;
}

.buy_link {
    white-space: nowrap;
}

.buy_block:hover .buy_links {
    display:block;
    opacity: 1;
}

.books_links {
    background: #eee;
    display: flex;
    font-size: .8rem;
    justify-content: center;
}

.books_links .book_link_box {
    margin: 0 1rem;
}

#book {
    display: grid;
    margin: 0 auto;
    width: 70%;
}

#book h1, #book h3 {
    line-height: 1em;
    text-align: center;
}

#book .book_module {
    margin-top: 30px;
}

#book .book-cover-box {
    display:flex;
}

#book .book_module img.book--book-cover {
    border-radius: 4px;
    box-shadow: 3px 3px 10px #999;
    float:left;
    height: 500px;
    margin-right: 1.7rem;
/*    margin-left: auto;
    margin-right: auto;
    display: block;
*/}

#book .book_module img.book--book-cover.no_effects {
    box-shadow: none;
}

#book .buy_book .buy_links {
    background: #fff;
    border-radius: 5px;
    box-shadow: 3px 3px 3px #eee;
    display: none;
    opacity: 1;
    padding:15px;
    position: absolute;
    width:130px;
}

#book .buy_book .buy_links .buy_link_box {
    display:inline-block;
    margin: 10px 0 10px 10px;
    height: 40px;
}

#book .buy_link {
    background: #f60;
    border-radius: 4px;
    border-bottom: none;
    box-shadow: 2px 2px 2px #ccc;
    color:#fff;
    padding: 10px;
    text-align: center;
}

#book .buy_link:hover {
    background: #f63;
    border:none;
    box-shadow: 2px 2px 2px #999;
    color:#fff;
}

#book .buy_book:hover .buy_links {
    display:block;
    opacity: 1;
}

#book .book_page, #pages .listing_item img {
    border-radius:5px;
    cursor: pointer;
    height: 500px;
    /*width:100%;*/
}

#pages {
    position: relative;
}

#book .book_page.hidden {
    display:none;
}

#book #videos {
    margin-bottom:25px;
}

#book #videos > div {
    margin-bottom: 35px;
}

#book #drawings {
    text-align: center;
}

.edition {
    margin-bottom: 2rem;
}

#pages h3 {
    margin-bottom:3px;
}

#pages_pics, .pages_pics {
    position: relative;
    text-align: center;
}

.shops, .online-services {
    margin: 15px 0;
    width: 80%;
}

.shops div:first, .online-servides div:first {
    margin-bottom: 1rem;
}

.shop {
    display:inline-block;
    margin: 0 10px 25px 0;
}

.online-services {
    display: flex;
}

.online-service {
    margin: 0 10px 25px 0;
}

.online-service a.read-online {
    background: #f60;
    border-radius: 4px;
    border-bottom: none;
    box-shadow: 2px 2px 2px #ccc;
    color:#fff;
    padding: 10px;
    text-align: center;
}

.online-service a.read-online:hover {
    background: #f63;
    border:none;
    box-shadow: 2px 2px 2px #999;
    color:#fff;
}

.centered {
    margin: 0 auto;
    width: 70%;
}

#texts {
    width: 500px;
}

#texts .blog_post {
    border-bottom:1px solid #eee;
    margin:15px 0;
    padding:10px 0;
}

#texts .blog_post h3 {
    margin-bottom: 5px;
}

#blog_post h1 {
    text-align: center;
}

#blog_post_body .youtube_frame, .youtube_frame {
    width:95%;
    height:400px;
}

#blog_post_body img.blog_image,
#blog_post_body img,
.reformator img.blog_image {
    box-shadow: none;
    display: block;
    margin: 0 auto;
    padding: 0 auto;
}

#blog_post_body p,
#blog_post_body ul,
#blog_post_body div {
/*    font-size: 120%;*/
    line-height: 1.5em;
}

#blog .blog_post {
    display: flex;
    margin: 3.5rem 0;
    width:90%;
}


#blog .blog_post .post--title--preview h3 {
    margin: .3rem 0 1rem 0;
    /*text-align: center;*/
}

#blog .blog_post .post-image {
    float:left;
    width:370px;
}

#blog .blog_post .post--title--preview {
    float:left;
    width:50%;
}

#blog .blog_post .post-image img.blog_image,
#blog .blog_post .post-image img {
    display: block;
    float:left;
    margin-right:1.5rem;
    width:350px;
}

#me {
    margin:0 auto;
    /*width: 70%;*/
}

#me #text_info {
    float:right;
    padding:15px;
    /*width: 55%;*/
}

.txt li {
    margin-bottom: .3rem;
}

#me #picture_and_links {
    /*font-size:.8em;*/
    margin-top: 1rem;
    padding: 15px;
}

#me #picture_and_links div.txt,
.txt {
    margin: 0 auto;
    width: 65%;
}

#me #picture_and_links div.txt p {
    line-height: 1.6rem;
}

.me_images {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#me img.me_photo {
    display: block;
    margin: 0 auto;
}

#me #picture_and_links p {
    padding: 0 5%;
}

.post_photo.hidden {
    display: none;
}

.img_pointers {
    text-align: center;
}

.img_pointer {
    color:#666;
    font-size: 200%;
}

.img_pointer.current {
    font-size: 350%;
}

.images_listing {
    text-align: center;
}

.listing_item {
    cursor: pointer;
    width: 100%;
}

.img_pointer {
    cursor: pointer;
}

.lang {
    display: inline-block;
    float: right;
    font-size: .8rem;
    position: absolute;
    right:.5rem;
    top: .7rem;
}

.d_grid {
    display: grid;
}

.book .cover-sticker {
    background: lightblue;
    border-radius: 3px;
    box-shadow: 2px 2px 2px #e2e2e2;
    padding: 0 10px;
    position: absolute;
    top: -15px;
    right:-15px;
}

.book:hover .cover-sticker {
    -moz-transform: scale(1.03);
    -webkit-transform: scale(1.03);
    -o-transform: scale(1.03);
    -ms-transform: scale(1.03);
    -webkit-transform: scale(1.03);
    transform: scale(1.03);
}

#blog_post_body li p {
    margin: 0;
    font-size: 1em;
}

.link__dashed, .link__dashed:hover {
    border-bottom-style: dashed;
    border-bottom-width: 1px;
}

.book_edition {
    display: flex;
    gap: 1em;
}

.edition_pub_info {
    display: flex;
    flex-direction: column;
    gap: 1em;
    font-size: 115%;
    padding-top: 0.5em;
}


/* admin styles */

.admin--posts-list {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.admin--post {
    border: 1px solid #fff;
    padding:5px;
}

.admin--post:hover {
    border: 1px solid #eee;
    box-shadow: 2px 2px 2px #ccc;
}

.rm-link {
    color: red;
    border-color: red;
    font-size: 80%;
}

.rm-link:hover {
    opacity: 0.7;
}

details summary {
    cursor: pointer;
    color: #09f;
}

.no-overflow {
    overflow-y: hidden;
}
