@media screen { 
    body {
        font-size: 120%;
        font-family: 'Open Sans';
        font-weight: 400;
        margin: 0;
        background-color: #ffffff;
        background-image: url('./img/bgpattern.jpg');
        background-repeat: repeat;    
        color:#221505;
        cursor: auto;
        overflow-y: scroll;
    }
    div, main, nav, ul, label {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;    
        box-sizing: border-box; 
    }

    h1, h2, h3, ul {
        padding: 0;
        margin: 0;
    }
    h1 {
        font-size: 1.8em;
        font-weight: 700;
        padding: 0;
        margin: 0;
        color:steelblue;
        text-align: center;
    }
    main {
        padding: 0em 0em 0;
        margin-top: 70px;
    } 

    table, tr, td {
        border: 0;
        border-spacing: 0px;
        padding: 0px;
        spacing: 0px;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        tap-highlight-color: rgba(0,0,0,0);
        -webkit-tap-highlight-color: transparent; /* For some Androids */
    }
    table {
        border-collapse: collapse;
    }
    th {
        text-align: left;
    }
    th, td {
        padding: 10px;
        height: 30px;
        overflow: hidden;
        white-space: nowrap;
        line-height: 30px;
    }
    tr:active, td:active {
        background: none;
    }    

    #attendees {
        width: 100%;
        table-layout: fixed;
    }
    #attendees tr {
        cursor: pointer;
    }
    #attendees tr:first-child {
        background-color: steelblue;
        color: white;
        cursor: auto;
    }
    #attendees tr:nth-child(n+2).odd {
        background-color: rgba(0,0,0,0.07);
    }
    #attendees .attendee-status  {
        display: inline-block;
        width: 30px;
        height: 30px;
        vertical-align: bottom;
        margin-right: 5px;
        background-image: url('./img/checkinsprite.png');
        background-repeat: no-repeat;
        background-size: 100%;
        background-position: 50% 100%;
    }
    #attendees tr.checkedin .attendee-status {
        background-position: 0% 0%;        
    }
    #attendees td span.name {

    }

    #attendees div.flag.big {
        line-height:1.6em;
        transform: rotate(-8deg);
        text-transform: uppercase;
        padding: 0 0.3em;
        margin: 0 0 0 0.6em ;
        display: block; 
        font-size: 0.8em;
        font-weight: 700;
        border-bottom-right-radius: 60px 5px;
        border-top-left-radius: 60px 5px;
        display:inline-block;    
        color: black;
    }
    #attendees div.flag.small {
        width: 0.6em;
        height: 0.6em;
        display: inline-block;
        margin: 0 0 0 0.4em;
        
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%; 
        border-radius: 50%; 
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;    
        box-sizing: border-box;  
        background: red;    
    }
    #attendees div.flag.green {
        background: greenyellow;
    }
    #attendees div.flag.yellow {
        background: #ffff88;
    }
    #attendees div.flag.red {
        background: red;
    }

    /* Attendee-Details-Dialog */
 
    #attendeeDetailsOverlay {
        z-index: 5;
        width: 100%;
        margin: 0;
        background-image: url('./img/bgpatterndark.jpg');
        background-repeat: repeat;  
        padding: 10px;
        position: absolute;
        overflow: hidden;
        display: none;
    }
    #attendeeDetailsOverlay div.header {
        font-size: 0.8em;
        overflow: hidden;
    }
    #attendeeDetailsOverlay h1 {
        font-size: 1.4em;
        font-weight: 700;
        color: white;
        text-align: left;
        float: left;
    }
    #attendeeDetailsOverlay div.flagcontainer {
        padding-top: 0.2em;
    }
    #attendeeDetailsOverlay div.flag.small {
        display: inline-block;

        text-transform: uppercase;
        font-weight: 700;
        padding: 0.1em 0.4em 0.2em;
        font-size: 0.8em;
        margin: 0 0 0 1em;              
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px; 
        border-radius: 5px; 
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;    
        box-sizing: border-box;  
    }
    #attendeeDetailsOverlay div.flag.big {
        line-height:1.6em;
        transform: rotate(-8deg);
        text-transform: uppercase;
        padding: 0 0.3em;
        margin: 0 0 0 1em ;
        display: block; 
        font-size: 1em;
        font-weight: 700;
        border-bottom-right-radius: 60px 5px;
        border-top-left-radius: 60px 5px;
        display:inline-block;    
    }
    #attendeeDetailsOverlay div.flag.red {
        background: red;
        color: white;
    }
    #attendeeDetailsOverlay div.flag.yellow {
        background: #ffff88;
        color: black;
    }
    #attendeeDetailsOverlay div.flag.green {
        background: greenyellow;
        color: black;
    }
    #attendeedetails {
        font-size: 0.8em;
        color: white;
        font-weight: 300;
        overflow: hidden;
    }
    #attendeedetailsClearer {
        display: block;
        clear: left;
    }
    #attendeedetails p {
        padding: 0;
        margin: 0 0 0.4em ;
    }
    #attendeedetails p.bold {
        font-weight: 700;
    }
    #attendeedetails textarea {
        width: 100%;
        height: 6em;
        font-family: 'Open Sans';
        font-weight: 400;
        font-size: 1em;        
        padding: 0.3em;
        margin: 0.4em 0 0em;
        border: 1px solid #ccc;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px; 
        border-radius: 5px; 
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;    
        box-sizing: border-box;  
        color: black;
    }
    #attendeedetails img.spinner {
        margin: 0 auto;
        padding-top: 4em;
        height: 4em;
        display: block;
    }
    #attendeedetailssidebar {
        float: right;
        width: 30%;
        padding: 0 0.5em 0.5em 1em;
        bottom: 0
    }
    #canvascontainer {
        width: 100%;
        max-width: 300px;
        background-color: white;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
        overflow: hidden;
        margin-bottom: 0.5em;

    }
    #attendeelog {
        display: none;
        padding-bottom: 0.5em;
    }
    #attendeelog li {
        list-style: none;
        font-size: 0.7em;
        color: white;
        font-weight: 300;
    }
    #viewFullLog, #unprint {
        cursor: pointer; 
        font-size: 0.8em;
        font-weight: 400;
        color: rgba(255,255,255,.6);
        padding-bottom: 0.5em;
    }
    #unprint {
        dipslay: none;
    }
    #viewFullLog img, #unprint img {
        display: block;
        float: left;
        width: 0.8em;
        background-color: rgba(255,255,255,.6);
        padding: 0.2em;
        margin: 0.2em 0.4em 0.2em 0.2em;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        border-radius: 50%;
    }

    #viewFullLog.expanded img {
        transform: rotate(45deg);
    }
    #viewFullLog.expanded span {
        display: none;
    }
    #etikett {
       display: none;
    }
    #printCanvasImg {
        display: none;
    }
    #canvasImg {
        width: 100%;
    }
    #overlaybuttons {
        float: left;
        text-align: right;
        white-space: nowrap;
        padding: 0.1em 1em 0 0;
        min-height: 11em;
    }
    #overlaybuttons .button {
        border: 1px solid white;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
        font-weight: bold;
        color: white;
        font-size: 2em;
        margin: 0 0 0.2em;
        display: block;
        cursor: pointer;
    }
    #overlaybuttons .button:hover {
        background-color: steelblue;
    }
    #overlaybuttons .button img {
        height: 0.8em;
        width: auto;
        margin: 0 0.3em;
    }
    #overlaybuttons .button span {
        margin: 0 0.4em 0 0;
    }
    /*Ende Attendee-Details*/
    
    /* New Attendee Dialog */
       #neuoverlay {
        position: fixed;
        background-color: rgba(0,0,0,.6);
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        padding: 0;
        display: none;
        z-index: 12;
    }    
    #neu {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        z-index:15;
        margin: 3% auto;
        width: 800px;
        max-width: 100%;
        background-color: #f8f6f5;
        border: 0px solid #fff;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        border-radius: 10px;
        overflow: auto;
        display: none;
        padding: 0 0.5em 1em;
        font-size: 0.8em;
    }
    #neu th {
        font-size: 1.3em;
        font-weight: 700;
        padding:  0.5em 0.5em;
        color: steelblue;
    }
    #neu th:nth-child(n+2) {
        text-align: right;
    }
    #CloseNewAttendeeDialog {
        transform: rotate(40deg);
        background-color: rgba(0,0,0,.6);
        width: 1em;
        padding: 0.2em;
        margin: 0.2em;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        border-radius: 50%;
        cursor: pointer;        
    }
    #CloseNewAttendeeDialog:hover {
        background: black;
    }
    #neu td { 
        padding: 0 0.5em 0.5em;
    }
    #neu label {
        display: block;
        text-align: left;
        font-weight: 300;
        color: #221505;
    }
    #neu input[type=text], #neu input[type=submit], #neu select, #neu textarea {
        font-family: 'Open Sans';
        font-weight: 400;
        font-size: 1.2em;        
        padding: 0.3em;
        border: 1px solid #ccc;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px; 
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;    
        box-sizing: border-box;  
        color: #221505;
        width: 100%;
        padding: 0.3em;
        text-align: left;
    }
    #neu input[type=submit] {
        font-weight: 700;
        display: block;
        margin: 1.4em auto 0;
        padding: 0.3em 0.3em;
        color:#221505;
        background-color: lightsteelblue;
        border-color: steelblue;
        text-align: center;
    }
    #neu input[type=text]:focus,#neu textarea:focus, #neu input[type=password]:focus,#neu input[type=text]:hover,#neu textarea:hover {
        border-color:lightsteelblue;
    }
    
    #neu input[type=submit]:hover,#neu input[type=submit]:focus{
        color: #000;
    }
    /* Ende New-Attendee Dialog*/
    
    /*Login-Seite*/
    #loginbox {
        margin: 5% auto 0;
        padding: 1.8em 2em 2em;
        width: 400px;
        max-width: 100%;
        background-color: #f8f6f5;
        border: 0px solid #fff;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        border-radius: 10px;

    }
    #messagebox {
        margin: 1em auto 0;
        padding: 0.8em 0.7em 1em;
        width: 320px;
        max-width: 100%;
        background-color:darksalmon;
        border: 0px solid #000;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        border-radius: 10px;
        text-align: center;
        font-weight: 400;
        color: #221505;
        display: none;
    }
    #loginbox label {
        display: block;
        text-align: center;
        font-weight: 400;
        color: #221505;
    }

    #loginbox input[type=text], #loginbox input[type=password], #loginbox input[type=submit] {
        font-family: 'Open Sans';
        font-weight: 700;
        font-size: 1.3em;        
        padding: 0.3em;
        border: 1px solid #ccc;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px; 
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;    
        box-sizing: border-box;  
        color: #221505;
        width: 100%;
        padding: 0.3em;
        margin-bottom: 0.8em;
        text-align: center;
    }
    #loginbox input[type=submit],  #neu input[type=submit] {
        font-weight: 700;
        display: block;
        margin: 0.8em auto 0;
        padding: 0.3em 0.3em;
        color:#221505;
        background-color: lightsteelblue;
        width: 100%;
        cursor: pointer;
        border-color: steelblue
    }
    #loginbox input[type=text]:focus,#loginbox input[type=password]:focus,#loginbox input[type=text]:hover,#loginbox input[type=password]:hover{
        border-color:lightsteelblue;
    }
    #loginbox input[type=submit]:hover,#loginbox input[type=submit]:focus{
        color: #000;
    }
    #spinner {
        display: none;
        font-size: 1.3em;
        margin: 1.4em auto 0;
        padding: 1px 0 1px;
    }
    #spinner img {
        display: block;
        margin: 0 auto;
        height: 44px;
        width: auto;
    }
       #messagebox {
        margin: 1em auto 0;
        padding: 0.8em 0.7em 1em;
        width: 320px;
        max-width: 100%;
        background-color:darksalmon;
        border: 0px solid #000;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        border-radius: 10px;
        text-align: center;
        font-weight: 400;
        color: #221505;
        display: none;
    }    
    /* Ende Loginseite */ 
    /* Menüleiste */    
    #topbar {
        position: fixed;
        top: 0px;
        left: 0px;
        z-index: 10;
        width: 100%;
        background-color: rgba(0,0,0,.6);
        color: white;
        font-weight: 700;
        text-transform: uppercase;
        overflow: hidden;
        margin: 0 0 0em;
        padding: 0.4em 0.5em;
        -moz-box-shadow:    0px 3px 6px rgba(0,0,0,.5);
        -webkit-box-shadow: 0px 3px 6px rgba(0,0,0,.5);
        box-shadow:         0px 3px 6px rgba(0,0,0,.5); 
        line-height: 1em;
    }
    #search {
        float: left;
    }
    
    #topbar input[type=text] {
        font-family: Open Sans;

        font-weight: 700;
        font-size: 1em;        
        border: 1px solid #ccc;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px; 
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;    
        box-sizing: border-box;  
        color: #221505;
        padding: 0.3em;
    }
    #topbar ul {
        display: block;
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: right;
    }
    #topbar li {
        display: inline-block;
        padding: 0 0.2em;
    }
    #topbar li a {
        font-size: 1.5em;
        color: white;
        font-weight: 700;
        text-transform: uppercase;
        text-decoration: none;
    }
    #topbar li a:hover {
        color: steelblue;
    }
    #topbar li img {
        cursor: pointer;
        display: block;
        width: 1.4em;
        height: auto; 
        padding: 0.3em 0.5em 0.1em;        
    }
    #topbar li label {
        cursor: pointer;
    }
    #topbar li label input {
        display: none;
    }
    #topbar li label input:checked + span {
        color: gold;
    }

    #topbar input {
        font-size: 1em;
        float: left;
        display: block;
    }
    #clearfilter {
        opacity: .5;
        display: block;
        float: left;
        padding: 0.4em 0.3em 0.3em;
        height: 1.3em;
        cursor: pointer;
    }
    #infobox {
        float: right;
        right: 0px;
        padding: 0 0.2em 0 0.5em;
        position: relative;
        vertical-align: middle;
    }
    #infobox a {
        color: white;
        font-weight: 300;
        text-transform: uppercase;
        text-decoration: none;        
    }
    #infobox a:hover {
        color: gold;
    }
    /* Ende Menüleiste */ 
    #totop {
        padding: 1em 0.5em;
        cursor: pointer;
    }
}

