.mainPage {
    background-color: #001529;
    height: auto;
    display: flex;
}

.top {
    /* width: 100%; */
    /* height: calc(90vh); */
    align-items: center;
    position: relative;
    display: flex;
    padding: 8vw 5vw 3vw 10vw;
    /* padding-top: 5vw; */
}

.text {
    width: 55%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5vh;
}

.text p {
    font-family: "Abril Fatface";
    color: #f0f0f0;
    font-size: 6vw;
    margin: 0;
    font-weight: lighter;
}

/* .links {
    display: flex;
    gap: 10px;
    flex-direction: column;
} */

.text a {
    color: #f0f0f0;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2vh 2vw 2vh 2vw;
    font-size: 1.5vw;
    border: 1px solid #A3CCCE;
    width: fit-content;
}

.contraindication {
    width: 100%;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #A3CCCE;
    margin-bottom: 3rem;
}

.contraindication a {
    font-family: 'Raleway';
    text-decoration: none;
    color: #001529;
}

/* .custom-btn {
    width: 15vw;
    height: 7vh;
    border: 1px solid #A3CCCE;
    color: #f0f0f0;
    font-size: 1.3vw;
    font-family: 'Raleway';
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    outline: none;
}

.btn-3 {
    background-color: rgba(255, 255, 255, 0.1);
    width: 15vw;
    height: 7vh;
    line-height: 42px;
    padding: 0;
}

.btn-3 span {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.btn-3:before,
.btn-3:after {
    position: absolute;
    content: "";
    right: 0;
    top: 0;
    background: #A3CCCE;
    transition: all 0.3s ease;
}

.btn-3:before {
    height: 0%;
    width: 2px;
}

.btn-3:after {
    width: 0%;
    height: 2px;
}

.btn-3:hover{
    background: transparent;
    box-shadow: none;
}

.btn-3:hover:before {
    height: 100%;
}

.btn-3:hover:after {
    width: 100%;
}

.btn-3 span:hover{
    color: #A3CCCE;
}

.btn-3 span:before,
.btn-3 span:after {
    position: absolute;
    content: "";
    left: 0;
    bottom: 0;
    background: #A3CCCE;
    transition: all 0.3s ease;
}

.btn-3 span:before {
    width: 2px;
    height: 0%;
}
.btn-3 span:after {
    width: 0%;
    height: 2px;
}

.btn-3 span:hover:before {
    height: 100%;
}

.btn-3 span:hover:after {
    width: 100%;
} */

.image {
    position: relative;
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image img {
    width: 90%;
}

.cards {
    display: flex;
    width: 70vw;
    margin-left: 5vw;
    margin-right: 5vw;
    margin-top: calc(5vh + 6.5vw);
    justify-content: space-around;
    flex-wrap: wrap;
}

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card {
    position: relative;
    width: 18vw;
    min-height: 300px;
    /* height: 45vh; */
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #C0BAB4;
}

.round {
    width: 13vw;
    height: 13vw;
    margin-top: -6.5vw;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.roundIcon {
    width: 70%;
    opacity: 70%;
    height: 70%;
}

.title {
    margin-top: 2vh;
    font-family: 'Abril Fatface';
    font-size: 2rem;
}

.card span {
    width: 20%;
    height: 2px;
    margin-top: 2vh;
}

.contentCard {
    width: 90%;
    font-size: 1.1rem;
    padding-bottom: 2vh;
    text-align: center;
}

.cares {
    position: relative;
    margin-top: 10vh;
    background-color: #A3CCCE;
    padding: 7vh 6vw 7vh 6vw;
    width: 88vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5vh;
}

.cares h3 {
    font-family: 'Abril Fatface';
    font-size: 3.5rem;
    letter-spacing: 0.1vw;
    margin: 0;
    text-align: center;
}

.careCards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

.careCardsMobile {
    display: none;
}

.careCardMobile {
    width: 80vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 50vh;
    z-index: 1;
    justify-content: space-evenly;
}

.careCard {
    margin: 1vw;
    width: 20vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.cardObj {
    top: 2vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    width: 15vw;
    height: 90%;
    /* background-color: brown; */
}

.descDiv {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 14;
    -webkit-box-orient: vertical;
    max-height: 20vw;
    max-width: 80%;
}

.cardInfText {
    /* margin-top: 2vh; */
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.cardInfText p {
    display: flex;
    font-size: 1rem;
    margin: 0;
    margin-bottom: 1vh;
}

.cardInfText p img {
    width: auto;
    height: 1.3rem;
    margin-right: 0.5rem;
    opacity: 0.6;
    border: none;
}

.cardObj a, .careCardMobile a {
    text-decoration: none;
    color: black;
    font-weight: 200;
    background-color: #EDE9E4;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    height: 2.5rem;
    border: 1px solid;
    margin-bottom: 1.5vh;
    margin-top: 0vh;
}

.description {
    font-size: 0.9rem;
    margin: 0;
}

.cardObj h4 {
    font-size: 1.5rem;
    margin-top: 3vh;
    margin-bottom: 0;
}

.cardImg {
    width: 90%;
    max-height: 11vw;
    object-fit: contain;
    opacity: 0.8;
    border: 1px solid black;
    margin-top: 1vh;
}

.dispo {
    font-size: 0.9vw;
    text-align: center;
}
 
.backImg {
    width: 20vw;
    height: 25vw;
}

.flip-card {
    background-color: transparent;
    width: 22vw;
    height: 27vw;
    perspective: 1000px;
    position: relative;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    
}

.flip-card-front {
    background-color: transparent;
}

.flip-card-back {
    background-color: transparent;
    transform: rotateY(180deg);
}

.quotation {
    /* position: absolute; */
    /* left: 5vh;
    top: 5vh; */
    padding: 1.8vh 2vw 1.8vh 2vw;
    background-color: #F5C362;
    text-decoration: none;
    color: black;
    transition: all 0.3s ease-in-out;
}

.quotation:hover {
    color: #D9E4DF;
    background-color: #001529;
}

@media (max-width: 1024px) {
    .mainPage {
        height: auto;
    }

    .top {
        flex-direction: column-reverse;
        padding: 5rem 0;
        gap: 5vh;
    }

    .text {
        align-items: center;
        text-align: center;
        width: 70%;
    }

    .text p {
        font-size: 2rem;
    }

    .text a {
        padding: 2vw;
        font-size: 1rem;
    }

    .cards {
        margin-top: calc(5vh + 20vw);
        gap: 20vh;
    }

    .card {
        width: 60vw;
    }

    .round {
        width: 40vw;
        height: 40vw;
        margin-top: -20vw;
    }

    .cares h3 {
        font-size: 2.5rem;
    }

    .careCards {
        display: none;
    }

    .careCardsMobile {
        display: flex;
        flex-direction: column;
        gap: 5vh;
    }

    .backImg {
        width: auto;
        height: 100%;
        position: absolute;
        z-index: -1;
    }

    .careCardMobile h4 {
        max-width: 70vw;
        margin: 0;
        margin-top: 2vh;
    }

    .cardImg {
        object-fit: contain;
        max-width: 80%;
        max-height: 20%;
        border: none;
        margin: 0;
    }

    .cardInfText {
        width: 80%;
    }

    .cardInfText p {
        margin: 0;
    }

    .careCardMobile a {
        width: 50%;
        margin: 0;
    }

    .descDiv {
        -webkit-line-clamp: 3;
    }
}
