@charset "UTF-8";
@import url('https://fonts.googleapis.com/earlyaccess/cwtexyen.css');
@import url('https://fonts.googleapis.com/css?family=Noto+Sans+TC:300,400');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');
#btn-back-to-top {
  position: fixed;
  z-index: 9999;
  bottom: 20px;
  right: 20px;
  display: none;
}
.modal-menu {
  position: absolute;
    margin: -6% 0 2% 0 !important;
    margin-bottom: 2% !important;
    width: 70%;
    left: 15%;
}

.close-modal {}

.result-rank {
  font-size: 24px;
  font-size: 1.5rem;
}

.result-sec {
  font-size: 1.5em;
  color: #d3405e;
}

.award {
  margin-top: 75%;
}

.button-style-2 {
  align-items: center;
  background-color: initial;
  background-color: #B3D144;
  background-image: radial-gradient(93% 87% at 87% 89%, rgba(179, 209, 68, 1) 0%, transparent 86.18%), radial-gradient(66% 66% at 26% 20%, rgba(170, 208, 101, 1) 0%, rgba(71, 155, 55, 1) 69.79%, rgba(45, 126, 58, 1) 100%);
  border-radius: 42px;
  border-width: 0;
  box-shadow: rgba(545, 126, 58, 0.24) 0 2px 2px, rgba(71, 155, 55, 0.6) 0 8px 12px;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  font-family: Quicksand, sans-serif;
  font-size: 28px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: .04em;
  line-height: 16px;
  margin: 0;
  padding: 18px 28px;
  text-align: center;
  text-decoration: none;
  text-shadow: rgba(255, 255, 255, 0.4) 0 0 4px, rgba(255, 255, 255, 0.2) 0 0 12px, rgba(71, 155, 55, 0.6) 1px 1px 4px, rgba(45, 126, 58, 1) 4px 4px 16px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
}

