/*!
 * Start Bootstrap - Creative v5.0.1 (https://startbootstrap.com/template-overviews/creative)
 * Copyright 2013-2018 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-creative/blob/master/LICENSE)
 */

body,
html {
  width: 100%;
  height: 100%;
}

body {
  font-family: "PingFangTC-Light","Microsoft JhengHei","Helvetica Neue","Heiti TC","微軟正黑體",sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -moz-font-feature-settings: "liga", "kern";
  text-rendering: optimizelegibility;
}

.book-summary p {
  font-size: 1.125rem !important;
}

.mega-dropdown { position: static !important; }
.mega-dropdown-menu {
  padding: 20px 15px 15px;
  text-align: center;
  width: 100%;
  border-top: solid 1px red;
}

.scroll-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: none;
  width: 80px;
  height: 80px;
  text-align: center;
  color: red;
  background: rgba(52, 58, 64, 0.5);
  line-height: 45px;
}

.fixed-wrap {
  position: fixed;
  z-index: 1035;
  right: 1rem;
  bottom: 1rem;
}

hr {
  max-width: 50px;
  border-width: 3px;
  border-color: #F05F40;
}

hr.light {
  border-color: #fff;
}

a {
  color: #F05F40;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

a:hover {
  color: #f05f40;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

.bg-primary {
  background-color: #F05F40 !important;
}

.bg-dark {
  background-color: #212529 !important;
}

.bg-yellow {
  background-color: #efe77d !important;
}

.bg-red {
  background-color: #ff3e2b !important;
}
.bg-bn {
  background-color: #003399 !important;
  padding: 2rem 0 1rem 0;
}

.bg-article {
  background-image: url("../img/bg-article.jpg");
  background-position: center center;
  background-size: cover;
}

.bg-author {
  background-image: url("../img/bg-author.jpg");
  background-position: center center;
  background-size: cover;
}

.bg-bookinfo {
  background-image: url("../img/bg-bookinfo.svg");
  background-position: center center;
  background-size: cover;
}

.bg-recommend {
  background-image: url("../img/bg-recommend.jpg");
  background-position: center center;
  background-size: cover;
}

.bg-robot {
  background-image: url("../img/bg-robot.jpg");
  background-position: center center;
  background-size: cover;
}

.bg-mega {
  background-image: url("../img/cover-cube.jpg");
  background-position: center center;
  background-size: cover;
}

.text-faded {
  color: rgba(255, 255, 255, 0.7);
}

section {
  padding: 8rem 0;
}

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

::-moz-selection {
  color: #fff;
  background: #212529;
  text-shadow: none;
}

::selection {
  color: #fff;
  background: #212529;
  text-shadow: none;
}

img::-moz-selection {
  color: #fff;
  background: transparent;
}

img::selection {
  color: #fff;
  background: transparent;
}

img::-moz-selection {
  color: #fff;
  background: transparent;
}

#mainNav {
  border-bottom: 1px solid rgba(33, 37, 41, 0.1);
  background-color: #fff;
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

#mainNav .navbar-brand {
  font-weight: 700;
  text-transform: uppercase;
  color: #F05F40;
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

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

#mainNav .navbar-nav > li.nav-item > a.nav-link,
#mainNav .navbar-nav > li.nav-item > a.nav-link:focus {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #212529;
}

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

#mainNav .navbar-nav > li.nav-item > a.nav-link.active,
#mainNav .navbar-nav > li.nav-item > a.nav-link:focus.active {
  color: #F05F40 !important;
  background-color: transparent;
}

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

@media (min-width: 992px) {
  #mainNav {
    border-color: transparent;
    background-color: transparent;
  }
  #mainNav .navbar-brand {
    color: rgba(255, 255, 255, 0.7);
  }
  #mainNav .navbar-brand:focus, #mainNav .navbar-brand:hover {
    color: #fff;
  }
  #mainNav .navbar-nav > li.nav-item > a.nav-link {
    padding: 0.5rem 1rem;
  }
  #mainNav .navbar-nav > li.nav-item > a.nav-link,
  #mainNav .navbar-nav > li.nav-item > a.nav-link:focus {
    color: rgba(255, 255, 255, 0.7);
  }
  #mainNav .navbar-nav > li.nav-item > a.nav-link:hover,
  #mainNav .navbar-nav > li.nav-item > a.nav-link:focus:hover {
    color: #fff;
  }
  #mainNav.navbar-shrink {
    border-bottom: 1px solid rgba(33, 37, 41, 0.1);
    background-color: #fff;
  }
  #mainNav.navbar-shrink .navbar-brand {
    color: #F05F40;
  }
  #mainNav.navbar-shrink .navbar-brand:focus, #mainNav.navbar-shrink .navbar-brand:hover {
    color: #f05f40;
  }
  #mainNav.navbar-shrink .navbar-nav > li.nav-item > a.nav-link,
  #mainNav.navbar-shrink .navbar-nav > li.nav-item > a.nav-link:focus {
    color: #212529;
  }
  #mainNav.navbar-shrink .navbar-nav > li.nav-item > a.nav-link:hover,
  #mainNav.navbar-shrink .navbar-nav > li.nav-item > a.nav-link:focus:hover {
    color: #F05F40;
  }
}

