*{
    padding: 0;
    margin: 0;
    box-sizing: border-box; 
}

body{
    height: 100vh;
}

.containerGame{
    width: 70vw;
    height: 70vh;
    display: flex;
    flex-wrap: wrap;
    gap: 1vmin;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
  }


.button-option{
    height: 150px;
    width: 150px;
    border-radius: 8px;
    font-size: 4em;
}

@media only screen and (max-width: 640px) {
    .button-option {
        height: 100px;
        width: 100px;
        font-size: 2em;
    }
  }

.popup-box{
    position: fixed;
    height: 100%;
    width: 100%;
    left:0;
    right:0;
    background-color: rgba(0,0,0,0.5);
    z-index:7;
    visibility: hidden;
    opacity: 0;
    transition: all .3s ease-in-out;
}

.popup-box.open{
    visibility: visible;
    opacity: 1;
}

.popup-box .popup-content{
    background-color: white;
    width: 400px;
    padding: 50px;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 40%;
    left: 50%;
    box-shadow: 15px 30px 35px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    -webkit-perspective: 300px;
    perspective: 300px;
}

.popup-box .popup-header h3{
    margin: 0;
    color: #E91E63;
    font-size: 20px;
    text-align: center;
}

.popup-box .popup-body{
    position: relative;
    margin: 0;
}

.popup-box .popup-footer{
    position: relative;
    left: 50%;
    bottom: 50%;
    margin-bottom: 8px;
}

.popup-box .popup-header .popup-close-btn{
    position: absolute;
    height: 30px;
    width: 30px;
    text-align: center;
    color: #555555;
    font-size: 28px;
    line-height: 30px;
    right: 10px;
    top: 0;
    cursor: pointer;
}
/* Dice Css */
.dice {
    position: relative;
    justify-content: center;
    width: 100px;
    height: 100px;
    transform-style: preserve-3d;
    transition: 1s ease;
}

@keyframes rolling {
    50% {
        transform: rotateX(455deg) rotateY(455deg);
    }
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 5px solid #f6f3f0;
    transform-style: preserve-3d;
    background: linear-gradient(
        145deg, #dddbd8, #fff
    );
}

.face::before {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: #f6f3f0;
    transform: translateZ(-1px);
}

.face::after {
    position: absolute;
    content: '';
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #131210;
}

.front {
    transform: translateZ(50px);
}

.back {
    transform: rotateX(180deg) translateZ(50px);
}

.top {
    transform: rotateX(90deg) translateZ(50px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(50px);
}

.right {
    transform: rotateY(90deg) translateZ(50px);
}

.left {
    transform: rotateY(-90deg) translateZ(50px);
}

.front::after {
    width: 30px;
    height: 30px;
    background: #f63330;
    margin: -15px 0 0 -15px;
}

.back::after {
    margin: -35px 0 0 -30px;
    box-shadow: 40px 0,
                0 25px,
                40px 25px,
                0 50px,
                40px 50px;
}

.top::after {
    margin: -30px 0 0 -30px;
    box-shadow: 40px 40px;
}

.bottom::after {
    margin: -36px 0 0 -36px;
    box-shadow: 26px 26px,
                52px 52px,
                52px 0,
                0 52px;
}

.right::after {
    margin: -30px 0 0 -30px;
    box-shadow: 40px 0,
    0 40px,
    40px 40px;
}

.left::after {
    margin: -35px 0 0 -35px;
    box-shadow: 25px 25px,
                50px 50px;
}

/*
    Roll Button styles
*/

.roll {
    cursor: pointer;
    color: #b33951;
    margin-top: 60px;
    padding: 6px 12px;
    border-radius: 3px;
    font: 700 16px 'Montserrat';
    border: 2px solid #b33951;
    transition: .4s;
}

.roll:disabled{
    background-color: #e1e0ee;
    border-color: #e1e0ee;
    color: #101020;
}


/* .roll:hover {
    color: #fff;
    background: #b33951;
} */

/* HT CSS */

.container{
    background-color: white;
    width: 400px;
    padding: 50px;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    box-shadow: 15px 30px 35px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    -webkit-perspective: 300px;
    perspective: 300px;
}

.coin{
    height: 150px;
    width: 150px;
    position: relative;
    margin: 50px auto;
    -webkit-transform-style: perserve-3d;
            transform-style: preserve-3d;
}

.coin img{
    width: 145px;
}
.heads,.tails{
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
}
.tails{
    transform: rotateX(180deg);
}

.popup-box .buttons{
    display: flex;
    justify-content: space-between;
}

.popup-box button{
    width: 120px;
    padding: 10px 0;
    border: 2.5px solid #424ae0;
    border-radius: 5px;
    cursor: pointer;
}

#pick-heads{
    background-color: #424ae0;
    color: white;
}
#pick-heads:disabled{
    background-color: #e1e0ee;
    border-color: #e1e0ee;
    color: #101020;
}

#pick-tails{
    background-color: white;
    color: #424ae0;
}
#pick-tails:disabled{
    background-color: #e1e0ee;
    border-color: #e1e0ee;
    color: #101020;
}



@keyframes spin-tails{
    0%{
        transform: rotateX(0);
    }
    100%{
        transform: rotateX(1980deg);
    }
}
@keyframes spin-heads{
    0%{
        transform: rotateX(0);
    }
    100%{
        transform: rotateX(2160deg);
    }
}