﻿.profile-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.25rem;
    background-color: #f6f6f6;
    z-index: 1;
}

    .profile-container:before {
        font-size: 26px;
        top: 25%;
    }

    .profile-container > .profile-wrapper {
        position: relative;
        display: grid;
        width: 100%;
        height: 100%;
    }

    .profile-container .prev {
        display: inline-flex;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

        .profile-container .prev img {
            width: 100%;
            max-width: 100%;
        }

    .profile-container:hover .prev {
        opacity: 0;
    }

.profile-wrapper::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    bottom: -91%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 100%, rgba(255, 255, 255, 0.1) 0%);
    opacity: 0.9;
    transition: all 0.3s ease;
    z-index: 3;
}

html:not(.translated-ltr) > body .profile-wrapper::after {
    left: 0;
    transform: rotateZ(80deg) translateX(25%);
}

html[class=translated-ltr] > body .profile-wrapper::after {
    right: 0;
    transform: rotateZ(101deg) translateX(25%);
}

html:not(.translated-ltr) > body .profile-container:hover .profile-wrapper::after {
    transform: rotateZ(50deg) translateX(-150%);
}

html[class=translated-ltr] > body .profile-container:hover .profile-wrapper::after {
    transform: rotateZ(160deg) translateX(-150%);
}

.profile-container:hover .next {
    transform: scale(0);
    opacity: 0;
}

.profile-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 1rem 10px;
    opacity: 0;
    background-color: #fff;
    transition: all 0.3s ease;
}

    .profile-card > div:nth-child(1),
    .profile-card > div:nth-child(2) {
        cursor: pointer;
    }

.profile-container:hover .profile-card {
    opacity: 1;
    transition: all 0.3s ease;
    transition-delay: 0.2s;
}

.profile-container .next {
    top: 71%;
    opacity: 1;
    transform: scale(1);
    z-index: 4;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

html:not(.translated-ltr) > body .profile-container .next {
    right: 15px;
}

html[class=translated-ltr] > body .profile-container .next {
    left: 15px;
}

.profile-card .profile-img-small {
    display: block;
    margin: 0 auto;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin: 1rem 0;
    border: 2px solid transparent;
    background-image: linear-gradient(#f6f6f6, #f6f6f6), linear-gradient(to right, #35a5ca, var(--clrorange));
    background-origin: border-box;
    background-clip: content-box, border-box;
    position: relative;
}

.profile-card h1,
.profile-container .next h1 {
    font-size: 1rem;
}

.profile-card h2,
.profile-container .next h2 {
    font-size: var(--fontsize);
    color: #888;
    margin-top: 0.5rem;
}

.profile-card .address,
.profile-card .tel > a {
    line-height: 1.2;
    display: inline-flex;
    text-align: right;
}

.profile-card .tel {
    display: flex;
    flex-direction: row;
    margin-top: 1rem;
    width: 100%;
}

html:not(.translated-ltr) > body .profile-card .tel span {
    margin-left: 0.25rem;
}

html[class=translated-ltr] > body .profile-card .tel span {
    margin-right: 0.25rem;
}

.profile-card .address {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-top: 0.5rem;
}

.profile-card .view {
    margin-top: 0.5rem;
}

/* Profile Icons */
.profile-card .link-share {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-height: 25px;
    justify-content: space-evenly;
    bottom: 20px;
    position: absolute;
}

    .profile-card .link-share a {
        cursor: pointer;
    }

        .profile-card .link-share a > svg {
            fill: #666;
            transform: scale(1);
            transition: all 0.1s ease-in-out;
        }

            .profile-card .link-share a > svg:hover {
                fill: #222;
                transform: scale(1.3);
            }

.profile-card .icons i:hover {
    background-color: #222;
    font-size: 20px;
    cursor: pointer;
}

.next {
    position: absolute;
}

@media screen and (max-width: 1200px) {
    .profile-card .profile-img-small {
        width: 90px;
        height: 90px;
        margin: 0.9rem 0;
    }

    .profile-card .view {
        height: 33px;
        margin-top: 15px;
        padding: 0 12px;
    }
}

@media screen and (max-width: 1140px) {
    .profile-card .profile-img-small {
        width: 75px;
        height: 75px;
        margin: 0.7rem 0;
    }

    .profile-card .view {
        height: 30px;
        margin-top: 12px;
        padding: 0 10px;
    }
}

@media screen and (max-width: 540px) {
    .profile-container:before {
        font-size: 24px;
    }
}
