.socialMedia {
    display: flex;
    position: center;
    top: 50%;
    left: 50%;
}

    .socialMedia li {
        list-style: none;
    }

        .socialMedia li a {
            width: 60px;
            height: 60px;
            background-color: #fff;
            text-align: center;
            line-height: 60px;
            font-size: 35px;
            margin: 0 10px;
            display: block;
            border-radius: 50%;
            position: relative;
            overflow: hidden;
            border: 3px solid #fff;
            z-index: 1;
        }

            .socialMedia li a i {
                display: inline-block;
                position: relative;
                transition: color .6s;
                z-index: 3;
            }


.facebookIcon {
    color: #0E8DF1;
}

.linkedInIcon {
    color: #007FBC;
}

.instagramIcon {
    color: #e56969;
}

.socialMedia li a:hover i,
.socialMedia li a:focus-visible i {
    color: #fff;
    animation: socialIconSpin .6s ease;
}

@keyframes socialIconSpin {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

.socialMedia li a:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f00;
    transition: .6s;
    z-index: 2;
}

.socialMedia li a:hover:before {
    top: 0;
}

/*instagram*/
.socialMedia li:nth-child(1) a:before {
    background: #e56969;
}

/*facebook*/
.socialMedia li:nth-child(2) a:before {
    background: #0E8DF1;
}
/*linkedIn*/
.socialMedia li:nth-child(3) a:before {
    background: #007FBC;
}


.socialMedia li:nth-child(3) a:before {
    background: #0077b5;
}

.socialMedia li:nth-child(4) a:before {
    background: #dd4b39;
}
