
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --textColor:#262626;
    --btn-bg-color:#febd44;
    --box-shadow-one:0px 2px 20px -10px #000;
    --box-shadow-two:0px 2px 20px -10px #000;
    --box-shadow-three:0px 2px 20px -10px #000;
    --bg-color:#38f68e;
}

body{
    width: 100%; height: 100vh;
    

    background-color:var(--bg-color);
    
}

.main{
    width: 98%; height: 100%;
    margin: 0 auto;
    padding-top: 10px;
    
    
    display: flex; justify-content: space-between;
    box-shadow: var(--box-shadow-three);
}

.main > .game-board{
    
    width: 80%;

    /* Making the board by css grid */
    display: grid; 
    grid-template-columns: repeat(10, 1fr );
    grid-template-rows: repeat(10,1fr );

}

.main > .game-board > .block {
    border: solid #23232f 1px;
    display: flex;
    align-items: center; justify-content: center;
    display: flex;
    position: relative;

}

.main > .game-board {
    grid-template-areas:
    "b100 b100 b100 b100";
}



/* Arranging blocks of game board in proper order begins */
.main > .game-board > :nth-child(20n){
   grid-column: 1/2;

}

.main > .game-board > :nth-child(20n -1){
    grid-column: 2/3;
}

.main > .game-board > :nth-child(20n -2){
    grid-column: 3/4;
}

.main > .game-board > :nth-child(20n -3){
    grid-column: 4/5;
}

.main > .game-board > :nth-child(20n -4){
    grid-column: 5/6;
}

.main > .game-board > :nth-child(20n -5){
    grid-column: 6/7;
}

.main > .game-board > :nth-child(20n -6){
    grid-column: 7/8;
}

.main > .game-board > :nth-child(20n -7){
    grid-column: 8/9;
}

.main > .game-board > :nth-child(20n -8){
    grid-column: 9/10;
}

.main > .game-board > :nth-child(20n -9){
    grid-column: 10/11;
}

.main > .game-board > :nth-child(100) , 
:nth-child(99), :nth-child(98), :nth-child(97), 
:nth-child(96), :nth-child(95), :nth-child(94), 
:nth-child(93), :nth-child(92), :nth-child(91){
    grid-row: 10/11;
}

.main > .game-board > :nth-child(80) , 
:nth-child(79), :nth-child(78), :nth-child(77), 
:nth-child(76), :nth-child(75), :nth-child(74), 
:nth-child(73), :nth-child(72), :nth-child(71){
    grid-row: 8/9;
}

.main > .game-board > :nth-child(60) , 
:nth-child(59), :nth-child(58), :nth-child(57), 
:nth-child(56), :nth-child(55), :nth-child(54), 
:nth-child(53), :nth-child(52), :nth-child(51){
    grid-row: 6/7;
}

.main > .game-board > :nth-child(40) , 
:nth-child(39), :nth-child(38), :nth-child(37), 
:nth-child(36), :nth-child(35), :nth-child(34), 
:nth-child(33), :nth-child(32), :nth-child(31){
    grid-row: 4/5;
}

.main > .game-board > :nth-child(20) , 
:nth-child(19), :nth-child(18), :nth-child(17), 
:nth-child(16), :nth-child(15), :nth-child(14), 
:nth-child(13), :nth-child(12), :nth-child(11){
    grid-row: 2/3;
}

/* Arranging blocks of game board in proper order ends */






.main > .dice-and-current-player{
    
    width: 25%;
    display: flex;
    flex-direction: column;
    
}

.main > .dice-and-current-player > .dice-container {
    
    height: 80vh;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.main > .dice-and-current-player > .current-player {
    
    height:50vh;
}




/* STYLLING THE DICE */
#cube .front{
    transform: translateZ(50px);
}

#cube .back{
    transform: rotateX(-180deg) translateZ(50px) ;
}

#cube .right{
    transform: rotateY(90deg) translateZ(50px) ;
}

#cube .left{
    transform: rotateY(-90deg) translateZ(50px) ;
}

#cube .top{
    transform: rotateX(90deg) translateZ(50px) ;
}

#cube .bottom{
    transform: rotateX(-90deg) translateZ(50px) ; /*-90deg*/  /*100px*/
}

.container{
    margin-top: 80px;

    width: 100px;
    height: 100px;
    position: relative;
    perspective: 1000px;
    perspective-origin: 50% 100%;
}

#cube{
    width: 100%;
    height: 100%;

    position: absolute;
    

    transform-style: preserve-3d;
    transition: transform 6s;

}

#cube:hover{
    cursor:pointer;
}

#cube  div{
    border-radius: 8px;
    background: rgb(212, 195, 195);
    display: block;
    position: absolute;
    width: 100px;
    height: 100px;
    
    margin: 0 auto;
    font-family: sans-serif;
    text-align: center;
    /* padding: 50px 0; */
}

.dot{
    display: block;
    position: absolute;
    width: 10px;  /* 20px */
    height: 10px; /* 20px */
    background: rgb(0, 0, 0);
    border-radius: 15px;
}

