/*
  @ elements

    ### 01. Loading indicator
    ### 02. Cookie policy
    ### 03. Animate.css
    ### 04. Mobile navigation hide

*/

/* ###################################################### */
/* ### 01. Loading indicator */
/* ###################################################### */

/* Ref. https://github.com/rstacruz/nprogress */

#nprogress {
  pointer-events: none;
}

#nprogress .bar {
  background: #fff200;
  position: fixed;
  z-index: 1031;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
}

#nprogress .peg {
  display: none;
}

/* ###################################################### */
/* ### 02. Cookie policy */
/* ###################################################### */

/* Ref 1. https://silktide.com/tools/cookie-consent/ */
/* Ref 2. https://silktide.com/tools/cookie-consent/docs/installation/ */

.cc_banner-wrapper {
  z-index: 9001;
  position: relative
}

.cc_container .cc_btn {
  cursor: pointer;
  text-align: center;
  font-size: 0.6em;
  transition: font-size 200ms;
  line-height: 1em
}

.cc_container .cc_message {
  font-size: 0.6em;
  transition: font-size 200ms;
  margin: 0;
  padding: 0;
  line-height: 1.5em
}

@media screen and (min-width: 500px) {

  .cc_container .cc_btn {
    font-size: 0.8em
  }

  .cc_container .cc_message {
    font-size: 0.8em
  }

}

@media screen and (min-width: 768px) {

  .cc_container .cc_btn {
    font-size: 1em
  }

  .cc_container .cc_message {
    font-size: 1em;
    line-height: 1em
  }

}

@media screen and (min-width: 992px) {

  .cc_container .cc_message {
    font-size: 1em
  }

}

@media print {

  .cc_banner-wrapper,
  .cc_container {
    display: none
  }

}

.cc_container {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  padding: 10px
}

.cc_container .cc_btn {
  padding: 8px 10px;
  background-color: #f1d600;
  cursor: pointer;
  transition: font-size 200ms;
  text-align: center;
  font-size: 0.6em;
  display: block;
  width: 33%;
  margin-left: 5px;
  float: right;
  max-width: 120px
}

.cc_container .cc_message {
  transition: font-size 200ms;
  font-size: 0.6em;
  display: block
}

@media screen and (min-width: 500px) {

  .cc_container .cc_btn {
    font-size: 0.8em
  }

  .cc_container .cc_message {
    margin-top: 0.5em;
    font-size: 0.8em
  }

}

@media screen and (min-width: 768px) {

  .cc_container {
    padding: 15px 30px 15px
  }

  .cc_container .cc_btn {
    font-size: 1em;
    padding: 8px 15px
  }

  .cc_container .cc_message {
    font-size: 1em
  }

}

@media screen and (min-width: 992px) {

  .cc_container .cc_message {
    font-size: 1em
  }

}

.cc_container {
  background: #222;
  color: #fff;
  font-size: 17px;
  box-sizing: border-box;
  padding-right: 100px !important;
}

.cc_container::-moz-selection {
  background: #ff5e99;
  color: #fff;
  text-shadow: none
}

.cc_container .cc_btn,
.cc_container .cc_btn:visited {
  color: #fff;
  background-color: #fff200;
  border-radius: 15px;
  -webkit-border-radius: 15px;
  margin-left: 15px !important;
  float: none !important;
}

.cc_container .cc_btn:hover,
.cc_container .cc_btn:active {
  background-color: #fff;
  color: #fff200
}

.cc_container a,
.cc_container a:visited {
  text-decoration: none;
  color: #fff200;
  transition: 200ms color;
  display: inline-block !important;
  margin-left: 5px;
}

.cc_container a:hover,
.cc_container a:active {
  color: #31a8f0
}

/* ###################################################### */
/* ### 03. 404 falling down... */
/* ###################################################### */

/* Ref. http://daneden.me/animate */

@-webkit-keyframes slideUp {

  0% {
    -webkit-transform: translateY(66px);
    transform: translateY(66px)
  }

  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0)
  }

}

@keyframes slideUp {

  0% {
    -webkit-transform: translateY(66px);
    -ms-transform: translateY(66px);
    transform: translateY(66px)
  }

  100% {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0)
  }

}

.cc_container,
.cc_message,
.cc_btn {
  animation-duration: 0.8s;
  -webkit-animation-duration: 0.8s;
  -moz-animation-duration: 0.8s;
  -o-animation-duration: 0.8s;
  -webkit-animation-name: slideUp;
  animation-name: slideUp
}

.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both
}

.animated.hinge {
  -webkit-animation-duration: 2s;
  animation-duration: 2s
}

@-webkit-keyframes hinge {

  0% {
    -webkit-transform-origin: top left;
    transform-origin: top left;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out
  }

  20%,
  60% {
    -webkit-transform: rotate3d(0, 0, 1, 80deg);
    transform: rotate3d(0, 0, 1, 80deg);
    -webkit-transform-origin: top left;
    transform-origin: top left;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out
  }

  40%,
  80% {
    -webkit-transform: rotate3d(0, 0, 1, 60deg);
    transform: rotate3d(0, 0, 1, 60deg);
    -webkit-transform-origin: top left;
    transform-origin: top left;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    opacity: 1
  }

  to {
    -webkit-transform: translate3d(0, 700px, 0);
    transform: translate3d(0, 700px, 0);
    opacity: 0
  }

}

@keyframes hinge {

  0% {
    -webkit-transform-origin: top left;
    transform-origin: top left;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out
  }

  20%,
  60% {
    -webkit-transform: rotate3d(0, 0, 1, 80deg);
    transform: rotate3d(0, 0, 1, 80deg);
    -webkit-transform-origin: top left;
    transform-origin: top left;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out
  }

  40%,
  80% {
    -webkit-transform: rotate3d(0, 0, 1, 60deg);
    transform: rotate3d(0, 0, 1, 60deg);
    -webkit-transform-origin: top left;
    transform-origin: top left;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    opacity: 1
  }

  to {
    -webkit-transform: translate3d(0, 700px, 0);
    transform: translate3d(0, 700px, 0);
    opacity: 0
  }

}

.hinge {
  -webkit-animation-name: hinge;
  animation-name: hinge
}

/* ###################################################### */
/* 04. Mobile navigation hide */
/* ###################################################### */

@media (max-width: 767px) {

  nav.navbar-fixed-top {
    -webkit-transition: top 0.25s ease-in-out, background-color 0.25s ease-in-out;
    transition: top 0.25s ease-in-out, background-color 0.25s ease-in-out;
  }

  body:not(.menu-open) nav.navbar-fixed-top.nav-up {
    top: -55px;
  }

}