/*main div of image*/
.image {
    position: relative;
    width: 50%;
    margin-right: 5%;
    border: black solid 5px;
    transition: 100ms;
}

/*class of image link*/
.image__img {
    display: flex;
    width: 100%;
    float: left;
}

/*subdiv for text overlay (text display)*/
.image__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-family: sans-serif, Arial;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
}

/*targets all elements that are direct children of class and animates*/
.image__overlay>* {
    transform: translateY(20px);
    transition: transform 0.25s;
}

/*show text (image overlay) on hover of image*/
.image__overlay:hover {
    opacity: 1;
}

/*targets all elements that are direct children of class on hover and animates*/
.image__overlay:hover>* {
    transform: translateY(0);
}

/*styling of image hover*/
.image:hover {
    cursor: pointer;
    transition: 100ms;
}

/*styling of text display*/
.image__description {
    font-size: 1.25em;
    margin: 0;
}

/*class of content images*/
.imageContent {
    width: 100%;
    border-radius: 0.3em;
}

/*main div of 3 content images, display them horizontally aligned with each other*/
.content {
    text-align: center;
    justify-content: center;
    display: flex;
}

/*remove margin of paragraph elements*/
p {
    margin: 0;
}

/*subdiv for each content image*/
.containerContent {
    margin-bottom: 40px;
    border-radius: 0.3em;
    padding: 10px;
    background-color: rgba(248, 247, 216, 0.35);
    margin-left: auto;
    margin-right: auto;
    width: 30%;
}

/*styling of h3 elements*/
h3 {
    margin-bottom: 20px;
    margin-top: 20px;
}

/*styling of content h3 titles*/
#voitures,
#map {
    margin-bottom: 0;
    padding-bottom: 0.8%;
    padding-top: 2%;
}

/*media screen*/
@media screen and (max-width: 630px) {
    .image__overlay:hover {
        opacity: 0;
    }
}