.button-style:hover {
  background-image: linear-gradient(#B3D144, #479B37 50%);
}

.button-award {
  align-items: center;
  background-color: initial;
  background-color: #f08a88;
  background-image: radial-gradient(93% 87% at 87% 89%, rgba(245, 211, 155, 1) 0%, transparent 86.18%), radial-gradient(66% 66% at 26% 20%, rgba(240, 138, 136, 1) 0%, rgba(240, 138, 136, 1) 69.79%, rgba(240, 138, 136, 1) 100%);
  border-radius: 42px;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  font-family: Quicksand, sans-serif;
  font-size: 28px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: .04em;
  line-height: 16px;
  margin: 0;
  padding: 18px 28px;
  text-align: center;
  text-decoration: none;
  text-shadow: rgba(255, 255, 255, 0.4) 0 0 4px, rgba(255, 255, 255, 0.2) 0 0 12px, rgba(240, 138, 136, 1) 1px 1px 4px, rgba(240, 138, 136, 1) 4px 4px 16px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
}

.button-award:hover {
  background-color: #f08a88;
  background-image: linear-gradient(93% 87% at 87% 89%, rgba(245, 211, 155, 1) 0%, transparent 86.18%), radial-gradient(66% 66% at 26% 20%, rgba(240, 138, 136, 1) 0%, rgba(240, 138, 136, 1) 69.79%, rgba(240, 138, 136, 1) 100%);
}

.game {
  transform-style: preserve-3d;
  perspective: 500px;
  min-height: 100%;
  height: 100%;
}

@-webkit-keyframes matchAnim {
  0% {
    background: #bcffcc;
  }

  100% {
    background: white;
  }
}

@keyframes matchAnim {
  0% {
    background: #bcffcc;
  }

  100% {
    background: white;
  }
}

.memorycard {
  float: left;
  width: 20%;
  height: 120px;
  padding: 5px;
  text-align: center;
  display: block;
  perspective: 500px;
  position: relative;
  cursor: pointer;
  z-index: 50;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

@media (min-width: 768px) {
  .memorycard {
    height: 150px;
  }

  .award {
    margin-top: 30%;
  }

  .result-sec {
    font-size: 2em;
    color: #d3405e;
  }

  .gamemodal .restart1 {
    padding: 10px 10px;
    display: block;
    width: 45%;
  }
}

@media (min-width: 992px) {
  .memorycard {
    height: 240px;
    padding-bottom: 2%;
  }

  .award {
    margin-top: 20%;
  }

  .result-sec {
    font-size: 2em;
    color: #d3405e;
  }
}

.memorycard .inside {
  width: 100%;
  height: 100%;
  display: block;
  transform-style: preserve-3d;
  transition: 0.4s ease-in-out;
  background: white;
  border-radius: 50%;

}

.memorycard .inside.picked,
.memorycard .inside.matched {
  transform: rotateY(180deg);
}

.memorycard .inside.matched {
  -webkit-animation: 1s matchAnim ease-in-out;
  animation: 1s matchAnim ease-in-out;
  -webkit-animation-delay: 0.4s;
  animation-delay: 0.4s;
}

.memorycard .front,
.memorycard .back {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  backface-visibility: hidden;
  transition: transform 0.6s;
}

.memorycard .front img,
.memorycard .back img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  max-height: 100%;
}

.memorycard .front {
  transform: rotateY(-180deg);
}

@media (max-width: 800px) {
  .memorycard .front {
    padding: 0px;
  }
}

.memorycard .back {
  transform: rotateX(0);
}

@media (max-width: 800px) {
  .memorycard .back {
    padding: 0;
  }
}

.gamemodal-overlay {
  display: none;
  background: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.gamemodal {
  display: none;
  position: relative;
  width: 90vw;
  height: 80vh;
  max-height: 90%;
  max-width: 90%;
  min-height: 380px;
  margin: 0 auto;
  background: white;
  top: 50%;
  transform: translateY(-50%);
  padding: 4% 2%;
  ;
  background-color: #d3405e;
  background-repeat: no-repeat;
  background-image: url(../img/modal_bg.jpg);
  background-size: 100% auto;
  overflow: auto;
}

.gamemodal .winner {
  font-size: 40px;
  text-align: center;
  font-family: "Noto", sans-serif;
  color: #d3405e;
  /* text-shadow: 0px 3px 0 black; */
}

.gamemodal .restart {
  position: absolute;
  z-index: 9;
  top: 0;
  right: 0;
  scale: 2;
  padding: 1%;
  border: #fff solid 2px;
  filter: drop-shadow(0 0 0.75rem crimson);
}

.gamemodal .restart1 {
  font-family: "Noto", sans-serif;
  margin: 30px auto;
  padding: 10px;
  display: inline;
  font-size: 0.9rem;
  border: none;
  background: #F6F29D;
  background: linear-gradient(#F6F29D, #f6ee5a 50%);
  border: 2px solid #EE8886;
  border-radius: 25px;
  color: white;
  text-shadow: 0px 1px 0 #EE8886;
  cursor: pointer;
}

.gamemodal .restart1:hover {
  background: linear-gradient(#222, black);
}

@media (min-width: 992px) {
  .gamemodal {
    width: 50vw;
    height: 80vh;
    max-height: 90%;
    max-width: 90%;
    min-height: auto;
  }

  .gamemodal .winner {
    font-size: 60px;
  }

  .result-rank {
    font-size: 32px;
    font-size: 2rem;
  }

  .gamemodal .restart1 {
    padding: 10px;
    display: block;
    width: 45%;
  }
}

.gamemodal .message {
  text-align: center;
}

.gamemodal .message a {
  text-decoration: none;
  color: #28afe6;
  font-weight: bold;
}

.gamemodal .message a:hover {
  color: #56c0eb;
  border-bottom: 1px dotted #56c0eb;
}

.gamemodal .share-text {
  text-align: center;
  margin: 10px auto;
}

.gamemodal .social {
  margin: 20px auto;
  text-align: center;
  padding-left: unset
}

.gamemodal .social li {
  display: inline-block;
  height: 50px;
  width: 50px;
  margin-right: 10px;
}

.gamemodal .social li:last-child {
  margin-right: 0;
}

.gamemodal .social li a {
  display: block;
  line-height: 50px;
  font-size: 20px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.gamemodal .social li a.facebook {
  background: #3b5998;
}

.gamemodal .social li a.facebook:hover {
  background: #4c70ba;
}

.gamemodal .social li a.google {
  background: #D34836;
}

.gamemodal .social li a.google:hover {
  background: #dc6e60;
}

.gamemodal .social li a.twitter {
  background: #4099FF;
}

.gamemodal .social li a.twitter:hover {
  background: #73b4ff;
}

footer {
  height: auto;
  position: relative;
  bottom: 0;
  width: 100%;
  z-index: 9999;
}

footer .disclaimer {
  line-height: 20px;
  font-size: 12px;
  color: #727272;
  text-align: center;
}

@media (max-width: 767px) {
  footer .disclaimer {
    font-size: 8px;
  }
}

.section-bg-a {
  background-color: #ffffff;
}

.section-bg-b {
  background-color: #f8f8d0;
}

.section-bg-c {
  background-color: #9fc559;
  background-repeat: no-repeat;
  background-image: url(../img/mobile/video-bg.jpg);
  background-size: 100% 100%;
}

.bg-theme {
  background-color: #d3405e;
}

.button-style {
  align-items: center;
  background-color: initial;
  background-color: #B3D144;
  background-image: radial-gradient(93% 87% at 87% 89%, rgba(179, 209, 68, 1) 0%, transparent 86.18%), radial-gradient(66% 66% at 26% 20%, rgba(170, 208, 101, 1) 0%, rgba(71, 155, 55, 1) 69.79%, rgba(45, 126, 58, 1) 100%);
  border-radius: 42px;
  border-width: 0;
  box-shadow: rgba(545, 126, 58, 0.24) 0 2px 2px, rgba(71, 155, 55, 0.6) 0 8px 12px;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  font-family: Quicksand, sans-serif;
  font-size: 28px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: .04em;
  line-height: 16px;
  margin: 0;
  padding: 18px 28px;
  text-align: center;
  text-decoration: none;
  text-shadow: rgba(255, 255, 255, 0.4) 0 0 4px, rgba(255, 255, 255, 0.2) 0 0 12px, rgba(71, 155, 55, 0.6) 1px 1px 4px, rgba(45, 126, 58, 1) 4px 4px 16px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
}

.button-style:hover {
  background-image: linear-gradient(#B3D144, #479B37 50%);
}

.match-tag {
  position: absolute;
  z-index: 999;
  top: -20%;
  align-items: center;
  background-color: initial;
  background-color: #B3D144;
  background-image: radial-gradient(93% 87% at 87% 89%, rgba(179, 209, 68, 1) 0%, transparent 86.18%), radial-gradient(66% 66% at 26% 20%, rgba(170, 208, 101, 1) 0%, rgba(71, 155, 55, 1) 69.79%, rgba(45, 126, 58, 1) 100%);
  border-radius: 42px;
  border-width: 0;
  color: #FFFFFF;
  cursor: none;
  display: flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: .04em;
  line-height: 1.5;
  margin: 0;
  padding: 5px 28px;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
}

.match-tag:after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 0;
  border: 20px solid transparent;
  border-bottom-color: #479B37;
  border-top: 0;
  border-left: 0;
  margin-left: -10px;
  margin-top: -20px;
}

.match-board {
  position: absolute;
  z-index: 99;
  border-radius: 80px;
  border: #479B37 solid 5px;
  padding: 10px;
  height: auto;
  width: 100%;
  margin: 10% auto 0 auto;
}

/* iPad Mini in portrait & landscape */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
  .button-72 {
    font-size: 21px;
    padding: 18px 34px;
  }

  .match-board {
    border-radius: 80px;
    padding: 20px;
    height: 120px;
    margin: 10% auto 0 auto;
/*     -webkit-transform: translateY(280%);
    -moz-transform: translateY(280%);
    -ms-transform: translateY(280%);
    -o-transform: translateY(280%);
    transform: translateY(280%); */
  }
}

.section-title {
  position: relative;
  text-align: center;
  top: -0%;
  width: 90%;
  left: 5%;
  z-index: 1;
}

.section-logo {
  position: absolute;
  top: 70%;
  width: 60%;
  left: 20%;
  z-index: 1;
}

@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
  .section-logo {
    position: absolute;
    top: 100%;
    width: 50%;
    left: 30%;
    z-index: 1;
  }
}

@media (min-width: 992px) {
  .section-title {
    position: relative;
    text-align: center;
    top: -0%;
      width: 70%;
      left: 15%;
    z-index: 1;
  }
  .section-bg-c {
    background-color: #9fc559;
    background-repeat: no-repeat;
    background-image: url(../img/video-bg.jpg);
    background-size: 100% auto;
  }

  .match-tag {
    top: -20%;
    border-radius: 42px;
    border-width: 0;
    font-size: 20px;
    justify-content: center;
    letter-spacing: .04em;
    line-height: 16px;
    padding: 18px 28px;
  }

  .match-board {
    border-radius: 80px;
    padding: 20px;
    width: 100%;
    height: 120px;
    margin: 5% auto 0 auto;
/*     -webkit-transform: translateY(280%);
    -moz-transform: translateY(280%);
    -ms-transform: translateY(280%);
    -o-transform: translateY(280%);
    transform: translateY(280%); */
  }

  .section-logo {
    top: 60%;
width: 70%;
        left: 20%;
    z-index: 1;
  }
}

.game-area {
  margin-top: 5%;
}

.vision-area {
  margin-top: 0%;
}

.youtube-area {
  margin-top: 0%;
}

@media (min-width: 992px) {
  .game-area {
    margin-top: 5%;
  }

  .vision-area {
    margin-top: 5%;
  }

  .youtube-area {
    margin-top: 2%;
  }
}

.text-copy {
  color: #d3405e;
}

.drop-shadow {
  filter: drop-shadow(5px 5px 4px rgba(73, 44, 15, 0.5));
}

.ntpc-live {
  width: 95%;
  padding: 0.5rem;
  align-self: center;
}

@media (min-width: 992px) {
  .ntpc-live {
    width: 50%;
    position: relative;
  }
}

@media only screen and (min-width: 1200px) {
  .ntpc-live {
    width: 50%;
    position: relative;
  }
}

.sub-title {
  border: #ffffff solid 2px;
  border-radius: 25px;
  padding: 10px;
}

/* -------------------------------- 

Primary style

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

body {
  font-size: 100%;
  font-family: "Noto Sans", sans-serif;
  color: #030d18;
  background-color: #f0eee1;
}

a {
  color: #f5484a;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* -------------------------------- 

Modules - reusable parts of our design

-------------------------------- */
.cd-container {
  /* this class is used to give a max-width to the element it is applied to, and center it horizontally when it reaches that max-width */
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 0;
}

.cd-container-video {
  /* this class is used to give a max-width to the element it is applied to, and center it horizontally when it reaches that max-width */
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 5%;
}

.cd-container-game {
  /* this class is used to give a max-width to the element it is applied to, and center it horizontally when it reaches that max-width */
  max-width: 1280px;
  margin: 0 auto;
}

.cd-container:after {
  content: "";
  display: table;
  clear: both;
}

@media only screen and (min-width: 1170px) {

  .cd-container,
  .cd-container-video {
    /* this class is used to give a max-width to the element it is applied to, and center it horizontally when it reaches that max-width */
    max-width: 1280px;
    margin: 0 auto;
    height: unset;
  }
}

.has-top-margin {
  /* this class is given - using jQuery - to the .cd-main-content following the .cd-secondary-nav when it becomes fixed */
}

@media only screen and (min-width: 1170px) {
  .has-top-margin {
    -webkit-animation: animate-margin-top 0.3s;
    -moz-animation: animate-margin-top 0.3s;
    animation: animate-margin-top 0.3s;
    margin-top: 70px;
  }
}

@-webkit-keyframes animate-margin-top {
  0% {
    margin-top: 100px;
  }

  100% {
    margin-top: 70px;
  }
}

@-moz-keyframes animate-margin-top {
  0% {
    margin-top: 100px;
  }

  100% {
    margin-top: 70px;
  }
}

@keyframes animate-margin-top {
  0% {
    margin-top: 100px;
  }

  100% {
    margin-top: 70px;
  }
}

/* -------------------------------- 

Navigation

-------------------------------- */
.cd-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  background-color: #ffffff;
  z-index: 3;
}

@media only screen and (min-width: 768px) {
  .cd-header {
    height: 70px;
    background-color: transparent;
    box-shadow: none;
  }

}

#cd-logo {
  float: left;
  margin: 13px 0 0 5%;
  width: 50%;
}
#cd-logo-teach {
  position: relative;
  width: 90%;
  left: 5%;
}