.front .dot1{
    top: 42.5px;  /*85*/
    left: 42.5px; /*85*/

}
.back .dot1{
    top: 22.5px; /*45*/
    left: 22.5px;/*45*/
}
.back .dot2{
    top: 62.5px; /*125*/
    left: 62.5px;  /*125*/
}
.right .dot1{
    top: 22.5px; /*45*/
    left: 22.5px; /*45*/
}
.right .dot2{
    top: 42.5px;/*85*/
    left: 42.5px;/*85*/
}
.right .dot3{
    top: 62.5px; /*125*/
    left: 62.5px; /*125*/
}
.left .dot1{
    top: 22.5px;   /* 45px */
    left: 22.5px;   /* 45px */
}
.left .dot2{
    top: 22.5px;  /*45px*/
    left: 62.5px;   /*125px*/
}
.left .dot3{
    top: 62.5px;   /*125px*/
    left: 22.5px;   /*45px*/
}
.left .dot4{
    top: 62.5px;   /*125px*/
    left: 62.5px;  /*125px*/
}
.top .dot1{
    top: 22.5px; /*45*/
    left: 22.5px; /*45*/
}
.top .dot2{
    top: 22.5px;/*45*/
    left: 62.5px;/*125*/
}
.top .dot3{
    top: 42.5px;/*85*/
    left: 42.5px;/*85*/
}
.top .dot4{
    top: 62.5px;/*125*/
    left: 22.5px;/*45*/
}
.top .dot5{
    top: 62.5px;/*125*/
    left: 62.5px;/*125*/
}
.bottom .dot1{
    top: 22.5px;/*45*/
    left: 22.5px;/*45*/
}
.bottom .dot2{
    top: 22.5px;/*45*/
    left: 42.5px;/*85*/
}
.bottom .dot3{
    top: 22.5px;/*45*/
    left: 62.5px;/*125*/
}
.bottom .dot4{
    top: 62.5px;/*125*/
    left: 22.5px;/*45*/
}
.bottom .dot5{
    top: 62.5px;/*125*/
    left: 42.5px;/*85*/
}
.bottom .dot6{
    top: 62.5px;/*125*/
    left: 62.5px;/*125*/
}





/* STYLLING EACH PLAYER PIECE */
.main > .game-board > .block > .each-player-piece{
    width: 35px;
    height: 35px;
    
    position: absolute;

    border-radius: 20px;
    z-index: -1;
    display: none;
}


/* STYLLING THE PLAYER BLOCK */

#current-player{
    display: flex;
    flex-flow: column;
    margin-left: 5px;
}

#current-player > div{
    padding: 8px;
    margin: 10px 0;
    padding-left: 50px;
    
    display: flex;
    flex-flow: column;
    align-items: flex-start;justify-content: space-evenly;
    display: none;
}

#current-player > div > span{
    margin-top: 8px;
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: blue;
    border-radius: 25px;
}

#current-player > div > p{
    font-family: sans-serif;
    font-weight: 600;
}

#current-player > div > span.blue{
    background-color: blue;
}

#current-player > div > span.red{
    background-color: red;
}

#current-player > div > span.yellow{
    background-color: yellow;
}

#current-player > div > span.green{
    background-color: green;
}



/* STYLLING THE SNAKES AND LADDERS */

.main >.snake , .ladder{
    position: absolute;
}

.main > .snake > img{
    opacity: 0.8;        /* THIS WILL RE REALLY HANDY  */
}

.main > .ladder > img{
    opacity: 0.8;        /* THIS WILL RE REALLY HANDY  */
}

.main > .snake9050{
    right: 21.5vw;
    top:12vh;
    z-index: 99;
}

.main > .snake9050 > img{
    width: 190px;
    height: 300px;
}

.main > .snake4505{
    left: 28vw;
    bottom: 3vw;
}

.main > .snake4505 > img{
    width: 190px;
    height: 300px;
}

.main > .snake9924 > img{
    width: 400px;
    height: 660px;
}

.main > .snake9924{
    position: absolute;
    left: 4vw;
    top: 0vh;
}

.main > .snake5233 > img{
    width: 190px;
    height: 190px;
    opacity: 0.4;

}

.main > .snake5233 { 
    right: 34.5vw;
    top: 40vh;
}

.main > .snake2317 > img{
    height: 100px;
    width: 110px;
    
}

.main > .snake2317 {
    top: 73vh;
    left: 20vw;
}

.main > .snake6728 > img{
    width: 490px;
}

.main > .snake6728{
    left: 35vw;
    top: 30vh;
}

.main > .ladder0829 > img{
    width: 200px;
}

.main > .ladder0829{
    right: 32.8vw;
    bottom: 0.4vh;
}

.main > .ladder5468 > img{
    height: 120px;
    width: 300px;
}

.main > .ladder5468{
    right: 37vw;
    top: 32vh;
}

.main > .ladder6597 > img{
    width: 305px;
}

.main > .ladder6597{
    left: 21vw;
    top: 0.1vh;
}

.main > .ladder2261 > img{
    width: 305px;
    height: 400px;
}

.main > .ladder2261 {
    top: 25vh;
    left: -1.2vw;
}

.main > .ladder7293 > img{
    width: 220px;
}

.main > .ladder7293{
    right: 31.5vw;
    top: 0vh;
}
