*{
    margin: 0;
    padding: 0;
    list-style: none;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ddd;
    color: black;
    text-align: justify;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.container {
    position: relative;
    top: 200px;
    width: 500px;
    height: 300px;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    height: 100%;
    width: 100%;
    margin: auto;
    padding: 20px 80px 20px 20px;
    background-color: royalblue;
    color: #fefefe;
    border-radius: 10px;
    clip-path: circle(7% at 90% 10%);
    transition: clip-path 0.5s ease-in-out;
    cursor: pointer;
}

h1 {
    margin-bottom: 10px;
}

.card:nth-child(1) {
    clip-path: circle(7% at 6% 12%);
}

.card:nth-child(2) {
    clip-path: circle(7% at 6% 50%);
    /* background-color: royalblue; */
}

.card:nth-child(3) {
    clip-path: circle(7% at 6% 88%);
    /* background-color: rgb(198, 62, 62); */
}

.card:hover {
    clip-path: circle(70%);
}

.card:nth-child(1)::before {
    font-family: "FontAwesome";
    content: "\f0e0";
    font-size: 150%;
    position: absolute;
    left: 25px;
    top: 30px;
}

.card:nth-child(2)::before {
    font-family: "FontAwesome";
    content: "\23";
    font-size: 150%;
    position: absolute;
    left: 25px;
    top: 47%;
}

.card:nth-child(3)::before {
    font-family: "FontAwesome";
    content: "\f019";
    font-size: 150%;
    position: absolute;
    left: 25px;
    bottom: 30px;
}

.card:hover::before {
    color: transparent;
}

.infos {
    display: flex;
    flex-direction: column;
    align-items: left;
    position: absolute;
}

.infos a {
    color: white;
}

@media screen and (max-width: 650px) {

    .container {
        width: 100vw;
        height: 100vh;
    }

    .card {
        height: 50px;

    }

    .card:hover::before {
        color: white;
    }

    .card:nth-child(1) {
        margin-left:5%;
        clip-path: none;
        width: 300px;
        height: 200px;
    }

    .card:nth-child(2) {
        margin-left: 5%;
        clip-path: none;
        height: 200px;
        width: 300px;
        top: 300px;
    }

    .card:nth-child(3) {
        margin-left: 5%;
        clip-path: none;
        width: 300px;
        top: 600px;
    }

    .card:nth-child(3)::before {
        font-size: 100%;
        left: 15px;
    }
    
}