html,
body {
  width: 100%;
  height: 100%;
  background: url(../img/bg.jpg ) repeat;
  font-family: 'Microsoft JhengHei', 'Muli', 'Helvetica', 'Arial', 'sans-serif';
}

@font-face {
  font-family: CHei3HK;
  src: url(../vendor/font/CHei3HK-Bold.otf);
}

a {
  color: #4a423e;
  -webkit-transition: all .35s;
  -moz-transition: all .35s;
  transition: all .35s;
}

a:hover, a:focus {
  color: #3c3836;
  font-weight: bold;
  text-decoration: none;
}

hr {
  max-width: 100px;
  margin: 25px auto 0;
  border-width: 1px;
  border-color: rgba(34, 34, 34, 0.1);
}

hr.light {
  border-color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Catamaran', 'Helvetica', 'Arial', 'sans-serif';
  font-weight: 200;
  letter-spacing: 1px;
}

p {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 20px;
}

section {
  padding: 80px 0;
}

section h2 {
  font-size: 50px;
}

#mainNav {
  border-color: rgba(34, 34, 34, 0.05);
  background-color: white;
  -webkit-transition: all .35s;
  -moz-transition: all .35s;
  transition: all .35s;
  font-family: 'Catamaran', 'Helvetica', 'Arial', 'sans-serif';
  font-weight: 200;
  letter-spacing: 1px;
}

#mainNav .navbar-brand {
  color: #fdcc52;
  font-family: 'Catamaran', 'Helvetica', 'Arial', 'sans-serif';
  font-weight: 200;
  letter-spacing: 1px;
}

#mainNav .navbar-brand:hover, #mainNav .navbar-brand:focus {
  color: #fcbd20;
}

#mainNav .navbar-toggler {
  font-size: 12px;
  padding: 8px 10px;
  color: #222222;
}

#mainNav .navbar-nav > li > a {
  font-size: 11px;
  font-family: 'Lato', 'Helvetica', 'Arial', 'sans-serif';
  letter-spacing: 2px;
  text-transform: uppercase;
}

#mainNav .navbar-nav > li > a.active {
  color: #fdcc52 !important;
  background-color: transparent;
}

#mainNav .navbar-nav > li > a.active:hover {
  background-color: transparent;
}

#mainNav .navbar-nav > li > a,
#mainNav .navbar-nav > li > a:focus {
  color: #222222;
}

#mainNav .navbar-nav > li > a:hover,
#mainNav .navbar-nav > li > a:focus:hover {
  color: #fdcc52;
}

@media (min-width: 992px) {
  #mainNav {
    border-color: transparent;
    background-color: transparent;
  }
  #mainNav .navbar-brand {
    color: fade(white, 70%);
  }
  #mainNav .navbar-brand:hover, #mainNav .navbar-brand:focus {
    color: white;
  }
  #mainNav .navbar-nav > li > a,
  #mainNav .navbar-nav > li > a:focus {
    color: rgba(255, 255, 255, 0.7);
  }
  #mainNav .navbar-nav > li > a:hover,
  #mainNav .navbar-nav > li > a:focus:hover {
    color: white;
  }
  #mainNav.navbar-shrink {
    border-color: rgba(34, 34, 34, 0.1);
    background-color: white;
  }
  #mainNav.navbar-shrink .navbar-brand {
    color: #222222;
  }
  #mainNav.navbar-shrink .navbar-brand:hover, #mainNav.navbar-shrink .navbar-brand:focus {
    color: #fdcc52;
  }
  #mainNav.navbar-shrink .navbar-nav > li > a,
  #mainNav.navbar-shrink .navbar-nav > li > a:focus {
    color: #222222;
  }
  #mainNav.navbar-shrink .navbar-nav > li > a:hover,
  #mainNav.navbar-shrink .navbar-nav > li > a:focus:hover {
    color: #fdcc52;
  }
}