header.masthead {
  padding-top: 10rem;
  padding-bottom: calc(10rem - 56px);
  background-image: url("../img/running.svg");
  background-position: center right;
  background-size: cover;
}

header.masthead.c2 {
  padding-top: 10rem;
  padding-bottom: calc(10rem - 56px);
  background-image: url("../img/header-c2.jpg");
  background-position: center right;
  background-size: cover;
}

header.masthead.c24 {
  padding-top: 10rem;
  padding-bottom: calc(10rem - 56px);
  background-image: url("../img/header-c24.jpg");
  background-position: center right;
  background-size: cover;
}

header.masthead hr {
  margin-top: 30px;
  margin-bottom: 30px;
}

header.masthead h1 {
  font-size: 2rem;
}

header.masthead p {
  font-weight: 300;
}

@media (min-width: 768px) {
  header.masthead p {
    font-size: 1.15rem;
  }
}

@media (min-width: 992px) {
  header.masthead {
    height: 100vh;
    min-height: 900px;
    padding-top: 0;
    padding-bottom: 0;
  }
  header.masthead h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1200px) {
  header.masthead h1 {
    font-size: 4rem;
  }
}

.service-box {
  max-width: 400px;
}

.portfolio-box {
  position: relative;
  display: block;
  max-width: 650px;
  margin: 0 auto;
}

