@font-face {font-family: 'AlmoniNeue';  src: url('fonts/almoni-neue-aaa-regular.otf') format('opentype'); font-weight: normal;}
@font-face {font-family: 'AlmoniNeue';  src: url('fonts/almoni-neue-aaa-demibold.otf') format('opentype'); font-weight: 600;}
@font-face {font-family: 'AlmoniNeue';  src: url('fonts/almoni-neue-aaa-black.otf') format('opentype'); font-weight: 800;}

html, body {
  height: 100%;
  padding: 0;
  margin: 0;
  position: relative;
  direction: rtl;
  font-size: 16px;
}

body {
  overflow: hidden;
  margin-top: 0;
  font-family: 'AlmoniNeue', sans-serif;
}

#results {position: absolute; z-index: -999; opacity: 0;}
body[data-step="results"] #results {position: relative;  z-index: 999; opacity: 1;}
body[data-step="results"] #slides {display: none;}

.step-suffix {display: none;}
body[data-step="results"] .step-suffix {display: block;}

.question {font-weight: 800;}
.step-content {color: #fff; font-size: 2.5em; font-weight: 800;}
.step-content .result-desc-alt {font-size: 0.6em; font-weight: normal; line-height: 100%; margin-top: 1vh;}
.result-img {margin: 0 auto;}

#slides-container {height: 100vh;}

.slides-c-ul {margin: 0;}

.btn-primary {
  background: #1b7ee5;
  border-radius: 20px;
}

#btns {height: 13%; max-height: 13%; padding: 0; position: relative;}

.btn-step {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  padding: 0;
  margin: 0 auto;
}

#btns .btn {
  width: 50vw;
  max-width: 300px;
  margin: 0 auto;
  font-size: 2.2em;
  padding: 0;
}

.btn-step {display: none;}
body[data-step='splash'] .step-splash {display: block;}
body[data-step='instructions'] .step-instructions {display: block;}
body[data-step='results'] .step-results {display: block;}

.step-results img {width: 3em;}
.slide-question {opacity: 0;}

.slides-c {
  position: relative;
  background: #fff;
  height: 85%;
  margin-top: 2%;
}

.slides-c ul.slidable {
    margin: 0;
    position: relative;
    display: block;
    height: 100%;
}

