/* google fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400&display=swap');

/* font-family: 'Roboto Condensed', sans-serif; */

*
{
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

body

{
   font-family: 'Roboto Condensed', sans-serif;
   background-color: #ccc;
}

ul

{
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   display: flex;
   list-style-type: none;
}


ul li 

{
   margin: 0 5px;
}


ul li a

{
   text-decoration: none;
   display: block;
   width: 210px;
   height: 80px;
   background: #fff;
   text-align: left;
   padding-left: 20px;
   transform: rotate(-30deg) skew(25deg) translate(0, 0);
   transition: .5s;
   box-shadow: -20px 20px 10px rgba(0, 0, 0, 0.5);
   display: flex;
   justify-content: flex-start;
   align-items: center;
}


ul li a::before

{
   content: '';
   position: absolute;
   top: 10px;
   left: -20px;
   width: 20px;
   height: 100%;
   background: #b1b1b1;
   transition: .5s;
   transform: rotate(0deg) skewY(-45deg);
}


ul li a::after

{
   content: '';
   position: absolute;
   bottom: -20px;
   left: -10px;
   height: 20px;
   width: 100%;
   background: #b1b1b1;
   transition: .5s;
   transform: rotate(0deg) skewX(-45deg);
}

ul li a i 

{
   font-size: 40px;
   color: #262626;
   line-height: 80px;
   transition: .5s;
   padding-right: 14px;
}


ul li a span

{
   color: #262626;
   letter-spacing: 4px;
   transition: .5s;
}


/* hover effect */


ul li a:hover

{
   transform: rotate(-30deg) skew(25deg) translate(20px, -15px);
   box-shadow: -50px 50px 50px rgba(0, 0, 0, 0.5);
}



ul li:hover i

{
   color: #fff;
}

ul li:hover span

{
   color: #fff;
}

ul li:hover:nth-child(1) a

{
   background: #3b5998;
}

ul li:hover:nth-child(1) a::before

{
   background: #365492;
}

ul li:hover:nth-child(1) a::after

{
   background: #4a69ad;
}

ul li:hover:nth-child(2) a

{
   background: #E1306C;
}

ul li:hover:nth-child(2) a::before

{
   background: #E1306C;
}

ul li:hover:nth-child(2) a::after

{
   background: #E1306C;
}

ul li:hover:nth-child(3) a

{
   background: #0072b1;
}

ul li:hover:nth-child(3) a::before

{
   background: #0072b1;
}

ul li:hover:nth-child(3) a::after

{
   background: #0072b1;
}

ul li:hover:nth-child(4) a

{
   background: #c8232c;
}

ul li:hover:nth-child(4) a::before

{
   background: #c8232c;
}

ul li:hover:nth-child(4) a::after

{
   background: #c8232c;
}

