* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-family: "Noto Sans", "Droid Sans", Ubuntu, Verdana, Helvetica, "Microsoft YaHei", "微软雅黑", STXihei, "华文细黑", "WenQuanYi Micro Hei", "Droid Sans", "YouYuan", sans-serif;
}

body {
  font-size: 20px;
  line-height: 180%;
  letter-spacing: 0.05em;
  padding: 0px;
  margin: 0px;
  background-color: #fe9;
}

.container {
  background-color: #fff;
  background-image:
    linear-gradient(80deg, rgba(255, 250, 120, 0.3) 0%, rgba(250, 250, 120, 0.3) 50%, rgba(250, 240, 120, 0.3) 100%);
}

.wow-heading {
  padding: 0px 20% 30px 0px;
  background-color: rgb(255, 230, 0);
  background-image:
    radial-gradient(circle at 95% 100%, rgba(255,255,250,0.8) 0%, rgba(255,200,50,0.3) 30%, rgba(0,0,0,0) 50%),
    linear-gradient(80deg, rgba(255,245,0,0.8) 0%, rgba(255,200,50,1) 100%);
  /* box-shadow: 0px 1px 3px rgba(155,100,0,0.3); */
}

.wow-heading-inner {
  box-shadow: 3px 3px 20px rgba(155,100,0,0.5);
  border-radius: 0px 0px 80px 0px;
  background-color: rgb(250, 130, 0);
  background-image:
    /* left-top circular hue */
    radial-gradient(circle at 50% 0%, rgba(255,240,150,0.6) 0%, rgba(255,225,200,0.2) 15%, rgba(0,0,0,0) 30%),
    /* light rays pair 1 */
    linear-gradient(130deg, rgba(0,0,0,0) 23%, rgba(255,225,200,0.10) 27%, rgba(0,0,0,0) 30%),
    linear-gradient(50deg, rgba(0,0,0,0) 70%, rgba(255,225,200,0.10) 73%, rgba(0,0,0,0) 77%),
    /* light rays pair 2 */
    linear-gradient(145deg, rgba(0,0,0,0) 17%, rgba(255,225,200,0.15) 20%, rgba(0,0,0,0) 23%),
    linear-gradient(35deg, rgba(0,0,0,0) 77%, rgba(255,225,200,0.15) 80%, rgba(0,0,0,0) 83%),
    /* light rays pair 3 */
    linear-gradient(160deg, rgba(0,0,0,0) 10%, rgba(255,225,200,0.15) 13%, rgba(0,0,0,0) 16%),
    linear-gradient(20deg, rgba(0,0,0,0) 84%, rgba(255,225,200,0.15) 87%, rgba(0,0,0,0) 90%),
    /* background-orange */
    linear-gradient(180deg, rgba(255,200,0,1.0) 0%,rgba(250,120,0,1.0) 70%, rgba(250,130,0,1.0) 100%);
}

/* Chinese title */
h1 {
  font-size: 37px;
  line-height: 1.1;
  letter-spacing: 0.15em;
  text-align: center;
  margin: 0px;
  padding: 60px 10% 10px 10%;
  color: rgb(255,255,255);
  text-shadow:
     0.5px  0.5px 0.0px rgba(180,100, 0, 0.5), /* brown edge */
     1.0px  1.0px 0.0px rgba(180,100, 0, 0.5), /* brown edge */
     1.5px  1.5px 0.0px rgba(180,100, 0, 0.5), /* brown edge */
     2.0px  0.0px 9.0px rgba(255,255,100,0.3),
    -2.0px  0.0px 9.0px rgba(255,255,100,0.3),
     0.0px  2.0px 9.0px rgba(255,255,100,0.3),
     0.0px -2.0px 9.0px rgba(255,255,100,0.3);
}

