@charset "utf-8";

html,
body,
.js .container,
.js .dragslider,
.js .img-dragger .handle {
  height: 100%;
}

html.js,
.js body {
  overflow: hidden;
  position: relative;
}

.js .dragslider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-transition: -webkit-transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}

.dragslider.show-content {
  -webkit-transform: translate3d(0, -100%, 0);
  transform: translate3d(0, -100%, 0);
}

/* Dragger */
.img-dragger {
  position: relative;
  z-index: 100;
}

.js .img-dragger {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  -webkit-transform: translate3d(-50%, -50%, 0);
  transform: translate3d(-50%, -50%, 0);
  -webkit-transform-origin: 0 0;
  transform-origin: 0 0;
}

.js .img-dragger-large {
  width: 100%;
  height: 100%;
}

.js .img-dragger .handle {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  white-space: nowrap;
  font-size: 0;
}

.no-js .img-dragger,
.no-js .img-dragger .handle {
  height: auto;
  position: relative;
  text-align: center;
  font-size: 0;
  clear: both;
  white-space: nowrap;
  overflow: auto;
}

.no-js .img-dragger .handle {
  padding: 40px 0 0;
}

.img-dragger .slide {
  display: inline-block;
  position: relative;
  height: 100%;
  background: #567076;
  font-size: 16px;
  white-space: normal;
  /* cursor: -webkit-grab;
  cursor: -moz-grab; */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  vertical-align: top;
  /* background: rgb(117, 130, 252);
  background: linear-gradient(
    90deg,
    rgba(117, 130, 252, 1) 0%,
    rgba(166, 144, 241, 1) 50%,
    rgba(232, 163, 251, 1) 100%
    ); */
  background: linear-gradient(-45deg, #f7a09e, #f48fb6, #abcbf5, #d4a3f3);
  /* background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab); */
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.no-js .img-dragger .slide {
  width: 300px;
  font-size: 7px;
  min-height: 200px;
}

.img-wrap {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.img-wrap img {
  position: absolute;
  display: block;
  height: calc(100% + 0.2px);
  opacity: 0.5;
}

@media screen and (min-aspect-ratio: 1280/850) {
  .img-dragger .img-wrap img {
    width: calc(100% + 0.2px);
    height: auto;
  }
}

@-webkit-keyframes slideUpFade {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
  }
}

button.content-switch {
  border: 2px solid #fff;
  width: 160px;
  height: 50px;
  overflow: hidden;
  white-space: nowrap;
  background: transparent;
  color: #fff;
  position: absolute;
  cursor: pointer;
  top: 100%;
  left: 50%;
  -webkit-transform: translate3d(-50%, -200%, 0);
  transform: translate3d(-50%, -200%, 0);
  font-size: 16px;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
  outline: none;
  z-index: 1000;
  opacity: 0.7;
  -webkit-transition: -webkit-transform 0.6s cubic-bezier(0.7, 0, 0.3, 1),
    opacity 0.3s, color 0.3s, border-color 0.3s;
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.3s,
    color 0.3s, border-color 0.3s;
}

.no-js button.content-switch {
  display: none;
}

button.content-switch:hover {
  opacity: 1;
}

.show-content .current button.content-switch {
  border-color: #c5d3d6;
  color: #c5d3d6;
  -webkit-transform: translate3d(-50%, 100%, 0);
  transform: translate3d(-50%, 100%, 0);
}

/* Content */
.js .pages {
  position: absolute;
  top: 100%;
  height: 0;
  width: 100%;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  -webkit-transition: height 0s 0.6s;
  transition: height 0s 0.6s;
}

.js .show-content .pages {
  -webkit-transition: none;
  transition: none;
  height: 100%;
}

.pages .content {
  background: #dfe3e3;
  text-align: center;
  color: #545b61;
  font-size: 1.5em;
}

.js .pages .content {
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 100%;
  overflow: hidden;
  -webkit-transition: height 0s 0.6s;
  transition: height 0s 0.6s;
}

.pages .content.show {
  height: auto;
  -webkit-transition: none;
  transition: none;
}

.js .pages .content h2,
.js .pages .content p {
  -webkit-transform: translate3d(0, 200px, 0);
  transform: translate3d(0, 200px, 0);
  -webkit-transition-property: opacity;
  transition-property: opacity;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
  transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
}

.pages .content.show h2,
.pages .content.show p {
  -webkit-transition-duration: 1s;
  transition-duration: 1s;
  -webkit-transition-property: -webkit-transform, opacity;
  transition-property: transform, opacity;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.pages .content.show p {
  -webkit-transition-delay: 0.1s;
  transition-delay: 0.1s;
}

.pages .content a {
  color: #3c89d5;
  display: block;
}

.pages .content a:hover {
  color: #545b61;
}

/* Switch */
.switch-min .img-dragger-large .slide > *:not(.img-wrap),
.switch-max .img-dragger-small .slide > *:not(.img-wrap) {
  /* fade out everything except image */
  opacity: 0;
  -webkit-transition: none;
  transition: none;
}

.switch-min .img-dragger-large,
.switch-max .img-dragger-small {
  -webkit-transition: -webkit-transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}

.img-dragger-small button.content-switch {
  opacity: 0;
  pointer-events: none;
}

/* Helper classes */
.no-transition {
  -webkit-transition: none !important;
  transition: none !important;
}

.hide {
  opacity: 0 !important;
  pointer-events: none !important;
}
