/*reset css*/
/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
    /*h1,*/
    /*h2,*/
    /*h3,*/
    /*h4,*/
    /*h5,*/
    /*h6,*/
    /*p,*/
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 5px;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/*end reset css*/

body,
html {
  height: 100%;
}

html {
  overflow-x: hidden;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 600px) {
  html {
    font-size: 14px;
  }
}

html,
html a,
body {
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Noto Sans CJK TC Regular", "Microsoft JhengHei", sans-serif;
  line-height: 2em;
  color: rgb(147, 147, 147);
}

::selection {
  background: #2fd3a1;
  color: #2d4aa9;
}

::-moz-selection {
  background: #2fd3a1;
  color: #2d4aa9;
}

img::selection {
  background: transparent;
}

img::-moz-selection {
  background: transparent;
}

a {
  color: #2d4aa9;
}

a:hover {
  color: #2fd3a1;
  text-decoration: none;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  font-family: "Noto Sans CJK TC Regular", "Microsoft JhengHei", sans-serif;
}

h1 {
  font-weight: 700;
  font-size: 1.5em;
  line-height: 1.2em;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #2d4aa9;
}

h2 {
  font-size: 1.2em;
  color: rgba(34, 34, 34, 0.639);
  display: block;
  margin-top: 1em;
  margin-bottom: 0.3em;
}

h4,
h5,
h6 {
  font-weight: 600;
  font-family: "Noto Sans CJK TC Regular", "Microsoft JhengHei", sans-serif;
  line-height: 1.2em;
  color: #2d4aa9;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

p {
  font-weight: 300;
  color: rgb(147, 147, 147);
}

/* btn */

.btn {
  border: 0px;
  border-radius: 30px;
  color: #2d4aa9;
  background-color: #fbd872;
  margin: 1em;
}

.btn-secondary {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #2d4aa9;
  background-color: #f3f5ee;
  margin: 1em;
  padding: 10px;
}

.btn-disabled {
  color: #686868;
  background-color: #f3f5ee;
}

.btn:hover {
  transition-duration: 200ms;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.15, 0.96, 0.65, 0.94);
  transform: scale(1.1, 1.1);
}

button:focus {
  outline: none;
}

/* navbar */

.navbar {
  background-color: #fff;
}

.navbar-brand {
  padding-bottom: 0rem;
}

.navbar-brand img {
  width: 50px;
}

@media (max-width: 360px) {
  .navbar-brand {
    margin-right: 0rem;
  }

  .navbar-brand img {
    width: 40px;
  }
}

.navbar-nav .nav-item .dd {
  color: #2d4aa9;
  background-color: #f3f5ee;
  border-radius: 30px;
}

@media (max-width: 1024px) {
  .navbar-nav .nav-link {
    padding-left: 2em;
  }
}

/*.navbar-light .navbar-nav .nav-link {*/
/*color: #2d4aa9;*/
/*}*/

.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
  color: #2d4aa9;
}

