@import url('https://fonts.googleapis.com/css2?family=Satisfy&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');
@font-face {
    font-family:'Resolve';
    src: url("Fonts/Gaba\ Ultra\ Italic.otf") format("opentype");
}

@font-face {
    font-family:'Gaba';
    src: url("Fonts/Gaba\ Ultra\ Italic.otf") format("opentype");
}

@font-face {
    font-family: "Resolve-Light";
    src: url("Fonts/font.woff") format('woff');
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgba(168, 167, 167, 0.603);
    transition: 0.3s;
    overflow-x: hidden;
}


/* Click to Unlock */

.unlock {
position: absolute;
top: 300px;
left: 50%;
transform: translate(-50%, 50%);
text-transform: uppercase;
background-color: rgb(209, 209, 209);
color: rgb(120, 121, 122);
z-index: 100;
padding: 35px;
font-family: 'Resolve', sans-serif;
cursor: pointer;
transition: 0.3s;
border-radius: 10px;
box-shadow: 1px 10px 30px rgb(170, 170, 170);
font-size: clamp(11px, 3vw, 16px);
opacity: 1;
width: 100%;
max-width: 500px;
text-align: center;
}

.unlock:active {
    opacity: 0.6;
}

/* Click to Unlock ENDS */


/* HEADER */

.main-heading {
  
    font-size: clamp(16px, 7.2vw, 3.7rem); 
    font-family:'Resolve', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(6, 10, 14, 0.705);
    width: 100%;
    height: 140px;
    text-align: center;
    transition: 0.1s;
    /* background-color: red; */
}

.main-heading h1 {
    width: 100%;
    font-weight: 100;
    display: block;
    /* border: 1px solid rgba(1, 147, 245, 0.295); */
    /* box-shadow: 0px 100px 10px 1000px rgba(32, 173, 114, 0.671); */
    border-radius: 5px;
    padding: 0px 20px 20px 20px;
    transition: 0.1s;
   
    /* animation: titlecolor 1s ease-out infinite ; */
    

}

.heading-color {
    color: rgb(134, 134, 134);
    transition: 0.1s;
}

.heading-border {
    position: relative;
    width: 100%;
    height: 1px;
    transition: 0.2s;
    /* z-index: 10; */
}

.paletteball {
    position: absolute;
    top: 135px;
    left: 50%;
    transform: translate(-50%, 50%);
    background-color: rgb(104, 104, 104);
    width: 20px;
    height: 30px;
    border-radius: 50px;
    border-top: 15px solid rgba(235, 235, 235, 0.842);
    box-shadow: 0px 0px 10px 0px rgba(63, 63, 63, 0.404), 0px 0px 10px 0px rgba(255, 255, 255, 0.479);
    align-self: center; 
    /* animation: rightline 1.2s ease-in-out infinite; */
    transform-origin: top;
    cursor: pointer;
    transition: 0.3s;
   
   
}

.paletteball:active {
    opacity: 0.5;
}

/* HEADER ENDS */

/* ------------------------ */

/* START STOP OPTIONS */

.options-container {
    width: 35%;
    max-width: 500px;
    min-width: 380px;
    display: flex;
 
    justify-content: space-around;
    margin-top: 100px;
    /* background-color: rgb(223, 22, 22); */
    border-radius: 0px;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
    font-family: 'Resolve-Light', cursive;
    letter-spacing: 6px;
    padding: 10px 0px 10px 0px;
    box-shadow: -1px 0px 0px 0px rgb(245, 245, 245),
    1px 0px 0px 0px #414141,
    -1px 0px 0px 0px #fafbfc,
    1px 0px 0px 0px #4d4d4d;
    font-size: clamp(14px, 1.8vw, 18px);
    transition: 0.3s;
    opacity: 0;
   pointer-events: none;
}

.options-divider {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 50%);
    top: 200px;
    width: 1px;
    height: 27px;
    background-color: rgba(145, 145, 145, 0.904);
    
}

.start {
    cursor: pointer;
    color: rgb(243, 243, 243);
    /* margin-right: 10px; */
    /* background-color: rgb(173, 173, 173); */
    transition: 0.1s;
    padding-left: 5px;
    
  
    border-radius: 2px;
}

