body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
}

#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#board {
    display: grid;
    grid-template-columns: repeat(10, 50px);
    grid-template-rows: repeat(10, 50px);
    gap: 1px;
    background-color: #ccc;
    position: relative;
    width: 510px;
    height: 510px;
    background-image: url('https://5.imimg.com/data5/SELLER/Default/2021/2/HK/IO/BL/12304017/snakes-and-ladders-game-board-500x500.jpg');
    width: 500px;
    height: 500px;
    /*transform: rotate(180deg); */ /* Rotate board to start from bottom-left */
}

#board div {
    width: 40px;
    height: 40px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}
/* 
@keyframes move-sun {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100vw, 50vh) rotate(90deg);
    }
    50% {
        transform: translate(0, 100vh) rotate(180deg);
    }
    75% {
        transform: translate(-100vw, 50vh) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
  } */

  /* styles.css */

/* Basic reset and styling */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #f0f0f0;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.car {
    width: 50px;
    height: 30px;
    background: #ff0000;
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
}

/* Keyframes for random curves */
@keyframes moveAlongCurve {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100vw, 50vh) rotate(90deg);
    }
    50% {
        transform: translate(0, 100vh) rotate(180deg);
    }
    75% {
        transform: translate(-100vw, 50vh) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Apply animation to the car */
.car {
    animation: moveAlongCurve 10s infinite linear;
}



.player {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: absolute;
    transition: transform 1.5s ease-in-out;
    font-size:35px;
}

.player-1 {
    background-color: red;
}

.player-2 {
    background-color: blue;
}

#roll {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

#dice-result {
    margin-top: 10px;
    font-size: 20px;
}