.navbar-light .navbar-nav .active > .nav-link {
  color: rgba(0, 0, 0, 0.5);
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-toggler {
  border-color: transparent;
}

.background {
  position: fixed;
  z-index: -1;
}

.hero-image {
  text-align: center;
}

.hero-image p {
  color: #686868;
}

@media screen and (max-width: 767px) {
  .hero-image img {
    width: 50%;
  }
}

/*for-responsive-image*/
.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

/*分隔線*/
.divider {
  border-bottom: 0.5px solid #acdeef;
}

.card-bg {
  background-color: #fff;
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  -webkit-box-shadow: 0px 30px 31px -11px rgba(135, 135, 135, 0.5);
  -moz-box-shadow: 0px 30px 31px -11px rgba(135, 135, 135, 0.5);
  box-shadow: 0px 30px 31px -11px rgba(135, 135, 135, 0.5);
}

/*hover動畫*/

.hover-effect {
  vertical-align: middle;
  display: inline-block;
  -webkit-transform: perspective(2px) translateZ(0);
  transform: perspective(2px) translateZ(0);
}

.hover-effect:hover,
.hover-effect:focus {
  -webkit-animation-name: hover-effect-flying, hover-effect;
  animation-name: hover-effect-flying, hover-effect;
  -webkit-animation-duration: 0.4s, 1.2s;
  animation-duration: 0.4s, 1.2s;
  -webkit-animation-delay: 0s, 0.4s;
  animation-delay: 0s, 0.4s;
  -webkit-animation-timing-function: cubic-bezier(0.17, 0.67, 0.83, 0.67);
  animation-timing-function: cubic-bezier(0.17, 0.67, 0.83, 0.67);
  -webkit-animation-direction: normal, alternate;
  animation-direction: normal, alternate;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  -webkit-animation-iteration-count: 1, infinite;
  animation-iteration-count: 1, infinite;
}

@-webkit-keyframes hover-effect {
  0% {
    -webkit-transform: translateY(-7px);
    transform: translateY(-7px);
  }
  51% {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
  }
  100% {
    -webkit-transform: translateY(-7px);
    transform: translateY(-7px);
  }
}

@keyframes hover-effect {
  0% {
    -webkit-transform: translateY(-7px);
    transform: translateY(-7px);
  }
  51% {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
  }
  100% {
    -webkit-transform: translateY(-7px);
    transform: translateY(-7px);
  }
}

@-webkit-keyframes hover-effect-flying {
  100% {
    -webkit-transform: translateY(-7px);
    transform: translateY(-7px);
  }
}

@keyframes hover-effect-flying {
  100% {
    -webkit-transform: translateY(-7px);
    transform: translateY(-7px);
  }
}

/*tabbars*/

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #f3f5ee;
  background-color: #2d4aa9;
  border-radius: 30px;
}

.nav-fill .nav-item {
  flex: 0 0 auto;
}

.nav-pills a {
  font-size: 18px;
}

/*brakets*/

.brakets-l {
  position: absolute;
  left: 40px;
  height: 80px;
  width: auto;
}

.brakets-r {
  position: absolute;
  right: 40px;
  height: 80px;
  width: auto;
}

@media screen and (max-width: 576px) {
  .nav-pills a {
    font-size: 17px;
  }

  .brakets-l {
    left: -10px;
    height: 100px;
    margin-top: 30px;
    margin-right: 10px;
  }

  .brakets-r {
    right: -10px;
    height: 100px;
    margin-top: 30px;
    margin-left: 10px;
  }
}

@media screen and (max-width: 320px) {
  .brakets-l {
    left: -28px;
  }

  .brakets-r {
    right: -28px;
  }
}

@media screen and (min-width: 1025px) {
  .brakets-l {
    left: 10%;
  }

  .brakets-r {
    right: 10%;
  }
}

/*video container*/

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.watermark {
  opacity: 0.3;
  width: 36%;
  position: absolute;
  left: -50px;
  top: -50px;
  rotation: 30deg;
  transform: rotate(5deg);
}

@media screen and (max-width: 767px) {
  .watermark {
    width: 55%;
    left: -40px;
    top: -40px;
  }
}

/*timeline*/
.main-timeline {
  overflow: hidden;
  position: relative;
}

.main-timeline:before {
  content: "";
  width: 7px;
  height: 100%;
  background: #909090;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.main-timeline .timeline {
  width: 50%;
  padding-left: 50px;
  float: right;
  position: relative;
}

.main-timeline .timeline:before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #909090;
  border: 7px solid #fff;
  position: absolute;
  top: 50%;
  left: -15px;
  transform: translateY(-50%);
}

.main-timeline .timeline:after {
  content: "";
  display: block;
  border-right: 30px solid #3d5a80;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  position: absolute;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
}

