/* basic */

body {
  margin: 0;
  background-color: #e1e1e1;
  font-size: 62.5%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hidden {
  display: none;
}

input[type="text"]:focus,
textarea:focus {
  outline: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
}

a:active,
a:link,
a:visited {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

ol,
ul {
  margin: 0;
  padding: 0;
}
.table {
  display: table;
  table-layout: fixed;
}
.table,
.table-cell {
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.table-cell {
  display: table-cell;
  vertical-align: middle;
}

button,
fieldset,
input,
input[type="button"],
select,
textarea {
  outline: 0;
  border: none;
}
body {
  font-size: 62.5%;
  background-color: #fff;
  overflow-x: hidden;
}
ol,
ul {
  list-style-type: none;
}
img {
  max-width: 100%;
  height: auto !important;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}

.img-pointer {
  cursor: pointer;
}

*,
:after,
:before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.main-layout {
  width: 1170px;
  margin: 0 auto;
}
.main-layout:after {
  content: "";
  display: table;
  width: 100%;
}


@media screen and (max-width: 1200px) {
  .main-layout {
    padding-left: 25px;
    padding-right: 25px;
    width: 100%;
  }
}

/* about us and primary secondary title */
.commonpage-title {
  font-family: Oswald, sans-serif;
  font-size: 3em;
  line-height: 1.6em;
  max-width: 40%;
}

.commonpage {
  height: 700px;
  position: relative;
  z-index: 10;
  padding-left: 20px;
  padding-right: 20px;
}

.commonpage-descr {
  font-size: 1.7em;
  max-width: 40%;
  color: #6d6e71;
  line-height: 1.6em;
}

@media screen and (max-width: 880px) {
  .commonpage {
    height: auto;
  }
  .commonpage-descr,
  .commonpage-title {
    max-width: 100%;
    text-align: center;
  }
}


/* for slide box */
.slideboxitem {
  width: 960px;
  max-width: 100%;
  margin: 0 auto 140px;
  overflow: hidden;
  font-size: 0;
  padding: 2px;
}

.slideboxitem-slidebox {
  display: inline-block;
  vertical-align: middle;
  width: 190px;
  height: 190px;
  padding: 2px;
  position: relative;
  text-align: center;
  color: #fff;
  font-size: 18px;
  overflow: hidden;
  background-clip: content-box;
}

.slideboxitem-slidebox:hover .slidebox-front {
  -webkit-transform: translate(-100%);
  transform: translate(-100%);
}
.slideboxitem-slidebox:hover .slidebox-hidden {
  -webkit-transform: translate(0);
  transform: translate(0);
}
.slidebox-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  padding: 10px;
}
.slidebox-hidden {
  -webkit-transform: translate(100%);
  transform: translate(100%);
}


/* topbar css */
.menubar-space{
  padding:27px;
}
@media screen and (max-width: 960px) {
  .menubar-space{
  padding:42px;
  }
}
@media screen and (max-width: 768px) {
  .menubar-space{
    padding:32px;
  }
}

.topbar-checkbox {
  display: none;
  -webkit-appearance: none;
}
.topbar-checkbox + label {
  display: none;
  position: fixed;
  width: 40px;
  height: 40px;
  z-index: 100;
}
.topbar-checkbox + label:after,
.topbar-checkbox + label:before {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #b4b4b4;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
.topbar-checkbox + label:before {
  top: 2px;
  -webkit-box-shadow: 0 20px 0 0 #b4b4b4;
  box-shadow: 0 20px 0 0 #b4b4b4;
}
.topbar-checkbox + label:after {
  bottom: 24px;
}
.topbar-checkbox:checked + label:before {
  -webkit-transform: translateX(5px) translateY(12px) rotate(-45deg);
  transform: translateX(5px) translateY(12px) rotate(-45deg);
  -webkit-box-shadow: none;
  box-shadow: none;
}
.topbar-checkbox:checked + label:after {
  -webkit-transform: translateX(5px) translateY(2px) rotate(45deg);
  transform: translateX(5px) translateY(2px) rotate(45deg);
}



.topbar-menu-wrapper.menu-visible {
  visibility: visible;
  opacity: 1;
  -webkit-transform: translate(0);
  transform: translate(0);
}

.topbar-layout {
  font-size: 0;
  background-color: inherit;
  text-align: justify;
  /* text-justify: distribute; */
}
.topbar-layout:after {
  content: ".";
  width: 100%;
  height: 0;
  display: inline-block;
  visibility: hidden;
}

.topbar-logo-wrapper {
  display: inline-block;
  vertical-align: middle;
}
.topbar-logo {
  max-height: 100px;
}

.topbar-menu-links {
  display: inline-block;
  vertical-align: middle;
  background-color: inherit;
}

.topbar-menu-link{
  font-weight: 700;
  color: #1e1e1e;
  font-size: 17px;
  padding: 5px 15px;
  cursor: pointer;
  position: relative;
}

.topbar-menu-link:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  color: inherit;
  -webkit-box-shadow: inset 0 0 0 3px;
  box-shadow: inset 0 0 0 3px;
  top: 32px;
  left: 0;
  display: none;
}
.topbar-menu-link:hover {
  text-decoration: none;
}
.topbar-menu-link:hover:after {
  display: block;
}

@media screen and (max-width: 960px) {
  
  .topbar-logo-wrapper {
    display: block;
    text-align: center;
    margin-bottom: 10px;
  }
  .topbar-menu-link:hover:after {
    display: none;
  }
  .topbar-menu-links {
    width: 100%;
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  .topbar-menu-links {
    padding: 0;
  }
}

.topbar-main-wrapper {
  padding: 10px 0;
  background-color: #000;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.15);
  -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 768px) {
  .topbar-main-wrapper {
    padding: 10px 0;
  }
  .topbar-main-wrapper .topbar-checkbox + label {
    top: 8px;
    right: 8px;
  }
  .topbar-checkbox + label {
    display: block;
    z-index: 1100;
  }

  .topbar-menu-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: inherit;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    z-index: 1000;
    -webkit-transform: translateY(-20px);
    transform: translateY(-20px);
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
  }
  .topbar-menu-items-mobile {
    width: 100%;
    position: absolute;
    left: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
  }
  .topbar-menu-item-mobile {
    display: block;
    font-size: 26px;
    margin: 8px 0;
  }
}

/* about us */
.commonpage-wrapper {
  background-size: cover;
  background-position: 50%;
  background-repeat: no-repeat;
  padding: 100px 0;
}
.transparent-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.commonpage-wrapper .transparent-layer {
  opacity: 0.8;
  background-color: #fff;
}

/* footer */

.footer-cols {
  overflow: hidden;
}
.footer-col {
  width: 33.3%;
  float: left;
  text-align: center;
}
.footer-col-title {
  font-size: 2.3em;
  color: #fff;
  margin-bottom: 20px;
}
@media screen and (max-width: 960px) {
  .footer-wrapper {
    padding: 20px 0;
  }
  .footer-cols {
    text-align: center;
  }
  .footer-col {
    float: none;
    margin-left: 0 !important;
    display: inline-block;
    vertical-align: top;
    margin-top: 20px;
    margin-bottom: 20px;
  }
}
@media screen and (min-width: 581px) and (max-width: 960px) {
  .footer-col {
    width: 32%;
  }
}
@media screen and (max-width: 580px) {
  .footer-col {
    width: 100%;
  }
}

.footer-copyright {
  text-align: center;
  border-top: 1px solid #cbebf7;
  color: #000;
  font-size: 13px;
  line-height: 15px;
  clear: both;
  padding: 15px 0;
}


/* contact us */
.contact-part-wrapper {
  width: 40%;
  margin: 0 auto;
  padding: 0 40px;
}
@media screen and (min-width: 581px) {
  .contact-part-wrapper {
    min-width: 526px;
  }
}
@media screen and (max-width: 580px) {
  .contact-part-wrapper {
    width: 100%;
    padding: 0;
  }
}


/* book detail page */
.book-content-design {
  position: absolute;
  width: 110%;
  height: 100%;
  top: 0;
}
.book-content-design.layer-1 {
  left: -20px;
  -webkit-transform: skew(-7deg, 0);
  transform: skew(-7deg, 0);
}
.book-content-design.layer-2 {
  left: -40px;
  -webkit-transform: skew(-9deg, 0);
  transform: skew(-9deg, 0);
}
.book-content-design.layer-3 {
  left: -60px;
  -webkit-transform: skew(-11deg, 0);
  transform: skew(-11deg, 0);
  background-color: #fff;
}
.book-content-design.layer-3:after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100px;
  background-color: inherit;
  top: 0;
  left: 0;
  -webkit-transform: translate(-100%);
  transform: translate(-100%);
}

.book-content-text-wrapper {
  padding: 50px 50px 200px;
  position: relative;
}

.book-content-image {
  width: 55%;
  background-image: url(img/starpub_logo.png);
  background-size: cover;
  background-position: 50%;
  background-repeat: no-repeat;
}
.book-content-image-layout {
  display: table-cell;
  height: 100%;
}

@media screen and (max-width: 1279px) {
  .book-content-design.layer-1 {
    left: 0;
  }
  .book-content-design.layer-2 {
    left: -10px;
  }
  .book-content-design.layer-3 {
    left: -20px;
  }
}

.book-content-wrapper {
  width: 100%;
  display: table;
  height: 570px;
}

@media screen and (max-width: 767px) {
  .book-content-wrapper,
  .book-content-image {
    width: 100%;
    display: block;
    height: auto;
  }

  .book-content-image {
    padding-bottom: 50%;
  }

  .book-content-design.layer-1,
  .book-content-design.layer-2,
  .book-content-design.layer-3 {
    display:none;
  }
  .book-content-text-wrapper {
    padding: 25px;
  }
}

/* hyphen */
.hyphen-design {
  position: absolute;
  width: 55px;
  height: 7px;
  border-radius: 3px;
  left: 50%;
  top: -35px;
  -webkit-transform: translate(-50%);
  transform: translate(-50%);
}

/* book detail sub part 1 */
.subpart1-design-group {
  text-align: center;
  width: 980px;
  max-width: 100%;
  margin: 80px auto 0;
}
.subpart1-design-group:after {
  content: ".";
  display: inline-block;
  width: 100%;
  height: 0;
  visibility: hidden;
}
.subpart1-design {
  display: inline-block;
  vertical-align: top;
  width: 33%;
  padding: 3%;
}
@media screen and (min-width: 781px) and (max-width: 960px) {
  .subpart1-design {
    width: 40%;
  }
}
@media screen and (max-width: 780px) {
  .subpart1-design {
    width: 94%;
    margin-bottom: 80px;
  }
}

/* book details sub part 2 */
.subpart2-title {
  font-size: 31px;
  line-height: 1.4em;
  margin: 20px 0 5px;
  text-align: left;
  color: #58595b;
}
@media screen and (max-width: 880px){
  .subpart2-title {
    font-size: 25px;
  }
}
.subpart2-content {
  font-size: 21px;
  line-height: 1.6em;
  color: #58595b;
}
@media screen and (max-width: 880px){
  .subpart2-content {
    font-size: 17px;
  }
}




/* book details ndm/ndam */
.new-book-title-wrapper {
  padding: 120px 0 0;
  background-image: url(img/starpub_logo.png);
  background-position: 50%;
  background-size: cover;
}
.new-book-title-wrapper .transparent-layer {
  opacity: 0.7;
  background-color: #000;
}

.in-laptop-image-wrapper {
  position: absolute;
  right: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.laptop-design-wrapper {
  width: 585px;
  height: 321px;
  position: relative;
  background-image: url(img/laptop.png);
  background-size: contain;
  background-position: 50%;
}
.in-laptop-image {
  position: absolute;
  width: 381px;
  height: 75%;
  top: 33px;
  left: 102px;
  background-size: cover;
  background-position: 50%;
  background-repeat: no-repeat;
}
.menu-boxes-wrapper {
  margin-top: 120px;
  overflow: hidden;
  text-align: center;
  font-size: 0;
}
.menu-box {
  width: 25%;
  padding-bottom: 10000px;
  margin-bottom: -10000px;
  display: inline-block;
  vertical-align: top;
  position: relative;
  text-align: center;
}
.menu-box-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}
.title-dividend-line {
  width: 90px;
  height: 2px;
  display: inline-block;
  background-color: hsla(0, 0%, 100%, 0.5);
  margin-bottom: 10px;
  position: relative;
}

@media screen and (min-width: 1001px) and (max-width: 1200px) {
  .new-book-titile-sub-wrapper {
    width: 40%;
    padding-left: 55px;
  }
  .in-laptop-image-wrapper {
    width: 60%;
  }
  .laptop-design-wrapper {
    margin: 0 auto;
  }
}

@media screen and (max-width: 1000px) {
  .new-book-title-wrapper {
    padding: 60px 0 0;
  }
  .new-book-titile-sub-wrapper {
    text-align: center;
  }
  .title-dividend-line {
    margin: 0 auto 10px;
  }
  .in-laptop-image-wrapper {
    position: static;
    -webkit-transform: translate(0);
    transform: translate(0);
    margin-top: 60px;
  }
  .laptop-design-wrapper {
    margin: 0 auto;
  }
  .menu-boxes-wrapper {
    margin-top: 60px;
  }
}
@media screen and (max-width: 650px) {
  .laptop-design-wrapper {
    background-image: none;
    width: 100%;
    margin-top: 60px;
    height: auto;
  }
  .in-laptop-image {
    position: static;
    width: 80%;
    padding-bottom: 51%;
    margin: 0 auto;
  }
}
  @media screen and (min-width: 481px) and (max-width: 880px) {
    .menu-box {
      width: 50%;
    }
  }
  @media screen and (max-width: 480px) {
    .menu-box {
      width: 100%;
      float: none;
      padding-bottom: 0;
      margin-bottom: 0;
    }
  }
  /* first part 4 box */
  .newbook-part1-item {
    width: 50%;
    float: left;
  }
  .newbook-part1-text {
    position: relative;
    padding: 50px 50px 9999px;
    margin-bottom: -9999px;
    background-color: #e1bc2e;
  }
  .newbook-part1-img {
    border-style: 2px solid #000;
  }
  @media screen and (max-width: 800px) {
    .newbook-part1-item {
      width: 100%;
      border: none !important;
    }
    .newbook-part1-item.newbook-part1-imgs {
      display: none;
    }
    .newbook-part1-text {
      padding: 10px 10px 9999px;
    }
  }
  /* second part 4 box */
  .newbook-part2-common {
    float: left;
  }
  .newbook-part2-common {
    display: inline-block;
    vertical-align: top;
    padding-bottom: 10000px;
    margin-bottom: -10000px;
  }
  .newbook-part2-half {
    width: 50%;
  }
  @media screen and (max-width: 680px) {
    .newbook-part2-item {
      width: 100%;
      float: none;
      margin-left: 0;
      margin-top: 35px;
      margin-bottom: 35px;
    }
    .newbook-part2-common {
      margin-bottom: 0;
      padding-bottom: 0;
    }
  }

/* modal image */

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #000;
  padding: 10px 0;
  height: 150px;
  font-size: 15px;
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #000;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #0f0f0f;
  text-decoration: none;
  cursor: pointer;
}

