.overflow {
    overflow-wrap: anywhere;
}

.card-container {
    width: 390px;
    height: 390px;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.card {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-color: #008080;
}

.card h1 {
    color: #fff;
}

.card .front-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1)
}

.card .front-content p {
    font-size: 32px;
    font-weight: 700;
    opacity: 1;
    background: linear-gradient(-45deg, #008080 0%, #008080 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1)
}

.card .content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(-45deg, #008080 0%, #008080 100%);
    color: #fff;
    line-height: 1.5;
    border-radius: 5px;
    pointer-events: none;
    transform: translateY(-96%);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.card .content .heading {
    font-size: 32px;
    font-weight: 700;
}

.card:hover .content {
    transform: translateY(0);
}

.card:hover .front-content {
    transform: translateY(30%);
}

.card:hover .front-content p {
    opacity: 0;
}

.card2-container {
    width: 350px;
    height: 350px;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin: 15px;
    background-color: #008080;
}

.card2-container h1 {
    color: #fff;
    justify-self: center;
    padding-top: 12px;
}


/* Mobihide and Mobishow */

.mobishow {
    display: none !important;
}

.mobihide {
    display: grid !important;
}

@media (max-width: 600px) {
    .mobishow {
        display: grid !important
    }

    .mobihide {
        display: none !important;
    }
}

.roof .workspace .element {
    align-self: center;
    justify-self: center;
}

.roof .workspace .element .element h1,
.roof .workspace .element .element h3,
.roof .workspace .element .element p {
    justify-self: center;
    text-align: center;
}

@media(max-width: 768px) {
    .roof .workspace .element {
        align-self: center;
        justify-self: center;
    }

    .roof .workspace .element .element h1,
    .roof .workspace .element .element h3,
    .roof .workspace .element .element p {
        justify-self: center;
        text-align: center;
    }
}

.roof-leftalign .roof .workspace .element {
    justify-self: left;
    text-align: left;
}

.roof .workspace .element .roof-leftalign h1,
.roof .workspace .element .roof-leftalign h3,
.roof .workspace .element .roof-leftalign p {
    justify-self: left;
    text-align: left;
}

.imgsize {
    max-width: 100%;
}

@media(min-width: 768px) {
    .imgsize {
        max-width: 700px;
    }
}

.imgsize2 {
    max-width: 100%;
}

@media(min-width: 768px) {
    .imgsize2 {
        max-width: 500px;
    }
}