.main-timeline .timeline-content {
  display: block;
  padding: 15px;
  border-radius: 20px;
  background: #3d5a80;
  position: relative;
  margin-bottom: 40px;
  -webkit-box-shadow: 0px 10px 31px -11px rgba(135, 135, 135, 1);
  -moz-box-shadow: 0px 10px 31px -11px rgba(135, 135, 135, 1);
  box-shadow: 0px 10px 31px -11px rgba(135, 135, 135, 1);
}

.main-timeline .timeline-content:before,
.main-timeline .timeline-content:after {
  content: "";
  display: block;
  width: 100%;
  clear: both;
}

.main-timeline .timeline-content:hover {
  text-decoration: none;
}

.main-timeline .inner-content {
  width: 100%;
  float: right;
  padding: 15px;
  background: #fff;
  border-radius: 20px;
  color: #3d5a80;
}

.main-timeline .year {
  display: inline-block;
  font-size: 50px;
  font-weight: 600;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 7%;
  -webkit-writing-mode: vertical-lr;
  writing-mode: vertical-lr;
  transform: translateY(-50%);
}

.main-timeline .title {
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 5px 0;
}

.main-timeline .description {
  font-size: 14px;
  margin: 0 0 5px 0;
}

.main-timeline .timeline:nth-child(2n) {
  padding: 0 50px 0 0;
}

.main-timeline .timeline:nth-child(2n):before,
.main-timeline .timeline:nth-child(2n) .year {
  left: auto;
  right: -15px;
}

.main-timeline .timeline:nth-child(2n) .year {
  right: 1%;
}

.main-timeline .timeline:nth-child(2n):after {
  border-right: none;
  border-left: 30px solid #3d5a80;
  left: auto;
  right: 24px;
}

.main-timeline .timeline:nth-child(2n) .inner-content {
  float: none;
  border-radius: 20px;
  text-align: left;
}

.main-timeline .timeline:nth-child(2) {
  margin-top: 130px;
}

.main-timeline .timeline:nth-child(odd) {
  margin: -130px 0 0 0;
}

.main-timeline .timeline:nth-child(even) {
  margin-bottom: 80px;
}

.main-timeline .timeline:first-child,
.main-timeline .timeline:last-child:nth-child(even) {
  margin: 0;
}

.main-timeline .timeline:nth-child(2n) .timeline-content {
  background: #3d5a80;
}

.main-timeline .timeline:nth-child(2n),
.main-timeline .timeline:nth-child(2n) .inner-content {
  color: #3d5a80;
}

.main-timeline .timeline:nth-child(2n):after {
  border-left-color: #3d5a80;
}

.main-timeline .timeline:nth-child(3n) .timeline-content {
  background: #3d5a80;
}

.main-timeline .timeline:nth-child(3n),
.main-timeline .timeline:nth-child(3n) .inner-content {
  color: #3d5a80;
}

.main-timeline .timeline:nth-child(3n):after {
  border-right-color: #3d5a80;
}

.main-timeline .timeline:nth-child(4n) .timeline-content {
  background: #3d5a80;
}

.main-timeline .timeline:nth-child(4n),
.main-timeline .timeline:nth-child(4n) .inner-content {
  color: #3d5a80;
}

.main-timeline .timeline:nth-child(4n):after {
  border-left-color: #3d5a80;
}

.main-timeline .timeline:nth-child(5n) .timeline-content {
  background: #3d5a80;
}

.main-timeline .timeline:nth-child(5n),
.main-timeline .timeline:nth-child(5n) .inner-content {
  color: #3d5a80;
}

.main-timeline .timeline:nth-child(5n):after {
  border-right-color: #3d5a80;
}

@media only screen and (max-width: 1200px) {
  .main-timeline .inner-content {
    width: 100%;
  }

  .main-timeline .year {
    font-size: 45px;
    left: 10px;
    -webkit-writing-mode: vertical-lr;
    writing-mode: vertical-lr;
    transform: translateY(-50%) rotate(-90deg);
  }

  .main-timeline .timeline:nth-child(2n) .year {
    right: 10px;
  }
}