.start:active {
    position: relative;
    transition: 0.1s;
    opacity: 0.5;
   
   }

.stop:active {
     
    transition: 0.1s;
    outline: none;
    opacity: 0.5;
    border-radius: 50px;
    /* box-shadow: 1px 1px 1px 10px rgb(207, 207, 207); */
   
   }   

.stop {
     color: rgb(65, 64, 64);
    cursor: pointer;
    margin-right: 8px;
    /* background-color: rgb(0, 255, 170); */
    /* padding: 5px 5px 5px 5px; */
    transition: 0.3s;
    border-radius: 2px;
    padding-left: 5px;
}

.startoption {
    opacity: 1;
    animation: startflash 2.3s ease-in-out infinite;
}

@keyframes startflash {
    0%{ opacity: 1; }
    50%{ opacity: 0; }
    100%{ opacity: 1; }
}

/* START STOP OPTIONS ENDS */

/* ------------------------ */

/* PING PONG CONTAINER */

.ping-pong-container {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    height: 300px;
    background-color: rgb(187, 187, 187);
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    transform:  perspective(1000px);
    transform-style: preserve-3d;
    box-shadow: 
    0px 25px 31px -7px rgba(46, 46, 46, 0.48),
    -16px -26px 15px -4px rgba(0,0,0,0), 
    0px 10px 2px 5px #a4a9af93;
    /* animation: container 1.3s ease-in-out infinite; */
    transition:  0.3s;
    opacity: 0.6;
}

.js-tilt-glare {
    border-radius: inherit;
    cursor: pointer;
}

.leftline {
    position: relative;
    top: 0px;
    left: -260px;
    background-color: rgba(0, 255, 170, 0.74);
    width: 8px;
    height: 60px;
    border-radius: 50px;
    align-self: center;
    /* animation: leftline 1.2s ease-in-out  infinite;  */
    /* animation-delay: 1s; */
    box-shadow: 0px 60px 900px rgb(116, 148, 156);
    transform-origin: top;
    transform: rotate(30deg)  translateZ(50px);
    box-shadow: 1px 0px 5px rgb(0, 255, 170),
    1px 0px 100px rgb(0, 255, 170),
    1px 0px 15px rgb(0, 255, 170);
    animation:  lightglow 2s ease-in-out infinite;
    transition: opacity  1.3s;
    transition-delay:  1.5s;
    opacity: 0;
}

.rightline {
    position: relative;
    top: 0px;
    left: -80px;
    background-color: rgba(0, 114, 207, 0.781);
    width: 8px;
    height: 60px;
    border-radius: 50px;
    align-self: center; 
    /* animation: rightline 1.2s ease-in-out infinite; */
    box-shadow: 0px 60px 900px rgb(116, 148, 156);
    transform-origin: top;
    transform: translateZ(50px) rotate(-30deg);
    box-shadow: 1px 0px 5px rgb(0, 114, 207),
    1px 0px 100px rgb(23, 145, 245),
    1px 0px 15px rgb(23, 145, 245);
    animation:  lightglow2 2s ease-in-out infinite;
    transition: opacity  1.3s;
    transition-delay: 1s;
    opacity: 0;
   

}

.ping-pong-container .pingball {
    position: relative;
    top: 20px;
    left: -310px;
    background-color: rgb(0, 255, 170);
    width: 15px;
    height: 15px;
    align-self: center;
    border-radius: 50%;
    /* animation: ballmove 2.4s ease-out  infinite 0.28s; */
    z-index: 1;
    animation: ballglow 1.3s ease-in infinite;
    transition: 1.3s;
    
    box-shadow: 0px 0px 2px rgb(116, 116, 116);
    transform: translateZ(20px);
}

.ping-pong-container .pingball::before {

}


.lineholder {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translate(-50%, 50%) ;
    background-color: rgba(149, 151, 149, 0.233);
    margin-left: -152px;
    width: 25px;
    height: 25px;
    border-radius: 50px;
    border-top: 4px solid rgb(209, 209, 209);
    
    transform-origin: top;
    transition: 0.2s;
    animation: eyesclose 15s ease-in-out 2s infinite;
    
}

