 
  @-webkit-keyframes fadeOut {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
  
  @keyframes fadeOut {
    0% {
      opacity: 1;

    }
    100% {
      opacity: 0;

    }
  }

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
  
  @keyframes blinker {
    50% {
      opacity: 0.3;
    }
  }

  @keyframes blinkerSmall {
    0%{opacity:0}
    50%{opacity: 0.126;}
    100% {opacity: 0.188;}
  }

  

  @keyframes textMoving{
    0%{transform:translateX(0px)}
    100%{transform:translateX(30px)}
  }
  
  
  @-webkit-keyframes masked-animation {
    0% {
      background-position: left bottom;
    }
    100% {
      background-position: right bottom;
    }
  }

  @keyframes steper{
0%{
  background-position: 0% 0%;
}
100%{
  background-position: 101% 12220%;

}

  }

  @keyframes blurMove{
      0%{filter:blur(8px);}100%{filter:blur(25px);}
  }

  @keyframes blurMove2{
    0%{filter:blur(8px);opacity:0;}100%{filter:blur(25px);opacity:1}
}

@keyframes blurMoveIn{
  0%{filter:blur(0px);opacity:0;}
  50%{filter:blur(25px);opacity:1}
  100%{filter:blur(0px);opacity:1;}
}

@keyframes blurMoveOut {
    0% {
        filter: blur(0px);
        opacity: 1;
    }

    50% {
        filter: blur(25px);
        opacity: 1
    }

    100% {
        filter: blur(0px);
        opacity: 0;
    }
}

  @keyframes smallBlur{
    0%{filter:blur(1px);}100%{filter:blur(3px);}
}

  @keyframes rotateIt{
    0%{transform:rotate(180deg);}100%{transform:rotate(360deg);}
}

@keyframes smallRotate{
  0%{transform:rotate(0deg);}100%{transform:rotate(5deg);}
}




@keyframes smokingText
{
	0%
	{
    text-shadow: 0 0 0 rgba(153, 153, 153, 1);
    opacity:0.5;
    transform:translateY(0);
  }
	
	90%
	{
    opacity:0.9;
    text-shadow: 0 -40px 20px rgba(255, 0, 0, 0);
    transform:translateY(10px);

	}
	
	100%
	{
    text-shadow: 0 0 0 rgba(0, 0, 0, 0);
    opacity:1;
    transform:translateY(13px);

	}
}

    @keyframes EvritZoomOutUp{
      40%
      {
        -webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);
        -webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);
        animation-timing-function:cubic-bezier(.55,.055,.675,.19);
        opacity:1;
        transform:scale3d(.475,.475,.475) translate3d(0,60px,0)
      
      }

      to{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);
        -webkit-transform:scale3d(.1,.1,.1) translate3d(0,-3000px,0);
        -webkit-transform-origin:center bottom;
        animation-timing-function:cubic-bezier(.175,.885,.32,1);
        opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-3000px,0);
        transform-origin:center bottom
      }

    }
.EvritZoomOutUp{
  -webkit-animation-name:EvritZoomOutUp;animation-name:EvritZoomOutUp;
  animation-duration: 1.5s;
}

#smokeCanvas {
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    animation: fadeIn 3s ease-in-out;
    transition: opacity 3s ease-in-out;
    opacity: 1;
}


html {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    height: 1460px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    transition: background-color 1s ease-in-out;
    background-color: black;
    animation: changeBackground 8s 2s ease-in-out forwards infinite;
    overflow-x: hidden;
}

#main, #booksFounds {
    min-height: 100vh;
    padding: 3rem 0px;
    overflow: hidden;
}

@keyframes changeOverlayBackground {

    0% {
        background: transparent;
    }

    50% {
        background: black;
    }
}


@keyframes changeBackground {
    0%, 8% {
        background: white;
    }

    5%, 11%, 15% {
        background: black;
    }

    100% {
        background: rgba(0,0,0,0.85);
    }
}