#cd-logo img {
  display: block;
}

@media only screen and (min-width: 768px) {
  #cd-logo {
    margin: 23px 0 0 5%;
    width: 33.3%;
  }
  #cd-logo-teach {
    margin: 0;
    width: 23.3%;
    left: 0;
  }
}

@media only screen and (min-width: 1170px) {
  #cd-logo.is-hidden {
    /* assign a position fixed and move outside the viewport (on the left) */
    opacity: 0;
    position: fixed;
    left: -20%;
    margin-left: 0;
    -webkit-transition: left 0.3s, opacity 0.3s;
    -moz-transition: left 0.3s, opacity 0.3s;
    transition: left 0.3s, opacity 0.3s;
  }

  #cd-logo.is-hidden.slide-in {
    /* slide in when the secondary navigation gets fixed */
    left: 5%;
    opacity: 0;
  }
}

.cd-primary-nav {
  /* mobile first - navigation hidden by default, triggered by tap/click on navigation icon */
  float: right;
  margin-right: 0;
  width: 44px;
  height: 100%;
  background: url("../img/cd-icon-menu.svg") no-repeat center center;
  background-size: 44px 44px;
  background-color: #d3405e;
}

.cd-primary-nav ul {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-left: unset;
  -webkit-transform: translateY(-100%);
  -moz-transform: translateY(-100%);
  -ms-transform: translateY(-100%);
  -o-transform: translateY(-100%);
  transform: translateY(-100%);
}

