* {
    margin: 0;
    padding: 0;
}

body {
    background: #F5F5DC;
    text-align: center;
    font-family: Arial;
    width: 1200px;
}

h1 {
    margin-top: 70px;
    font-size: 60px;
    text-shadow: -1px -1px 2px black;
}

#dice {
    width: 420px;
    margin: auto;
}

#dice1, #dice2 {
    width: 150px;
    height: 150px;
    background: blue;
    margin: 100px 30px;
    border-radius: 5px;
    float: left;
    position: relative;
}

#dice1>div, #dice2>div {
    position: absolute;
    border: 15px solid white;
    border-radius: 15px;
}

#dice11, #dice21 {
    left: 10px;
    top: 10px;
}

#dice12, #dice22 {
    left: 10px;
    top: 60px;
}

#dice13, #dice23 {
    left: 10px;
    top: 110px;
}

#dice14, #dice24 {
    left: 110px;
    top: 10px;
}

#dice15, #dice25 {
    left: 110px;
    top: 60px;
}

#dice16, #dice26 {
    left: 110px;
    top: 110px;
}

#dice17, #dice27 {
    left: 60px;
    top: 60px;
}

#btn {
    clear: both;
    width: 220px;
    height: 50px;
    display: block;
    margin: auto;
    font-size: 27px;
    background: #46d11d;
    font-weight: bolder;
    box-shadow: 1px 1px 3px gray;
    border-radius: 5px;
    border: none;
    outline: none;
}

.shake {
    -webkit-animation: shake 1s;
    -o-animation: shake 1s;
    animation: shake 1s;
}

@-webkit-keyframes shake {
    0%, 100% {-webkit-transform: translateX(0);}
    5%, 25%, 45%, 65%, 85%, 15%, 35%, 55%, 75%, 95% {-webkit-transform: translateX(-6px);}
    10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90% {-webkit-transform: translateX(6px);}
}




