@keyframes changeBackground2 {
    0%, 8% {
        background: black;
    }

    5%, 11%, 15% {
        background: #fff;
    }

    100% {
        background: rgba(255,255,255,0.85);
    }
}

  .whiteBackground{
    background-image: linear-gradient(to bottom, #10abd98c, #fa229736 50%);
    margin: 0;
    background-repeat: no-repeat;
    background-attachment: fixed;

  }

  

  .fadeOut {
    -webkit-animation-name: fadeOut;
    animation-name: fadeOut;
  }

  #start {
    position: absolute;
    margin: auto;
    text-align: center;
    top: 20%;
    margin-top: 160px;
    width: 100%;
  }
  
  .blink_me {
    animation: blinker 3s linear infinite;
  }

  #main::-webkit-scrollbar { 
    display: none; 
  }

.page-content {
    
}

  #wrap {
    margin: 0 auto;
    position: relative;
    -webkit-animation-duration: 10s;
    animation-duration: 10s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;

  }

#wrap2 {
    margin: 0 auto;
    display: none;
}


#viewport {
    position: relative;
}
  



footer{
  position: relative;
  top:-55px;
}

#logo{
  max-width:64px;
  opacity: 0.8;
}

#logo2 img {
    max-width: 100px;
}

/*********************************************/


.stage {
    width: 100vw;
    margin: 0 auto;
    max-width: 800px;
    
}

.steps{
margin:0 auto;
position: absolute;
width: 100%;
top: 291px;
}

.step1, .step2, .step3{
height:50px;
margin:0 auto;
}

.step1 {
    content: '';
    display: block;
    width: 145px;
    margin: 0 auto;
    height: 36px;
    z-index: 1;
    border-radius: 3px 3px 20px 20px;
    /*transform: translate(0px,338px);*/
    background: linear-gradient(-17.8deg,#969494,#999999);
    box-shadow: inset 0px -23px 18px rgba(69, 59, 71, 0.5);
    filter: blur(1px); /* width:40vw; */
    max-width: 250px;
    background: radial-gradient(ellipse farthest-corner at right bottom, #FEDB37 0%, #FDB931 8%, #9f7928 30%, #8A6E2F 40%, transparent 80%), radial-gradient(ellipse farthest-corner at left top, #FFFFFF 0%, #FFFFAC 8%, #D1B464 25%, #5d4a1f 62.5%, #5d4a1f 100%);
    background: linear-gradient(#cacaca,#737070);
}



.step2 {
    transform: translate(0px,-3px) rotate(180deg);    
    /* width:50vw; */
    width: 239px;
    background: radial-gradient(ellipse farthest-corner at right bottom, #FEDB37 0%, #FDB931 8%, #9f7928 30%, #8A6E2F 40%, transparent 80%), radial-gradient(ellipse farthest-corner at left top, #FFFFFF 0%, #FFFFAC 8%, #D1B464 25%, #5d4a1f 62.5%, #5d4a1f 100%);
    box-shadow: inset 0px 0px 20px rgba(0,0,0,0.5);
    border-radius: 60px 60px 10px 10px;
    background: linear-gradient(#cacaca,#737070);
    border-radius: 0px 0px 90% 90%;
}

    .step2 img {
        transform: rotate(-180deg);
    }


.step2::before{
  display: block;
  content: '';
  width: 239px;
  background: #8b8b8b;
  background: linear-gradient(-361deg,#888888,#4E404E);
  box-shadow:inset 0px -14px 13px 1px rgba(65, 56, 66, 0.5),
  0px 11px 49px rgba(0,0,0,0.4);
  height: 6px;
  border-radius: 60%;
  position: relative;
  top: -3px;
}


.step3{
    display: none;
    width:90vw;
    max-width: 800px;
    animation:smallBlur 2s 5s ease-in-out infinite alternate;

}


.input-container {
    position: relative;
    top: 120px;
    width: 80%;
    margin: auto;
    animation: fadeIn ease-in-out 1s;
    display: none;
}

#bookName {
    position: relative;
    outline: none;
    padding: 3px;
    width: 100%;
    height: 44px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    border: none;
    border-radius: 24px;
    border: 1px solid rgba(0,0, 0, 0.1);
    -webkit-appearance: none;
    z-index: 100;
    pointer-events: all;
    text-indent: 12px;
    box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.8);
    background: rgba(255,255,255,1);
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
    box-sizing: border-box;
    font-size: 1rem;
}

    #bookName.withAutoCom{
        border-radius: 24px 24px 0 0;
    }

    #bookName::placeholder {
        color: rgba(0,0,0,0.5);
        font-size: 0.9rem;
    }

#bookName:focus + label{
  opacity:1;
  }

#bookNameLabel {
    display: block;
    transform: translateY(133px);
    transition: opacity 0.25s ease-in-out;
    color: rgba(0,0, 0, 1);
    text-shadow: 0px 0px 9px rgba(255, 255, 255, 1);
    text-shadow: 0 0 0px rgba(255,255,255,0.8), 0 0 0px rgba(255,255,255,0.8), 0 0 4px rgba(255,255,255,0.8), 0 0 40px rgba(255,255,255,0.8), 0 0 58px rgba(255,255,255,0.8), 0 0 32px rgba(255,255,255,0.8), 0 0 24px rgba(255,255,255,0.8), 0 0 17px rgba(255,255,255,0.8);
    font-weight: bold;
}


