﻿img {
    border: solid 2px black;
}

.img-container {
    position: relative;
    width: 100%;
    align-items: center !important;
    /*max-width: 200px;*/
}

    .img-container:hover 
    .img-home {
        opacity: 1;
    }

    .img-container:hover 
    .text-top {
        opacity: 0.2;
    }


.img-home {
    opacity: 1;
    display: block;
    width: 100%;
    height: auto;
    transition: .5s ease;
    backface-visibility: hidden;
}


.text-top {
    transition: .5s ease;
    opacity: 1;
    position: absolute;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    top: 10%;
    left: 50%;
    text-shadow: 1px 1px 1px silver;
    /*
    text-align: center;
    */
}

.text {
    /*background-color: #ebe4e4;*/
    /*color: black;*/

    background-color: black;
    color: white;
    font-size: 14px;
    font-weight: bold;
    /*text-shadow: 1px 1px 2px black;*/
    font-style: italic;
    font-family: 'Lucida Bright';
    border: 1px solid black;
    padding: 10px 10px;
    border-radius: 10px 10px 10px 0px;
}

@media screen and (max-width: 600px) {    
    .img-container {
        max-width: 200px;
        align-items:center;
    }
}

/*@media screen and (min-width: 500px) {*/
    /*    .img-container {
        display: flex;
    }*/
/*}*/




.fade-in-image {
    animation: fadeIn 5s;
    -webkit-animation: fadeIn 5s;
    -moz-animation: fadeIn 5s;
    -o-animation: fadeIn 5s;
    -ms-animation: fadeIn 5s;
}

.fade-in-image-3 {
    animation: fadeIn 3s;
    -webkit-animation: fadeIn 3s;
    -moz-animation: fadeIn 3s;
    -o-animation: fadeIn 3s;
    -ms-animation: fadeIn 3s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-moz-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-o-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-ms-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
