@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:300,400");
@import url("https://use.fontawesome.com/releases/v6.4.2/css/all.css");



.ul{
    font-family: 'Roboto Condensed', sans-serif;
    display: flex;
}

.li{
    list-style: none;
    margin: 0 25px;
    
}

.fa-brands{
    color: #262626;
    font-size: 20px;
    line-height: 5px;
    transition: .5s;
    padding-right: 10px;
    top: 15px;
    position: absolute;

}

.a{
    width: 130px;
    height: 40px;
    background: #8b5cf6;
    text-decoration: none;
    display: block;
    text-align: left;
    padding-left: 5px;
    transform: rotate(-20deg) skew(25deg) translate(0, 0);
    box-shadow: -20px 20px 10px #000000;
}

.a .span{
    color: #262626;
    padding: 0;
    padding-left: 20px;
    margin: 0;
    position: absolute;
    line-height: 5px;
    top: 15px;
    letter-spacing:2px;
    transition: .5s;
}

.a:before{
    content: '';
    position: absolute;
    height: 100%;
    width: 20px;
    background: #3b82f6;
    top: 10px;
    left: -20px;
    transform: rotate(0deg) skewY(-45deg);
}

.a:after{
    content: " ";
    position: absolute;
    height: 20px;
    width: 100%;
    background: #ec4899;
    bottom: -20px;
    left: -10px;
    transform: rotate(0deg) skew(-45deg);
}

.a:hover{
    transform: rotate(-20deg) skew(25deg) translate(20px, -15px);
    box-shadow: -50px 50px 50px #00000080;
}

.li:hover .fa-brands,
.li:hover .span{
    color: #fff
}

.li:hover:nth-child(1) {
    & .a {
        background: #3b5998;

        &::before {
            background: #365492;
        }
        &::after {
            background: #4a69ad;
        }
    }
}

.li:hover:nth-child(2) {
    & .a {
        background: #00aced;

        &::before {
            background: #365492;
        }
        &::after {
            background: #4a69ad;
        }
    }
}

.li:hover:nth-child(3) {
    & .a {
        background: #00aced;

        &::before {
            background: #365492;
        }
        &::after {
            background: #4a69ad;
        }
    }
}

.li:hover:nth-child(4) {
    & .a {
        background: #00aced;

        &::before {
            background: #365492;
        }
        &::after {
            background: #4a69ad;
        }
    }
}


/* Tablet view */
@media (max-width: 900px) and (min-width: 601px) {
    .ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .li {
        margin: 15px;
    }

    .a {
        width: 120px;
        height: 35px;
        transform: rotate(-15deg) skew(20deg);
        box-shadow: -15px 15px 8px #00000060;
    }

    .a:hover {
        transform: rotate(-15deg) skew(20deg) translate(15px, -10px);
        box-shadow: -40px 40px 40px #00000060;
    }

    .a .span {
        font-size: 12px;
        top: 12px;
    }

    .fa-brands {
        font-size: 16px;
        top: 12px;
    }
}

/* Mobile view */
@media (max-width: 600px) {
    .ul {
        /* flex-direction: column; */
        align-items: center;
    }
    .li {
        margin: 10px 0;
        padding: 10px;
    }

    .a {
        width: 70px;
        height: 20px;

        transform: rotate(-10deg) skew(15deg);
        box-shadow: -10px 10px 6px #00000050;
    }

    .a:hover {
        transform: rotate(-10deg) skew(15deg) translate(10px, -5px);
        box-shadow: -30px 30px 30px #00000050;
    }

    .a .span {
        font-size: 6px;
        padding-left: 12px;
        top: 8px;
        color: #eee;
    }

    

    .fa-brands {
        font-size: 14px;
        top: 8px;

    }

    .a:before{
    content: '';
    position: absolute;
    height: 100%;
    width: 20px;
    background: #3b82f6;
    top: 10px;
    left: -20px;
    transform: rotate(0deg) skewY(-45deg);
}

    .a:after{
        content: "";
        position: absolute;
        height: 20px;
        width: 100%;
        background: #ec4899;
        bottom: -20px;
        left: -10px;
        transform: rotate(0deg) skew(-45deg);
}

}

