﻿@keyframes cardswipe {
    from {
        left: -10%;
        opacity: 0;
        transform: scale(0.5);
    }

    10% {
        left: -10%;
        opacity: 1;
        transform: scale(1) rotate(0);
    }


    90% {
        opacity: 1;
        left: 75%;
        transform: scale(1);
    }

    to {
        left: 75%;
        opacity: 0;
        transform: scale(0.5);
    }
}

@keyframes cardswipe-light-red {
    from {
        opacity: 0.5;
        transform: scale(0.5);
        box-shadow: 0px 0px 0em #f00;
    }

    10% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0px 0px 2em #f00;
    }


    50% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0px 0px 2em #f00;
    }


    55% {
        opacity: 0.5;
        transform: scale(0.5);
        box-shadow: 0px 0px 0em #f00;
    }


    to {
        opacity: 0.5;
        transform: scale(0.5);
        box-shadow: 0px 0px 0em #f00;
    }
}

@keyframes cardswipe-light-green {
    from {
        opacity: 0.5;
        transform: scale(0.5);
        box-shadow: 0px 0px 0em #00CC19;
    }

    50% {
        opacity: 0.5;
        transform: scale(0.5);
        box-shadow: 0px 0px 0em #00CC19;
    }


    55% {
        opacity: 1;
        transform: scale(1.5);
        box-shadow: 0px 0px 2em #00CC19;
    }

    60% {
        transform: scale(1.0);
    }

    90% {
        opacity: 1;
        transform: scale(1.0);
        box-shadow: 0px 0px 2em #00CC19;
    }

    to {
        opacity: 0;
        transform: scale(0.5);
        box-shadow: 0px 0px 0em #00CC19;
    }
}

@keyframes userinfo-photo {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(0);
    }

    to{
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes userinfo-text-horizontal {
    from {
        opacity: 0;
        transform: translateX(-3em);
    }

    to{
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes userinfo-text-vertical {
    from {
        opacity: 0;
        transform: translateY(-3em);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    margin: 0;
    font-family: sans-serif;
    overflow: hidden;
    overflow-y: auto;
    background: url(../images/grey.png);
}

main {
    padding-top: 3em;
}

.title{
    font-size: 4em;
    text-shadow: 0 .05em rgba(0, 0, 0, 0.1);
}

.subtitle{
    font-size: 2.5em;
    color: #505050;
    font-weight: normal;
}

section {
    margin: 0 auto;
    text-align: center;
}



#section-cardSwipe {
}

#section-cardSwipe .title{
    margin-bottom: .25em;
}

#section-cardSwipe .subtitle{
    margin: 0 0 1em 0;
}

#cardswipe-container {
    position: relative;
    margin: 0 auto;
    height: 15em;
    transform: scale(1);
    text-align: center;
}

.cardswipe-element {
    position: absolute;
}

#cardswipe-card {
    height: 13.5em;
    width: 21.25em;
    height: 10.125em;
    width: 15.9em;
    border-radius: 1em;
    background: #2ca589;
    box-shadow: 0 -2px #41ccac;
    animation: cardswipe 3s infinite;
    top: 0;
}

#cardswipe-card-stripe {
    height: 2em;
    width: 100%;
    background: rgba(0, 0, 0, 0.58);
    position: absolute;
    bottom: 1.2em;
}

.cardswipe-scanner {
    height: 7.5em;
    width: 25em;
    height: 5.6em;
    width: 20.75em;
    margin-left: -10.375em;
    background: #292929;
    border-radius: 2em 4em 0px 0px;
    box-shadow: 0px -.75em #505050;
    top: 6.5em;
    left: 50%;
}

#cardswipe-scanner-rear {
    top: 5em;
}

#cardswipe-container h2 {
    position: absolute;
    bottom: .5em;
    width: 100%;
    font-size: 2.5em;
}

.cardswipe-light {
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    position: absolute;
    bottom: 1em;
}

#cardswipe-scanner-light-red {
    right: 3.5em;
    background: #f00;
    animation: cardswipe-light-red 3s infinite;
}

