

body {
  color: var(--fontcol);
  background: var(--bgcol);
  background-image: none;
  font-family: var(--fontfam);
  background-image: var(--bggrad);
}

.shadedarea {
  background-color: var(--altbgcol);
  background: var(--bggrad);
  background-position: center;
  color: var(--altfontcol);
  border-radius: 0px;
  border: 3px solid var(--altbordercol);
  box-shadow:var(--altshadow);

}
.shadedarea2{
  background-color: rgba(255,255,255,0.5);
  color: var(--altfontcol);
  border-radius: 0px;
  border: 3px solid var(--altbordercol);
  box-shadow:var(--altshadow);

}
.whitetext {

  color: white;
}
.mega{

  font-size: 3.5rem;
}

.winshield {

  padding-bottom: 50px;
  border-radius: 10px 10px 120px 120px;

  z-index: 5;
  position: fixed;
}

.fill {
  background-image: var(--bgimage);
  background-size: var(--bgsize);
    background-attachment: var(--bgattach);
    background-repeat: var(--bgrep) ;
      background-position: bottom;
      overflow-x: hidden;
}
.upper {

  text-transform: uppercase;
}
.yellowtext {

  color: #f4d994;

}
.blackshadow {

text-shadow: 0px 2px black, 2px 0px black, -1px 0px black, 0px -1px black;


}

input[type="submit"],
input[type="reset"]  {

  background-color: var(--buttoncol);
  color: var(--buttonfont);
  border-radius: 0px;
  border: 3px solid var(--buttonbordercol);
  cursor: pointer;
  font-family: var(--fontfam);
    box-shadow:var(--buttonshadow);
    font-weight: 900;
}

.PopoverHL {
position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;

} 

.linkbox {

position: absolute;
  height: 200px;
  width: 95%;
  z-index: 99;
  margin-left: auto;
  margin-right: auto;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 500px;
}


.throwbutton  {
background-color: var(--buttoncol);
  color: var(--buttonfont);
  border-radius: 0px;
  border: 3px solid var(--buttonbordercol);
  cursor: pointer;
  font-family: var(--fontfam);
  box-shadow: var(--buttonshadow);
  font-weight: 900;
  padding: 15px 15px;
  width: 100%;
  text-align: center;
  font-size: 2.5rem;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}
.stall1 {
opacity: 1;
animation: delayshow 6.5s linear 1;

}

.stall2 {
opacity: 1;
animation: delayshow 11s linear 1;

}


.logoimg {
  position: relative !IMPORTANT;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
  max-width: 500px;
  display: block;
  max-height: unset !important;
  padding-right: 0px !important;

}
.checkarea2 {

  text-align: left;
}


.logo {
    width: 90%;
    max-width: 600px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-top: 10px;
    z-index: 0;
    content: var(--logo);

}
.footerimg {
    max-width: 450px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    z-index: 0;
    content: var(--footer);
    
display: inline-block;


}
.leftbotimg {
    max-width: 33%;
    height: auto;
    display: block;
    margin-left: 0;
    z-index: 0;
    content: var(--footer1);
display: inline-block;
float: left;
  object-fit: contain;
  object-position: bottom;
}
.rightbotimg {
    max-width: 33%;
    height: auto;
    display: block;
    margin-right: 0 ;
    z-index: 0;
    content: var(--footer2);
    
display: inline-block;
float: right;
  object-fit: contain;
  object-position: bottom;
}

.pagefooterimg {
    max-width: 450px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    z-index: 0;
    content: var(--pagefooter);
    margin-top: -1px;
    width:90%;
}
.formfooter {

height:fit-content;
display: flex;
}
.footerimgarea {
width: 100vw;
}

.pagefooter {

  background-color: var(--footerbgcol);
  
  color: var(--footerfontcol);
height:auto;

}
.footercontainer {

  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}


.btn {
  background-color: var(--buttoncol);
  color: var(--buttonfont);
  border: 1px solid var(--buttonbordercol);
  cursor: pointer;
}

.link {
  color: var(--linkcol);
  text-decoration: none;
}

.shadedarea {
margin-top: 0px !important;
margin-bottom: 30px;
}


/* present anim*/