header.masthead {
  position: relative;
  width: 100%;
  padding-bottom: 100px;
  color: white;
  background: url("../img/bg-top.png") repeat-x;
  background: url("../img/bg-top.png") repeat-x;
  background: url("../img/bg-top.png") repeat-x;
}

header.masthead .header-content {
  max-width: 500px;
  margin-bottom: -20px;
  text-align: center;
}

header.masthead .header-content h1 {
  font-size: 30px;
}

header.masthead .device-container {
  max-width: 325px;
  margin-right: auto;
  margin-left: auto;
}

header.masthead .device-container .screen img {
  border-radius: 3px;
}

@media (min-width: 992px) {
  header.masthead {
    /*height: 100vh;*/
    min-height: 250px;
    padding-top: 0;
    padding-bottom: 0;
  }
  header.masthead .header-content {
    margin-bottom: 0;
    text-align: left;
  }
  header.masthead .header-content h1 {
    font-size: 50px;
  }
  header.masthead .device-container {
    max-width: 325px;
  }
}

section.download {
  position: relative;
  padding: 150px 0;
}

section.download h2 {
  font-size: 50px;
  margin-top: 0;
}

section.download .badges .badge-link {
  display: block;
  margin-bottom: 25px;
}

section.download .badges .badge-link:last-child {
  margin-bottom: 0;
}

section.download .badges .badge-link img {
  height: 60px;
}

@media (min-width: 768px) {
  section.download .badges .badge-link {
    display: inline-block;
    margin-bottom: 0;
  }

  section.download h2 {
    font-size: 70px;
  }
}

section.features .section-heading {
  margin-bottom: 100px;
}

section.features .section-heading h2 {
  margin-top: 0;
}

section.features .section-heading p {
  margin-bottom: 0;
}

section.features .device-container,
section.features .feature-item {
  max-width: 325px;
  margin: 0 auto;
}

section.features .device-container {
  margin-bottom: 100px;
}

@media (min-width: 992px) {
  section.features .device-container {
    margin-bottom: 0;
  }
}

section.features .feature-item {
  padding-top: 50px;
  padding-bottom: 50px;
  text-align: center;
}

section.features .feature-item h3 {
  font-size: 30px;
}