/* English title */
h2 {
  font-family: Verdana, Tahoma, sans-serif;
  font-weight: bold;
  font-size: 17px;
  font-variant: small-caps;
  line-height: 1.2;
  letter-spacing: 0.0em;
  text-align: center;
  margin: 0px 0px 30px 0px;
  padding: 15px 20% 40px 20%;
  color: #ff9;
  text-shadow:
     1.0px  1.0px 2.0px rgba(180,100,  0,0.9), /* brown edge */
     1.0px  0.0px 1.5px rgba(255,255,255,0.5),
    -1.0px  0.0px 1.5px rgba(255,255,255,0.5),
     0.0px  1.0px 1.5px rgba(255,255,255,0.5),
     0.0px -1.0px 1.5px rgba(255,255,255,0.5);
}

h1, h2 {
  perspective: 800px;
}

/* .thinsp is a thin space (allowing line breaks)
 * with a negative margin (whenever the browser supports it)
 * The latter helps reduce the space before （  for Chinese rendering */
h1 .thinsp
{
  font-size: 6px;
  margin-right: -18px;
}

.smaller {
  font-size: 80%;
  font-weight: normal;
  letter-spacing: 0px;
}

h1 .smaller {
  font-size: 60%;
}

h2 .smaller {
  font-size: 80%;
}

.wow-video-banner {
  background-image:
    radial-gradient(circle at 15% 80%, rgba(255,255,250,0.8) 0%, rgba(255,200,50,0.3) 20%, rgba(0,0,0,0) 40%),
    radial-gradient(circle at 95% 0%, rgba(255,255,250,0.8) 0%, rgba(255,200,50,0.3) 30%, rgba(0,0,0,0) 50%),
    linear-gradient(100deg, rgba(255,245,0,0.8) 0%, rgba(255,200,50,1) 100%);
  padding: 20px 0px 80px 0px;
  margin: 0px;
  z-index: 100;
  line-height: 100%;
  border-width: 0px;
  text-align: center;
  box-shadow: 0px 6px 3px rgba(155,100,0,0.3);
}

.wow-video {
  background-color: yellow;
  margin: 0px;
}

.bhff-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  max-width: 95%;
  margin: auto;
  padding-top: 30px;
  padding-bottom: 70px;
}

.wow-quote {
  margin-top: 2em;
  margin-bottom: 1.5em;
  transition: all 0.7s ease;
  /* transform: translateY(200px); */ /* moved to wow.js addCSSRules() */
}

@media screen and (max-width: 680px) {
  .wow-quote {
    margin-left: 8px;
    margin-right: 12px;
    width: 100%;
  }
}

@media screen and (min-width: 680px) and (max-width: 1200px) {
  .wow-quote {
    display: inline-block;
    width: 43%;
    margin-left: 15px;
    margin-right: 15px;
  }
}

@media screen and (min-width: 1200px) {
  .wow-quote {
    display: inline-block;
    width: 28%;
    margin-left: 8px;
    margin-right: 8px;
  }
}

.wow-quote.out-of-view {
  transform: translateY(200px);
}

.wow-quote.in-view {
  transform: translateY(0);
}

.wow-header {
  text-align: center;
}

.wow-id,
.wow-header .bhff-btn {
  /* many adapted from .btn */
  display: inline-block;
  letter-spacing: 0.05em;
  border-radius: 4px;
  height: 42px !important;
  line-height: 30px;
  min-width: 42px;
  font-size: 16px !important;
  padding: 6px 12px 6px 12px;
  margin: 0;
  border: 1px solid rgb(240, 220, 190, 0.7);
}

.wow-header::after {
  content: "";
  display: table;
  clear: both;
}

.wow-id {
  color: white;
  background-color: rgb(240, 150, 0);
  /* for HSV to HSL, see https://stackoverflow.com/a/31851617/3326606 */
  background-image: radial-gradient(circle at 25% 25%, hsl(45, 100%, 70%) 0%, hsl(45, 100%, 50%) 60%);
  box-shadow: 0.5px 0.5px 2px rgba(220,200,150,0.8);
}

.wow-header .btn {
  color: #da8;
  background-color: rgba(255, 255, 245, 0.5);
}

