* {
    margin: 0;
    padding: 0;
    font-family: "Raleway", "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    gap: 20px;
}

.container {
    width: 500px;
    height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    align-items: center;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 0 50px 6px #c8c8c8;
    padding: 20px;
}

span {
    display: block;
    width: 100%;
    position: absolute;
    top: 0px;
    border-radius: 5px 5px 0 0;
    background-color: rgb(255, 89, 89);
    line-height: 25px;
    color: white;
    text-align: center;
    padding: 20px;
}

h1 {
    margin-top: 50px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.form-control {
    width: 100%;
    height: 40px;
    border: 0;
    border: 1px solid #8b8b8b89;
    border-radius: 5px;
    padding: 0 10px;
    transition: 150ms ease-in-out;
    font-weight: 600;
}

.form-control:focus,
.form-control:hover {
    outline: none;
    box-shadow: inset 0 0 6px 2px #bdbdbd;
}

button {
    height: 40px;
    border: 0;
    background-color: #5c72f3;
    color: white;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 150ms ease-in-out;
}

button:focus,
button:hover {
    outline: none;
    box-shadow: 0 0 6px 0 #afafaf;
}

.info {
    position: absolute;
    bottom: 0;
    background-color: rgb(20, 143, 112);
    color: white;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 25px;
    border-radius: 0 0 5px 5px;
}

.social-media {
    list-style: none;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

a {
    color: #2a2a2a;
    text-decoration: none;
    font-weight: bold;
}

li {
    display: block;
    position: relative;
}

.medium {
    --origin: left;
    --background: #5bec2f;
}

.github {
    --origin: center;
    --background: #fdb822;
}

.linkedin {
    --origin: left;
    --background: #2c57e694;
}

.instagram {
    --origin: right;
    --background: #fb2121;
}

li::after,
li::before {
    content: "";
    width: 100%;
    height: 2px;
    background-color: var(--background);
    bottom: -5px;
    left: 0;
    position: absolute;
    z-index: -1;
    border-radius: 100px;
    transform-origin: var(--origin);
    animation: pulse 2s ease-in-out infinite alternate;
}

li::before {
    top: -5px;
}

.message {
    position: absolute;
    z-index: 2;
    top: 120px;
    background-color: #22f3a3;
    width: 100%;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateX(-10%);
    padding: 15px 10px;
    text-align: center;
}

.entry {
    animation: entry 500ms ease-in-out forwards;
}

.exit {
    animation: exit 500ms ease-in-out forwards;
}

@keyframes entry {
    0% {
        opacity: 0;
        transform: scale(1, 0) translateX(-10%);
    }
    100% {
        transform: scale(1, 1) translateX(0%);
        opacity: 1;
    }
}

@keyframes exit {
    0% {
        opacity: 1;
        transform: scale(1, 1) translateX(0%);
    }
    100% {
        transform: scale(1, 0) translateX(10%);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0, 0);
    }
    100% {
        transform: scale(1, 1);
    }
}