.cd-primary-nav ul.is-visible {
  -webkit-transform: translateY(50px);
  -moz-transform: translateY(50px);
  -ms-transform: translateY(50px);
  -o-transform: translateY(50px);
  transform: translateY(50px);
}

.cd-primary-nav a {
  display: block;
  height: 50px;
  line-height: 50px;
  padding-left: 5%;
  background: #d3405e;
  border-top: 1px solid #d3405e;
  color: #f0eee1;
  text-decoration: none;
}

/* iPad Mini in portrait & landscape */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
  .cd-primary-nav {
    /* reset navigation values */
    width: 50%;
    height: auto;
    background: none;
  }

  .cd-primary-nav ul {
    position: static;
    width: auto;
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
  /*   line-height: 70px; */
  }

  .cd-primary-nav ul.is-visible {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
  }

  .cd-primary-nav li {
    display: inline-block;
    margin-left: 0.3em;
    width: 30.3%;
    background-color: #f08a88;
    background-image: radial-gradient(93% 87% at 87% 89%, rgba(245, 211, 155, 1) 0%, transparent 86.18%), radial-gradient(66% 66% at 26% 20%, rgba(240, 138, 136, 1) 0%, rgba(240, 138, 136, 1) 69.79%, rgba(240, 138, 136, 1) 100%);
  }

  .cd-primary-nav a {
    display: inline-block;
    height: auto;
    line-height: normal;
    font-size: 0.8rem;
    background: transparent;
    padding: .6em 1em;
    border-top: none;
    color: #030d18;
  }
}

