@import "~terriajs-variables";
@import "../../../../Sass/common/mixins";
@import url("https://fonts.googleapis.com/css?family=Nunito:600,800&display=swap");
.help-panel {
  font-family: $font-base;
  width: 320px;
  height: 100%;
  color: #000;
  background-color: #fff;
  position: fixed;
  z-index: 110;
  font-size: $font-size-mid-small;
  transition: all 0.25s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);

  &.isVisible {
    right: 0px;
  }
  &.isHidden {
    right: -320px;
  }
}

.help-panel-shifted {
  right: 490px;
}

.video-panel {
  font-family: $font-base;
  width: 490px;
  height: 100%;
  color: #000;
  flex-basis: 400px;
  background-color: #f4f4f4;
  position: fixed;
  // right: 0px;
  top: 0px;
  z-index: 110;
  font-size: $font-size-mid-small;
  transition: all 0.25s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  &.isVisible {
    right: 0;
  }
  &.shiftedToRight {
    right: -490px;
  }
  &.isHidden {
    visibility: hidden;
  }
}

.videoBtn {
  background-color: transparent;
  border: 0;
  width: 100%;
  height: 100%;
}

.tourBtn {
  composes: btn from "../../../../Sass/common/_buttons.scss";
  // color: $text-light;
  font-size: $font-size-button;
  padding: $padding $padding * 2;
  // background-color: #519ac2;
  border-radius: $padding * 2;

  min-width: 240px;
  text-align: center;

  svg {
    height: 18px;
    width: 18px;
    // fill: $faint-bg;
    vertical-align: bottom;
    display: inline-block;
    margin-right: 5px;
  }
}

@include keyframes(story-fade-in) {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@include keyframes(story-fade-out) {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@include keyframes(story-slide-up) {
  0% {
    @include transform(translate(-50%, 0%));
  }
  100% {
    @include transform(translate(-50%, -50%));
  }
}
@include keyframes(story-slide-down) {
  0% {
    @include transform(translate(-50%, -50%));
  }
  100% {
    @include transform(translate(-50%, 0%));
  }
}

.link {
  color: $color-primary;
}

.videoLink {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 1;
  width: 100%;
  height: 260px;
  background-size: cover;

  svg {
    width: 50px;
    height: 50px;
    fill: #fff;
    margin: auto;
    position: relative;
  }
}

.videoGuideWrapperFullScreen {
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 1;
  @include animation("story-fade-in 0.3s");
}

.videoGuide {
  box-shadow: $box-shadow;
  margin: 0;
  width: 90%;
  height: 90%;
  background-color: black;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  @include transform(translate(0%, 5%));
  transition: all 0.25s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  margin: auto;
}
.videoGuideRatio {
  padding-bottom: 58.5%;
  padding-top: 25px;
}
.videoGuideLoading {
  position: absolute;
  top: 50%;
  left: 50%;
  svg {
    fill: white;
    width: 60px;
    height: 60px;
    top: -30px;
    left: -30px;
    position: absolute;
  }
}

.videoGuide--iframe {
  border: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
