html, body {
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'horror';  /* Name you'll use to reference the font */
  src: url('fonts/horror.ttf');
      
}

body {
    margin: 0px;
    overflow: hidden;
    background-color: #122825;
padding:0px;
}

canvas {
  border: 1px solid black;
}

#crown_Wrapper{
  width: 400px;
  height: 40px;
 
  display: flex;
  justify-content: left;
  padding-left: 5px;
}

#crown{
  height: 40px;
  width: 40px;
  background-image: url('./assets/crown3.svg');
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

#submit-screen{
  font-family: 'horror';
  text-transform: uppercase;
}

.submission input{
 width: calc(100% - 10px);
 padding: 5px;
}

#highscore_list{
  width: 400px;
  margin: 20px;
  margin-top: 0;
  max-height: 500px;
overflow: scroll;
  font-family: 'horror';
  text-transform: uppercase;
}

#highscore_list2{
  width: 400px;
  margin: 20px;
  margin-top: 0;
  max-height: 500px;
overflow: scroll;
  font-family: 'horror';
  text-transform: uppercase;
}

.score_table_class{
  width: 100%;
  height: fit-content;
}

.score_table_class tr{

padding-bottom: 15px!important;
background-color: white;
overflow: hidden;
padding: 0;


}
.score_table_class td{
 margin: 0px!important;
 letter-spacing: 2px;
 padding-left: 5px;
  
  }

  .scorename{
    color: #000000;
    letter-spacing: 2px;
    padding-left: 5px;
  }

  .scorerow-first{
    background-color: #FEAE21!important;
  }

#game-container {
    position: relative;
    width: 100%;
    height: 100vh;
    /* cursor:none; */
    background-image: url("assets/images/bg10.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0px;
    cursor:ew-resize
}

.bgfront {
  position: absolute;;
  width: 100%;
  height: 100vh;
  /* cursor:none; */
  background-image: url("assets/images/bgfront.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0px;
  cursor:ew-resize;
  z-index:10;
  pointer-events: none;
  top: 0;
}

#player {

 
  background-image: url(" assets/images/cauldron_1.gif");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
    position: absolute;
    width: 140px;
    height: 150px;
    /* background-color: rgb(0, 0, 255); */
    bottom: 120px;
    z-index: 4;
  transform-origin: center;
}

.effectClass{
  width:70%;
  height: 100px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: bottom;
  /* background-color: red; */
  background-image: url("assets/images/splash.gif");
  mix-blend-mode: soft-light;
  display:none;
  transform: translate(25%, -35px);
}

.long{
  background-image: url(" assets/images/cauldron_long.gif")!important;
  background-size: 100% 100%!important;
}

.colour-overlay-blue{
  width:100vw;
  height:100vh;
  position: absolute;
  top:0px;
  background-color: rgb(0, 255, 251);
  mix-blend-mode: overlay;
  display:none;
  z-index: 100;
  pointer-events: none;
  z-index:20;
}

.colour-overlay-gold{
  width:100vw;
  height:100vh;
  position: absolute;
  top:0px;
  background-color: rgb(255, 191, 0);
  mix-blend-mode: overlay;
  display:none;
  pointer-events: none;
  z-index:20;
}

.colour-overlay-green{
  width:100vw;
  height:100vh;
  position: absolute;
  top:0px;
  background-color: rgb(0, 255, 34);
  mix-blend-mode: overlay;
  display:none;
  pointer-events: none;
  z-index:20;
}

.colour-overlay-red{
  width:100vw;
  height:100vh;
  position: absolute;
  top:0px;
  background-color: rgb(197, 0, 0);
  mix-blend-mode: overlay;
  display:none;
  pointer-events: none;
  z-index:20;
}
.falling-object {
   /* background-color: blue; */
    position: absolute;
    background-image: url("assets/images/green_sweet.gif");
    animation: fallAnimation 2s linear infinite;
    will-change: auto;
    background-position: bottom;
  background-size: contain;
  background-repeat: no-repeat;
    width: 100px;
    height: 100px;
}