.lineholder2 {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translate(-50%, 50%);
    background-color: rgba(149, 151, 149, 0.233);
    margin-left: 172px;
    width: 25px;
    height: 25px;
    border-radius: 50px;
    border-top: 4px solid rgb(209, 209, 209);
    
    align-self: center; 
    animation: eyesclose 15s ease-in-out 2s infinite;
    transform-origin: top;
   
}



.mouth {
    position: relative;
    top: 32px;
    left: 50%;
    transform: translate(-50%, 50%);
    background-color: rgb(204, 204, 204);
    
    
    width: 300px;
    height: 25px;
    transition:  0.3s;
    
    transform-origin: top;
    transform: skew(0deg) translateX(-145px) rotate3d(0, 1, 0.5, 3.142rad) translate3d(0,0,0) ;
    border-radius: 50px;
    align-self: center; 
    box-shadow: 0px 0px 1px rgb(226, 226, 226),
    0px 0px 1px rgb(153, 153, 153),
    0px 10px 1px rgb(153, 153, 153),
    0px  0px 1px rgb(252, 252, 252),
    0px 0px 1px rgb(236, 236, 236)
    ;
  
  /* animation: fadein 1s ease-in 1;   */
}




/* PING PONG CONTAINER ENDS */

/* ------------------------ */

/* ANIMATIONS */

@keyframes fadein {
    0% {opacity: 0;}
    50% {opacity: 0.5; }
    100% {opacity: 1; }
}

@keyframes leftline {
    0% {
        transform: rotate(30deg) translateZ(50px);
    
    }
  
   50% {
        transform: rotate(-50deg) translateZ(50px) ;
        
    }

    100% {
        transform: rotate(30deg) translateZ(50px) ;
        
    }

}

@keyframes rightline {
    0% {
        transform: rotate(-30deg) translateZ(50px);
    }
  
   50% {
        transform: rotate(50deg) translateZ(50px);
    }

    100% {
        transform: rotate(-30deg) translateZ(50px) ;
    }

}

@keyframes ballmove {
    0% {
        left: -310px;
          
    }
   10% {
       width: 12px;
   }

   11% {
    width: 15px;
}

    50% {
        
        left: -30px;
        background-color: rgb(0, 114, 207);
       
    }

  
    100% {
        left: -310px;
       
    }
}

@keyframes ballglow {
  0% {
  
   box-shadow: 0px 0px 0px rgb(0, 255, 170);
  }
   
  50% {
    box-shadow: 0px 0px 10px rgb(0, 255, 170);
  }

  100% {
    box-shadow: 0px 0px 0px rgb(0, 255, 170);
  }
}

@keyframes ballglowwhite {
    0% {
    
     box-shadow: 0px 0px 0px rgb(172, 172, 172);
    }
     
    50% {
      box-shadow: 0px 0px 10px rgb(173, 173, 173);
    }
  
    100% {
      box-shadow: 0px 0px 0px rgb(255, 255, 255);
    }
  }



@keyframes eyesclose {
   0% {
    border-top: 4px solid rgb(209, 209, 209);
   }

   2% {
    border-top: 13px solid rgb(209, 209, 209);
   }

   4% {
    border-top: 4px solid rgb(209, 209, 209);
   }

   6% {
    border-top: 13px solid rgb(209, 209, 209);
   }

   8% {
    border-top: 4px solid rgb(209, 209, 209);
   }

    
   
     100% {
    border-top: 4px solid rgb(209, 209, 209);
   }

}




@keyframes lightglow {
    0% {
        box-shadow: 1px 0px 100px rgb(0, 255, 170);  
    }
    50% {
        box-shadow: 1px 0px 98px rgb(0, 255, 170);
    }
    100% {
        box-shadow: 1px 0px 100px rgb(0, 255, 170);
    }

}

@keyframes lightglow2 {
    0% {
        box-shadow: 1px 0px 100px rgb(23, 145, 245);  
    }
    50% {
        box-shadow: 1px 0px 98px rgb(23, 145, 245);
    }
    100% {
        box-shadow: 1px 0px 100px rgb(23, 145, 245);
    }

}