section.features .feature-item i {
  font-size: 80px;
  display: block;
  margin-bottom: 15px;
  background: -webkit-linear-gradient(to left, #7b4397, #dc2430);
  background: linear-gradient(to left, #7b4397, #dc2430);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

section.cta {
  position: relative;
  padding: 250px 0;
  background-image: url("../img/bg-cta.jpg");
  background-position: center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

section.cta .cta-content {
  position: relative;
  z-index: 1;
}

section.cta .cta-content h2 {
  font-size: 50px;
  max-width: 450px;
  margin-top: 0;
  margin-bottom: 25px;
  color: white;
}

@media (min-width: 768px) {
  section.cta .cta-content h2 {
    font-size: 80px;
  }
}

section.cta .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

section.contact {
  text-align: center;
}

section.contact h2 {
  margin-top: 0;
  margin-bottom: 25px;
}

section.contact h2 i {
  color: #dd4b39;
}

section.contact ul.list-social {
  margin-bottom: 0;
}

section.contact ul.list-social li a {
  font-size: 40px;
  line-height: 80px;
  display: block;
  width: 80px;
  height: 80px;
  color: white;
  border-radius: 100%;
}

section.contact ul.list-social li.social-twitter a {
  background-color: #1da1f2;
}

section.contact ul.list-social li.social-twitter a:hover {
  background-color: #0d95e8;
}

section.contact ul.list-social li.social-facebook a {
  background-color: #3b5998;
}

section.contact ul.list-social li.social-facebook a:hover {
  background-color: #344e86;
}

section.contact ul.list-social li.social-google-plus a {
  background-color: #dd4b39;
}

section.contact ul.list-social li.social-google-plus a:hover {
  background-color: #d73925;
}

footer {
  padding: 25px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  background-color: #222222;
}

footer p {
  font-size: 12px;
  margin: 0;
}

footer ul {
  margin-bottom: 0;
}

footer ul li a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

footer ul li a:hover, footer ul li a:focus, footer ul li a:active, footer ul li a.active {
  text-decoration: none;
}

.bg-primary {
  background: #fdcc52;
  background: -webkit-linear-gradient(#fdcc52, #fdc539);
  background: linear-gradient(#fdcc52, #fdc539);
}

.text-primary {
  color: #fdcc52;
}

.no-gutter > [class*='col-'] {
  padding-right: 0;
  padding-left: 0;
}

.btn-outline {
  color: white;
  border: 1px solid;
  border-color: white;
}

.btn-outline:hover, .btn-outline:focus, .btn-outline:active, .btn-outline.active {
  color: white;
  border-color: #fdcc52;
  background-color: #fdcc52;
}

.btn {
  /*border-radius: 300px;*/
  font-family: 'Lato', 'Helvetica', 'Arial', 'sans-serif';
  letter-spacing: 2px;
  text-transform: uppercase;
}

.btn-xl {
  font-size: 11px;
  padding: 15px 45px;
}




/*New Add*/

h1, h2, h3, h4, h5, h6 {
  font-family: 'CHei3HK', 'Microsoft JhengHei', 'Georiga';
  font-weight: bold;
}

hr {
  margin: 3rem 0;
}

.line-2 {
  height: 2.5rem;
}

section {
  color: #333;
}

/* hidden & visible */
@media (min-width: 1200px) {
  .visible-xl {
    display: inline !important;
  }
}

@media (max-width: 1199px) {
  .visible-xl {
    display: none;
  }
}

@media (min-width: 992px) {
  .hidden-md-down {
    display: inline !important;
  }
}

@media (max-width: 991px) {
  .hidden-md-down {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .hidden-sm {
    display: inline-block !important;
  }

  .visible-sm {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .hidden-sm {
    display: none;
  }
  
  .visible-sm {
    display: inline-block;
  }
}


/* ---------- */
header {
  width: 100%;
  background: url("../img/bg-top.png") repeat-x;
  min-height: 280px;
  margin-bottom: 30px;
}

.footer-bg {
  background: url(../img/footer-bg.png) no-repeat;
  background-position: bottom;
  background-size: 100% !important;
  padding-bottom: 50px;
}

#content {
  margin-top: -5rem;
}

/*xl*/
@media (min-width: 1200px) {
  #content {
    margin-bottom: 350px !important;
  }
}

/*lg*/
@media (min-width: 992px) and (max-width: 1199px) {
  #content {
    margin-bottom: 250px !important;
  }
}

/*md*/
@media (min-width: 768px) and (max-width: 991px) {
  #content {
    margin-bottom: 180px !important;
  }
}

/*sm*/
@media (min-width: 575px) and (max-width: 767px) {
  #content {
    margin-bottom: 200px !important;
  }
}

@media (min-width: 320px) {
  #content {
    margin-bottom: 80px;
  }
}


/*書架*/

.bookshelf {
  background-size: 100% !important;
  background-repeat: repeat-y;
}

.books {
  text-align: center;
  height: 100%;
}

.books a:hover img {
  opacity: 0.8;
}

.books img {
  position: absolute;
  bottom: 50px;
  left: 15%;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.books p {
  font-size: 80%;
}

/*xl*/
@media (min-width: 1200px) {
  .bookshelf {
    background: url("../img/bookshelf.png") !important;
    min-height: 250px;
    background-size: 100% !important;
  }

  .books {
    max-height: 175px !important;
    padding-top: 30px !important;
    margin: 12rem 2rem 3.5rem 2rem !important;
  }

  .books p {
    padding-top: 2rem !important;
  }
}

/*lg*/
@media (min-width: 992px) and (max-width: 1199px) {
  .bookshelf {
    background: url("../img/bookshelf.png") !important;
    min-height: 320px;
    background-size: 100% !important;
    margin-top: 50px;
  }

  .books {
    max-height: 260px !important;
    padding-top: 70px !important;
    margin: 7.3rem 1.4rem 2.5rem 1.4rem !important;
  }

  .books img {
    left: 25% !important;
  }

  .books p {
    padding-top: 2rem !important;
  }
}

/*md*/
@media (min-width: 768px) and (max-width: 991px) {
  .bookshelf {
    background: url("../img/bookshelf_s.png");
    min-height: 300px;
    background-size: 100%;
  }

  .books {
    max-height: 275px !important;
    padding-top: 75px !important;
    margin: 14.3rem 1rem 4.8rem 1rem !important;
  }

  .books img {
    left: 25% !important;
  }

  .books p {
    padding-top: 1.5rem !important;
  }
}

/*sm*/
@media (min-width: 576px) and (max-width: 767px) {
  .bookshelf {
    background: url("../img/bookshelf_s.png");
    min-height: 300px;
    background-size: 100%;
  }

  .books {
    max-height: 207px !important;
    padding-top: 30px !important;
    margin: 12.5rem 0.6rem 2.8rem 0.6rem;
  }

  .books img {
    left: 20% !important;
  }

  .books p {
    padding-top: 1.5rem !important;
  }
}

/*xs*/
@media (max-width: 575px) {
  /*.bookshelf {
    background: url("../img/bookshelf_s.png");
    min-height: 300px;
    background-size: 100%;
  }*/

  .books {
    max-height: 145px;
    padding-top: 30px;
    margin: 8.3rem 1rem 0.9rem 1rem;
  }

  .books p {
    padding-top: 0.5rem;
  }
}


/*頁碼*/

.page {
  margin: 50px 0;
}

a.btn-page {
  color: #3c3836;
  border-radius: 50px;
}

a.btn-page-now {
  background: #f6d000;
  border-radius: 50px;
}

a.btn-page:hover, a.btn-page:active {
  background: #f6d000;
}


/*頁尾*/

#footer {
  color: #927d76;
}

#footer a {
  color: #927d76;
}

#footer a:hover {
  color: #7c665f;
}

