body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f3f3f3;
}

.card {
    width: 58rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    background-image: url(../imgs/Map.png);
}

.card::after {
    content: '';
    width: 100%;
    height: 40px;
    background:
        url('../imgs/Layer68.png'), linear-gradient(135deg, #4caf50 50%, #2196f3 50%);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
    border-radius: 0 0 5px 5px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo img {
    width: 100px;
    height: auto;
    object-fit: contain;
}

.userinfo {
    text-align: right;
    width: 50%;
}

.userinfo .image img {
    width: 10rem;
    height: 10rem;
    border: 2px solid #4caf50;
    padding: 3px;
    object-fit: cover;
    margin-bottom: 10px;
}

.userinfo .data h1 {
    font-size: 2.2rem;
    margin: 5px 0;
    color: #333;
}

.job {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-direction: row-reverse;
    margin: 0 0 38px 0;
}

.job hr {
    width: 60%;
    border: 1px solid #ccc;
}

.job h3 {
    font-size: 1.9rem;
    color: #4caf50;
    margin: 0;
}

.body {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 5px 20px;
    gap: 20px;
}

.contacts {
    width: 50%;
}

ul.contactlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contactlist li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 1.3rem !important;
    color: #333;
    margin-bottom: 10px;
}

.contactlist li span {
    font-weight: bold;
    flex-grow: 1;
    text-align: right;
}

li.phone {
    background-image: url('../imgs/Phone.png');
}

li.email {
    background-image: url('../imgs/icon.png');
}

li.address {
    background-image: url('../imgs/Icon2.png');
}

li.phone,
li.email,
li.address {
    background-size: 50px 50px;
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 30px;
    padding: 15px;
    padding-right: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
}

img.logoimg {
    width: 61% !important;
    height: auto;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover;
}

.auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    background-color: #fff;
    width: 400px;
    margin: auto;
}

.authName {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
    width: 40%;
    border-bottom: 3px solid #4caf50;
    padding-left: 2rem;
}

.authicon {
    flex-direction: row-reverse;
    gap: 20px;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.barcode {
    position: absolute;
    top: 0px;
    right: 0;
    transform: translate(-12%, -44%);
    width: 8rem;
    height: 8rem;
}

.barcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 2px solid #4caf50;
    border-radius: 5px;
}

.signature-mark {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.signature {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: auto;
}

.signature img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

span.signt {
    font-size: 2rem;
    position: absolute;
    font-weight: 700;
    top: -11px;
    left: 9px;
    color: #4caf50;
}

.title {
    margin: 6px 30px 0 0;
    width: 40%;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: space-evenly;
}

@media (max-width: 990px) {
    .barcode {
        z-index: 2;
    }
}

@media (max-width: 768px) {
    .card {
        width: 90%;
        height: auto;
    }

    .header {
        flex-direction: column;
        align-items: center;
    }

    .logo img {
        width: 60%;
        max-width: 100px;
    }

    .userinfo {
        text-align: center;
        width: 100%;
    }

    .userinfo .image img {
        width: 100px;
        height: 100px;
    }

    .userinfo .data h1 {
        font-size: 1rem;
    }

    .job hr {
        width: 50%;
    }

    .job h3 {
        font-size: 1.8rem;
    }

    .body {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    ul.contactlist {
        text-align: center;
    }

    .contactlist li {
        justify-content: center;
    }

    li.phone,
    li.email,
    li.address {
        background-position: center right;
        padding-right: 4rem;
    }
}

@media (max-width: 760px) {
    .barcode {
        position: absolute;
        top: 0px;
        right: 0;
        transform: translate(7%, -30%);
        width: 8rem;
        height: 8rem;
        z-index: 2;
    }

    .authicon {
        flex-direction: row-reverse;
        gap: 20px;
        width: 55%;
        position: relative;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .userinfo .data h1 {
        font-size: 0.9rem;
    }

    .job h3 {
        font-size: 0.1rem;
    }

    .auth,
    .contacts {
        width: 90%;
        margin: auto;
    }

    .contactlist li {
        font-size: 0.9rem;
    }
}
