body {
    background: rgb(255, 255, 255);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(204, 210, 104, 1) 100%);
}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 88%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: #000000;
}

.container-overlay:hover .overlay {
    opacity: .7;
    background-color: #081645;
    transition: .5s ease;
}

.container-overlay:hover .overlay-text-container {
    opacity: .9;
}

.overlay-text-container {
    position: absolute;
    bottom: 15%;
    text-align: left;
    opacity: 0;
    transition: .5s ease;
    padding: 1.5em;
    z-index: 1;
}

.text-overlay {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    font-size: 1.2em;
}

@media screen and (max-width: 450px) {
    .overlay-text-container {
        bottom: 15%;
    }
    .overlay {
        height: 85.7%;
    }
    .text-overlay {
        font-size: .8em;
    }
}

@media screen and (max-width: 400px) {
    .overlay-text-container {
        bottom: 12%;
    }
    .overlay {
        height: 84.4%;
    }
}