html {
    background-image: url(https://store.supercell.com/images/clashroyale/special-offers-bg.png);

 
}
@keyframes explode {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(3) rotate(720deg);
        opacity: 0;
    }
}

.card-back.gold {
    background: linear-gradient(45deg, gold, orange);
    box-shadow: 0 0 20px 5px gold;
}



.game-board {
    display: grid;
    grid-template-columns: repeat(6, 100px);
    grid-gap: 10px;
    justify-content: center;
    margin-top: 20px;
    height: 90vh;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    width: 100px;
    height: 150px;
    perspective: 1000px;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition: transform 0.6s;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.card-front {
    background-color: gray;
}

.card-back {
    transform: rotateY(180deg);
}

.card-back.red {
    background-image: url(https://i.ibb.co/LdCDKZ49/628b48177c369eb3edac0996-2.png);
        background-position: center;
    background-size: cover;
}

.card-back.black {
    background-image: url(https://i.ibb.co/NgQVJPZr/b4b624a09f215ee38a72fb1e42ab2806.jpg)!important;
        background-position: center;
            background-size: cover;
        
}

/* Pionnen container */
.pawn-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    height: 10vh;
}

/* Pionnen */
.pawn {
    width: 70px;
    height: 70px;
    background-color: rgb(11, 87, 30);
    color: white;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid black;
    border-radius: 10px;
    cursor: grab;
    outline: solid 2px white;
    outline-offset: 2px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    position: absolute;
    touch-action: none;
}

.pawn:active {
    cursor: grabbing;
    transform: scale(1.1);
}

/* Dobbelsteen UI */
.dice-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    position: fixed;
    top: 50%!important;
    left: 10vw;
    transform: translateX(-50%);
    z-index: 100;
}

#diceResult {
    font-size: 5em;
}

#rollDice {
    font-size: 1.5em;
    padding: 10px 20px;
}

/* Dobbelsteen animatie */
@keyframes jump {
    0% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-80px);
    }

    50% {
        transform: translateY(0);
    }

    80% {
        transform: translateY(-60px);
    }

    100% {
        transform: translateY(0);
    }
}

.dice-jump {
    animation: jump 0.5s ease;
}


/* media queries */

@media (max-width: 768px) {

    .game-board {
    display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(6, 1fr);
        grid-column-gap: 5px;
        grid-row-gap: 5px;
        height: 85vh!important;
    }

        .card {
                width: unset;
                    height: unset;
            perspective: 1000px;
        }


        .pawn-container {
                display: flex;
                    justify-content: center;
                    gap: 10px;
                    align-items: center;
                    height: 10vh;
                    z-index: 100000!important;
                    position: absolute;
                    left: 50%;
                    
                
        }
    

   
}