.card-deck{
    margin-top: 100px;
    display: flex;
    flex-wrap:wrap;
    flex-direction: row;
    justify-content:center;
    padding-bottom:100px;
}


.card {
    width: 95px;
    height: 126px;
    margin: 12px;
    border-radius: 4px;
    z-index: 2;
    animation: blurMoveIn 1s ease-out alternate forwards;
    position: relative;
}

    .card.removed {
        animation: blurMoveOut 1s ease-out alternate forwards;
    }

.card img{
  width:100%;
}



.removeBtn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    background: #651156;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    color: white;
    cursor: pointer;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .removeBtn::after {
        content: url('/bookTeller/src/close.svg');
        display: inline-block;
        text-align: center;
        width: 14px;
        height: 14px;
        vertical-align: middle;
        line-height: 100%;
    }
        .output{
          margin-bottom: 3rem;
        }

#distortion-text{
  transform:translateY(50px);
}


.sentence, .recommendationPageText {
    margin: 0 auto;
    padding: 3rem 1rem;
    font-size: 2rem;
    color: rgba(255,255,255,1);
    position: relative;
    font-weight: bold;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 4px #ffffff, 0 0 3px #ffffff, 0 4px 10px;
    z-index: -1;
}

.sentence span {
    margin: auto 2px;
}

.moreinfoText{
  margin:0px auto 0.6rem auto;
  font-size:1rem;
  color:white;
}

#booksFounds{
  display: none;
  /* height:100vh; */
}

.books-was-found{
  display:none;
}

.enabledFounds{
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  margin:1vh auto;
  justify-content: center;
  align-content: center;
  height:auto;

}

.opacity0{
  opacity:0;
}

@keyframes opacityChange {
    0% {
        opacity: 0.9;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 0.9;
    }
}

.bookFound-item {
    margin: 20px 10px;
    cursor: pointer;
    width: 120px;    
    opacity: 0;
}

.bookFound-item a{
    text-decoration: none;
}

.bookFound-item img{
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  width: 100%;
  display:block;
}

    .bookFound-item .text {
        display: block;
        border: 1px solid #FFF;
        color: #fff;
        padding: 5px;
        text-decoration: none;
        margin-top: 7px;
        border-radius: 4px;
        background: rgba(0,0,0,0.2);
        /*font-size:0.8rem;*/
    }

.bookFound-item:hover .text {
    background-color: rgba(0,0,0,0.3);
}


.bookLine {
    display: flex;
    flex-wrap: wrap;
    justify-content:center;
}

    .bookLine:nth-child(1) .bookFound-item {
        width: 177px;        
        animation: blurMoveIn 1.2s 1s ease-out alternate forwards;
    }

    .bookLine:nth-child(2) .bookFound-item {
        width: 140px;
        
    }

        .bookLine:nth-child(2) .bookFound-item:nth-child(1) {
            animation: blurMoveIn 0.8s 2.6s ease-out alternate forwards;
        }

        .bookLine:nth-child(2) .bookFound-item:nth-child(2) {
            animation: blurMoveIn 0.8s 3.4s ease-out alternate forwards;
        }

    .bookLine:nth-child(3) .bookFound-item:nth-child(1) {
        animation: blurMoveIn 0.5s 4.5s ease-out alternate forwards;
    }

    .bookLine:nth-child(3) .bookFound-item:nth-child(2) {
        animation: blurMoveIn 0.5s 5s ease-out alternate forwards;
    }

    .bookLine:nth-child(3) .bookFound-item:nth-child(3) {
        animation: blurMoveIn 0.5s 5.5s ease-out alternate forwards;
    }