@media only screen and (min-width: 992px) {
  .cd-primary-nav {
    /* reset navigation values */
    width: 50%;
    height: auto;
    background: none;
  }

  .cd-primary-nav ul {
    position: static;
    width: auto;
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
    /* line-height: 70px; */
  }

  .cd-primary-nav ul.is-visible {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
  }

  .cd-primary-nav li {
    display: inline-block;
    margin-left: 0.3em;
    width: 30.3%;
    background-color: #f08a88;
    background-image: radial-gradient(93% 87% at 87% 89%, rgba(245, 211, 155, 1) 0%, transparent 86.18%), radial-gradient(66% 66% at 26% 20%, rgba(240, 138, 136, 1) 0%, rgba(240, 138, 136, 1) 69.79%, rgba(240, 138, 136, 1) 100%);
  }

  .cd-primary-nav a {
    display: inline-block;
    height: auto;
    line-height: normal;
    background: transparent;
    padding: .6em 1em;
    border-top: none;
    color: #030d18;
  }
}

/* -------------------------------- 

Intro

-------------------------------- */
#cd-intro {
  position: relative;
  height: 300px;
  background: url(../img/landing_bg.jpg) no-repeat center center;
  background-size: cover;
  z-index: 2;
}

#cd-intro #cd-intro-tagline {
  width: 90%;
  max-width: 1170px;
  margin: 0 auto;
  text-align: center;
  padding-top: 120px;
}

