#dnd_dice {
    margin-left: 10px;
    width: 325px;
    min-height: 300.5px;
    text-align: center;
    border: 5px solid #9fda58;
    background-color: #4c4c4c;
    font-size: 2rem;
    padding: 5px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 1;
}

#dnd_dice input {
    width: 82px;
    margin: 10px 5px 10px;
    border: 1px solid #9fda58;
    border-radius: 10px;
    transition: 0.25s ease;
}

#dnd_dice .active_dice {
    transform: scale(0.92);
}

#dnd_dice input:focus {
    outline: none;
}

#dnd_dice .result {
    height: 60px;
    width: 70px;
    margin: 0 auto;
    background: white;
    border: 4px solid grey;
    font-family: 'B612 Mono', monospace;
    font-size: 3rem;
    align-items: center;
    justify-content: center;
    display: flex;
    text-align: center;
    transition: 0.25s ease-in-out;
}

#dnd_dice .refresh {
    -webkit-box-shadow: 0px 0px 20px 7px rgba(23, 214, 36, 1);
    -moz-box-shadow: 0px 0px 20px 7px rgba(23, 214, 36, 1);
    box-shadow: 0px 0px 20px 7px rgba(23, 214, 36, 1);
    transition: 0.15s ease-in-out;
}

#dnd_dice .nat_20 {
    animation: natural20 0.5s 3 ease-in-out;
    box-shadow: 0 0 25px #fff,
    10px 0 40px #f0f,
    -10px 0 40px #0ff,
    10px 0 150px #f0f,
    -10px 0 150px #0ff,
    0 0 25px #fff,
    -5px 0 40px #f0f,
    5px 0 40px #0ff;
}

@keyframes natural20 {
    33.3% {
        box-shadow: 0 0 50px #fff,
            20px 0 80px #f0f,
            -20px 0 80px #0ff,
            20px 0 300px #f0f,
            -20px 0 300px #0ff,
            0 0 50px #fff,
            -10px 0 80px #f0f,
            10px 0 80px #0ff;
    }
    33.3% {
        box-shadow: 0 0 100px #fff,
            40px 0 160px #f0f,
            -40px 0 160px #0ff,
            40px 0 600px #f0f,
            -40px 0 600px #0ff,
            0 0 100px #fff,
            -20px 0 160px #f0f,
            20px 0 160px #0ff;
    }
    33.3% {
        box-shadow: 0 0 50px #fff,
            20px 0 80px #f0f,
            -20px 0 80px #0ff,
            20px 0 300px #f0f,
            -20px 0 300px #0ff,
            0 0 50px #fff,
            -10px 0 80px #f0f,
            10px 0 80px #0ff;
    }
}

#dnd_dice #display {
    padding-top: 6px;
}