.present {
  height: 200px;
  left: 0;
  margin: 0 auto;
  perspective: 600px;
  position: relative;
  right: 0;
/*   top: 50%;
  transform: translateY(-50%); */
  margin-top: 90px;
  margin-bottom: 80px;
  width: 200px;
}

.name {
  font-size: 2em;
  font-weight: 100;
  position: absolute;
  text-align: center;
  top: 44%;
  transform: translate3d(0, -50%, 0) rotateY(0) rotateX(0);
  transition: transform 2.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  width: 100%;
}

.instruction {
  bottom: -70px;
  left: 0;
  opacity: 1;
  position: absolute;
  text-align: center;
  transition: opacity 0.5s;
  width: 100%;
  color: var(--footerfontcol);
}

.rotate-container {
  -webkit-animation: present-rotate 30s infinite linear;
          animation: present-rotate 30s infinite linear;
  height: 100%;
  transform: rotateY(170deg);
  transform-style: preserve-3d;
}

@-webkit-keyframes present-rotate {
  0% {
    transform: rotateY(0);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes present-rotate {
  0% {
    transform: rotateY(0);
  }
  100% {
    transform: rotateY(360deg);
  }
}
.bottom,
.front,
.left,
.back,
.right {
  background-color: #51348d;
  border: 2px solid rgba(0, 0, 0, 0.6);
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  box-shadow: 0px 0px 20px rgba(0,0,0,0.5);
}

.bottom {
  transform: translateY(50%) rotateX(90deg);
}

.front,
.left,
.back,
.right {
  transition: transform 0.5s;
  transform-origin: bottom;
  transform-style: preserve-3d;
}

.front:after,
.left:after,
.back:after,
.right:after,
.lid-top:after,
.lid-front:after,
.lid-left:after,
.lid-back:after,
.lid-right:after {
  background: linear-gradient(45deg, #d4af37 5%, #debc5b 10%, #e7c97c 30%, #efd69d 50%, #e7c97c 70%, #debc5b 80%, #d4af37 95%);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  content: "";
  height: 100%;
  left: calc(50% - 10px);
  position: absolute;
  transform: translateZ(0.1px);
  width: 20px;
}

.lid-top:before {
  background: linear-gradient(45deg, #d4af37 5%, #debc5b 10%, #e7c97c 30%, #efd69d 50%, #e7c97c 70%, #debc5b 80%, #d4af37 95%);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  content: "";
  height: 20px;
  left: 0;
  position: absolute;
  top: calc(50% - 10px);
  transform: translateZ(0.1px);
  width: 100%;
}

.left {
  transform: translateX(-50%) rotateY(-90deg);
}

.back {
  transform: translateZ(-100px) rotateY(180deg) rotateX(0);
}

.right {
  transform: translateX(50%) rotateY(90deg);
}

.front {
  transform: translateZ(100px);
}

.lid {
  -webkit-animation: lid-animation 3.5s 1s infinite;
          animation: lid-animation 3.5s 1s infinite;
  transform: translate3d(0, 0, 0);
  transform-style: preserve-3d;
  transition: transform 0.5s;
}

@-webkit-keyframes lid-animation {
  0% {
    transform: translate3d(0, 0, 0) rotateX(0);
  }
  5% {
    transform: translate3d(0, -10px, -5px) rotateX(5deg);
  }
  10% {
    transform: translate3d(0, -10px, 5px) rotateX(-5deg);
  }
  15% {
    transform: translate3d(0, -10px, -5px) rotateX(5deg);
  }
  20% {
    transform: translate3d(0, -10px, 5px) rotateX(-5deg);
  }
  25% {
    transform: translate3d(0, -10px, -5px) rotateX(5deg);
  }
  30% {
    transform: translate3d(0, 0, 0) rotateX(0);
  }
}

@keyframes lid-animation {
  0% {
    transform: translate3d(0, 0, 0) rotateX(0);
  }
  5% {
    transform: translate3d(0, -10px, -5px) rotateX(5deg);
  }
  10% {
    transform: translate3d(0, -10px, 5px) rotateX(-5deg);
  }
  15% {
    transform: translate3d(0, -10px, -5px) rotateX(5deg);
  }
  20% {
    transform: translate3d(0, -10px, 5px) rotateX(-5deg);
  }
  25% {
    transform: translate3d(0, -10px, -5px) rotateX(5deg);
  }
  30% {
    transform: translate3d(0, 0, 0) rotateX(0);
  }
}
.lid-top,
.lid-left,
.lid-back,
.lid-right,
.lid-front {
  background-color: #51348d;
  border: 4px solid rgba(0, 0, 0, 0.4);
  left: -5px;
  opacity: 1;
  position: absolute;
  top: 0;
  width: 210px;
  box-shadow: 0px 0px 20px rgba(0,0,0,0.5);
}

.lid-top {
  height: 210px;
  top: -5px;
  transform: translateY(-50%) rotateX(90deg);
  transform-style: preserve-3d;
}

.lid-left,
.lid-back,
.lid-right,
.lid-front {
  height: 40px;
  top: -5px;
  transform-style: preserve-3d;
}

.lid-left {
  transform: translateX(-50%) rotateY(-90deg);
}

.lid-back {
  transform: translateZ(-105px) rotateY(180deg);
}

.lid-right {
  transform: translateX(50%) rotateY(90deg);
}

.lid-front {
  transform: translateZ(105px);
}

.present:hover .lid {
  -webkit-animation: none;
          animation: none;
  transform: translate3d(0, -40px, -10px) rotateX(10deg);
}

.present.open .name {
  transform: translate3d(0, -50%, 10px) rotateY(1080deg) rotateX(10deg);
}
.present.open .instruction {
  opacity: 0;
}
.present.open .left {
  transform: translateX(-50%) rotateY(-90deg) rotateX(-90deg);
}
.present.open .back {
  transform: translateZ(-100px) rotateY(180deg) rotateX(-90deg);
}
.present.open .right {
  transform: translateX(50%) rotateY(90deg) rotateX(-90deg);
}
.present.open .front {
  transform: translateZ(100px) rotateX(-90deg);
}
.present.open .lid {
  -webkit-animation: none;
          animation: none;
  transform: translate3d(0, -120px, -120px) rotateX(50deg);
}
/*present anim*/
/* scratchcard*/

img{border:0;vertical-align:middle;}
.hide{
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 1s, opacity 1s linear;
  }
#title{font-size:18px;text-align:center;}
.box, .content{width:400px;height:360px;}
.box img{max-width:400px;max-height: 360px;}
.box{position:relative;overflow:hidden;margin:0 auto;}
.content{position: relative;overflow:hidden;text-align:center;background:rgba(0, 0, 0, 0.0);}
.mask{position:absolute;top:0;left:0;width:400px;height:360px;cursor: pointer;background-attachment: fixed;}
/*end scratchcard*/

/*spnner*/

.popover2{
  pointer-events: none;
    display: flex;
  justify-content: center;
  align-items: center;
  opacity:0;
  width: 100%;
  height: 100dvh;
  position: absolute;
  top: 0 ;
background-color: rgba(0,0,0, 0.6);
  
animation: fade 3s linear;


}

@keyframes fade{
    0% { 
      opacity:1;
      transform:scale(1); 
    } 

        90% { 
  opacity:1;
      transform:scale(1); 

    } 
    100% { 
  opacity:0;
      transform:scale(0); 
    } 

}



.spinner {
      width: 50%;
    max-width: 300px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    z-index: 0;
    content: var(--spinner);
animation: spin 1s ease-in-out infinite;

}

@-moz-keyframes spin { 
    100% { -moz-transform: rotate(720deg); } 
}
@-webkit-keyframes spin { 
    100% { -webkit-transform: rotate(720deg); } 
}
@keyframes spin { 
    100% { 
        -webkit-transform: rotate(720deg); 
        transform:rotate(720deg); 
    } 
}

/*end spinner*/
.hidden {

  opacity: 0;
}
.closewindow {

  width: 95vw;
  height:95vw;
  min-width: 375px;
  min-height: 375px;
    max-width: 425px;
  max-height: 425px;
  overflow: hidden;
  background-color: darkblue;
border:3px black solid;
position: absolute;
  background-image: var(--bgimage);
  background-size: 400% auto;
    background-attachment: var(--bgattach);
    background-repeat: var(--bgrep) ;
      background-position: top right;
bottom: 9%;
  left: 50%;
  transform: translate(-50%, 0%);
opacity:0;
animation: delayshow2 30s linear  1
}

@keyframes delayshow  {
    0% { 
      opacity:0;


    }
        90.0% {
      opacity:0;
    }
            100% {
      opacity:1;
    }
  }

  
@keyframes delayshow2  {
    0% { 
      opacity:0;


    }
    10% {
      opacity:0;
    }
        10.01% {
      opacity:1;
    }

           20.00% {
      opacity:1;
    }
               20.01% {
      opacity:0;
    }
            100% {
      opacity:0;
    }
  }


.ballouter {

position: absolute;
top: 84%;
  width: 20vh;
  height: 20vh;
  left: calc(100% - 20vw);
}

.throw {

  opacity: 0;
  animation: throwBall2 3.6s ;
}

@keyframes FFlyball2 {
    0% { 

transform: translatex(0px) translatey(0px) ;
    } 

        10% { 
transform: translatex( 20px) translatey(20px) ;
    } 

    55% {

transform: translatex( -45vw)  translatey(-30vh) ;
    }

    
    100% { 

transform: translatex(-90vw)translatey( -10vh)  ;
    } 

}


@keyframes throwBall2 {
   0% {
    opacity:1;
      left: calc(100% - 20vw);
    animation-timing-function: ease-out;
  }

  10% {
    
    opacity:1;
      left: calc(90% );
    transform: translateY(40px);
    animation-timing-function: ease-out;
  }
  55% {
    
    opacity:1;
    transform: translateY(-50vh);
    animation-timing-function: ease-in;
  }
  100% {
    
    opacity:1;
    left: 25vw;
    transform: translateY(-12vh);
    animation-timing-function: ease-out;
    
  }

}



.ballinner {
width: 100%;
height: 100%;

}

.shr {

animation: shrinkspin 3600ms linear 300ms 1 ;
}



 .ball {
width: 100%;
height: 100%;
 }

.player {
      display: flex;
    justify-content: center;
    align-items: center;
position: relative;
top: 74%;
  left: 0%;
  width: 50%;
  height: 16%;
 animation: moveplayer 3.2s linear 1 ;

}





.runplayer {


width: auto;
  height: 100%;
    position: absolute;
  
}
.hidehim {
opacity:0;
 animation: hideplayer 5s linear  ;

}



@keyframes hideplayer{
    0% { 

opacity:1;
    } 
99.9% {
  opacity:1;
}
100% {
  opacity: 0;
}
}


.lhand {


  position: absolute;
top: 35%;
  left: -25%;
  z-index: 4;

    animation: landball 1s linear 1;

    transform-origin: bottom right;
  transform: rotate(0deg) ;
animation: lhandcatch 2s ease-in 2700ms 1

}
.rhand {
  position: absolute;
top: 35%;
  left: -25%;
  z-index: 6;
  
 transform: translate(0px , 0px) ;
animation: rhandcatch 2s ease-in 2700ms 1

}

.closeball {
  position: absolute;
  top: 38%;
  left: 0%;
  z-index: 5;
  width: 188px;
  transform: translate(0px , 0px);

}

.ballcatch {

  transform: translate(0px , 0px);
    animation: landball 2s linear 2700ms 1;
}
.ballmiss {
  transform: translate(-500px , -200px) ;

    animation: missball 2s linear 2700ms 1;
}


.canvas {
height: 100dvh;
width: 100%;
z-index: 2;
position: absolute;
top:0;
overflow: hidden;

}


@keyframes landball{
    0% { 

  transform: translate(500px, -200px);
    } 

    
    50% { 

  transform:  translate(0px , 0px);
    } 
    
60% {
animation-timing-function: ease-in-out;
transform:  translate(0px , -10px) 

}
70% {

animation-timing-function: ease-in-out;
transform:  translate(0px , 10px) 

}

80% {

animation-timing-function: ease-in-out;
transform:  translate(0px , -10px) 

}
85% {

animation-timing-function: ease-in-out;
transform:   translate(0px , 0px) 

}

}


@keyframes missball{
    0% { 

  transform: translate(500px, -200px);
    } 

    
    50% { 

  transform:  translate(20px , -70px);
    } 
    
100% {

animation-timing-function: ease-in-out;
transform:   translate(-500px , -200px) rotate(-270deg);

}

}

@keyframes lhandcatch{
 0% { 

  transform: rotate(-5deg) ;
    } 

    
    50% { 

  transform: rotate(0deg) ;
    } 

60% {
animation-timing-function: ease-in-out;
transform: translate(0px , -10px) 

}
70% {

animation-timing-function: ease-in-out;
transform: translate(0px , 10px) 

}

80% {

animation-timing-function: ease-in-out;
transform: translate(0px , -10px) 

}
85% {

animation-timing-function: ease-in-out;
transform: translate(0px , 0px) 

}


}
@keyframes rhandcatch{
    0% { 

transform: translate(10px , 40px) ;
    } 

    
    50% { 

 transform: translate(0px , 0px) ;
    } 

60% {
animation-timing-function: ease-in-out;
transform: translate(0px , -10px) 

}
70% {

animation-timing-function: ease-in-out;
transform: translate(0px , 10px) 

}

80% {

animation-timing-function: ease-in-out;
transform: translate(0px , -10px) 

}
85% {

animation-timing-function: ease-in-out;
transform: translate(0px , 0px) 

}
}



@keyframes moveplayer{
    0% { 

transform: translatex(-90%) scale(1.9) translatey(10vh) ;
    } 

    
    100% { 

transform: translatex(0%) scale(1) translatey(0px) ;
    } 

}




@keyframes shrinkspin{
 0% { 

  transform: rotate(0deg) ;
   scale: 1; 
 

    } 
100% {

  transform: rotate(3000deg) ;
   scale: 0.1; 

}
}


.bounceplayer {

opacity: 1;
  animation: bounce 9s linear 1;
}
.missplayer {

opacity: 1;
  animation: shr 9s linear 1;
}

@keyframes shr {
0% {opacity: 0;
  transform: scale(1.2)  ;
     } 

           65.9% { 
opacity: 0;
  transform: scale(1.2)  ;

     } 
      66% { 
opacity: 1;
  transform: scale(1)  ;

     } 
     
      100% { 
opacity: 1;
  transform: scale(1)  ;



     } 
}


@keyframes bounce {
0% {opacity: 0;
  transform: rotate(0deg) translateY(0px)  ;
     } 
     65.9% {opacity: 0;
  transform: rotate(0deg) translateY(0px)  ;
     } 
 
  66% { 
  
opacity: 1;
  transform: rotate(0deg) translateY(0px)  ;
     } 

69.3% { 
animation-timing-function: ease-out;
  transform: rotate(0deg) translateY(-20px) ;
     } 
 72.6% { 

animation-timing-function: ease-in;
  transform: rotate(0deg) translateY(0px) ;
     } 
      75.9% { 

animation-timing-function: ease-out;
  transform: rotate(0deg) translateY(-20px) ;
     } 
      79.2% { 

animation-timing-function: ease-in;
  transform:rotate(-0deg)   translateY(0px) ;
     } 
      82.5% { 

animation-timing-function: ease-out;
  transform: rotate(0deg) translateY(-20px) ;
     } 
      85.8% { 

animation-timing-function: ease-in;
  transform: rotate(-0deg) translateY(-0px) ;
     } 
      89.1% { 

animation-timing-function: ease-out;
  transform: rotate(0deg) translateY(-20px) ;
     } 
      92.4% { 

animation-timing-function: ease-in;
  transform: rotate(0deg) translateY(0px) ;
     } 
      95.7% { 

animation-timing-function: ease-out;
  transform: rotate(0deg) translateY(-20px) ;
     } 
      100% { 

animation-timing-function: ease-in;
  transform: rotate(0deg) translateY(0px) ;
  opacity: 1;
     } 
}


@media screen and (min-width: 750px) {

  .closewindow {
  bottom: 5%;
  left: 25%;
  transform: translate(-50%, 0%);
}
}



