*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.overlay{
  width: 100%;
  height: 100vh;
  overflow: auto;
  background-color: #f5f5f5;
  opacity: .8;
  position: absolute;
  z-index: -1;
}

.mobile-bet-wrapper{
  width: 70%;
  height: auto;
  margin-top: 2rem;
  margin-bottom: 0;
  display: none;
}

.mobile-bet-wrapper p,h6{
  margin: 0 !important;
  padding: 0;
}

.mobile-bet-wrapper h6{
  border-bottom: 1px solid #eee;
  padding-bottom: .3rem;
  padding-top: .3rem;
  letter-spacing: 1px;
}

.mobile-bet-wrapper p{
  font-size: .8rem;
  font-weight: 500;
  border-bottom: 1px solid #eee;
  padding-bottom: .3rem;
  padding-top: .3rem;
  color: #555;
}

.star{
    background-image: url('../img/star.png');
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size:70%;
    background-position: center;
}

#dice-img{
  width: 84%;
  transform: scale(.8);
}

.row{
    margin: 0 !important;
}

.ludo-wrapper{
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    align-items: start;
    overflow: auto !important;
    background-image: url('../img/f2.png');
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
  
}

.ludo-container{
    width: 51vw;
    height: 78vh;
    border-radius: 20px !important;
    z-index: 100;
    margin-top: 1rem;
}

.row1, .row3{
    width: 100%;
    height: 40%;
    display: flex;
}

.row1 .col1,
.row1 .col3,
.row3 .col1,
.row3 .col3{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40%;
    border-radius: 10px;
}

.row1 .col2,
.row1 .col2,
.row3 .col2,
.row3 .col2{
    width: 20%;
}

.row1-col1-child,
.row1-col3-child,
.row3-col1-child,
.row3-col3-child{
    width: 70%;
    height: 70%;
    background-color: #ebd8c8 !important;
    border-radius: 10px;
}

.row1-col1-child>div,
.row1-col3-child>div,
.row3-col1-child>div,
.row3-col3-child>div{
    width: 35%;
    height: 35%;
    margin: 7%;
    float: left;
    border-radius: 5px;
    /* border-radius: 50% ; */
    /* box-shadow: 0 3px 6px rgba(0, 0, 0, .16),0 3px 6px rgba(0, 0, 0, .23); */
    transition: all .3s cubic-bezier(.25,.8,25,1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.goti{
    width: 71%;
    height: 81%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .16),0 3px 8px rgba(0, 0, 0, .23);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.7);
    transition: .3s all;
}

.goti-wrapper{
  /* position: relative; */
  display: flex;
  justify-content: center;
  align-items: center;
}

.goti-wrapper img{
  /* width: 85%;
  height: auto; */
  transform: scale(.7);
  align-self: center;
  justify-self: center;
 
}


.row1 .col2 .goti,
.row2 .col3 .goti,
.row3 .col2 .goti{
    animation: move .5s infinite alternate;
    /* transform: scale(1.1); */
}

/* @keyframes move {
    0%{
        transform: scale(1);
    }
    100%{
        transform: scale(1.1);
    }
} */

.row2{
    width: 100%;
    height: 20%;
    display: flex;
}

.row2 .col1, .col3{
    width: 40%;
}

.row2 .col1>div,
.row2 .col3>div{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e4cdb9;
}

.row2 .col2{
    width: 20%;
}

.row2 .col1>div,
.row2 .col3>div{
    height: 33.33%;
    width: 16.667%;
    border: 1px solid #000;
    float: left;
    border-radius: 6px;
}

.col-md-2{
    padding: 0 !important;
}

.row1 .col2>div{
    width: 33.33%;
    height: 16.667%;
    border: 1px solid #000;
    float: left;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    background-color: #e4cdb9;
}

.row3 .col2>div{
    width: 33.33%;
    height: 16.667%;
    border: 1px solid #000;
    float: left;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    background-color: #e4cdb9;
}