.wow-blockquote {
  padding: 0px;
  border-left: 0px solid rgb(255,255,128);
  border-radius: 6px 6px 6px 6px;
  margin: 7px 0px 0px 0px;
  box-shadow: 3px 5px 3px rgba(220, 220, 120, 0.3);
}

.wow-quote-title {
  font-size: 125%;
  font-weight: bold;
  margin-bottom: 1.5em;
  padding-left: 2em;
}

.wow-quote-btn-group-wrapper {
  position: absolute;
  right: 8px;
  top: 8px;
  display: flex;
  justify-content: flex-end;
}

.wow-quote-body hr {
  margin: 2em 3em 2em 0em;
  border: 1px solid #edc;
  border-width: 0.5px 0px 0px 0px;
}

.wow-zh {
  font-size: 17px;
  letter-spacing: 0.07em;
  line-height: 2;
  background-color: #fcffe0;
  padding: 3.3em 2.1em 2.8em 2.3em;
  letter-spacing: 0.1em;
  color: #543;
  background-image: linear-gradient(160deg,
      rgba(255, 255, 200, 0.3) 0%,
      rgba(255, 255, 255, 0.8) 50%,
      rgba(255, 255, 180, 0.8) 100%);
  border-radius: 6px 6px 0px 0px;
  /*text-shadow: 0.1px 0.1px 0.3px #503020;*/
  position: relative;
}

.wow-en {
  font-family: "Noto Sans", "Droid Sans", Ubuntu, Tahoma, Verdana, Helvetica, Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  padding: 3.0em 2.1em 4.0em 2.3em;
  color: #320;
  background-image: linear-gradient(160deg,
      rgba(255, 250, 245, 0.9) 0%,
      rgba(255, 250, 100, 0.8) 100%);
  border-radius: 0px 0px 6px 6px;
  /*text-shadow: 0.1px 0.1px 0.3px #2050a0;*/
  position: relative;
}

.wow-quote-btn-group {
  margin-bottom: 0.5em;
}

.bhff-toc-container {
  padding-top: 30px;
  text-align: center;
}

.bhff-toc-item {
  display: inline-block;
  text-align: center;
  margin: 30px 5% 0px 3%;
  width: 10em; /* enough for 佛言佛語 */
  background-color: rgb(240, 150, 50);
  /* user cannot select text on the item */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/*
<a href="...">
  <div class="wow-toc-item-wrapper">
  <div class="wow-toc-item wow-toc-zh"></div>
  <div class="wow-toc-item wow-toc-en">en</div>
  </div>
</a>
*/

.bhff-toc-item a {
  text-decoration: none;
  color: #fff;
}

.wow-toc-item-wrapper {
  padding: 12px 0px;
  line-height: 200%;
  margin-top: 0px;
}

.wow-toc-item {
  display: block;
  overflow: hidden;
  font-weight: bold;
  margin-top: 0px;
  text-shadow:
    1px 1px 1px rgb(100,100,100),
    1px 1px 5px rgb(255,255,100);
}

.bhff-toc-item:hover .wow-toc-item {
  color: rgb(255,255,230);
  text-shadow:
    1px 1px 1px rgb(150,150,150),
    0px 0px 8px rgb(255,255,200);
}

.wow-toc-zh {
  font-size: 120%;
  margin: 1em 1em;
  padding: 0.5em 0.5em;
  border-bottom: 4px double rgba(200, 200, 200, 0.5);
  /* text-shadow: 0 0 2px rgba(100, 100, 100, 0.5); */
}

.wow-toc-en {
  font-variant: small-caps;
  font-size: 70%;
  background-image: linear-gradient(90deg,
    rgba(200, 200, 100, 0.10) 0%,
    rgba(100, 100, 100, 0.20) 50%,
    rgba(200, 200, 100, 0.10) 100%);
  margin: 1em 0px 2em 0px;
  padding: 0.5em 1.5em;
  line-height: 150%;
}

.wow-quote-btn-group {
  opacity: 0.5;
}

.wow-quote-btn-group:hover {
  opacity: 1.0;
}

.wow-quote-btn-group .bhff-btn {
  position: relative;
  /* fixing the button size, avoid the button to grow fatter
   * because of the clicking of the play button */
  width: 28px;
  height: 28px;
  min-width: 28px;
  font-size: 10px;
  line-height: 1;
  padding: 4px 2px;
  background-color: rgba(255, 255, 220, 0.5);
  border-color: rgba(235, 230, 150, 0.3);
  margin: 0px !important;
  border-radius: 0px;
  border-width: 1px 0px;
}

.wow-quote-btn-group .bhff-btn:first-child {
  margin-right: 0px !important;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
  border-left-width: 1px;
}

.wow-quote-btn-group .bhff-btn:last-child {
  margin-left: 0px !important;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  border-right-width: 1px;
}

/* horizontally and vertically center the button text */
.wow-quote-btn-group .bhff-btn span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}