.falling-blue {
    /* background-color: blue; */
    background-image: url("assets/Blue_Potion.gif")!important;
    animation: fallAnimation 2s linear infinite;
    will-change: auto;
    background-position: bottom;
  background-size: contain;
  background-repeat: no-repeat;
    width: 100px;
    height: 100px;
}
.falling-green {
    /* background-color: blue; */
    background-image: url("assets/images/orange_potion.gif")!important;
    animation: fallAnimation 2s linear infinite;
    will-change: auto;
    background-position: bottom;
  background-size: contain;
  background-repeat: no-repeat;
    width: 100px;
    height: 100px;
}



.falling-bomb-1 {
  background-image:url("assets/images/potion_red.gif")!important;
  background-position: bottom;
  background-size: contain;
  background-repeat: no-repeat;
  animation: fallAnimation 2s linear infinite;
  will-change: auto;
  background-size: contain;
  width: 70px;
  height: 100px;
border-radius:100px;
}

.power-up-1{
  /* background-color: greenyellow; */
  background-image: url("assets/images/green_potion.gif")!important;
  animation: fallAnimation 2s linear infinite;
  will-change: auto;
  background-position: bottom;
background-size: contain;
background-repeat: no-repeat;
  width: 100px;
  height: 100px;


}

.shake-and-scale {
  animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
  transform: scale(1.1);
}

@keyframes shake {
  10%, 90% {
    transform: translate3d(1px, 0, 0);
  }
  
  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(6px, 0, 0);
  }
}


/* standard coin effect */
.effect-1 {

  position: absolute;
  /* background-color: pink; */
  background-image: url("assets/images/splash.gif");
  width: 100px;
  height: 100px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: hue-rotate(-25deg) brightness(1.2);
 
}

/* blue coin effect */
.effect-2 {

  position: absolute;
  background-image: url("assets/images/wide_beam.gif")!important;
  width: 100px;
  height: 1521px;
  filter: hue-rotate(180);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: bottom;
  transform: translate(25%, -1454px);

}

.wide-effect{
  width: 400px!important;
  /* background-color: pink; */

}
/* gold coin effect */
.effect-3 {

  position: absolute;
  background-image: url("assets/images/wide_beam_gold.gif")!important;
  height: 1521px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: bottom;
  transform: translate(25%, -1454px);

}

/* bomb effect */
.effect-4 {

  position: absolute;
  background-image: url("assets/images/wide_beam_red.gif")!important;
  width: 100px;
  height: 1521px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: bottom;
  transform: translate(25%, -1454px);

}

/* powerup effect */
.effect-5 {

  position: absolute;
  background-image: url("assets/images/wide_beam_green.gif")!important;
  width: 100px;
  height: 1521px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: bottom;
  transform: translate(25%, -1454px);

}

#health-bar {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 200px;
    height: 20px;
    border-radius: 100px;;
    background-color: #ddd;
    overflow: hidden;
}
#health {
    height: 100%;
    background-color: rgb(178, 4, 226);
    width: 100%;
}
@keyframes fallAnimation {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100vh);
    }
}
#score {
    position: absolute;
    top: 0px;
    right: 40px;
    color: rgb(178, 4, 226);
    font-size: 26px;
    font-family: Arial, Helvetica, sans-serif;
    background-color: black;
    padding:10px 30px;
    box-sizing: border-box;
    border-radius: 100px;;
}


.milestone-message {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color:white;
    /* background-color: rgba(255, 255, 255, 0.8); */
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 26px;
    text-align: center;
    font-family: 'horror', sans-serif;
  }
  


/* Home screen styles */
  #home-screen {
    position: absolute;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    pointer-events: none;
    background-image: url("assets/images/bghome_new.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  #start-button {
  
    padding: 10px 20px;
    width:200px;
    background-color: #b91b62;
    color: white;
    border: none;
    cursor: pointer;
    pointer-events:initial;
margin-bottom:15px;
    display:flex;
    justify-content: center;
    font-family: 'horror', sans-serif;
    border-radius: 10PX;
    letter-spacing: 1px;
  }

  .button-wrapper{
    position:absolute;
    bottom:25%;
  }
  #home-info-button {

    padding: 10px 20px;
    width:200px;
    background-color: #b91b62;
    color: white;
    border: none;
    cursor: pointer;
    pointer-events:initial;