#cd-intro h1 {
  font-size: 24px;
  font-size: 1.5rem;
  font-weight: 300;
  color: #030d18;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media only screen and (min-width: 768px) {
  #cd-intro {
    height: 400px;
  }

  #cd-intro #cd-intro-tagline {
    padding-top: 160px;
  }

  #cd-intro h1 {
    font-size: 32px;
    font-size: 2rem;
  }
}

@media only screen and (min-width: 1170px) {
  #cd-intro {
    height: 600px;
  }

  #cd-intro #cd-intro-tagline {
    padding-top: 250px;
  }
}

.cd-btn {
  display: inline-block;
  padding: 1em 1.8em;
  background-color: rgba(245, 72, 74, 0.9);
  margin-top: 1em;
  border-radius: 20em;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: white;
}

.no-touch .cd-btn:hover {
  background-color: #f5484a;
}

@media only screen and (min-width: 1170px) {
  .cd-btn.is-hidden {
    /* assign a position fixed and move outside the viewport (on the right) */
    opacity: 0;
    position: fixed;
    right: -20%;
    top: 0;
    padding: .8em 1.2em;
    margin: 14px 0 0;
    -webkit-transition: right 0.3s, opacity 0.3s;
    -moz-transition: right 0.3s, opacity 0.3s;
    transition: right 0.3s, opacity 0.3s;
  }

  .cd-btn.is-hidden.slide-in {
    /* slide in when the secondary nav gets fixed */
    right: 5%;
    opacity: 1;
  }
}

