
/* Style the main element as a flex container */
section.hero {
    margin-top: 0;
}
.necrologi {
    width: 80vw;
    margin: 4vw auto 3vw auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Style the card services */
.card {
    display: flex;
    flex-direction: column;
    flex-basis: calc(32.5% - 1vw);
    margin-bottom: 8vw;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.message {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
    background-color: #b7b7b7;
    border: 1px solid #323232;
}

.card p {
    font-size: 1.6vw;
    margin: 0.3vw 2vw;
}

.card .btn {
    display: flex;
    align-items: center;
    margin: 1vw auto;
    width: 100%;
    height: 3vw;
    border: 1px solid #323232;
    background-color: #323232;
    color: white;
    transition: 0.3s ease-in-out;
    text-align: center;
}

.card:hover .btn {
    background-color: #fff;
    color: #323232;
}

.card .btn p {
    font-family: 'Aboreto', sans-serif;
    font-size: 1.2vw;
}

.card .message p {
    color: #323232;
}
.over-img {
    position: absolute;
    top: 40%;
    left: 5%;
    width: 70%;
    z-index: 10;
    color: #fff;
}
.over-img h2 {
    font-size: 2.5vw;
    line-height: 3.6vw;
}


@media screen and (max-width: 900px) {
    .necrologi {
        width: 85vw;
    }

    .card {
        flex-basis: calc(50% - 2vw);
        cursor: pointer;
    }
}

@media screen and (max-width: 600px) {
    h1 {
        font-size: 4.5vw;
    }
    .necrologi {
        margin-top: 10vw;
        width: 75vw;
    }

    .card {
        flex-basis: calc(100% - 0vw);
    }

    .card .btn {
        height: 8vw;
    }
    .card .btn p{
        font-size: 3vw;
    }

    .message {
        height: 8vw;
    }

    .card p {
        font-size: 3.8vw;
        margin: 1.4vw 2vw;
    }
    .over-img {
        top: 20%;
        left: 10%;
        width: 70%;
        z-index: 10;
        color: #fff;
    }
    .over-img h2 {
        font-size: 7vw;
        line-height: 10.6vw;
    }
}