.portfolio-box .portfolio-box-caption {
  position: absolute;
  bottom: 0;
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  opacity: 0;
  color: #fff;
  background: rgba(240, 95, 64, 0.9);
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.portfolio-box .portfolio-box-caption .portfolio-box-caption-content {
  position: absolute;
  top: 50%;
  width: 100%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  text-align: center;
}

.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category,
.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name {
  padding: 0 15px;
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name {
  font-size: 18px;
}

.portfolio-box:hover .portfolio-box-caption {
  opacity: 1;
}

.portfolio-box:focus {
  outline: none;
}

@media (min-width: 768px) {
  .portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-category {
    font-size: 16px;
  }
  .portfolio-box .portfolio-box-caption .portfolio-box-caption-content .project-name {
    font-size: 22px;
  }
}

.text-primary {
  color: #F05F40 !important;
}

.btn {
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 300px;
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

.btn-xl {
  padding: 1rem 2rem;
}

.btn-primary {
  background-color: #F05F40;
  border-color: #F05F40;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  color: #fff;
  background-color: #ee4b28 !important;
}

.btn-primary:active, .btn-primary:focus {
  -webkit-box-shadow: 0 0 0 0.2rem rgba(240, 95, 64, 0.5) !important;
  box-shadow: 0 0 0 0.2rem rgba(240, 95, 64, 0.5) !important;
}

.modal-header img.r-modal-img{
    margin-top: -200px;
}

.book {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  height: 100%; }
  .book > hr {
    margin-right: 0;
    margin-left: 0; }

.book-body {
  flex: 1 1 auto;
  padding: 1.25rem; }

.book-title {
  margin-bottom: 0.75rem; }

.book-subtitle {
  margin-top: -0.375rem;
  margin-bottom: 0; }

.book-text:last-child {
  margin-bottom: 0; }

.book-link:hover {
  text-decoration: none; }

.book-link + .book-link {
  margin-left: 1.25rem; }

.book-header {
  padding: 0.75rem 1.25rem;
  margin-bottom: 0;
  background-color: rgba(0, 0, 0, 0.03); }

.book-footer {
  padding: 0.75rem 1.25rem;
  background-color: rgba(0, 0, 0, 0.03); }

.book-header-tabs {
  margin-right: -0.625rem;
  margin-bottom: -0.75rem;
  margin-left: -0.625rem;
  border-bottom: 0; }

.book-header-pills {
  margin-right: -0.625rem;
  margin-left: -0.625rem; }

.book-img-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1.25rem; }

.book-img {
  width: 100%; }

.book-img-top {
  width: 100%; }

.book-img-bottom {
  width: 100%; }

.book-deck {
  display: flex;
  flex-direction: column; }
  .book-deck .book {
    margin-bottom: 15px; }
  @media (min-width: 576px) {
    .book-deck {
      flex-flow: row wrap;
      margin-right: -15px;
      margin-left: -15px; }
      .book-deck .book {
        display: flex;
        flex: 1 0 0%;
        flex-direction: column;
        margin-right: 15px;
        margin-bottom: 0;
        margin-left: 15px; } }

.book-group {
  display: flex;
  flex-direction: column; }
  .book-group > .book {
    margin-bottom: 15px; }
  @media (min-width: 576px) {
    .book-group {
      flex-flow: row wrap; }
      .book-group > .book {
        flex: 1 0 0%;
        margin-bottom: 0; }
        .book-group > .book + .book {
          margin-left: 0;
          border-left: 0; }
        .book-group > .book:first-child {
          border-top-right-radius: 0;
          border-bottom-right-radius: 0; }
          .book-group > .book:first-child .book-img-top,
          .book-group > .book:first-child .book-header {
            border-top-right-radius: 0; }
          .book-group > .book:first-child .book-img-bottom,
          .book-group > .book:first-child .book-footer {
            border-bottom-right-radius: 0; }
        .book-group > .book:last-child {
          border-top-left-radius: 0;
          border-bottom-left-radius: 0; }
          .book-group > .book:last-child .book-img-top,
          .book-group > .book:last-child .book-header {
            border-top-left-radius: 0; }
          .book-group > .book:last-child .book-img-bottom,
          .book-group > .book:last-child .book-footer {
            border-bottom-left-radius: 0; }
        .book-group > .book:only-child {
          border-radius: 0.25rem; }
          .book-group > .book:only-child .book-img-top,
          .book-group > .book:only-child .book-header {
            border-top-left-radius: 0.25rem;
            border-top-right-radius: 0.25rem; }
          .book-group > .book:only-child .book-img-bottom,
          .book-group > .book:only-child .book-footer {
            border-bottom-right-radius: 0.25rem;
            border-bottom-left-radius: 0.25rem; }
        .book-group > .book:not(:first-child):not(:last-child):not(:only-child) {
          border-radius: 0; }
          .book-group > .book:not(:first-child):not(:last-child):not(:only-child) .book-img-top,
          .book-group > .book:not(:first-child):not(:last-child):not(:only-child) .book-img-bottom,
          .book-group > .book:not(:first-child):not(:last-child):not(:only-child) .book-header,
          .book-group > .book:not(:first-child):not(:last-child):not(:only-child) .book-footer {
            border-radius: 0; } }

.book-columns .book {
  margin-bottom: 0.75rem; }

@media (min-width: 576px) {
  .book-columns {
    column-count: 3;
    column-gap: 1.25rem;
    orphans: 1;
    widows: 1; }
    .book-columns .book {
      display: inline-block;
      width: 100%; } }

.accordion .book:not(:first-of-type):not(:last-of-type) {
  border-bottom: 0;
  border-radius: 0; }

.accordion .book:not(:first-of-type) .book-header:first-child {
  border-radius: 0; }

.accordion .book:first-of-type {
  border-bottom: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0; }

.accordion .book:last-of-type {
  border-top-left-radius: 0;
  border-top-right-radius: 0; }

.cover-box {
  display: block;
  width: 100%;
  height: 281px; }

.cover-box img {
  max-height: 280px; }

.booklink {
  text-decoration: none; }

.crop-text-2 {
  -webkit-line-clamp: 2;
  height: 2.4rem;
  overflow : hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  font-size: 0.85em;
  margin-bottom: 0.4rem;
  text-align: center;
}

.crop-text-3 {
  -webkit-line-clamp: 3;
  height: 4rem;
  overflow : hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-height: 1.4rem;
}

.crop-text-4 {
  -webkit-line-clamp: 4;
  height: 4.8rem;
  overflow : hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  font-size: 0.85em;
  line-height: 1.2rem;
  color: #545b62;
}

