*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

.preloader{
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: #222;
  z-index: 100000000;
}
@keyframes pulseSize {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.85); /* Reduces to 85% of original size */
  }
  100% {
    transform: scale(1);
  }
}

.preloader img {
  width: calc(6vw + 6rem);
  box-shadow: 0 0 10px 3px rgb(255, 0, 0);
  border-radius: 50%;
  animation: pulseSize 1.5s ease-in-out infinite; /* Adjust timing as needed */
  transform-origin: center; /* Ensures scaling happens from the center */
  transition: opacity 0.5s ease-out;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}
.cen{
    display: flex;
    align-items: center;
    justify-content: center;
}

.container{
    height: 100vh;
    width: 100vw;
     background: #131315;
    color: white;
    cursor: pointer;
}
.top_bar{
    width: 100%;
    height: 3rem;
    /* border: 1px solid black; */
    justify-content: space-between;
    padding: 0 5%;
    background: url(../assets/texture.avif), rgba(255, 0, 0, 0.833);
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
 
}
 
.icon{
    width: 2rem;
    height: 2rem;
 }

.buttons{
    
}

.button{
    width: calc(3rem + 4vw);
    padding: .8rem;
    border: 1px solid;
    margin-right: 1rem; 
    border-radius: .5rem;
}
nav{
    width: 100%;
    height: 2.5rem;
    background: #16161a;
    padding: 0 3rem;
    justify-content: space-between !important;
    background: url(../assets/texture.avif), rgba(255, 0, 0, 0.833);
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;


}
.logo{
    height: 2.5rem;
    width: 5.5rem;
      position: relative;
    
}
.logo img{
  width: calc(5vw + 2rem);
  position: absolute;
  top: calc(-2vw - 2rem );
  left: 20vw;
}

.content{
    width: 100%;
    height: calc(100vh - 5.5rem);
     display: grid;
    grid-template-columns: 3fr 5fr 2fr;
}

.w{
    /* border: 1px solid white; */
}
.g_h{
    width: 100%;
    height: 1.5rem;
     justify-content: space-around;
    font-size: .8rem;
    padding: .3rem;
    box-shadow: 0 0 5px 1px rgba(72, 72, 72, 0.566);
    border-radius: .3rem;
 }

 .workstation{
    height: 70%;
    width: 100%;
     position: relative;
    overflow: hidden;
    border: .5rem;
    box-shadow: 0 0 5px 1px rgba(128, 128, 128, 0.519);
 
 }


 .workstation .ray{
    position: absolute;
    height: 300%;
    width: 320%;
    bottom: -140%;
    left: -140%;
    opacity: .5;

 }
 @keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
  .rotate {
    animation: spin 50s linear infinite;
  }


  .aviator{
    position: absolute;
    width: 7rem;
    bottom: 1rem;
    left: 2rem;
    margin-left: .1rem;
    margin-bottom: .1rem;
    transition: 1s cubic-bezier(0.455, 0.03, 0.515, 0.955);
  }

  .aviator.active{
    margin-left: 40rem !important;
    margin-bottom: 5rem;
   }
   .path.active{
    opacity: 0;
    }
  

  .path{
    position: absolute;
    width: 0;
    height: 0;
    bottom: 0;
    left: 0;
    opacity: .8;
   

  }
  .value span{
    font-weight: 800;
    z-index: 5;


}
.value{
  position: absolute;
  font-size: calc(4rem + 3vw);
  font-weight: 800;
  z-index: 5;
  transition: .5s cubic-bezier(0.175, 0.885, 0.32, 1.575);



}

.value.active{
  color: red;
  font-size: calc(4rem + 5vw);


}
.balance{
   position: absolute;
  right: 15vw;
  top: 2rem;
 }
 .balance span{
  padding: 1rem;
   border-right: 1px solid white;
  padding-top: .4rem;
  padding-bottom: .4rem;
  text-align: center;

 }

 .mb{
  color: rgb(255, 238, 0);
 }

