/*
    General Styles
*/

@font-face {
  font-family: "f";
  src: url("Arapix.woff") format('woff');
}

* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    box-sizing: border-box;
    font-family: f !important;
    word-spacing: -5px;
    user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
}

body {
    height: auto;
    background:#111;
    text-align:center;
    padding-top: 30px;
   
}

/*
    Dice Styles
*/

.dice {
    position: relative;
    width: 150px;
    height: 150px;
    transform-style: preserve-3d;
    transition: 0s ease;
    transform: rotateX(45deg) rotateY(-35deg);
    margin: 0 auto;
    float: none;
    margin-top: 50px
}

@keyframes rolling {
    50% {
        transform: rotateX(455deg) rotateY(455deg);
    }
}

@keyframes rolling-1 {
    20% {
        transform: rotateX(45deg) rotateY(-35deg)
    }
    100% {
        transform: rotateX(1800deg) rotateY(1800deg)
    }
}
 
@keyframes rolling-2 {
    20% {
        transform: rotateX(45deg) rotateY(-35deg)
    }
    100% {
        transform: rotateX(1710deg) rotateY(1800deg)
    }
}

@keyframes rolling-3 {
    20% {
        transform: rotateX(45deg) rotateY(-35deg)
    }
    100% {
        transform: rotateX(1800deg) rotateY(1890deg)
    }
}

@keyframes rolling-4 {
    20% {
        transform: rotateX(45deg) rotateY(-35deg)
    }
    100% {
        transform: rotateX(1800deg) rotateY(1710deg)
    }
}

@keyframes rolling-5 {
    20% {
        transform: rotateX(45deg) rotateY(-35deg)
    }
    100% {
        transform: rotateX(1890deg) rotateY(1800deg);
    }
}

@keyframes rolling-6 {
    20% {
        transform: rotateX(45deg) rotateY(-35deg);
    }
    100% {
        transform: rotateX(1980deg) rotateY(1800deg)
    }
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    border: 5px solid #333;
    transform-style: preserve-3d;
    background: linear-gradient(
        145deg, #333, #111
    );
}

.face::before {
    position: absolute;
    content: '';
    left:0;
    top:0;
    right:0;
    bottom:0;
    border-radius: 20px;
    background: #333;
    transform: translateZ(-1px);
}

.face::after {
    position: absolute;
    content: '';
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #131210;
    background: #aaa;
    //transform: scale(2.3) translateX(-10px) translateY(-10px)
}

.front {
    transform: translateZ(75px);
}

.back {
    transform: rotateX(180deg) translateZ(75px);
}

.top {
    transform: rotateX(90deg) translateZ(75px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(75px);
}

.right {
    transform: rotateY(90deg) translateZ(75px);
}

.left {
    transform: rotateY(-90deg) translateZ(75px);
}

.front::after {
    width: 40px;
    height: 40px;
    background: #f63330;
    margin: -15px 0 0 -15px;
    //transform: scale(2.3) translateX(0px) translateY(0px)
}

.back::after {
    margin: -35px 0 0 -30px;
    box-shadow: 40px 0 #aaa,
                0 25px #aaa,
                40px 25px #aaa,
                0 50px #aaa,
                40px 50px #aaa;
}

.top::after {
    margin: -30px 0 0 -30px;
    box-shadow: 40px 40px #aaa;
}

.bottom::after {
    margin: -36px 0 0 -36px;
    box-shadow: 26px 26px #aaa,
                52px 52px #aaa,
                52px 0 #aaa,
                0 52px #aaa;
}

.right::after {
    margin: -30px 0 0 -30px;
    box-shadow: 40px 0 #aaa,
    0 40px #aaa,
    40px 40px #aaa;
}

.left::after {
    margin: -35px 0 0 -35px;
    box-shadow: 25px 25px #aaa,
                50px 50px #aaa;
}

/*
    Roll Button styles
*/
input, button{
    padding: 10px 20px;
    border: 3px solid #555;
    text-align: center;
    color: #fff;
    font-size: 20px;
    background: none;
    outline: none;
    font-family: f;
    word-spacing: -3px
}
button{
    background:#555
}
.rolll {
    cursor: pointer;
    color: #b33951;
    margin-top: 60px;
    padding: 6px 12px;
    border-radius: 3px;
    font: 700 16px 'Montserrat';
    border: 2px solid #b33951;
    transition: .4s;
}

.rolll:hover {
    color: #fff;
    background: #b33951;
}