@media only screen and (max-width: 990px) {
  .main-timeline .year {
    font-size: 40px;
    left: 0;
    -webkit-writing-mode: vertical-lr;
    writing-mode: vertical-lr;
  }

  .main-timeline .timeline:nth-child(2n) .year {
    right: 0;
  }
}

@media only screen and (max-width: 767px) {
  .main-timeline:before,
  .main-timeline .timeline:before {
    left: 10px;
    transform: translateX(0);
  }

  .main-timeline .timeline:nth-child(2n):after {
    border-left: none;
    border-right: 30px solid #3d5a80;
    right: auto;
    left: 24px;
  }

  .main-timeline .timeline,
  .main-timeline .timeline:nth-child(even),
  .main-timeline .timeline:nth-child(odd) {
    width: 100%;
    float: none;
    margin: 0 0 30px 0;
  }

  .main-timeline .timeline:last-child {
    margin-bottom: 0;
  }

  .main-timeline .timeline:nth-child(2n) {
    padding: 0 0 0 50px;
  }

  .main-timeline .timeline:before,
  .main-timeline .timeline:nth-child(2n):before {
    left: -2px;
  }

  .main-timeline .inner-content {
    width: 100%;
  }

  .main-timeline .timeline:nth-child(2n) .inner-content {
    float: right;
    border-radius: 20px;
    text-align: left;
  }

  .main-timeline .timeline:nth-child(2n) .year {
    right: auto;
    left: 0;
  }

  .main-timeline .timeline:nth-child(2n):after {
    border-right-color: #3ba99c;
  }

  .main-timeline .timeline:nth-child(3n):after {
    border-left-color: #69d1c5;
  }

  .main-timeline .timeline:nth-child(4n):after {
    border-right-color: #7ebce6;
  }

  .main-timeline .timeline:nth-child(5n):after {
    border-left-color: #8980f5;
  }
}

@media only screen and (min-width: 768px) {
  .main-timeline .timeline:nth-child(2n) .inner-content {
    padding-left: 20px;
  }
}

@media only screen and (max-width: 479px) {
  .main-timeline .timeline-content {
    padding: 15px;
  }

  .main-timeline .inner-content {
    width: 100%;
  }

  .main-timeline .year {
    font-size: 30px;
    -webkit-writing-mode: vertical-lr;
    writing-mode: vertical-lr;
  }
}

/*footer & brands*/

.brands {
  background-color: #fff;
  height: auto;
  width: 100%;
  padding: 80px 20px 40px 20px;
  -webkit-box-shadow: 0px -16px 30px -24px rgba(117, 117, 117, 1);
  -moz-box-shadow: 0px -16px 30px -24px rgba(117, 117, 117, 1);
  box-shadow: 0px -16px 30px -24px rgba(117, 117, 117, 1);
}

.brands-pic {
  width: auto;
  height: 48px;
}

.brands-pic-square {
  width: auto;
  height: 80px;
}

.brands-pic,
.brands-pic-square {
  filter: grayscale(1);
}

footer {
  position: relative;
  background-color: #00275a;
  height: auto;
  width: 100%;
  padding: 48px 0px 20px 0px;
}

footer .row {
  margin: 30px 30px 10px 30px;
}

footer h4 {
  border-left: solid 8px #2fd3a1;
  color: #fff;
  margin-left: 12px;
  padding-left: 8px;
  margin-bottom: 20px;
}

footer p,
footer a {
  color: rgba(255, 255, 255, 0.7);
  line-height: 40px;
  text-decoration: none;
}

@media screen and (max-width: 767px) {
  .brands {
    padding: 40px 10px 30px 10px;
  }

  .brands-pic {
    width: auto;
    height: 30px;
  }

  .brands-pic-square {
    width: auto;
    height: 50px;
  }
}

.triangle {
  position: absolute;
  top: 0px;
  left: 50px;
}