@keyframes container {
    0% {
        top: 120px;
    }
    50% {
        top: 116px;
    }
    100% {
        top: 120px;
    }
}

@keyframes downwitit {
    0% {
        transition: 0.3s;
        top: 120px;
    }
    50% {
        top: 116px;
        transition: 0.3s;
    }
    100% {
        top: 120px;
        transition: 0.3s;
    }

    
}

@keyframes results {
    0% {
     opacity: 1;
    }

    50% {
     opacity: 0;
    }

    100% {
        opacity: 1;
    }
}




/* ANIMATIONS END */

/* ------------------- */

/* POSITIONS CHANGED FOR MOBILE */


.game-container {
   
    margin-top: -40px;
    width: 100%;
    height: 65vh;
    /* background-color: rgb(34, 83, 102); */
}

.credits {
    font-family: 'Resolve-Light';
    letter-spacing: 2.2px;
    font-size: 15.5px;
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: 20px;
    background-color: #818181;
    color: transparent;
    text-shadow: 2px 3px 3px rgba(253, 253, 253, 0.281);
    -webkit-background-clip: text;
       -moz-background-clip: text;
            background-clip: text;
            transition: 0.3s;
          
}

.results {
    font-family: 'Resolve-Light';
    letter-spacing: 2.2px;
    font-size: 17px;
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: 40px;
    margin-top: 40px;
 
       
   
    margin-bottom: 150px;
    /* background-color: #818181; */
    color: rgb(104, 104, 104);
    text-shadow: 2px 3px 3px rgba(253, 253, 253, 0.281);
    
            transition: 0.3s;

          
}


/* POSITIONS CHANGED FOR MOBILE ENDS */

/* TOGGLE DARK MODE */

.darkmode {
    background-color: rgba(18, 25, 34, 0.938);
    transition: 0.3s;
}

.color {
    transition: 0.3s;
    color: rgb(226, 226, 226);
}
.bordertoggle {
    /* background-color: rgba(74, 76, 78, 0.829); */
    transition: 0.5s;
   opacity: 0;
}

.stoptoggle {
    transition: 0.3s;
 color: rgb(146, 146, 146);
 /* box-shadow: 0px 0px 0px rgb(0, 89, 255); */

}

.stoptoggle-shadow {
    box-shadow: none;
}

.mainheading-toggle {
    
    color: rgb(126, 126, 126);
}

.spancolor {
    transition: 0.3s;
    color: rgba(17, 17, 17, 0.829);
}

.creditscolor {
    background-color: rgba(209, 209, 209, 0.938);
    color: transparent;
    text-shadow: 0px 0px 1px rgb(219, 219, 219) ;
    -webkit-background-clip: text;
       -moz-background-clip: text;
            background-clip: text;
            transition: 0.3s;
}

.paletteball-toggle {
    transition: 0.3s;
    background-color: rgba(153, 153, 153, 0.911);
    border-top: 15px solid rgba(15, 15, 15, 0.842);
  
}

.ping-pong-container-toggle {
    background-color: rgb(26, 26, 26);
    box-shadow: none;
    box-shadow: 0px 43px 31px -7px rgba(31, 31, 31, 0.48),
    -16px -26px 15px -4px rgba(0,0,0,0), 
    0px 10px 15px 5px rgba(24, 24, 24, 0.984);
}

.darklight-toggle {
    display: none;
}

.mouth-toggle {
    transition: 0.3s;
background-color: rgba(82, 82, 82, 0.219);
box-shadow: none;
box-shadow: 0px 8px 1px rgb(12, 12, 12),
0px 0px 10px rgb(26, 26, 26),
0px 10px 1px rgb(20, 20, 20);
}

.leftline-toggle {
    background-color: rgba(0, 255, 170, 0.486);
    transition: 0.3s;
}

.rightline-toggle {
    background-color: rgba(0, 114, 207, 0.548);
    transition: 0.3s;
}

.results-toggle {
   color: rgb(214, 216, 218); 
}

.unlock-toggle {
    background-color: rgb(15, 17, 19);
    color: rgb(167, 167, 167);
    box-shadow: 0px 5px 8px rgb(3, 3, 3);
}



/* TOGGLE DARK MODE ENDS */
