:root {
    --primary: var(--color1);
    --secondary: var(--color4);
    --cta: var(--color2);
}

body {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    height: 100vh !important;
    background: var(--secondary);
    padding-top: 6rem;
}

@media (max-width: 768px) {
    body {
        padding-top: 4rem;
    }
}

header {
    z-index: 5 !important;
}

#contactCard a:hover::after {
    display: none;
}

.contact-tab {
    position: relative;
    box-shadow: 0 0 4px #00000020;
    height: 5rem;
    border-radius: 4px;
    font-size: 16pt;
    padding: 0 1rem 0 7rem;
    background: var(--primary);
    color: var(--secondary);
    margin: 2rem 0;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.contact-tab:hover {
    color: var(--secondary);
}
.contact-tab svg {
    height: 2rem;
    margin: auto;
    fill: var(--primary);
}
.tab-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--secondary);
}
.tab-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

#contactCard {
    background: var(--primary);
    max-width: 32rem;
    height: calc(100% - 4rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    #contactCard {
        box-shadow: 0 0 8px #00000050;
        height: unset;
        max-width: 38rem;
    }
}


.card-head {
    position: relative;
    height: 35vh;
    text-align: center;
    color: white;
    padding: 1rem;
}
@media (max-width: 768px) {
    .card-head {
        height: calc(50vh - 2rem) !;
    }
}
@media (max-height: 640px) {
    .card-head {
        min-height: 16rem !important;
    }
    body {
        height: unset !important;
    }
}
.profile-image {
    position: absolute;
    padding: 0;
    max-height: 100%;
    min-height: 12rem;
    background: var(--primary);
    left: 50%;
    bottom: 0;
    margin: 0;
    border-radius: 50%;
    aspect-ratio: 1/1;
    width: auto;
    overflow: hidden;
    z-index: 4;
    transform: translate(-50%, 5%);
    border: 8px solid var(--color4);
    height: 21rem;
}
.profile-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.profile-image svg {
    fill: var(--secondary);
}
.contact-logo {
    position: relative;
    right: .5rem;
    height: 4rem;
    width: 4rem;
    margin: 0;
    padding: 0;
}
.profile-image img, .contact-logo img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.card-body {
    position: relative;
    height: 65vh;
    background: var(--secondary);
    padding: .5rem;
    display: flex;
    flex-direction: column;
    z-index: 3;
    flex-shrink: 1;
}
@media (min-width: 768px) {
    #contactCard {
        max-height: 90vh;
        border-radius: 12px;
    }
    .card-head {
        min-height: 10rem;
    }
    .card-body {
        height: 50vh;
    }
}

.btn-primary {
    border: none !important;
}

.top-shape {
    position: absolute;
    padding: 0;
    top: 0;
    left: 0;
    transform: translateY(calc(-100% + 2px));
}
.top-shape svg {
    position: absolute;
    left: 0;
    bottom: 0;
    fill: var(--secondary);
    z-index: 2;
}
.top-shape svg:nth-child(2) {
    fill: var(--primary);
    z-index: -1;
    rotate: 3deg;
    bottom: .6rem;
    left: -2px;
}
.top-shape::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: -7px;
    height: 8px;
    width: 100%;
    background: var(--secondary);
}

.title {
    position: relative;
    display: flex;
    justify-content: space-between;
    color: var(--primary);
    border-left: 2px solid var(--primary);
    margin-left: 3%;
    padding-left: 1.5rem;
    margin-bottom: .5rem;
    margin-top: 1rem;
}
.title a {
    color: var(--primary);
}

.link {
    background: white;
    color: var(--primary);
    box-shadow: 0 0 8px #00000020;
    display: flex;
    justify-content: start;
    align-items: center;
    height: 3rem;
    padding: .5rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-decoration: none;
    cursor: pointer;
    transition: .25s;
}
.link.link-social {
    width: 3rem;
    margin-right: 1rem;
    margin-top: 0;
}
.link:hover {
    color: var(--primary);
}
.download-link {
    height: fit-content;
    margin: 0 0 0 auto !important;
    width: fit-content !important;
    padding: .5rem 2rem;
    background: var(--color2, orange);
    color: white;    
}
.download-link svg {
    fill: white !important;
}
.download-link:hover {
    color: white;
    background: var(--color1, darkblue);
}
@media (min-width: 768px) {
    .link:not(.link-social):hover {
        padding: 1rem;
        height: 4rem;
        color: var(--primary);
        transition: .25s;
    }
}
.link svg {
    fill: var(--primary);
    height: 2rem;
    width: 2rem;
    margin-right: 1rem;
}
.link.link-social svg {
    margin: 0;
}

.flex-grow {
    flex-grow: 1;
}

.footer {
    padding-bottom: 2rem;
    background: var(--secondary);
}
@media (max-width: 768px) {
    .footer {
        padding-bottom: 3rem;
    }
}

#shareContact {
    background: var(--secondary);
    color: var(--primary);
}
#shareContact .btn-close {
    position: absolute;
}
.offcanvas-title {
    width: 100%;
    text-align: center;
}
@media (max-width: 768px) {
    #shareContact {
        width: 100vw;
        max-width: unset !important;
    }
}

.logo {
    width: 19rem;
    max-width: 60vw;
    margin: 0 auto;
}

.logo img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}


.qr {
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: center;
    margin: 0 0 2rem 0;
    background:
        linear-gradient(to right, var(--primary) 4px, transparent 4px) 0 0,
        linear-gradient(to right, var(--primary) 4px, transparent 4px) 0 100%,
        linear-gradient(to left, var(--primary) 4px, transparent 4px) 100% 0,
        linear-gradient(to left, var(--primary) 4px, transparent 4px) 100% 100%,
        linear-gradient(to bottom, var(--primary) 4px, transparent 4px) 0 0,
        linear-gradient(to bottom, var(--primary) 4px, transparent 4px) 100% 0,
        linear-gradient(to top, var(--primary) 4px, transparent 4px) 0 100%,
        linear-gradient(to top, var(--primary) 4px, transparent 4px) 100% 100%;
    padding: 1rem;
    background-repeat: no-repeat;
    background-size: 20px 20px;
}
.qr figure {
    position: relative;
    height: 6rem;
    width: 6rem;
    margin: 0;
    
}

.qr img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: center;
}

footer {
    display: none;
}