/*start ball*/
@keyframes bgMove {
  from {
    transform:translate(0px,0px);
  }
  to {
    transform:translate(130px,144px);
  }
}

.boomAnim{
  animation: boomAnim 2s 1.5s ease-in-out alternate forwards; 
}
@keyframes boomAnim{
  0%{opacity: 0;}
  100%{ opacity: 1;}
}

@keyframes ballAnim {
    0% {
        transform: scale(0.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes ballAnimOut {
    0% {
        transform: scale(1);
        opacity:1;
    }

    100% {
        transform: scale(3);
        opacity:0;
    }
}

.eball {
    overflow: hidden;
    position: relative;
    display: block;
    margin: 10px auto 0 auto;
    max-width: 310px;
    max-height: 310px;
    background: radial-gradient(circle at 50% 120%, rgba(250, 34, 151,0.4) 2%, rgba(16, 171, 217,0.5) 100%, rgba(235, 229, 243,0.4) 22%);
    opacity: 1;
    border-radius: 50%;
    width: 400px;
    height: 400px;
    z-index: 1;
    box-shadow: 0 -10px 40px 0px rgba(255,255,255,0.5);
    overflow: visible;
    transform: scale(1);
    animation: ballAnim 2s cubic-bezier(0.96, 0.51, 0.68, 1.11);
    transition: transform 1.5s ease-in-out;
}


.eball::before{
  content: "";
  position: absolute;
  top: 1%;
  left: 5%;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0px, #ffffff, rgba(255, 255, 255, 0.5) 58%);
  filter: blur(25px);
  opacity: 0;
  animation: blurMove2 2s 2s ease-in-out infinite alternate;
  pointer-events: none;
}

.eball::after {
    display: block;
    content: '';
    height: 200px;
    background: linear-gradient(rgba(255,255,255,0.2),rgba(255,255,255,0.3));
    filter: blur(50px);
    position: relative;
    opacity: 0;
    animation: bgMove 3s 3s ease-in-out infinite alternate, fadeIn 1s 2s ease-in-out forwards;
}


.ebubb:before {
    content: "";
    position: absolute;
    top: 1%;
    left: 5%;
    width: 90%;
    height: 90%;
    border-radius: 100%;
    opacity: 0;
    animation: fadeIn 1s 2s ease-in-out forwards;
    background: radial-gradient(circle at top,white,rgba(255,255,255,0) 58%);
    -webkit-filter: blur(5px);
    filter: blur(5px);
    z-index: 2;
}

.ebubb:after {
    content: "";
    position: absolute;
    display: none;
    top: 5%;
    left: 10%;
    width: 80%;
    height: 80%;
    border-radius: 100%;
    -webkit-filter: blur(1px);
    filter: blur(1px);
    z-index: 2;
    -webkit-transform: rotateZ(-30deg);
    transform: rotateZ(-30deg);
    opacity: 0;
    animation: blinker 3s 2s ease-in-out infinite alternate;
}

.egrad{
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 100%;
  left: 60%;
  top: 30%;
  -webkit-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
}


.ebubb.bubble:after{
  display:block;
  background:radial-gradient(circle at 46% 75%,rgba(255,255,255,0),rgba(255,255,255,0) 74%,white 80%,white 84%,rgba(255,255,255,0) 100%);

}

/*end ball*/
.resp-sharing-button--tryAgainBtn {
    border: 1px solid rgba(0,0,0,0.2);
    background-color: white;
    color: black;
    cursor: pointer;
}

.resp-sharing-button--tryAgainBtn:hover {
  /* background-color: rgba(0,0,0,0.3); */
}


/*start share btns*/

.shareBtns{
  margin:2rem auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;

  display: none;
}

.emailBtn{
  display: block;
  flex:4;
  flex: 0 1 100%;
}

.resp-sharing-button__link,
.resp-sharing-button__icon {
  display: inline-block
}

.resp-sharing-button__link {
    text-decoration: none;
    color: #fff;
    margin: 0.5em;    
}

.sharing-icons .resp-sharing-button__link {
    filter: drop-shadow(0px 0px 10px #003);
}

.resp-sharing-button {
  border-radius: 5px;
  transition: 25ms ease-out;
  padding: 0.5em 0.75em;
  font-family: Helvetica Neue,Helvetica,Arial,sans-serif;
}

.resp-sharing-button__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.resp-sharing-button--small svg {
  margin: 0;
  vertical-align: middle;
}

/* Non solid icons get a stroke */
.resp-sharing-button__icon {
  stroke: #fff;
  fill: none;
}

/* Solid icons get a fill */
.resp-sharing-button__icon--solid,
.resp-sharing-button__icon--solidcircle {
  fill: #fff;
  stroke: none;
}

.resp-sharing-button--email {
    background: rgba(0,0,0,0.2);
  border:1px solid white;

}

.resp-sharing-button--email:hover {
  background-color: rgba(0,0,0,0.3);
}


.lds-ripple {
    display: inline-block;
    position: relative;
    width: 96px;
    height: 96px;
    top: 100px;
}

    .lds-ripple div {
        position: absolute;
        border: 4px solid #fff;
        opacity: 1;
        border-radius: 50%;
        animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .lds-ripple div:nth-child(2) {
            animation-delay: -0.5s;
        }

@keyframes lds-ripple {
    0% {
        top: 48px;
        left: 48px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: -1px;
        left: -1px;
        width: 96px;
        height: 96px;
        opacity: 0;
    }
}


.easy-autocomplete-container{
    top: 46px;
}

.easy-autocomplete-container ul {
    padding: 0;
    max-height: 220px;
    overflow: auto;
    border-top: none;
    box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.8);
}

    .easy-autocomplete-container ul li, .easy-autocomplete-container ul .eac-category {
        border: none;
        border-bottom: 1px solid rgb(177, 177, 177);
        padding: 0;
    }

        .easy-autocomplete-container ul li .eac-item {
            padding: 8px 12px;
            text-align: right;
        }

        .easy-autocomplete-container ul li.not-found {
            padding: 8px 12px;
        }






body.changePage {
    animation: none;
    background-color: rgba(255,255,255,0.4);
}

body.resultPage {
    animation: none;
    background-color: #fff;
}


.changePage .eball {
    animation: ballAnimOut 1.5s ease-in-out forwards;
}

    .changePage .eball .lds-ripple {
        display: none;
    }

.changePage .sentence {
    animation: blurMoveOut 1s ease-out alternate forwards;
}

.changePage #smokeCanvas {
    animation: fadeOut 2s ease-in-out forwards;
}

.resultPage #wrap {
    display: none;
}

.resultPage #wrap2 {
    display: block;
}

.resultPage .books-was-found {
    display: block;
}
.resultPage .shareBtns{
    display: flex;
}

.resultPage #smokeCanvas {
    opacity: 0;
    animation: fadeIn 2s 1s ease-in-out forwards;
}

.resultPage .sentence {
    z-index: 1;
    animation: blurMoveIn 1s ease-out alternate forwards;
    -webkit-text-fill-color: #fff;
    text-shadow: 0 0 0px rgba(0,0,0,0.3), 0 0 0px rgba(0,0,0,0.3), 0 0 4px rgba(0,0,0,0.3), 0 0 40px rgba(0,0,0,0.3), 0 0 58px rgba(0,0,0,0.3), 0 0 32px rgba(0,0,0,0.3), 0 0 24px rgba(0,0,0,0.3), 0 0 17px rgba(0,0,0,0.3);
}

canvas{
    direction:ltr;
}






    @media only screen and (max-width: 768px) {

        body {
            height: 1240px;
        }

        #main, #booksFounds {
            padding: 0;
        }

        .sentence, .recommendationPageText {
            padding: 2rem;
        }

        .bookFound-item {
            margin: 15px 10px;
            width: 86px;
        }

            .bookFound-item img {
                border: 1px solid #fff;
            }

        .bookLine:nth-child(1) .bookFound-item {
            width: 140px;
        }

        .bookLine:nth-child(2) .bookFound-item {
            width: 110px;
        }

        .bookLine:nth-child(3) {
        }
    }