/* -------------------------------- 

Secondary Fixed Navigation

-------------------------------- */
.cd-secondary-nav {
  position: relative;
  z-index: 3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cd-secondary-nav ul {
  /* mobile first - secondary navigation hidden by default, triggered by tap/click on .cd-secondary-nav-trigger*/
  position: fixed;
  width: 90%;
  max-width: 400px;
  right: 5%;
  bottom: 20px;
  border-radius: 0.25em;
  background: rgba(3, 13, 24, 0.96);
  visibility: hidden;
  z-index: 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  -ms-transform: scale(0);
  -o-transform: scale(0);
  transform: scale(0);
  -webkit-transform-origin: 100% 100%;
  -moz-transform-origin: 100% 100%;
  -ms-transform-origin: 100% 100%;
  -o-transform-origin: 100% 100%;
  transform-origin: 100% 100%;
  -webkit-transition: -webkit-transform 0.3s, visibility 0s 0.3s;
  -moz-transition: -moz-transform 0.3s, visibility 0s 0.3s;
  transition: transform 0.3s, visibility 0s 0.3s;
}

.cd-secondary-nav ul.is-visible {
  visibility: visible;
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
  -webkit-transition: -webkit-transform 0.3s, visibility 0s 0s;
  -moz-transition: -moz-transform 0.3s, visibility 0s 0s;
  transition: transform 0.3s, visibility 0s 0s;
}

.cd-secondary-nav li a {
  display: block;
  padding: 1.6em;
  border-bottom: 1px solid #092645;
  color: #f0eee1;
}

.cd-secondary-nav li:last-child a {
  border-bottom: none;
}

@media only screen and (min-width: 1170px) {
  .cd-secondary-nav {
    z-index: 1;
    height: 70px;
    padding: 5px;
    width: 35%;
    margin-top: 2%;
    margin-left: 60%;
    border-radius: 40px;
    background-color: rgba(26, 26, 26, 0.5);
    -webkit-transition: height 0.3s;
    -moz-transition: height 0.3s;
    transition: height 0.3s;
  }

  .cd-secondary-nav nav,
  .cd-secondary-nav ul,
  .cd-secondary-nav li,
  .cd-secondary-nav a {
    height: 100%;
  }

  .cd-secondary-nav ul {
    /* reset navigation values */
    position: static;
    width: auto;
    max-width: 100%;
    visibility: visible;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
    text-align: center;
    background-color: transparent;
  }

  .cd-secondary-nav li {
    display: inline-block;
    margin-left: -4px;
    padding: 5px;

  }

  .cd-secondary-nav li a {
    position: relative;
    text-align: center;
    display: block;
    margin: 0 5px;
    background-color: rgba(26, 26, 26, 0.7);
    border-radius: 25px;
    padding: 10px 15px 0 15px;
    border-bottom: none;
    -webkit-transition: padding 0.2s;
    -moz-transition: padding 0.2s;
    transition: padding 0.2s;
  }

  .cd-secondary-nav li a b {
    text-transform: uppercase;
    font-size: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 225, 1);
  }

  .cd-secondary-nav li a span {
    position: absolute;
    display: inline-block;
    width: 40px;
    height: 40px;
    top: 18px;
    left: 50%;
    right: auto;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
    background-repeat: no-repeat;
    background-image: url(../img/cd-nav-icons.svg);
    -webkit-transition: opacity 0.2s;
    -moz-transition: opacity 0.2s;
    transition: opacity 0.2s;
  }

  .cd-secondary-nav li a:hover b,
  .cd-secondary-nav li a.active b {
    color: #f0eee1;
  }

  .cd-secondary-nav li:nth-child(1) a span {
    background-position: 0 0;
  }

  .cd-secondary-nav li:nth-child(2) a span {
    background-position: -40px 0;
  }

  .cd-secondary-nav li:nth-child(3) a span {
    background-position: -80px 0;
  }

  .cd-secondary-nav li:nth-child(4) a span {
    background-position: -120px 0;
  }

  .cd-secondary-nav li:nth-child(5) a span {
    background-position: -160px 0;
  }

  .cd-secondary-nav.is-fixed {
    /* on Firefox CSS transition/animation fails when parent element changes position attribute*/
    /* so we defined to diffent classes: .is-fixed to change the position value and .is-animated to change childrens' attributes (padding and opacity)*/
    position: fixed;
    border-radius: unset;
    margin-left: 0;
    left: 0;
    top: 0;
    background-color: rgba(3, 13, 24, 0.96);
    height: 70px;
    width: 100%;
  }

  .cd-secondary-nav.animate-children {
    /* on Firefox CSS transition/animation fails when parent element changes position attribute*/
    /* so we defined to diffent classes: .is-fixed to change the position value and .is-animated to change childrens' attributes (padding and opacity)*/
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }

  .cd-secondary-nav.animate-children li a {
    padding: 10px 15px 0 15px;
  }

  .cd-secondary-nav.animate-children li a span {
    opacity: 0;
  }
}