/*xl*/
@media (min-width: 1200px) {
  #footer {
    padding-bottom: 0 !important;
    height: 100% !important;
  }
}

/*lg*/
@media (min-width: 992px) and (max-width: 1199px) {
  #footer {
    padding-bottom: 0 !important;
    height: 100% !important;
  }
}

/*md*/
@media (min-width: 768px) and (max-width: 991px) {
  #footer {
    margin-bottom: 100px !important;
  }
}

@media (min-width: 320px) {
  #footer {
    height: 0;
  }
}


/*內頁*/

/*主按鈕*/

a.btn-circle, a.btn-circle-now {
    border-radius: 50%;
    padding: 5px;
    color: #4a423e;
    line-height: 0.8rem;
    box-shadow: 0 2px 3px rgba(255,255,255,0.6) inset, 0 -2px 3px rgba(0,0,0,0.3) inset;
}

a.btn-circle {
    background: #d3d3d3;
}

a.btn-circle-now {
    background: #ffc600;
}

a.btn-circle:hover {
  background: #e0e0e0;
}

a.btn-circle-now:hover {
    background: #ffdf00;
}

a.btn-circle:active {
  background: #d3d3d3;
}

a.btn-circle-now:active {
  background: #ffc600;
}

a.btn-circle:active, a.btn-circle-now:active {
    box-shadow: 0 2px 3px rgba(0,0,0,0.3) inset, 0 -2px 3px rgba(255,255,255,0.6) inset;
}


/*推薦電子書*/
/*xl*/
@media (min-width: 1200px) {
  .recommend .books {
    margin: 3rem 1.2rem 0 1.2rem !important;
  }

  .recommend .books p {
    padding-top: 8rem !important;
  }
}

/*lg*/
@media (min-width: 992px) and (max-width: 1199px) {
  .recommend .books {
    margin: -4rem 1rem 0 1rem !important;
  }

  .recommend .books p {
    padding-top: 11rem !important;
  }
}

