body {
            text-align: center;
            font-family: 'Arial', sans-serif;
        }

        #dice {
            width: 220px;
            height: 220px;
            margin: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #fff;
            border: 2px solid #000;
            border-radius: 10px;
            cursor: pointer;
            user-select: none;
            position: relative;
            perspective: 600px;
            transition: transform 0.5s ease-in-out;
        }

        .dice-inner {
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
            transform: rotateX(0deg) rotateY(0deg);
        }

        .face {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 10px;
            background-color: #f4f4f4;
            border: 3px solid #ccc;
            box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4), 0 0 8px rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
        }

        .dots-container {
            transform-style: preserve-3d;
            transform: translateZ(50px);
        }

        .dot {
            width: 30px;
            height: 30px;
            background-color: #000;
            border-radius: 50%;
            position: absolute;
        }

        @keyframes rollAnimation {
            0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
            100% { transform: rotateX(360deg) rotateY(360deg); }
        }

        .roll-button-container {
            margin-top: 20px;
        }