/* skewed shadow
 * https://stackoverflow.com/questions/31705509/creating-a-skew-box-shadow-on-div
 * deprecated, replaced by tilt3D() in wow.js */
/*
.bhff-toc-item:after {
  position: absolute;
  z-index: -1;
  content: "";
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: 25%;
  border: 0px;
  transform: translateX(40px) skewX(-60deg) translateY(6px);
  background-color: rgba(150, 40, 30, 0.2);
  box-shadow: 2px 2px 5px rgba(150, 40, 30, .35);
}
*/

.bhff-nav-btn-ctn {
  position: fixed;
  z-index: 200;
  right: 0px;
  top: 0px;
}

.bhff-nav-btn {
  position: relative;
  font-size: 30px;
  line-height: 1.43;
  width: 48px;
  height: 48px;
  color: #b93;
  background-color: #fe8;
  border-radius: 8px;
  margin: 8px 8px 0px 0px;
  box-shadow: 1px 1px 3px rgba(150, 150, 50, 0.2);
  opacity: 0.9;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  padding: none;
}

.bhff-nav-btn.close {
  box-shadow: none !important;
  border: none !important;
  background: none !important;
}

.bhff-nav-btn .bhff-icon-bar {
  position: absolute;
  display: block;
  cursor: pointer;
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background-color: #d90;
  top: 22px;
  left: 12px;
  margin: 0px;
}

.bhff-nav-btn .bhff-icon-bar1 {
  top: 14px;
}

.bhff-nav-btn .bhff-icon-bar3 {
  top: 30px;
}

.bhff-nav-btn.close .bhff-icon-bar1 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.bhff-nav-btn.close .bhff-icon-bar2 {
  width: 0%;
}

.bhff-nav-btn.close .bhff-icon-bar3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.bhff-nav-btn:hover {
  color: #973;
  opacity: 1.0;
}

.bhff-nav-btn:active,
.bhff-nav-btn:focus {
  background-color: #ed5;
  transform: translate(0.5px, 0.5px);
  opacity: 1.0;
}

/* navigation toolbar at the bottom */
.bhff-nav {
  position: fixed;
  top: -180px;
  left: 0px;
  z-index: 100;
  margin: 0px;
  width: 100%;
  text-align: center;
  background-color: rgba(255, 245, 170, 0.9);
  box-shadow: 0px 1px 3px rgba(120, 50, 0, 0.1);
  transition: all 0.5s ease;
}

.bhff-nav.active {
  top: 0px;
  background-image: radial-gradient(circle at 45% 30%, rgba(255,255,250,0.3) 0%, rgba(255,225,0,0.1) 50%);
}

.bhff-nav-toolbar {
  font-size: 6px; /* for spaces */
  margin: 12px 60px 12px 20px;
}

.bhff-nav-toolbar .bhff-btn {
  margin: 4px 4px;
}

.bhff-up-btn-ctn {
  position: fixed;
  z-index: 100px;
  right: 0px;
  bottom: 0px;
}

