@media (width <=430px) {
  .doh--modules-container {
    left: -55px;
    position: relative;
    transform: scale(0.74);
  }
}

body {
  /* override bootstrap css. */
  line-height: 1.15;
}

.doh--modules-container {
  text-align: center;
}

.doh--modules-johnny-container {
  background-color: #007;
  border: #337ab7 4px solid;
  border-radius: 18px;
  display: inline-block;
  margin: 50px 0 10px 0;
  padding: 80px 32px 32px 32px;
  position: relative;
  width: 578px;
}

.doh--modules-johnny-container h1,
.doh--modules-johnny-container footer {
  left: 0;
  line-height: 1;
  position: absolute;
  right: 0;
  text-align: center;
  width: 100%;
}

.doh--modules-johnny-container h1 {
  color: #fff;
  font-family: 'Irish Grover', cursive;
  font-size: 43px;
  top: -4px;
}

.doh--modules-johnny-container footer {
  bottom: 4px;
  color: #eee;
  font-size: smaller;
}

.doh--modules-johnny-container .doh--modules-johnny-viewer {
  background-color: #eee;
  border-radius: 4px;
  display: inline-block;
  margin: 0 40px;
  padding-top: 10px;
  position: relative;
  vertical-align: top;
}

.doh--modules-johnny-container .doh--modules-johnny-blinker {
  position: absolute;
  top: 0;
  text-align: center;
  width: 100%;
  z-index: 41;
}

.doh--modules-johnny-container .doh--modules-johnny-head {
  left: 0;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  z-index: 40;
}

.doh--modules-johnny-container .doh--modules-johnny-body {
  margin: 0 52px;
}

.doh--modules-johnny-container .doh--modules-johnny-talk {
  background-color: #fff;
  border: 5px solid #ccc;
  border-radius: 50px;
  color: #333;
  display: inline-block;
  left: 300px;
  opacity: 0;
  position: absolute;
  padding: 15px;
  text-align: center;
  top: 48px;
  transition: opacity 0.25s ease-in-out;
  width: 300px;
}

@keyframes popupBubble {
  0% {
    transform: scale(0.75);
  }

  80% {
    transform: scale(1.25);
  }

  100% {
    transform: scale(1);
  }
}

.doh--modules-johnny-container .doh--modules-johnny-talk p {
  margin: 0;
  min-height: 40px;
}

.doh--modules-johnny-container .doh--modules-johnny-talk p a {
  border-bottom: 2px solid;
  border-color: #ccc;
  text-decoration: none;
  transition: border-color 0.125s ease-in-out;
}

.doh--modules-johnny-container .doh--modules-johnny-talk p a:hover {
  border-color: #47c500;
}

.doh--modules-johnny-container .doh--modules-johnny-talk-arrow-bg {
  border-color: transparent #ccc;
  border-style: solid;
  border-width: 15px 30px 15px 0;
  left: -30px;
  position: absolute;
  top: 32%;
}

.doh--modules-johnny-container .doh--modules-johnny-talk-arrow-fg {
  border-color: transparent #fff;
  border-style: solid;
  border-width: 9px 21px 9px 0;
  left: 10px;
  position: absolute;
  top: -9px;
}

.doh--modules-johnny-container .headComponent {
  top: -22px;
}

.doh--modules-johnny-container .doh--modules-johnny-viewer img {
  left: 0;
  margin: 0 auto;
  right: 0;
}

.doh--modules-johnny-container .eyewear {
  z-index: 100;
}

.doh--modules-johnny-container .hats {
  left: -2px;
  top: -53px;
  z-index: 90;
}

.doh--modules-johnny-container .moustaches {
  z-index: 80;
}

.doh--modules-johnny-container .beards {
  left: 1px;
  z-index: 70;
}

.doh--modules-johnny-container .sideburns {
  z-index: 60;
}

.doh--modules-johnny-container .extras {
  z-index: 50;
}

.doh--modules-johnny-container .shirts {
  top: 137px;
  z-index: 20;
}

.doh--modules-johnny-container .pants {
  top: 210px;
  z-index: 10;
}

.doh--modules-johnny-container .carousel.slide {
  width: 321px;
}

.doh--modules-johnny-container ul.carousel-inner {
  padding: 0;
}

.doh--modules-johnny-container ul.carousel-inner li {
  margin: 0;
}

.doh--modules-johnny-container .carousel {
  position: absolute;
}

.doh--modules-johnny-container .btn.btn-secondary:not('btn-primary'):hover {
  background-color: #ccc;
}

.doh--modules-johnny-container .carousel-control.nav {
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
  z-index: 200;
}

.doh--modules-johnny-container .carousel-control.right,
.doh--modules-johnny-container .carousel-control.left {
  z-index: 200;
}

.doh--modules-johnny-container .carousel-control.right {
  background-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.0001) 0,
    #eee 100%
  );
}

.doh--modules-johnny-container .carousel-control.left {
  background-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.0001) 0,
    #eee 100%
  );
}

.doh--modules-johnny-container i.fa {
  color: #777;
  font-size: 48px;
  position: relative;
  top: 132px;
}

.doh--modules-johnny-container i.fa.fa-chevron-left {
  left: 0;
}

.doh--modules-johnny-container i.fa.fa-chevron-right {
  right: 0;
}

.doh--modules-johnny-container .fa.fa-times {
  background: #fff;
  border: 4px solid #ccc;
  border-radius: 20px;
  color: #333;
  padding: 6px;
  position: absolute;
  right: -6px;
  top: -2px;
  width: 35px;
}

.doh--modules-johnny-container .closeBubble {
  cursor: pointer;
}

.nopal-logo {
  bottom: -22px;
  position: absolute;
  right: -62px;
}

/* eye tracking */
.johnny_head_container {
  position: relative;

  .eyes {
    height: 37px;
    left: 122px;
    overflow: hidden;
    position: absolute;
    top: 104px;
    width: 75px;
  }

  .eye {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    height: 36px;
    position: absolute;
    top: 0;
    width: 50%;
  }

  .eye.left-eye {
    left: 0;

    .pupil {
      transform: translate(-40%, -170%) translate(10px, 10px);
    }
  }

  .eye.right-eye {
    left: 50%;

    .pupil {
      transform: translate(-325%, -170%) translate(10px, 10px);
    }
  }

  .pupil {
    background-color: #000;
    border-radius: 50%;
    height: 8px;
    left: 50%;
    outline: 4px solid #fff;
    position: absolute;
    top: 50%;
    transition: transform 0.75s cubic-bezier(0.075, 0.82, 0.165, 1);
    width: 8px;
  }

  .hidden {
    display: none;
  }
}
