
h1 {
    text-align: center;
    font-weight: bolder;
    color: #0a7b79;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

.card::before {
    position: absolute;
    content: "";
    width: 80%;
    height: 220%;
    background: rgba(211, 242, 233, 0.7);
    top: -50%;
    left: -100%;
    z-index: 1;
    transform: rotate(25deg);
    transform-origin: center top 0;
    transition: 0.5s;
}

.card:hover:before {
    left: 10%;
}

.card img {
    width: 100%;
    height: 100% !important;
}

.card-text {
    width: 100%;
    padding: 0 20px;
    position: absolute;
    top: -100%;
    color: #546789;
    left: 0;
    z-index: 2;
    transition: 1.1s;
}

.card-text h3 {
    font-family: "Montserrat", sans-serif;
}

.card:hover .card-text {
    top: 80px;
}

.row {
    padding-bottom: 5% !important;
}

.img1 {
    width: 100% !important;
    height: 100% !important;
}

.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
    z-index: 999;
    overflow: hidden;
}

.overlay:target {
    margin: 80px auto;
    visibility: visible;
    opacity: 1;
}

.popup {
    margin: 70px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    width: 70%;
    position: relative;
    transition: all 5s ease-in-out;
}

.popup h2 {
    margin-top: 0;
    color: #333;
    padding-bottom: 20px;
    margin-left: 20px;
    font-family: Tahoma, Arial, sans-serif;
}

.popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.popup .close:hover {
    color: #06d85f;
}

.popup .content {
    max-height: 30%;
    border-radius: 20px;
    overflow: auto;
}

/** code by webdevtrick ( https://webdevtrick.com ) **/

.myimages {
    display: flex;
    overflow: hidden;
    height: 550px;
    background: #fff;
    z-index: 99999;
    overflow: hidden;
}

.myimages img {
    max-width: 100%;
    vertical-align: middle;
    border: 2px solid white;
    box-sizing: border-box;
    transition: opacity 0.2s;
}

.myimages:hover img {
    opacity: 0.5;
}

.myimages img:hover {
    opacity: 1;

}

.first-column {
    animation: var(--animation, none) 16s infinite linear;
}

.first-column:hover {
    animation-play-state: paused;
}

.first-column:nth-of-type(odd) {
    align-self: flex-end;
    --direction: 50%;
}

@keyframes slide {
    to {
        -webkit-transform: translateY(var(--direction, -50%));
        transform: translateY(var(--direction, -50%));
    }
}

@media screen and (max-width: 700px) {
    .popup {
        width: 70%;
    }

    .overlay {
        height: 550px;
    }

    .myimages {
        width: 100%;
        height: 250px;
    }
}