margin-bottom:15px;
    display:flex;
    justify-content: center;
    font-family: 'horror', sans-serif;
    border-radius: 10PX;
    letter-spacing: 1px;
  }

  #home-leaderboard-button {

    padding: 10px 20px;
    width:200px;
    background-color: #b91b62;
    color: white;
    border: none;
    cursor: pointer;
    pointer-events:initial;
margin-bottom:15px;
    display:flex;
    justify-content: center;
    font-family: 'horror', sans-serif;
    border-radius: 10PX;
    letter-spacing: 1px;
  }

 
#submitBackButton{
  padding: 10px 20px;
    width:200px;
    background-color: #b91b62;
    color: white;
    border: none;
    cursor: pointer;
    pointer-events:initial;
margin-bottom:15px;
    display:flex;
    justify-content: center;
    font-family: 'horror', sans-serif;
    border-radius: 10PX;
    letter-spacing: 1px;
}


  /* submit screen styles */
  #submit-screen {
    position: absolute;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 1);

    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;

    background-image: url("assets/images/bghome_new2.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display:none;
  }

  #submit-button {
    padding: 10px 20px;
    width:200px;
    background-color: #b91b62;
    color: white;
    border: none;
    cursor: pointer;
    pointer-events:initial;
margin-bottom:15px;
    display:flex;
    justify-content: center;
    font-family: 'horror', sans-serif;
    border-radius: 10PX;
    letter-spacing: 2px;
  }

  #submit-score-button {
    padding: 10px 20px!important;
    width:240px;
    background-color: #b91b62;
    color: white;
    border: none;
    cursor: pointer;
    pointer-events:initial;
margin-bottom:15px!important;
    display:flex;
    justify-content: center;
    font-family: 'horror', sans-serif;
    border-radius: 10PX;
    letter-spacing: 1px;
  }

  /* thankyou screen styles */
  #thankyou-screen {
    position: absolute;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 1);

    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    pointer-events: none;
    background-image: url("assets/images/bghome_new2.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display:none;
  }

  #thankyou-home-button {
    padding: 10px 20px;
    width:200px;
    background-color: #b91b62;
    color: white;
    border: none;
    cursor: pointer;
    pointer-events:initial;
margin-bottom:15px;
    display:flex;
    justify-content: center;
    font-family: 'horror', sans-serif;
    border-radius: 10PX;
    letter-spacing: 1px;
  }

  /* info screen styles */
  #info-screen {
    position: absolute;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 1);
   
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    pointer-events: none;
    background-image: url("assets/images/how.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display:none;
  }

  #info-home-button {
    padding: 10px 20px;
    width:200px;
    background-color: #b91b62;
    color: white;
    border: none;
    cursor: pointer;
    pointer-events:initial;
margin-bottom:15px;
    display:flex;
    justify-content: center;
    font-family: 'horror', sans-serif;
    border-radius: 10PX;
    position: absolute;
    bottom:10%;
    letter-spacing: 1px;
  }


  /* leader screen styles */
  #leader-screen {
    position: absolute;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 1);
  
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    pointer-events: initial;
    background-image: url("assets/images/bghome_new2.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display:none;
  }

  #leader-home-button {
    padding: 10px 20px;
    width:200px;
    background-color: #b91b62;
    color: white;
    border: none;
    cursor: pointer;
    pointer-events:initial;
margin-bottom:15px;
margin-top: 15px;
    display:flex;
    justify-content: center;
    font-family: 'horror', sans-serif;
    border-radius: 10PX;
    letter-spacing: 1px;
  }

  /* Game over screen styles */
  #game-over-screen {
    position: absolute;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 1);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    pointer-events: none;
    background-image: url("assets/images/bghome_new2.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  .scoreText {
    color: white;
    font-size:24px;
    margin-bottom: 100px;
    font-family: 'horror', sans-serif;
    letter-spacing: 1px;
  }


  #game-over-score {
    color: white;
    font-size:44px;
    margin-bottom: 20px;
  }

  #restart-button,
  #back-to-home-button {
    padding: 10px 20px;
    width:200px;
    background-color: #b91b62;
    color: white;
    border: none;
    cursor: pointer;
    pointer-events:initial;
margin-bottom:15px;
    display:flex;
    justify-content: center;
    font-family: 'horror', sans-serif;
    border-radius: 10PX;
    letter-spacing: 1px;
  }

