* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f3f4f6;
    color: #1f2937;
    user-select: none;
    transition: background-color 0.3s ease;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.dice {
    width: 140px;
    height: 140px;
    background-color: #ffffff;
    color: #111827;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    font-weight: 800;
    cursor: pointer;
    border: 3px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.1s ease;
    border: 5px solid black;
    border-radius: 20px;
}

.dice:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 28px -4px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.dice:active {
    transform: translateY(1px) scale(0.98);
}

.dice.rolling {
    animation: wobble 0.25s infinite alternate ease-in-out;
}

@keyframes wobble {
    0% {
        transform: rotate(-12deg) scale(1.03);
    }

    100% {
        transform: rotate(12deg) scale(1.03);
    }
}

.instruction {
    font-size: 1rem;
    color: black;
    font-weight: 500;
}