.slides-c li.slidable {
    border-radius: 20px;

    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    z-index: 2;
    left: 0;
    overflow: hidden;
    text-align: center;
    color: #000;
    -webkit-transform: translate3d(0%,0,0) scale3d(1,1,1);
    -moz-transform: translate3d(0%,0,0) scale3d(1,1,1);
    -ms-transform: translate3d(0%,0,0) scale3d(1,1,1);
    -o-transform: translate3d(0%,0,0) scale3d(1,1,1);
    transform: translate3d(0%,0,0) scale3d(1,1,1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Image text */
.slides-c li.slidable h2 {
    color: #fff;
    font-size: 3em;
    text-align: center;
    position: absolute;
    top: 25vh;
    left: 0;
    right: 0;
    width: 100%;

    padding: 2vh;

    margin: 0 auto;
}

/* Like & dislike badge images */
#slides .like,
#slides .dislike {
    background: url("img/swipe-like.png") no-repeat scroll 0 0;
    background-size: contain;
    opacity: 0;
    height: 130px;
    position: absolute;
    width: 170px;

    top:10vh;
    z-index: 1;
    overflow: hidden;
    -webkit-transform: translate3d(0%,0,0) scale3d(1,1,1);
    -moz-transform: translate3d(0%,0,0) scale3d(1,1,1);
    -ms-transform: translate3d(0%,0,0) scale3d(1,1,1);
    -o-transform: translate3d(0%,0,0) scale3d(1,1,1);
    transform: translate3d(0%,0,0) scale3d(1,1,1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

#slides .like {
  left: 25px;
}
#slides .dislike {
  right: 25px;
  left: auto;
  background: url("img/swipe-dislike.png") no-repeat scroll 0 0;
  background-size: contain;
}

/* Image container */
.slides-c .step-header {
  background: url("img/logo2019.png") no-repeat center bottom;
  width: 30vh;
  height: 18vh;
  background-size: contain;
  display:block;

  margin: 0 auto;

}

#slides li[data-oid="0"] .question, #slides li[data-oid="27"] .question, #slides li[data-oid="26"] .question {display: none;}


.slides-c li .step-container {
  /*margin-top: 2vh;*/
  height: 100%;
  border-radius: 20px;
}

/* Result Screen */
.result-img img {width: 30%;}
.result-img.p1p7 img, .result-img.p7p1 img {width:40%;}

.result-img.match-single {
  background: transparent url('img/hearts-single.png') no-repeat center center;
  background-size: contain;
  margin: 1vh auto;
}

.result-img.match-double {
  background: transparent url('img/hearts-double.png') no-repeat center center;
  background-size: 40px;
}
.result-img.match-double img {margin: 5%;}




.step-container .result-desc {line-height: 100%;}

.result-title span, .result-line span {
  background: #63dd99;
  -webkit-clip-path: polygon(0 10%, 100% 5%, 100% 95%, 0 90%);
  clip-path: polygon(0 10%, 100% 5%, 100% 95%, 0 90%);

  display: inline-block;
  padding: 0 1vh;

  white-space: nowrap;
}

.result-line span {
  background: #1b7ee5;
}

.result-line-alt span {
  -webkit-clip-path: polygon(0 0, 100% 10%, 100% 90%, 0 100%);
  clip-path: polygon(0 0, 100% 10%, 100% 90%, 0 100%);
}

.result-link {
  color: white;
  font-weight: normal;
  position: absolute;
  background: #1b7ee5;
  border-radius: 50%;
  height: 3.5em;
  width: 3.5em;
  line-height: 3.1em;
  font-size: 1em;
  padding: 0;
  bottom: 0;

  cursor: pointer;
}

.result-link span {
  line-height: 100%;
  display: inline-block;
  vertical-align: middle;
}

.result-link.result-readmore {left: 0;}
.result-link.result-restart {right: 0;}

.result-link.result-restart i {
  background: url(img/btn-restart.png) no-repeat center top;
  background-size: contain;
  height: 0.7em;
  width: 0.7em;
  display: block;
  margin: 0 auto;
}

/* Action - buttons */
.actions {
  text-align: center;
}

.actions .btn-swipe.dislike {
  background: url("img/btn-dislike.png") no-repeat scroll center center;
  background-size: contain;
}

.actions .btn-swipe.like {
  background: url("img/btn-like.png") no-repeat scroll center center;
  background-size: contain;
}

.actions .btn-swipe {
  display: inline-block;
  width: 10vh;
  height: 10vh;
  text-align: center;
  line-height: 10vh;
  border-radius: 50%;
  outline: none;

  margin: 0 10px;
}

  /* Result screen expaned */

.step-suffix {

  font-size: 0.25em;
  color: white;
  display: block;
  font-weight: 600;
  padding-bottom: 10vh;

}

.step-suffix:before {
  content: " ";
  margin: 1em auto;
  background: transparent url(img/arrows.png) no-repeat center top;
  background-size: contain;
  width: 100%;
  height: 2em;
  display: block;

  animation-name: floating;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

@keyframes floating {
    from { transform: translate(0,  0px); }
    65%  { transform: translate(0, 10px); }
    to   { transform: translate(0, -0px); }
}

.step-suffix .party-heart:first-child {
  margin-top: 10vh;
}

.step-suffix .party-heart {
  background: transparent url('img/icon-heart.png') no-repeat center center;
  background-size: contain;
  height: 15vh;
  width: 100%;
  margin-bottom: 2vh;
}

.step-suffix .party-heart span {
  background: #1b7ee5;
  -webkit-clip-path: polygon(0 0, 100% 10%, 100% 90%, 0 100%);
  clip-path: polygon(0 5%, 100% 10%, 100% 90%, 0 95%);
  display: inline-block;
  padding: 0 10px;
  min-width: 150px;
  font-weight: 800;
  font-size: 2em;
  line-height: 120%;

  margin-top: 7vh;
  transform: translateY(-50%);
}

.step-suffix h3 {font-weight: 600;}

.step-suffix .list-item span {
  color: #1b7ee5;
  background: #ffffff;
  display: inline-block;
  line-height: 100%;
  padding: 2px;
  font-size: 1.2em;
}

.list-item {line-height: 100%; margin: 6px 0;}
/*
.list-item:before {
  content: " ";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-left: 0.5em;
  vertical-align: middle;

  background: white;
  border-radius: 50%;
}
*/
/*
.matches-list .list-item:before {background: transparent url('img/icon-heart.png') no-repeat center center; background-size: contain;}
.no-matches-list .list-item:before {background: transparent url('img/icon-x.png') no-repeat center center; background-size: contain;}
*/
@media only screen and (max-width: 1024px) {

  .step-logo {
    content: " ";
    background: #fff url('img/logo-globes.png') no-repeat;
    width: 10vh;
    height: 10vh;
    background-size: contain;
    margin: 0 auto;
    display: block;
    border-radius: 50%;
    top: 0;
    left: 0;
    right: 0;
    position: absolute;
    z-index: 999;
  }

  .step-counter {
    content: " ";
    display: block;
    bottom: 2vh;
    right: 0;
    left: 0;
    position: absolute;
    z-index: 999;
    font-size: 2em;
    color: #fff;
  }

  .slides-c li .step-container {margin-top: 5vh; background: #772c4a url('img/screens/bg-step.jpg') no-repeat;background-size: cover;}
  /*.results-expanded .slides-c li .step-container {background: #772c4a url('img/screens/bg-result1.jpg') no-repeat;background-size: cover;}*/

  #slides li[data-oid="0"] .step-container {background: #772c4a url('img/screens/bg-splash.jpg') no-repeat;background-size: cover;}
  #slides li[data-oid="0"] .step-content {background: transparent url('img/screens/content-splash.png') no-repeat center top;background-size: contain; height: 42vh; margin-top: 5vh;}

  .slides-c li[data-oid="26"] .step-content {margin-top: 2vh; overflow-y: scroll; height: 60vh;}

  #slides li[data-oid="27"] .step-content {background: transparent url('img/screens/content-instructions.png') no-repeat center top; background-size: 90%; height: 52vh; margin-top: 4vh;}

  #slides li[data-oid="1"] .step-container {background: #174993 url('img/screens/bg-q1-m.jpg') no-repeat;background-size: cover;}
  #slides li[data-oid="2"] .step-container {background: #174993 url('img/screens/bg-q2-m.jpg') no-repeat;background-size: cover;}
  #slides li[data-oid="3"] .step-container {background: #174993 url('img/screens/bg-q17-m.jpg') no-repeat;background-size: cover;}
  #slides li[data-oid="4"] .step-container {background: #174993 url('img/screens/bg-q4-m.jpg') no-repeat;background-size: cover;}
  #slides li[data-oid="5"] .step-container {background: #174993 url('img/screens/bg-q5-m.jpg') no-repeat;background-size: cover;}
  #slides li[data-oid="6"] .step-container {background: #174993 url('img/screens/bg-q6-m.jpg') no-repeat;background-size: cover;}
  #slides li[data-oid="7"] .step-container {background: #174993 url('img/screens/bg-q7-m.jpg') no-repeat;background-size: cover;}
  #slides li[data-oid="8"] .step-container {background: #174993 url('img/screens/bg-q8-m.jpg') no-repeat;background-size: cover;}
  #slides li[data-oid="9"] .step-container {background: #174993 url('img/screens/bg-q3-m.jpg?v=1') no-repeat;background-size: cover;}
  #slides li[data-oid="10"] .step-container {background: #174993 url('img/screens/bg-q9-m.jpg?v=1') no-repeat;background-size: cover;}
  #slides li[data-oid="11"] .step-container {background: #174993 url('img/screens/bg-q10-m.jpg?v=1') no-repeat;background-size: cover;}
  #slides li[data-oid="13"] .step-container {background: #174993 url('img/screens/bg-q12-m.jpg?v=1') no-repeat;background-size: cover;}
  #slides li[data-oid="12"] .step-container {background: #174993 url('img/screens/bg-q11-m.jpg?v=1') no-repeat;background-size: cover;}
  #slides li[data-oid="14"] .step-container {background: #174993 url('img/screens/bg-q13-m.jpg?v=1') no-repeat;background-size: cover;}
  #slides li[data-oid="15"] .step-container {background: #174993 url('img/screens/bg-q14-m.jpg?v=1') no-repeat;background-size: cover;}
  #slides li[data-oid="16"] .step-container {background: #174993 url('img/screens/bg-q15-m.jpg?v=1') no-repeat;background-size: cover;}
  #slides li[data-oid="17"] .step-container {background: #174993 url('img/screens/bg-q16-m.jpg?v=1') no-repeat;background-size: cover;}

  .step-suffix {font-size: 0.5em;}
  .slides-c .step-header {width: 25vh; height: 16vh;}

  .result-restart {display: none;}
  .step-content[data-match="two-match-one"] .result-img img,
  .step-content[data-match="one-match"] .result-img img {
    /*width: 25%;*/

    width: auto !important;
    height: 18vh;
    margin: 3vh 0;
  }

  .result-img.match-double .p1 + .img-fluid,
  .result-img.match-double .p3 + .img-fluid,
  .result-img.match-double .p7 + .img-fluid {
    width: 25%;
    margin: 5% 13%;
  }

  .result-img.match-double img.p1,
  .result-img.match-double img.p3,
  .result-img.match-double img.p7 {
    width: 35% !important;
    margin: 5% !important;
  }


  .step-suffix .list-item span {
    font-size: .9em;
    white-space: nowrap;
  }

  /*
  .step-content[data-match="two-match-one"] .result-title,  .step-content[data-match="two-match-one"] .result-desc {font-size: 0.8em;}
  */
}

@media only screen and (min-width: 1024px) {
  .slides-c li .step-container {background: #772c4a url('img/screens/bg-step-desktop.jpg') no-repeat;background-size: cover;}
  /*.results-expanded .slides-c li .step-container {background: #772c4a url('img/screens/bg-result1-desktop.jpg') no-repeat;background-size: cover;}*/

  #slides li[data-oid="0"] .step-container {background: #772c4a url('img/screens/bg-splash-desktop.jpg') no-repeat;background-size: cover;}
  #slides li[data-oid="0"] .step-content {background: transparent url('img/screens/content-splash-desktop.png') no-repeat center top;background-size: 90%;  max-width: 1800px; margin: 7vh auto 0 auto; height: 40vh;}

  #slides li[data-oid="27"] .step-content {background: transparent url('img/screens/content-instructions-desktop.png') no-repeat center top; background-size: contain;  max-width: 1800px; margin: 7vh auto 0 auto; height: 40vh;}

  #slides li[data-oid="1"] .step-container {background: #174993 url('img/screens/bg-q1-d.jpg') no-repeat;background-size: cover;}
  #slides li[data-oid="2"] .step-container {background: #174993 url('img/screens/bg-q2-d.jpg') no-repeat;background-size: cover;}
  #slides li[data-oid="3"] .step-container {background: #174993 url('img/screens/bg-q17-d.jpg') no-repeat;background-size: cover;}
  #slides li[data-oid="4"] .step-container {background: #174993 url('img/screens/bg-q4-d.jpg') no-repeat;background-size: cover;}
  #slides li[data-oid="5"] .step-container {background: #174993 url('img/screens/bg-q5-d.jpg') no-repeat;background-size: cover;}
  #slides li[data-oid="6"] .step-container {background: #174993 url('img/screens/bg-q6-d.jpg') no-repeat;background-size: cover;}
  #slides li[data-oid="7"] .step-container {background: #174993 url('img/screens/bg-q7-d.jpg') no-repeat;background-size: cover;}
  #slides li[data-oid="8"] .step-container {background: #174993 url('img/screens/bg-q8-d.jpg') no-repeat;background-size: cover;}
  #slides li[data-oid="9"] .step-container {background: #174993 url('img/screens/bg-q3-d.jpg?v=1') no-repeat;background-size: cover;}
  #slides li[data-oid="10"] .step-container {background: #174993 url('img/screens/bg-q9-d.jpg?v=1') no-repeat;background-size: cover;}
  #slides li[data-oid="11"] .step-container {background: #174993 url('img/screens/bg-q10-d.jpg?v=1') no-repeat;background-size: cover;}
  #slides li[data-oid="12"] .step-container {background: #174993 url('img/screens/bg-q11-d.jpg?v=1') no-repeat;background-size: cover;}
  #slides li[data-oid="13"] .step-container {background: #174993 url('img/screens/bg-q12-d.jpg?v=1') no-repeat;background-size: cover;}
  #slides li[data-oid="14"] .step-container {background: #174993 url('img/screens/bg-q13-d.jpg?v=1') no-repeat;background-size: cover;}
  #slides li[data-oid="15"] .step-container {background: #174993 url('img/screens/bg-q14-d.jpg?v=1') no-repeat;background-size: cover;}
  #slides li[data-oid="16"] .step-container {background: #174993 url('img/screens/bg-q15-d.jpg?v=1') no-repeat;background-size: cover;}
  #slides li[data-oid="17"] .step-container {background: #174993 url('img/screens/bg-q16-d.jpg?v=1') no-repeat;background-size: cover;}


  .step-logo {
    content: " ";
    background: transparent url('img/logo-globes-text.png') no-repeat;
    width: 10vw;
    height: 4vh;
    background-size: contain;
    margin: 0 auto;
    display: block;
    top: 2vh;
    left: 2vw;
    position: absolute;
    z-index: 999;
  }

  .step-counter {
    content: " ";
    display: block;
    top: 1.5vh;
    right: 2vw;
    position: absolute;
    z-index: 999;
    font-size: 2em;
    color: #fff;
  }

  .slides-c .step-header {
    width: 27vw;
    height: 25vh;
  }


  .slides-c {height: 96%; margin: 1% 0 0 0;}
  #btns {
    position: absolute;
    bottom: 9vh;
    left: 0;
    right: 0;
    z-index: 9999;

    margin: 0 auto;
  }

  .actions .btn-swipe {
    width: 20vh;
    height: 20vh;
    margin: 0 1vw;
    cursor: pointer;
  }

  .slides-c li.slidable {
    border-radius: 40px;
  }

  .slides-c li.slidable h2 {
    font-size: 5em;
    top: 30vh;
    max-height: 40vh;
    max-width: 1100px;
  }

  .result-img {width: 20%; flex-grow: 1;}
  .result-title, .result-desc {flex-grow: 1;width: 40%; }
  .step-suffix {width: 100%;  flex-grow: 1;}

  .step-content {
    overflow-y: scroll;
    height: 50vh;

    font-size: 4em;
    display: flex;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0;
    padding-top: 5vh;

    flex-wrap: wrap;
  }

  .step-content .result-desc-alt {font-size: 0.5em; margin-top: 3vh;}

  .result-title, .result-desc {
    margin: auto 0;
    flex-grow: 1;
  }

  .result-img img {width: 3.3em;}

  .step-results img {width: 5vw;}
  .result-img.match-single {padding: 0 3vw;}

  .result-img.match-double img {width: 1.8em; margin: 0 auto;}


  .result-img.match-double .p1 + .img-fluid,
  .result-img.match-double .p3 + .img-fluid,
  .result-img.match-double .p7 + .img-fluid {
    width: 2em;
  }

  .result-img.match-double img.p1,
  .result-img.match-double img.p3,
  .result-img.match-double img.p7 {
    width: 3.2em !important;
  }

  .result-img.match-single.single-p7 {padding:0;}
  .result-img.match-single.single-p7 .p7 {width:100%;}

  .result-img.match-double {
    display: flex;
    flex-direction: column;

    background: transparent url('img/hearts-double-desktop.png') no-repeat center center;
    background-size: contain;

  }

  .step-content[data-match="two-match"] {margin: 0 auto;}

  .result-link {
    cursor: pointer;
    width: 100px;
    height: 100px;
    line-height: 100px;
    font-size: 1.3em;
  }

  .result-link.result-readmore {left: 4vw;}
  .result-link.result-restart {right: 4vw;}

  .result-link span {line-height: normal;}
  .result-link.result-restart i {width: 1em; height: 1em;}

  .step-suffix {display: none !important;}
  .results-expanded .step-suffix {display: block !important;}

  .step-suffix .party-heart {
    height: 20vh;
    white-space: nowrap;
  }

  .step-suffix .party-heart span {font-size: 3em; min-width: 13vw; margin-top: 9vh;}
  .step-suffix .explainer {max-width: 600px;margin: 0 auto; font-size: 1.2em;}


}

@media only screen and (max-height: 615px) {
  .result-title, .result-desc {font-size: .7em;}
  .result-desc-alt  {font-size: .5em;}
  .slides-c li.slidable h2 {font-size: 2.5em;}
}


*::-webkit-scrollbar {
  width: .1em;
}

*::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}

*::-webkit-scrollbar-thumb {
  background-color: white;
  outline: 1px solid slategrey;
}