.longer{
  width:300px!important;
  transition: 0.2s ease all;
  transform: scaleX(300px);
}

.landscape_modestopper{
  position: absolute;
  display: none;
  width: 100%;
  height: 100%;
  background-color: #b91b62;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  font-size: 1.5rem;
  text-align: center;
  color: rgb(0, 0, 0);
  font-family: 'horror';
}

.title{
  position: absolute;
  bottom: 40%;
  width: 80%;
  max-width: 400px;
  height: 400px;
  background-image: url('./assets/images/titlesvgs/witchesbrew.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.subscreentitle{
  
  width: 80%;
  max-width: 400px;
  height: 100px;
  background-image: url('./assets/images/titlesvgs/leaderboard2.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.subscreentitleSubmit{
  
  max-width: 250px!important;
  background-image: url('./assets/images/titlesvgs/submit2.svg')!important;

}

.subscreentitleOver{
  
  max-width: 250px!important;
  background-image: url('./assets/images/titlesvgs/over.svg')!important;

}

.subscreenthankyou{
  max-width: 250px!important;
  background-image: url('./assets/images/titlesvgs/thankyou.svg')!important;
}

.positionrelative{
  position: relative !important;
}

  /* Media query for mobile */
@media only screen and (max-width: 900px) {
  /* Your CSS rules specific to mobile go here */

  #highscore_list{
    width: 300px;
    font-size: 12px;
  }

  #highscore_list2{
    width: 300px;
    font-size: 12px;
  }

  #crown_Wrapper{
    width: 300px;
  }

  .falling-object {
    position: absolute;
    width: 50px;
    height: 50px;
    /* background-color: red; */
   
    animation: fallAnimation 2s linear infinite;
    will-change: auto;
    background-size: contain;
}

#score {
  position: absolute;
  top: 15px;
  right: 20px;
  padding:5px 20px;
  font-size: 18px;
  font-family: Arial, Helvetica, sans-serif;
}

#health-bar {
  position: absolute;
  top: 40px;
  left: 20px;
  width: 140px;
  height: 20px;
  border-radius: 100px;
  background-color: #ddd;
  overflow: hidden;
}
#player {
  position: absolute;
  width: 60px;
  height: 102px;
  bottom: 320px;
  z-index: 2;
}

.dead-zone{
  position: absolute;
  width:100vw;
  height:1px;
  bottom: 290px;
  z-index: 2;
  border-bottom:dashed 2px red;
}

.swipe-zone{
  background-color: rgba(0, 0, 0, 0.133);
  position: absolute;
  width:100vw;
  height:290px;
  bottom: 0px;
  backdrop-filter: blur(10px);
  background-image: url("assets/swipe.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 60%;
}




/* standard coin effect */
.effect-1 {

  position: absolute;
  /* background-color: pink; */
  background-image: url("assets/images/splash.gif");
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: translate(-20px, -160px);
}

.effectClass{
  width:70%;

  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: bottom;

  background-image: url("assets/images/splash.gif");
  mix-blend-mode: soft-light;
  /* display:none; */
  transform: translate(10px, -55px);
}

/* blue coin effect */
.effect-2 {

  position: absolute;
  background-image: url("assets/images/wide_beam.gif");

  height: 1521px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: bottom;
  transform: translate(10px, -1480px);

}

/* green coin effect */
.effect-3 {

  position: absolute;
  background-image: url("assets/images/wide_beam_gold.gif");
 
  height: 1521px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: bottom;
  transform: translate(10px, -1480px);

}

/* bomb effect */
.effect-4 {

  position: absolute;
  background-image: url("assets/images/wide_beam_red.gif");

  height: 1521px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: bottom;
  transform: translate(10px, -1480px);

}

/* powerup effect */
.effect-5 {

  position: absolute;
  background-color: rgb(225, 255, 0);
 
  height: 60px;

}


  /* info screen styles */
  #info-screen {

    background-image: url("assets/images/mobile.jpg");

  }

  .milestone-message {
   
    font-size: 18px;
   
  }
  

  /* Other elements you want to adjust */
}

@media screen and (min-device-width: 320px) and (max-device-width: 900px) and (orientation: landscape) {

  .landscape_modestopper{
    display: flex!important;
  }
}