.cd-secondary-nav-trigger {
  position: fixed;
  bottom: 20px;
  right: 5%;
  width: 44px;
  height: 44px;
  background: rgba(3, 13, 24, 0.96);
  border-radius: 0.25em;
  /* image replacement */
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  z-index: 2;
}

.cd-secondary-nav-trigger span {
  /* the span element is used to create the menu icon */
  position: absolute;
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f0eee1;
  left: 50%;
  top: 50%;
  bottom: auto;
  right: auto;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  -o-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  -webkit-transition: background 0.3s;
  -moz-transition: background 0.3s;
  transition: background 0.3s;
}

.cd-secondary-nav-trigger span::before,
.cd-secondary-nav-trigger span::after {
  content: '';
  position: absolute;
  background: inherit;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.cd-secondary-nav-trigger span::before {
  right: -10px;
  -webkit-transform: rotate(0);
  -moz-transform: rotate(0);
  -ms-transform: rotate(0);
  -o-transform: rotate(0);
  transform: rotate(0);
}

.cd-secondary-nav-trigger span::after {
  left: -10px;
  -webkit-transform: rotate(0);
  -moz-transform: rotate(0);
  -ms-transform: rotate(0);
  -o-transform: rotate(0);
  transform: rotate(0);
}

.cd-secondary-nav-trigger.menu-is-open {
  background: transparent;
}

.cd-secondary-nav-trigger.menu-is-open span {
  background: rgba(240, 238, 225, 0);
  width: 20px;
  height: 2px;
}

.cd-secondary-nav-trigger.menu-is-open span::before,
.cd-secondary-nav-trigger.menu-is-open span::after {
  background: #f0eee1;
  width: 100%;
  height: 100%;
  border-radius: 0;
  top: 0;
  left: 0;
}

.cd-secondary-nav-trigger.menu-is-open span::before {
  -webkit-transform: rotate(135deg);
  -moz-transform: rotate(135deg);
  -ms-transform: rotate(135deg);
  -o-transform: rotate(135deg);
  transform: rotate(135deg);
}

.cd-secondary-nav-trigger.menu-is-open span::after {
  -webkit-transform: rotate(225deg);
  -moz-transform: rotate(225deg);
  -ms-transform: rotate(225deg);
  -o-transform: rotate(225deg);
  transform: rotate(225deg);
}

@media only screen and (min-width: 1170px) {
  .cd-secondary-nav-trigger {
    display: none;
  }
}

/* -------------------------------- 

Placeholder Sections

-------------------------------- */
.cd-section {
  margin: 0 auto;
  padding: 1.5em 1em;
}

.cd-section h2 {
  font-size: 20px;
  font-size: 1.25rem;
  margin-bottom: 0;
  font-weight: 700;
}

.cd-section p {
  line-height: 1.6;
}

@media only screen and (min-width: 1170px) {
  .cd-section {
    margin: 0 auto;
    padding: 4em 0;
  }

  .cd-section h2 {
    font-size: 30px;
    font-size: 1.875rem;
  }

  .cd-section p {
    font-size: 20px;
    font-size: 1.25rem;
  }
}