﻿body {
    margin: 0;
    background: var(--theme-bg, #D8CFC7);
    display: flex;
    justify-content: center;
    align-items: center;
    /*    height: 100vh;*/
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

h1 {
    font-size: 2rem;
    color: var(--theme-pri, #25175D);
    text-align: center;
    margin-bottom: -2rem;
    padding-bottom: 16px;
}

.vcard {
    max-width: 390px;
    min-width: 390px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    position: relative;
}

.vcard-header {
    background: linear-gradient(var(--theme-deg, 135deg), var(--theme-pri, #2F4454), var(--theme-sec, #47BFB3));
    text-align: center;
    padding: 2rem 0rem 0rem;
    color: #fff;
}

    .vcard-header img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        border: 4px solid #fff;
        object-fit: cover;
        margin-bottom: 1rem;
    }

    .vcard-header h2 {
        margin: 0;
        font-size: 1.3rem;
        font-weight: 500
    }

    .vcard-header p {
        font-size: 0.9rem;
        color: #d9edf1;
        margin-top: 4px;
    }

    .vcard-header h3 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 500;
        margin-bottom: 16px;
    }

.actions {
    display: flex;
    text-align: center;
}

    .actions div {
        flex: 1;
        padding: 1rem;
        cursor: pointer;
        background: rgba(255,255,255,0);
        color: var(--theme-action, white);
        border-top: 1px solid rgba(255,255,255,0.1);
        transition: background 0.3s;
    }

        .actions div:hover {
            background: rgba(255,255,255,0.1);
        }

    .actions i {
        display: block;
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }

.info-section {
    padding: 1rem 1.2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

    .info-item i {
        font-size: 1.2rem;
        margin-right: 1.6rem;
        color: #ccc;
        min-width: 20px;
        padding-top:0.4rem;
    }

.info-text {
    font-size: 0.95rem;
}

    .info-text small {
        display: block;
        color: #777;
        font-size: 0.8rem;
    }

.info-divider {
    height: 1px;
    background-color: #eee;
    margin-left: 2.8rem;
    margin-bottom: 1rem;
    border: none;
}
.social-media {
    padding: 1rem 1.2rem;
}

    .social-media h4 {
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
        font-weight: 400;
        color: #888;
    }

.social-icons {
    display: flex;
    gap: 1rem;
}

    .social-icons a {
        font-size: 1.4rem;
        text-decoration: none;
        color: #fff;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .social-icons .linkedin {
        background: #0077b5;
    }

    .social-icons .facebook {
        background: #3b5998;
    }

    .social-icons .instagram {
        background: #E1306C;
    }

    .social-icons .twitter {
        background: #000;
    }

.floating-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--theme-accent, #47BFB3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
    .floating-btn:hover {
        opacity: 0.8;
    }

    .ribbon {
        width: 150px;
        height: 150px;
        overflow: hidden;
        position: absolute;
        top: -10px;
        right: -10px;
        z-index: 1;
    }

    .ribbon span {
        position: absolute;
        display: block;
        width: 225px;
        padding: 10px 0;
        background: var(--theme-ribbon, #F28C8C); /* Brand color */
        color: white;
        font-weight: bold;
        text-align: center;
        transform: rotate(45deg);
        top: 30px;
        right: -55px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    }

.blurred {
    filter: blur(4px);
}

#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

img.logo {
    width: auto; /* Adjust size as needed */
    max-width: 350px;
    animation: fadeInOut 3s infinite ease-in-out;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

@media (max-width: 450px) {
    body {
        margin: 0;
        padding: 0;
        height: 100vh;
        width: 100vw;
        overflow-x: hidden;
        align-items: stretch;
    }

    h1 {
        margin-bottom: 0rem;
    }
    .vcard {
        margin: 0 !important;
        box-shadow: none !important;
        width: 100vw;
        max-width: none;
        min-width: 100vw;
        border-radius: 0;
        height: 100vh;
    }

    .vcard-header {
        padding-top: 1rem;
    }

  .floating-btn{
    position: fixed;           /* pin to the viewport */
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    left: calc(env(safe-area-inset-left, 0px) + 10px);
    right: auto;
    bottom: auto;
    z-index: 10000;            /* stay above content */
  }

    .ribbon span {
        box-shadow: none !important;
    }
}