.blur{
    position: absolute;
    width: 35%;
    height: 20%;
    border-radius: 5rem;
    filter: blur(50px);
    background: rgba(0, 255, 255, 0.506);
    transform: rotate(5deg);
}
  @keyframes dynamicParabola {
    0% {
      left: 0%;
      bottom: 5%;
      scale: .7;
    }
    5% {
      left: 5%;
      bottom: 6%;
      scale: .72;
    }
    10% {
      left: 10%;
      bottom: 7%;
      scale: .74;
    }
    15% {
      left: 15%;
      bottom: 8.5%;
      scale: .76;
    }
    20% {
      left: 20%;
      bottom: 9.5%;
      scale: .78;
    }
    25% {
      left: 25%;
      bottom: 10%;
      scale: .8;
    }
    30% {
      left: 30%;
      bottom: 14%;
      scale: .83;
    }
    35% {
      left: 35%;
      bottom: 19%;
      scale: .86;
    }
    40% {
      left: 40%;
      bottom: 25%;
      scale: .89;
    }
    45% {
      left: 45%;
      bottom: 30%;
      scale: .92;
    }
    50% {
      left: 50%;
      bottom: 35%;
      scale: .9;
    }
    55% {
      left: 55%;
      bottom: 42%;
      scale: .93;
    }
    60% {
      left: 60%;
      bottom: 49%;
      scale: .96;
    }
    65% {
      left: 65%;
      bottom: 56%;
      scale: .98;
    }
    70% {
      left: 70%;
      bottom: 61%;
      scale: .99;
    }
    75% {
      left: 75%;
      bottom: 65%;
      scale: 1;
    }
    80% {
      left: 77%;
      bottom: 70%;
      scale: 1.03;
    }
    85% {
      left: 78.5%;
      bottom: 74%;
      scale: 1.06;
    }
    90% {
      left: 79.5%;
      bottom: 77%;
      scale: 1.09;
    }
    95% {
      left: 79.8%;
      bottom: 79%;
      scale: 1.1;
    }
    100% {
      left: 80%;
      bottom: 80%;
      scale: 1.1;
    }
  }

  @keyframes pathParabola {
    0% {
      width: 0%;
      height: 5%;
    }
    5% {
      width: 8%;   /* 5 + 3 */
      height: 7%;  /* 6 + 1 */
    }
    10% {
      width: 15%;  /* 10 + 5 */
      height: 9%;  /* 7 + 2 */
    }
    15% {
      width: 23%;  /* 15 + 8 */
      height: 11.5%; /* 8.5 + 3 */
    }
    20% {
      width: 28%;  /* 20 + 8 */
      height: 13.5%; /* 9.5 + 4 */
    }
    25% {
      width: 34%;  /* 25 + 9 */
      height: 15%; /* 10 + 5 */
    }
    30% {
      width: 37%;  /* 30 + 7 */
      height: 20%; /* 14 + 6 */
    }
    35% {
      width: 45%;  /* 35 + 10 */
      height: 26%; /* 19 + 7 */
    }
    40% {
      width: 51%;  /* 40 + 11 */
      height: 33%; /* 25 + 8 */
    }
    45% {
      width: 58%;  /* 45 + 13 */
      height: 39%; /* 30 + 9 */
    }
    50% {
      width: 65%;  /* 50 + 15 */
      height: 45%; /* 35 + 10 */
    }
    55% {
      width: 71%;  /* 55 + 16 */
      height: 53%; /* 42 + 11 */
    }
    60% {
      width: 78%;  /* 60 + 18 */
      height: 61%; /* 49 + 12 */
    }
    65% {
      width: 84%;  /* 65 + 19 */
      height: 69%; /* 56 + 13 */
    }
    70% {
      width: 90%;  /* 70 + 20 */
      height: 75%; /* 61 + 14 */
    }
    75% {
      width: 94%;  /* 75 + 19 */
      height: 80%; /* 65 + 15 */
    }
    80% {
      width: 97%;  /* 77 + 20 */
      height: 86%; /* 70 + 16 */
    }
    85% {
      width: 98.5%; /* 78.5 + 20 */
      height: 91%; /* 74 + 17 */
    }
    90% {
      width: 99.5%; /* 79.5 + 20 */
      height: 95%; /* 77 + 18 */
    }
    95% {
      width: 99.8%; /* 79.8 + 20 */
      height: 98%; /* 79 + 19 */
    }
    100% {
      width: 100%; /* 80 + 20 */
      height: 100%;/* 80 + 20 */
    }
  }
  @keyframes flightBounce {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-15px); }
    100% { transform: translateY(0); }
  }
  .fly-animation {
    animation: flightBounce 1s ease-in-out infinite ;
 
  }  
  #aviatorImage {
    position: absolute;
    will-change: left, bottom, scale; /* GPU acceleration */
  }
  #aviatorImage {
    transform: translateZ(0);
    backface-visibility: hidden;
  }
  
  
 .bet{
    width: 100%;
    justify-content: space-between;
     height: 27%;
 } 

 .bet span{
   width: 48%;
  height: 60%;
  border-radius: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 70%;
 }

 span aside{
   padding: .3rem;
 }

 aside .input, aside .input2{
  width: 100%;
  height: 3rem;
  }

 .tap, .tap2{
  display: flex;
  flex-wrap: wrap;
 }

 .tap strong, .tap2 strong{
  width: 40%;
  margin: 5%;
   padding: .3rem;
  border-radius: .4rem;
  background: #16161a;
 }

 .input, .input2{
  position: relative;
 }

 .input input, .input2 input{
  background: #16161a;
  height: 2.5rem;
  border-radius: 1rem;
  color: white;
  font-size: 1rem;
  text-align: center;
  border: none;
 }

 .valu, .valu2{
  height: 2rem;
  width: 2rem;
  background: #1f2027;
  border-radius: 50%;
  position: absolute;
  left: .5rem;
 }

 .vr, .vr2{
  height: 2rem;
  width: 2rem;
  background: #1f2027;
  border-radius: 50%;
  position: absolute;
  right: .5rem;
 }

 .bet_button, .bet_button2{
  width: 95%;
  height: 80%;
  background: green;
  border-radius: 1rem;
  font-size: calc(2vw - .5rem);
  text-align: center;
  border: 1px solid white;
  position: relative;
  overflow: hidden;
 }

 .cover, .cover2{
  background:#000000;
  padding: .5rem;
 }

     .stakes{
      height: 99%;
      background: black;
      width: 99%;
      border-radius: 2rem;
      justify-content: flex-start;
      flex-direction: column;
     }

     .range{
      width: 90%;
      background: #1f2027;
      border-radius: 1rem;
      display: flex;
      justify-content: space-evenly;
      padding: .5rem;
      margin-top: 1rem;
      }
     .range span{
      padding: .5rem 1.2rem;
      background: #141416;
      border-radius: 1rem;
     }
     .fw{
      width: 100%;
     }
     .current_bets{
      padding: 2rem;
      padding-left: 2vw;
     }

     .title{
      width: 100%;
      justify-content: space-between;
       padding: 1rem;
      font-size: .8rem;

     }

     .live{
      width: 98%;
      height: calc(100% - 10rem);
       margin-top: 1rem;
     }
     .live_play{
      width: 98%;
       margin-top: .5rem;
      justify-content: space-between;
      font-size: .9rem;
      font-weight: 200;
      padding: .2rem;
      background: #131316;
      border-radius: 1rem;

     }
     .live_play span .profile{
      height: 1.5rem;
      width: 1.5rem;
      border-radius: 50%;
      border: 1px solid;
     }

     .live_play .number{
      padding-left: .8rem;
     }

     .comments .span{
      font-size: .7rem;
     }
     .comments{
      position: relative;
      }
  .ml1{
    margin-left: 1rem;
  }

  .reply{
    position: absolute;
    bottom: 7vh;
    left: 0;
    width: 94%;
    margin-left: 3%;
    height: calc(6rem + 5vh);
    background: #000000;
   }

  .reply textarea{
    background: transparent;
    color: white;
    width: 100%;
    height: 100%;
    padding: 1rem;
    outline: none;
    border: 2px solid grey;
    border-radius: 2rem;
 

  }

  .send{
    position: absolute;
    right: 1rem;
    height: 2rem;
    width: 2rem;
    border: 1px solid white;
    top: 1rem;
  }

  .end{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    background: rgb(255, 21, 0);
    background: rgba(14, 128, 6, 0.447);
    font-weight: 300;
    flex-direction: column;
    justify-content: space-around;
    font-size: 2rem;
  }

.end aside{
  font-size: .8rem;
 }

 .records, .stakes, .live {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: auto;

}

.stakes {
  height: auto;
  background: black;
  width: 90%;
  border-radius: 2rem;
  padding: 1rem;
  position: absolute;
  top: 0;
}
 
.live {
  width: 100%;
 }

.live_play {
  width: 95%;
  display: flex;
  justify-content: space-between;
  align-items: center;
   font-weight: 300;
   background: #131316;
  border-radius: 1rem;
   color: white;
  transition: all 0.3s ease;
}

.profile {
  height: 1.5rem;
  width: 1.5rem;
  border-radius: 50%;
  background: #666;
  border: 1px solid white;
  margin-right: 0.5rem;
}

.number {
  padding-left: 0.5rem;
}


.live_comments{
   height: calc(55vh + 5rem);
  overflow-y: auto;
}

.countdown {
    font-size: 1.2em;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    margin: 10px 0;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}