/* animation */

@-webkit-keyframes sliderevert {
  0% {
    -webkit-transform: translateX(-30px);
    opacity: 0;
  }
  to {
    -webkit-transform: translateX(0);
    opacity: 1;
  }
}
@keyframes sliderevert {
  0% {
    -webkit-transform: translateX(-30px);
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}
.animation-sliderevertinit {
  -webkit-transform: translateX(-30px);
  transform: translateX(-30px);
  opacity: 0;
}
.animation-sliderevert {
  -webkit-transform: translateX(0);
  transform: translateX(0);
  -webkit-animation-name: sliderevert;
  -webkit-animation-duration: 1s;
  -webkit-animation-timing-function: ease-out;
  -webkit-animation-delay: 0.5s;
  -webkit-animation-iteration-count: 1;
  -webkit-animation-direction: normal;
  -ms-animation-name: sliderevert;
  -ms-animation-duration: 1s;
  -ms-animation-timing-function: ease-out;
  -ms-animation-delay: 0.5s;
  -ms-animation-iteration-count: 1;
  -ms-animation-direction: normal;
  animation-name: sliderevert;
  animation-duration: 1s;
  animation-timing-function: ease-out;
  animation-delay: 0.5s;
  animation-iteration-count: 1;
  animation-direction: normal;
  -moz-animation-name: sliderevert;
  -moz-animation-duration: 1s;
  -moz-animation-timing-function: ease-out;
  -moz-animation-delay: 0.5s;
  -moz-animation-iteration-count: 1;
  -moz-animation-direction: normal;
}

@-webkit-keyframes appear {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes appear {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.animation-appearinit {
  opacity: 0;
}
.animation-appear {
  -webkit-animation-name: appear;
  -webkit-animation-duration: 1s;
  -webkit-animation-timing-function: ease-in;
  -webkit-animation-delay: 0.5s;
  -webkit-animation-iteration-count: 1;
  -webkit-animation-direction: normal;
  -ms-animation-name: appear;
  -ms-animation-duration: 1s;
  -ms-animation-timing-function: ease-in;
  -ms-animation-delay: 0.5s;
  -ms-animation-iteration-count: 1;
  -ms-animation-direction: normal;
  animation-name: appear;
  animation-duration: 1s;
  animation-timing-function: ease-in;
  animation-delay: 0.5s;
  animation-iteration-count: 1;
  animation-direction: normal;
  -moz-animation-name: appear;
  -moz-animation-duration: 1s;
  -moz-animation-timing-function: ease-in;
  -moz-animation-delay: 0.5s;
  -moz-animation-iteration-count: 1;
  -moz-animation-direction: normal;
}

@keyframes moveup {
  0% {
    -webkit-transform: translateY(40px);
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}
.animation-moveupinit {
  -webkit-transform: translateY(40px);
  transform: translateY(40px);
  opacity: 0;
}
.animation-moveup {
  -webkit-transform: translateY(0);
  transform: translateY(0);
  -webkit-animation-name: moveup;
  -webkit-animation-duration: 1s;
  -webkit-animation-timing-function: ease-out;
  -webkit-animation-delay: 0.5s;
  -webkit-animation-iteration-count: 1;
  -webkit-animation-direction: normal;
  -ms-animation-name: moveup;
  -ms-animation-duration: 1s;
  -ms-animation-timing-function: ease-out;
  -ms-animation-delay: 0.5s;
  -ms-animation-iteration-count: 1;
  -ms-animation-direction: normal;
  animation-name: moveup;
  animation-duration: 1s;
  animation-timing-function: ease-out;
  animation-delay: 0.5s;
  animation-iteration-count: 1;
  animation-direction: normal;
  -moz-animation-name: moveup;
  -moz-animation-duration: 1s;
  -moz-animation-timing-function: ease-out;
  -moz-animation-delay: 0.5s;
  -moz-animation-iteration-count: 1;
  -moz-animation-direction: normal;
}