#cardswipe-scanner-light-green {
    right: 1.5em;
    background: #00CC19;
    animation: cardswipe-light-green 3s infinite;
}

#section-IDNumber {
    font-size: 1em;
    text-align: center;
}

label[for="tbIDNumber"] {
    font-size: 2em;
    padding: 0 1em;
}

.inputfield{
    
    display: block;
    margin: 1em auto;
    width: 12em;
    box-sizing: content-box;
    font-size: 2em;
    padding: .5em;
    border-radius: .25em;
    border: 0.1em solid #bfbfbf;
    box-shadow: 0 5px #bfbfbf;
}

    .inputfield:active,
    .inputfield:focus {
        outline: none;
        border: 0.1em solid #2ca589;
        box-shadow: 0 5px #2ca589;
    }

input[type="submit"] {
    font-size: 2em;
    padding: .5em;
    background: #33bb9c;
    border-radius: .25em;
    border: 0.1em solid #2ca589;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 5px #2ca589;
    width: 12em;
    box-sizing: content-box;
    
    transition: background .2s,
        border .2s,
        box-shadow .2s,
        transform .2s;
}

            
    input[type="submit"]:focus{
        outline: none;
    }

    input[type="submit"]:hover {
        background: #8033bb;
        border: 0.1em solid #672e92;
        box-shadow: 0 5px #672e92;

        transform: scale(1.05);
    }

    input[type="submit"]:active {
        transform: scale(0.95);
    }

input[name="btnIDNumber"]{
    display: none;
}

.message {
    font-size: 2em;
    background: #d25553;
    color: #fff;
    padding: .5em;
    border-radius: .25em;
    display: block;
    margin: 1em auto;
}

    .message.enter {
        background: #3fc449;
    }

    .message.error{
        background: #d25553;
    }

    .message.exit {
        background: #8033bb;
    }


#user-container{
    display: table;
    width: 100%;
    margin: 2em 0;
}

.userinfo-column {
    display: table-cell;
    width: 50%;
    vertical-align: top;
    margin: 0 auto;
}

    .userinfo-column td {
    }

#user-photo-container {
    padding: 0 5em;
    animation: userinfo-photo 1s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

    #user-photo-container img {
        width: 100%;
        border-radius: 1em;
    }

#user-info-container{
    text-align: left;
    animation: userinfo-text-horizontal 1s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

    #user-info-container table{
        width: 100%;
    }
            
    #user-info-container #lblName{
        font-size: 3em;
    }

    #user-info-container #lblType{
        font-size: 2em;
    }

    #user-info-container #lblTime{
        font-size: 1.5em;
        margin: 1em 0;
        display: block;
        padding-top: 1em;
        border-top: .2em dotted #33bb9c;
    }






footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 1em;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
    background: rgba(0,0,0,0.4);
}

#section-controls {
    display: none;
}

input[name="btn-controls"] {
    position: fixed;
    right: 1em;
    bottom: 1em;
    margin: 0;
}

#section-userInfo {
    display:none;
}

#msgIDNumber:empty {
    display : none;
}


@media screen and (min-width: 1600px) {
    body {
        font-size: 12pt;
    }

    section {
        width: 1200px;
    }
}

@media screen and (max-width: 1600px) {
    section {
        width: 1100px;
    }
}

@media screen and (max-width: 1220px) {
    body {
    }

    section {
        width: 800px;
    }
}

@media screen and (max-width: 980px) {
    body {
        font-size: 10pt;
    }

    section {
        width: 600px;
    }

    .userinfo-column{
        display: block;
    }

    #user-info-container{
        text-align: center;
        animation: userinfo-text-vertical 1s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
}

@media screen and (max-width: 740px) {
    body {
        font-size: 8pt;
    }

    section {
        width: 75%;
    }

    .inputfield,
    input[type="submit"] {
        margin: .5em auto;
        width: 100%;
        box-sizing: border-box;
    }

    input[name="btn-controls"]{
        width: 0;
    }

    #cardswipe-container {
        height: 15em;
        font-size: 7px;
    }
}