﻿body {
    background-color: white;
}

.CardFrame {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    background-color: white;
}

.CardView {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-image: url(/Assets/Images/card-BG.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-color: white;
}



.desktop .CardView {
    width: 30em;
    height: 40.7em;
    left: 50%;
    margin-left: -15em;
}

.CardView .card-logo-1 {
    display: none;
}

.CardView .info {
    position: absolute;
    right: 1em;
    top: 1em;
    text-align: right;
    color: white;
    font-weight: bold;
    font-size: 1.5em;
    text-transform: uppercase;
}

.mobile .CardView .info {
    top: 0.2em;
}

.CardView .photo-frame {
    position: absolute;
    top: 11em;
    left: 2em;
    right: 2em;
    background: none;
    /*    text-align: center;*/
    white-space: nowrap;
}

.mobile .CardView .photo-frame {
    top: 10.5em;
}

.CardView .photo-frame img {
}


.CardView .photo {
    vertical-align: middle;
    width: 100%;
    display: block;
    max-height: 21em;
    width: auto;
    height: 17em;
    margin: auto;
}

.CardView .card-barcode-frame {
    font-family: 'Libre Barcode 39 Extended';
    font-size: 64pt;
    margin-top: 10px;
}

.CardView .card-status-frame {
    text-transform: uppercase;
    text-align: center;
}

.card-logo {
    display: inline-block;
    margin-right: -6.8em;
    height: 37px;
    margin-top: 5px;
}
.mobile .card-logo {
    margin-right: -5.4em;
}
.CardView .img-text:before {
    content: "Conestoga";
    text-transform: uppercase;
}

.CardView .img-text {
    display: inline-block;
    font-size: 21px;
    font-weight: bold;
    color: gray;
    margin-top: 12px;
}

.CardView .client-id-frame {
    text-align: center;
    margin-top: 10px;
    margin-bottom: -10px;
    font-family: 'Courier';
    font-size: 2em;
}

.CardView .card-status-frame {
    font-size: 2em;
}

.card-barcode-frame {
    text-align: center;
}

.desktop .card-barcode-frame {
    margin-top: 0.1em;
}

.CardView .client-id, .CardView .card-barcode .client-id {
    display: none
}

.close-card-view a {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    transform: scale(1.5,1);
    background-color: white;
    border: 4px white solid;
    text-align: center;
    margin-top: 0.2em;
    margin-left: 0.5em;
    font-weight: bold;
    font-size: 1em;
    width: 0.7em;
    height: 1.2em;
}

    .close-card-view a .icon::before {
        content: "\21E6";
        font-size: 1.5em;
        position: relative;
        top: -9px;
        left: -5px;
    }

.CardView .profileType, .CardView .GivenName, .CardView .FamilyName {
    display: block;
}

.CardView .profileType {
    width: 170px;
    word-wrap: break-word;
}
.CardView .GivenName {
    margin-top: 0.5em;
}

.CardView .img-text {
    background: white;
}


@media (max-aspect-ratio: 3/4) and (min-aspect-ratio: 9/15) {
    .mobile .CardView .GivenName, .mobile .CardView .FamilyName {
        display: inline-block;
    }

    .mobile .CardView .GivenName {
        margin-top: 0.1em;
    }

    .mobile .CardView .img-text {
        display: inline-block;
        margin-top: 5px;
    }

    .mobile .CardView .photo-frame {
        top: 9.5em;
    }

    .mobile .CardView .client-id-frame {
        margin-top: unset;
        margin-bottom: -12px;
    }

    .mobile .CardView .card-barcode-frame {
        margin-bottom: -37px;
        margin-top: 0px;
        font-size: 50pt;
    }

    .mobile .CardView .photo {
        display: block;
        max-height: 20em;
        width: auto;
        height: auto;
        align-content: center;
        align-items: center;
        margin: auto;
    }

    .mobile .card-logo {
        margin-top: -1em;
    }

    .CardView .card-status-frame {
        font-size: 1.5em;
        margin-top: 8px;
    }
}
