*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: url(./img/toglar.jpg) no-repeat;
}

ul{
    position: absolute;
    display: flex;
    margin: 0;
    padding: 0;
}

li{
    list-style-type: none;
    margin: 0 6px;
}

ul>li>a>.bi{
    font-size: 40px;
    color: #000;
    line-height: 80px;
    transition: all .5s;
    border-right: 14px;
}

ul>li>a>span{
    padding: 0;
    position: absolute;
    top: 30px;
    color: #000;
    letter-spacing: 4px;
    transition: all 0.8s;
}

ul>li>a{
    text-decoration: none;
    display: block;
    width: 210px;
    height: 80px;
    background-color: #fff;
    text-align: left;
    padding-left: 20px;
    transform: rotate(-30deg) skew(25deg) translate(0,0);
    transition: all 0.5s;
    box-shadow: -20px 20px 10px rgb(0,0,0,0.5);
}

ul>li>a::before{
    content: "";
    position: absolute;
    top: 10px;
    left: -20px;
    width: 20px;
    height: 100%;
    background-color: #b1b1b1;
    transition: all 0.5s;
    transform: rotate(0) skewY(-45deg);
}

ul>li>a::after{
    content: "";
    position: absolute;
    bottom: -20px;
    left: -10px;
    width: 100%;
    height: 20px;
    background-color: #b1b1b1;
    transition: all 0.5s;
    transform: rotate(0) skewX(-45deg) ;
}

ul>li>a:hover{
    transform: rotate(-30deg) skew(25deg) translate(20px,-15px);
    box-shadow: -50px 50px 50px rgb(0,0,0,0.5);
}

ul>li:hover .bi{
    color: #fff;
}

ul>li:hover:nth-child(1) a{
    background-color: #3b5998;
}

ul>li:hover:nth-child(1) a::before{
    background-color: #365492;
}

ul>li:hover:nth-child(1) a::after{
    background-color: #365492;
}

ul>li:hover:nth-child(2) a{
    background-color: #00aced;
}

ul>li:hover:nth-child(2) a::before{
    background-color: #097aa5;
}

ul>li:hover:nth-child(2) a::after{
    background-color: #53b9e0;
}

ul>li:hover:nth-child(3) a{
    background-color: #47f038;
}

ul>li:hover:nth-child(3) a::before{
    background-color: #30f038;
}

ul>li:hover:nth-child(3) a::after{
    background-color: #47f038;
}

ul>li:hover:nth-child(4) a{
    background-color: #810d30;
}

ul>li:hover:nth-child(4) a::before{
    background-color: #810d30;
}

ul>li:hover:nth-child(4) a::after{
    background-color: #e46880;
}


ul>li:hover:nth-child(5) a{
    background-color: #f42c2c;
}

ul>li:hover:nth-child(5) a::before{
    background-color: #ff0303;
}

ul>li:hover:nth-child(5) a::after{
    background-color: #ff0303;
}

