:root {
    --social-center: 110px;
    --linkedin-shown-left: 200px;
    --github-shown-left: 25px;
}


.socials {
    font-family: "BBH Sans Bartle", sans-serif;
    background-color: var(--primary-color);
    border-radius: 50px;
    padding: 8px 180px 8px 15px;
    display: flex;
    align-items: center;
    height: 30px;
    transition: 0.3s;
    border: var(--primary-color-light) 4px solid;
}

.socials img {
    width: 40px;
    filter: invert(1);
    transition: 0.3s;
}

.socials span {
    position: absolute;
    color: var(--text-color);
    animation: slideUp 0.3s ease-out;
    margin-left: 50px;
    transition: 0.3s;
}

.social-icons {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 8px 8px;
    display: flex;
    align-items: center;
    height: 30px;
    transition: 0.3s;
    border: var(--primary-color-light) 4px solid;
    cursor: pointer;
    position: absolute;
    left: var(--social-center);
    z-index: -1;
}

.social-icons:hover {
    background-color: var(--primary-color-light);
}

.social-icons:hover .social-icon {
    filter: invert(0);
}

.social-icon {
    width: 30px;
    filter: invert(1);
    transition: 0.3s;
}

.socials:hover {
    background-color: var(--primary-color-light);
    cursor: pointer;
}

.socials:hover span {
    color: var(--secondary-color);
}

.socials:hover img {
    filter: invert(0);
}

@keyframes disappear {
    0% {
        opacity: 1;
    }
    99% {
        opacity: 0;
    }
    100% {
        opacity: 0;
        display: none;
    }
}

@keyframes center {
    0% {
        padding-right: 180px;
    }
    100% {
        margin-left: 80px;
        padding-right: 15px;
    }
}

@keyframes appear {
    0% {
        opacity: 0;
        display: none;
    }
    99% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

@keyframes uncenter {
    0% {
        margin-left: 80px;
        padding-right: 15px;
    }
    100% {
        margin-left: 0;
        padding-right: 180px;
    }
}

@keyframes showLinkedin{
    0% {
        left: var(--social-center);
        z-index: -1;
    }
    99% {
        left: var(--linkedin-shown-left);
        z-index: -1;
    }
    100% {
        left: var(--linkedin-shown-left);
        z-index: 1;
    }
}

@keyframes showGithub{
    0% {
        left: var(--social-center);
        z-index: -1;
    }
    99% {
        left: var(--github-shown-left);
        z-index: -1;
    }
    100% {
        left: var(--github-shown-left);
        z-index: 1;
    }
}

@keyframes hideLinkedin{
    0% {
        left: var(--linkedin-shown-left);
        z-index: -1;
    }
    100% {
        left: var(--social-center);
        z-index: -1;
    }
}

@keyframes hideGithub{
    0% {
        left: var(--github-shown-left);
        z-index: -1;
    }
    100% {
        left: var(--social-center);
        z-index: -1;
    }
}