/*md*/
@media (min-width: 768px) and (max-width: 991px) {
  .recommend .books {
    margin: 1.2rem 0.4rem 0 0.4rem !important;
  }

  .recommend .books p {
    padding-top: 11.5rem !important;
  }
}

/*sm*/
@media (min-width: 576px) and (max-width: 767px) {
  .recommend .books {
    margin: 1.4rem 0.3rem 0 0.3rem !important;
  }

  .recommend .books p {
    padding-top: 9.5rem !important;
  }
}

/*xs*/
@media (max-width: 575px) {
  .recommend .books {
    margin: 2rem 0.2rem 0 0.2rem !important;
  }

  .recommend .books img {
    max-height: 110px;
    max-width: 110px;
  }

  .recommend .books p {
    padding-top: 5rem !important;
  }
}


/*相簿*/

img.shadow {
  box-shadow: 1px 5px 3px rgba(0,0,0,0.3);
}


/*放大鏡*/
.zoom-in {
  z-index: 1;
  position: absolute;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 50%;
  padding: 0.2rem 0.5rem;
}

@media (min-width: 1200px) {
  .zoom-in {
    bottom: 70px !important;
    right: 25px !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .zoom-in {
    bottom: 70px !important;
    right: 135px !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .zoom-in {
    bottom: 75px !important;
    right: 35px !important;
  }
}

@media (max-width: 767px) {
  .zoom-in {
    bottom: 70px;
    right: 25px;
  }
}

a.btn-rectangle {
  background: #ffc600;
  border-radius: 50px;
  font-family: 'CHei3HK';
  color: #4a423e;
  font-size: 0.6rem;
  box-shadow: 0 2px 3px rgba(255,255,255,0.6) inset, 0 -2px 3px rgba(0,0,0,0.3) inset;
}

a.btn-rectangle:hover {
  background: #ffdf00;
}

a.btn-rectangle:active, .tag .btn:active {
  box-shadow: 0 2px 3px rgba(0,0,0,0.3) inset, 0 -2px 3px rgba(255,255,255,0.6) inset;
}

.tag i {
  color: #ffc600;
}

.tag .btn {
  font-weight: normal;
  font-family: 'Microsoft JhengHei';
  background: #d3d3d3;
  border-radius: 50px;
  color: #333;
  font-size: 0.6rem;
  padding: 2px 5px;
  box-shadow: 0 2px 3px rgba(255,255,255,0.6) inset, 0 -2px 3px rgba(0,0,0,0.3) inset;
}

.tag .btn:hover {
  background: #e0e0e0;
  font-weight: normal;
  font-family: 'Microsoft JhengHei';
}

/*SliderShow*/
* {
  box-sizing: border-box;
}

.slider {
  width: 50%;
  margin: 0 auto;
}

.slick-slide {
  margin: 0px 20px;
}

.slick-slide img {
  width: 100%;
}

.slick-prev:before, .slick-next:before {
  color: black;
}

.slick-slide {
  transition: all ease-in-out .3s;
  opacity: .2;
}
    
.slick-active {
  opacity: .5;
}

.slick-current {
  opacity: 1;
}

.responsive div {
  height: 109px;
}

.responsive img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  -webkit-object-fit: cover;
  -moz-object-fit: cover;
  -o-object-fit: cover;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .responsive div {
    height: 86px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .responsive div {
    height: 118px;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .responsive div {
    height: 133px;
  }
}

@media (max-width: 575px) {
  .responsive div {
    height: 60px;
  }
}


/*Taglist*/

.taglist {
  background: #6d5b58;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  padding: 0.7rem 0;
  margin: 1rem 0;
  color: #fff;
}

.taglist:hover {
  opacity: 0.8;
}

.taglist img {
  max-width: 100%;
  max-height: 66px;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .taglist img {
    max-height: 79px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .taglist img {
    max-height: 60px;
  }
}

@media (max-width: 767px) {
  .taglist .text-center {
    text-align: left !important;
  }
}


/*相關故事*/

/*Slider*/

.single-item {
  padding: 0;
}