.icon{
    margin: 3px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon i{
    font-size: 2.4rem;
}

.contain-triangle{
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.right-triangle{
    width: 0;
    height: 0;
    border-top: 85px solid transparent;
    border-left: 85px solid #84c21f;
    border-bottom: 85px solid transparent;
    position: absolute;
    top: 0;
    bottom: 0;
    margin-top: auto;
    margin-bottom: auto;
}

.up-triangle{
    width: 0;
    height: 0;
    border-right: 85px solid transparent;
    border-left: 85px solid transparent;
    border-bottom: 85px solid #0092dc;
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    bottom: 0;
}

.left-triangle{
    width: 0;
    height: 0;
    border-right: 85px solid #dc2418;
    border-top: 85px solid transparent;
    border-bottom: 85px solid transparent;
    position: absolute;
    top: 0;
    bottom: 0;
    margin-top: auto;
    margin-bottom: auto;
    right: 0;
}

.down-triangle{
    width: 0;
    height: 0;
    /* border-top: 85px solid #f6c700; */
    border-top: 85px solid #ff8500;
    border-left: 85px solid transparent;
    border-right: 85px solid transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

.circle{
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    background-color: #ebd8c8;
    border-radius: 50%;
    height: 70%;
    width: 70%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle .text i{
    font-size: 3.1rem;
    font-weight: 700;
    /* color: #ff8500; */
    color: goldenrod;
}

.green{
    background-color: #84c21f !important;
    /* background-color: #769525 !important; */
}

.red{
    /* background-color: #dc2418 !important; */
    background-color: #e00000 !important;
}

.blue{
    /* background-color: #0092dc !important; */
    background-color: #0085d1 !important;
}

.yellow{
    /* background-color: #f6c700 !important; */
    background-color: #ff8500 !important;
}

.white{
    background-color: #fff;
}
  
  .right-side{
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    position: relative;
    gap: 16rem;
  }

  /* Goti Reached/Pugg styling  */
  .goti-reached-wrapper{
    background: #fff;
    color: #555;
    width: 19rem;
    margin-bottom: 3rem;
    border-radius: 1rem;
    padding: 1rem 1rem;
    z-index: 1;
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    margin: auto;
  }

  .goti-reached-wrapper h1{
    font-weight: bold;
  }

  .f-goti span{
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
  }

  .users-turn{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem !important;
  }

  .users-turn .user1,.user3{
    background-color: #84c21f;
    color: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: .5rem;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .users-turn h5{
    font-size: 1rem;
    margin: 0;
  }

  .users-turn .user3 {
    background-color: #ff8500;
  }

.user-circle{
    background-color: #e4cdb9;
    border-radius: 50%;
    width: 5.1rem;
    height: 4.9rem;
    border: 1px solid #555;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }

  .dice{
    cursor: pointer;
  }

  .left-circle-wrapper,.right-circle-wrapper{
    height: 100vh;
    display: flex;
    align-items: center;
  }

  .r-img {
    width: 30rem;  
  }

  .r-img img{
    width: 100%;
    height: 100%;
  }

  .add-animation{
    animation: dice .3s ease-in-out alternate;
  }

  /* Dice Animation */
  @keyframes dice {
    0%{
      transform: rotate(0deg);
      transform: scale(.4);
    }
    30%{
      transform: rotate(180deg);
    }
    40%{
      transform: rotate(270deg);
    }
    50%{
      transform: rotate(360deg);
    }
    70%{
      transform: rotate(-270deg);
    }
    90%{
      transform: rotate(60deg);
    }
    100%{
      transform: rotate(360deg);
    }
  }


  @media screen and (max-width:1400px) {
    
    .ludo-container{
      margin-top: 3rem;
      height: 73vh;
      width: 55vw;
    }

    .right-side{
      gap: 20rem;
    }
    .right-side .goti-reached-wrapper{
      top: 16%;
    }

  }
  

@media screen and (max-width:1188px) {
  .dice-wrapper{
    display: none;
  }
  .right-side{
    display: none;
  }
  .r-img {
    display: none;
  }
  .ludo-wrapper{
      height: 100vh;
    }

    .ludo-container{
      width: 85vw;
    }

}

@media screen and (max-width:768px) {
  .circle{
    width: 55%;
    height: 55%;
  }
  .down-triangle{
    border-top: 65px solid #ff8500;
    border-left: 65px solid transparent;
    border-right: 60px solid transparent;
  }

  .up-triangle{
    border-right: 60px solid transparent;
    border-left: 60px solid transparent;
    border-bottom: 60px solid #0092dc;
  }

  .left-triangle{
    border-right: 65px solid #dc2418;
    border-top: 65px solid transparent;
    border-bottom: 60px solid transparent;
  }

  .right-triangle{
    border-top: 65px solid transparent;
    border-left: 65px solid #84c21f;
    border-bottom: 60px solid transparent;
  }
  
}

@media screen and (max-width:700px) {
 
  .goti-wrapper img{
    transform: scale(.5);
  }

  .circle .text i{
    font-size: 1.9rem;
  }
}

@media screen and (max-width:641px) {
  .circle{
    width: 50%;
    height: 50%;
  }
  .down-triangle{
    border-top: 58px solid #ff8500;
    border-left: 58px solid transparent;
    border-right: 58px solid transparent;
  }

  .up-triangle{
    border-right: 57px solid transparent;
    border-left: 57px solid transparent;
    border-bottom: 57px solid #0092dc;
  }

  .left-triangle{
    border-right: 57px solid #dc2418;
    border-top: 57px solid transparent;
    border-bottom: 57px solid transparent;
  }

  .right-triangle{
    border-top: 58px solid transparent;
    border-left: 58px solid #84c21f;
    border-bottom: 58px solid transparent;
  }
}

@media screen and (max-width:700px) {
 
  .goti-wrapper img{
    transform: scale(.5);
  }

  .circle .text i{
    font-size: 1.9rem;
  }
}

@media screen and (max-width:528px) {
  .circle{
    width: 53%;
    height: 53%;
  }
  .down-triangle{
    border-top: 53px solid #ff8500;
    border-left: 53px solid transparent;
    border-right: 53px solid transparent;
  }

  .up-triangle{
    border-right: 53px solid transparent;
    border-left: 53px solid transparent;
    border-bottom: 53px solid #0092dc;
  }

  .left-triangle{
    border-right: 53px solid #dc2418;
    border-top: 53px solid transparent;
    border-bottom: 53px solid transparent;
  }

  .right-triangle{
    border-top: 56px solid transparent;
    border-left: 56px solid #84c21f;
    border-bottom: 56px solid transparent;
  }


}


@media screen and (max-width:922px) {
  .ludo-wrapper{
    height: 100vh;
  }
    .ludo-container{
        height: 64vh;
        }
    .row1, .row3{
        height: 40%;
    }
    .row2{
        height: 20%;
    }

}

@media screen and (max-width:621px) {
  .row1, .row3{
    height: 35%;
}

.users-turn h5{
  font-size: .9rem;
}
  .ludo-wrapper{
    gap: 0rem;
  }

}

@media screen and (max-width:480px) {
  .goti-wrapper img{
    transform: scale(.3);
  }

  .row1, .row3{
    height: 27%;
}
.row2{
    height: 16%;
}

#dice-img{
  width: 90%;
  transform: scale(.9);
}

.ludo-wrapper{
  flex-direction: column;
  align-items:center;
  justify-content: flex-start;
}

.ludo-container{
  width: 88vw;
  }

  .row2 .col1>div,
.row2 .col3>div{
  border-radius: 4px;
}

.row1 .col2>div,
.row3 .col2>div{
  border-radius: 4px;
}

.row1-col3-child .goti,
.row1-col1-child .goti,
.row3-col1-child .goti,
.row3-col3-child .goti{
  border-radius: 6px;
}

.user-circle{
  width: 4rem;
  height: 4rem;
}

.user-circle img{
  width: 74% !important;
}

}

@media screen and (max-width:430px) {

.ludo-container{
  width: 85vw;
}

.mobile-bet-wrapper{
  display: block;
}

.users-turn h5{
  font-size: .5rem;
}

.users-turn .user1,.user3{
  width: 1rem !important;
}

.circle{
  width: 50%;
  height: 50%;
}

.circle .text i{
  font-size: 1.2rem;
}

}

@media screen and (max-width:420px) {
  .ludo-container{
    width: 91vw;
  }
  .circle{
    width: 55%;
    height: 55%;
  }
  .down-triangle{
    border-top: 41px solid #ff8500;
    border-left: 41px solid transparent;
    border-right: 41px solid transparent;
  }

  .up-triangle{
    border-right: 41px solid transparent;
    border-left: 41px solid transparent;
    border-bottom: 41px solid #0092dc;
  }

  .left-triangle{
    border-right: 41px solid #dc2418;
    border-top: 41px solid transparent;
    border-bottom: 41px solid transparent;
  }

  .right-triangle{
    border-top: 45px solid transparent;
    border-left: 45px solid #84c21f;
    border-bottom: 45px solid transparent;
  }

  .row1-col1-child>div,
.row1-col3-child>div,
.row3-col1-child>div,
.row3-col3-child>div{
  height: 28%;
}

.row1-col1-child,
.row1-col3-child,
.row3-col1-child,
.row3-col3-child{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.row2 .col1>div,
.row2 .col3>div{
  border: 1px solid rgba(0, 0, 0, .6);
}

.row1 .col2>div,
.row3 .col2>div{
  border: 1px solid rgba(0, 0, 0, .6);
}

.goti{
  box-shadow: 0 2px 2px rgba(0, 0, 0, .16),0 2px 2px rgba(0, 0, 0, .23);
}

}

@media screen and (max-width:372px) {
  .down-triangle{
    border-top: 39px solid #ff8500;
    border-left: 39px solid transparent;
    border-right: 39px solid transparent;
  }

  .up-triangle{
    border-right: 36px solid transparent;
    border-left: 36px solid transparent;
    border-bottom: 36px solid #0092dc;
  }

  .left-triangle{
    border-right: 36px solid #dc2358;
    border-top: 36px solid transparent;
    border-bottom: 36px solid transparent;
  }

  .right-triangle{
    border-top: 43px solid transparent;
    border-left: 43px solid #84c21f;
    border-bottom: 43px solid transparent;
  }
}