/* Mediaquerys fuer kleine Bildschirme */
@media only screen and (max-width: 900px) {
    #attendees td:nth-child(2), #attendees th:nth-child(2) {
        display: none;
    }  
    #attendeeDetailsOverlay div.flagcontainer {
        clear: both;
        padding: 0.5em 0;
    }
    #attendeeDetailsOverlay div.flagcontainer:empty {
        display: none;
    }
    #attendeeDetailsOverlay div.flagcontainer div:first-child {
        margin-left: 0;
    }

}
@media only screen and (max-width: 750px) {
    body {
        font-size: 110%;
    }
}

@media only screen and (max-width: 650px) {
    #attendees td:nth-child(n+2), #attendees th:nth-child(n+2) {
        display: none;
    } 
    #overlaybuttons {
        float: none;
        width: 100%;
        min-height: 0em !important;
    }
    #overlaybuttons div {
        float: left;
        margin-right: 0.5em !important;
    }
    #attendeedetails, div.header {
        clear: left;
    }
    #attendeedetailssidebar {
        clear: left;
        float: right;
        width: 40%;
    }
    #filtertext {
        width: 200px;
    }
}
@media only screen and (max-width: 500px) {
    #filtertext {
        width: 150px;
    }
        #loginbox h1 {
        font-size: 1.5em;
    }
}
@media only screen and (max-width: 450px) {
    #filtertext {
        width: 100px;
    }
    #attendeedetailssidebar {
        display: none;
    }
}
@media only screen and (max-width: 400px) {
    #barmenu li:first-child {
        display: none !important;
    }
}

@media print, screen and (max-width: 400px) {
    #totop, header, #attendees, 
    #neuoverlay, #neu, #attendeeDetailsOverlay {
        display: none !important;
    }
    body, main  {
        background: none;
        display: block;
        max-width: none;
        width: 100%;
        padding: 0 !important;
        margin: 0 !important;
    }
    #printCanvasImg {
        display: block;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
}