@font-face {
  font-family: 'OpenSans';
  src: url('../fonts/OpenSans-Light.eot') format('embedded-opentype');
  src: url('../fonts/OpenSans.eot');
  src: url('../fonts/OpenSans.eot?#iefix') format('embedded-opentype'),
       url('../fonts/OpenSans.woff') format('woff'),
       url('../fonts/OpenSans.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'OpenSans';
  src: url('../fonts/OpenSans-Light.eot') format('embedded-opentype');
  src: url('../fonts/OpenSans-Light.eot');
  src: url('../fonts/OpenSans-Light.eot?#iefix') format('embedded-opentype'),
       url('../fonts/OpenSans-Light.woff') format('woff'),
       url('../fonts/OpenSans-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}


body { overflow: auto; background: #ecf0f1; }
ul { margin: 0 0 10px 0; padding: 0; }
#main{ text-align: center; }

#wrapper {
  margin: 30px auto;
  margin-top: 93px;
  background: #fff;
  box-shadow: 0px 0px 10px -3px gray;
  display: inline-block;
  position: relative;
}

#prev, #next{
  cursor: pointer;
  position: absolute;
  top: 48%;
  width: 16px;
  height: 27px;
  background: url("../images/icons.png");
}
#prev{
  background-position: 0px 0px;
  /*left: -50px;*/
}
#next{
  background-position: -16px 0px;
  /*right: -50px;*/
}

/*@media screen and (max-width: 1500px) {*/
  .on#prev{
    left: 20px;
  }
  .on#next{
    right: 20px;
  }
/*}*/
body{
  background: #e8edf1; margin: 0;
}
.page{
    /*width: 600px;*/
    height: 800px;
    margin: -5px auto;
    padding: 40px 40px;
    float:left;
}

.page iframe {
  width:100%;
  height:100%;
}
#area2 {
  display:none;
  width:640px;
}

#top_bar{
  background: #ecf0f1;
  border-bottom: 3px solid #cfd9e0;
  vertical-align: top;
  position:fixed;
  width:100%;
  z-index:9;
  font-family: 'OpenSans';
  font-weight: 300;
}
#book_title{
  display: inline-block;
  float: left;
  color: #97a9bf;
  font-weight: 100;
  padding: 18px 19px;
  text-decoration: none;
  font-size: 18px;
}

.right_link{
  display: inline-block;
  float: right;
  color: #97a9bf;
  font-weight: 100;
  padding: 15px 10px;
  text-decoration: none;
  margin-left:10px;
}

.right_link:hover{
  text-decoration: underline;
  color: #97a9bf;
}

#menu_trigger{
  float: left;
  border-right: 1px solid #cfd9e0;
  width: 65px;
  height: 60px;
  display: inline-block;
  position: relative;
}
#menu_trigger:after { content: ' '; display: inline-block; position: absolute; width: 25px; height: 19px; top: 20px; left: 20px; background: url("../images/icons-2.png") no-repeat; background-size: 127px 38px; background-position: 0px 0px;}

#menu_trigger.active { background-color: #445970; }
#menu_trigger.active:after { background-position: 0px -19px; }

.side_menu{
  background: #445970;
  position: fixed;
  height: calc(100% - 60px);
  width: 220px;
  overflow-y: auto;
  transform: translateX(-220px);
  transition: transform 0.5s;
  margin-top: 60px;
  border-top: 3px solid #3c5168;
  z-index: 100;
}
.side_menu input[type="checkbox"] {
  display:inline;
}
.side_menu li{
  color: #97a9bf;
  display: inline-block;
  position: relative;
  cursor: pointer;
  width: 100%;
}

.side_menu li.btn-holder > span { padding-right: 43px;}
.side_menu li > span { min-height: 20px; display: block; font-family: 'OpenSans'; font-size: 16px; padding: 20px 0 20px 20px; border-bottom: 1px solid #3a4c5f;}
.side_menu li > span.active { color: #f59d00;}
.side_menu li.btn-holder.opened .btn,
.side_menu li.btn-holder .btn {content: ' '; display: block; position: absolute; width: 25px; height: 25px; right: 15px; top: 16px; background: url('../images/icons-2.png') no-repeat; background-size: 127px 38px; background-position: -25px 0; }
.side_menu li.btn-holder.opened > .btn{ height: 3px; top: 27px; background-position: -25px -25px; }
.side_menu li input + .sub_menu {
  display:block;
}

.side_menu li input + .sub_menu > li {
  display:none;
}

.sub_menu{ list-style:none; background: #4f647a; padding-left: 38px; margin: 0; }
.sub_menu li > span { padding-left: 2;}

.sub_menu.hide {
  display:none;
}

.sub_menu li:last-child{
  border-bottom: 0;
  padding-bottom:0px;
}

.sub_menu li:nth-last-of-type(1) > span { border-bottom-width: 0px; }
.sub_menu li.opened:nth-last-of-type(1) > span { border-bottom-width: 1px; }


.hide{
  display:none;
}

#main{
  transition: padding 0.5s;
}
#main.active{
  padding-left: 220px;
}
.side_menu.active{
  transform: translateX(0%);
}
.top_inner{
}
::-webkit-scrollbar {
    width: 5px;
    background: #2e4155;
}
 
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
    border-radius: 10px;
}
 
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(255,255,255,0.5); 
}

.templates { position: relative;  padding: 0;}
.templates > span.window-icon { color: #97a9bf; cursor: pointer; position: relative; width: 68px; height: 60px; border-left: 1px solid #cfd9e0; display: block;}
.templates > span.window-icon:after { content: ' '; position: absolute; width: 28px; height: 28px; top: 17px; right: 20px; background: url("../images/icons-2.png") no-repeat; background-size: 127px 38px; background-position: -78px 0px;}
.templates.active > span.window-icon { background: #445970; }
.templates.active > span.window-icon:after { background-position: -50px 0; }
.templates ul{
  background: #445970;
  position: fixed;
  width: 220px;
  overflow-y: auto;
  transform: translateX(220px);
  transition: transform 0.5s;
  border-top: 3px solid #3c5168;
  z-index: 100;
  right: 0;
}
.templates.active ul { transform: translateX(0px); }

/*.templates:hover ul { display: block;}
.templates ul { display: none; position: absolute; top: 40px; left: 0; background: #334960; margin: 0; padding: 10px; list-style: none; }
*/
.templates ul li { cursor: pointer; min-height: 40px; display: block; font-family: 'OpenSans'; font-size: 16px; padding: 20px 0 0 40px; border-bottom: 1px solid #3a4c5f;}
.templates ul li:nth-last-of-type(1) { border-bottom: 0; }
.templates ul li.active { color: #f59d00; position: relative; }
.templates ul li.active:before { content: ' '; position: absolute; width: 21px; height: 17px; top: 22px; left: 10px; background: url("../images/icons-2.png") no-repeat; background-size: 127px 38px; background-position: -106px 0px; }
.templates ul li:hover { text-decoration: underline;}