.bhff-up-btn {
  position: absolute;
  right: -52px;
  bottom: 48px;
  font-size: 30px;
  line-height: 1.43;
  width: 48px;
  height: 48px;
  /* background-color: black; */
  margin: 4px 0px 0px 4px;
  opacity: 0.8;
  transition: color 0.5s, opacity 1s, right 0.7s;
  border-radius: 24px;
  background-color: #704720;
  background-image: radial-gradient(circle at 50% 50%, rgba(255,255,200,0.3) 0%, rgba(255,255,255,0.1) 80%);
}

.bhff-up-btn.active {
  right: 12px;
}

.bhff-up-triangle {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%,-50%);
  /* up triangle https://stackoverflow.com/a/6325076/13612859 */
  width: 0px;
  height: 0px;
  border-top: none;
  border-bottom: 14px solid #ea0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
}

.bhff-up-btn:hover {
  opacity: 0.9;
  background-color: #502700;
}

.bhff-up-btn:hover .bhff-up-triangle {
  border-bottom-color: #ed7;
}



.bhff-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 10px;
  text-align: center;
  padding: 70px 10% 90px 10%;
  background-color: #fff377;
  background-image: linear-gradient(175deg, rgba(255,250,180,0.9) 0%, rgba(250,250,225,0.7) 30%, rgba(250,250,225,0.7) 60%, rgba(255,250,180,0.9) 100%);
}

.bhff-footer span {
  display: block;
  margin: 0px 0px;
}


.bhff-footer .bhff-btn {
  width: 100%;
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 2;
  height: auto;
  padding: 1em 2em;
  margin: 0.45em;
  box-shadow: none;
  opacity: 0.9;
  color: #620;
  background-color: rgb(255, 255, 240);
  border: 1px solid #fff7c3;
}

.bhff-footer .bhff-btn:focus,
.bhff-footer .bhff-btn:active {
  color: #fffafa;
  background-color: #f73 !important;
  border-color: rgba(255, 250, 230, 0.7);
  transition: all 0.35s ease;
}

.bhff-footer .bhff-btn:hover {
  color: #fff;
  background-color: #d93;
  border-color: rgba(200, 150, 100, 0.1);
  transition: all 0.2s ease;
  opacity: 1.0;
}

.bhff-nav-toolbar .bhff-btn > svg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.bhff-footer .bhff-btn > svg {
  transform: translate(-8px, 1px);
}

/* adapted from bootstrap.css v3.4.1 */
.bhff-btn {
  display: inline-block;
  position: relative;
  padding: 6px 11px 6px 13px;
  font-size: 16px;
  border-radius: 4px;
  /* user cannot select text on the button */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-decoration: none;
  letter-spacing: 0px; /* addition */
  color: #950;
  background-color: rgb(255, 250, 210);
  border: 1px solid #fff7c3;
  height: 42px;
  line-height: 27px;
  min-width: 42px;
  transition-property: background-color, border-color;
  transition: 0.3s ease-in;
}

.bhff-btn:active,
.bhff-btn:focus {
  color: #fffafa;
  background-color: #f73 !important;
  border-color: #f73;
}

.bhff-btn:hover {
  color: #fff;
  background-color: #d93;
  border-color: #d93;
}

.bhff-btn-group {
  display: inline-block;
}

.bhff-nav-toolbar .bhff-btn-group .bhff-btn {
  margin: 0;
  border-radius: 0;
  border-left-width: 0;
}

.bhff-nav-toolbar .bhff-btn-group .bhff-btn:first-child {
  margin-left: 4px;
  border-radius: 4px 0 0 4px;
  border-left-width: 1px;
}

.bhff-nav-toolbar .bhff-btn-group .bhff-btn:last-child {
  margin-right: 4px;
  border-radius: 0 4px 4px 0;
}

.wow-video-banner {
  padding: 0px 10% 50px 10%;
}

.wow-video-banner video {
  width: 720px;
  max-width: 100%;
}

.clearfix {
  content: "";
  display: table;
  clear: both;
}

.bhff-blinking-on-copied {
  animation: 1.7s ease 0s 1 forwards bhff-blinking-on-copied;
}

@keyframes bhff-blinking-on-copied {
  0% { opacity: 1; }
  40% { opacity: 0.3; }
  100% { opacity: 1; }
}
