/* Body and layout */
body {
    background: #293241;
    color: #fff;
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

h1 {
    font-family: sans-serif;
    font-size: 3em;
    margin-bottom: 40px;
    text-transform: lowercase;
}

/* Social buttons container */
.social-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    padding-bottom: 50px;
}

/* Social button base */
.social-button {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    outline: none;
    cursor: default;
}

/* Background square that expands */
.button-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    z-index: 0;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Icon */
.social-button i {
    position: relative;
    z-index: 1;
    font-size: 26px;
    color: white;
}

/* Platform-specific background colors */
.twitter .button-bg {
    background-color: #1DA1F2;
}

/* Hover effect for the outer square only */
.social-button:hover .button-bg {
    animation: jello-horizontal 0.4s both;
}

.social-button .button-bg {
    animation: jello-horizontal-out 0.6s forwards;
}

@keyframes jello-horizontal {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1.1);
    }
    85% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(1.2);
    }
}

@keyframes jello-horizontal-out {
    0% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Remove focus outline */
.social-button:focus, .social-button:hover {
    outline: none;
    box-shadow: none;
}

.social-button-link,
.social-button:active,
.social-button:focus {
    text-decoration: none;
    color: inherit;
    outline: none;
    border: none;
}
