*{ margin: 0; padding: 0; }

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    
}

ula {
    position: relative;
    display: flex;
    transform-style: preserve-3d;
    transform: rotate(-0deg) skew(0deg);
}

ula li {
    position: relative;
    list-style: none;
    width: 60px;
    height: 60px;
    margin: 0 10px;
}

ula li:before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: #363636;
    transform-origin: top;
    transform: skewX(-41deg);
}

ula li:after {
    content: '';
    position: absolute;
    top: 0;
    left: -9px;
    width: 9px;
    height: 100%;
    background: #7a7a7a;
    transform-origin: right;
    transform: skewY(-49deg);
}

ula li span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: #333;
    color: rgba(255,255,255,0.2);
    font-size: 30px !important;
    transition: 0.2s;
}

ula li:hover span {
    z-index: 1000;
    transition: 0.5s;
    color: #fff;
    box-shadow: -1px 1px 1px rgba(0,0,0,0.05);
}

/*efeito camadas*/
ula li:hover span:nth-child(5) {
    transform: translate(40px,-40px);
    opacity: 1;
}

ula li:hover span:nth-child(4) {
    transform: translate(30px,-30px);
    opacity: 0.8;
}

ula li:hover span:nth-child(3) {
    transform: translate(20px,-20px);
    opacity: 0.6;
}

ula li:hover span:nth-child(2) {
    transform: translate(10px,-10px);
    opacity: 0.4;
}

ula li:hover span:nth-child(1) {
    transform: translate(0px,0px);
    opacity: 0.2;
}


/*cores das camadas*/
ula li:nth-child(1):hover span {
    background: #3b5999;
}

ula li:nth-child(2):hover span {
    background: #55acee;
}

ula li:nth-child(3):hover span {
    background: #25D366;
}

ula li:nth-child(4):hover span {
    background: #0077B5;
}

ula li:nth-child(5):hover span {
    background: #e4405f;
}