/*-------------------- CSS --------------------*/
/* style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Trebuchet MS', sans-serif;
}

body {
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background: linear-gradient(skyblue, rgb(55, 115, 255));
}

.slider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 500px;
    height: 300px;
}

.content {
    width: 380px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-radius: 100px 20px 20px 100px;
    position: absolute;
    pointer-events: none;
    animation: anime 15s linear infinite;
    opacity: 0;
    animation-delay: calc(3s * var(--delay));
}

.slider:hover .content {
    animation-play-state: paused;
}

@keyframes anime {
    0% {
        opacity: 0;
        transform: translateY(100%) scale(0.5);
    }

    5%,
    20% {
        opacity: 0.4;
        transform: translateY(100%) scale(0.7);
    }

    25%,
    40% {
        opacity: 1;
        transform: translateY(0%) scale(1);
        pointer-events: auto;
    }

    45%,
    60% {
        opacity: 0.4;
        transform: translateY(-100%) scale(0.7);
    }

    65%,
    100% {
        opacity: 0;
        transform: translateY(-100%) scale(0.5);
    }
}

.image {
    width: 90px;
    height: 90px;
    background-color: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    padding: 5px;
    transition: 0.1s;
}

.image:hover {
    padding: 1px;
}

.image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.name {
    margin: 10px;
    flex-grow: 2;
}

h2 {
    font-size: 18px;
}


.content a {
    text-decoration: none;
    background-color: skyblue;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 10px;
    color: white;
    text-transform: uppercase;
}

.content a:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.229);

}