
body {
    margin: 0;
    background-color: rgb(233, 233, 233);
    font-family: Arial, Helvetica, sans-serif;
    color: #222222;
}
#wrapper {
    margin: auto;
    /* min and max width of entire contents: */
    min-width: 375px;
    max-width: 500px;
}
a {
    color: rgb(28, 142, 248);
}
a:hover {
    color: rgb(79, 170, 255);
}


/******************** OVERLAY (and BOX inside of it) ********************/
#overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.6);
    z-index: 3;
}
/* using table here because it is centered by default. */
#overlay table {
    width: 100%;
    height: 100%;
    padding: 0 5px;
    display: none;
}
#overlay .box {
    margin: 0 auto;
    max-width: 450px;
    padding-bottom: 20px;
}
#overlay-x-button {
    margin-right: 5px;
    cursor: pointer;
}
#overlay-img {
    max-width: 200px;
    max-height: 200px;
    filter: drop-shadow(2px 2px 6px #666666);
    filter: drop-shadow(0px 18px 8px #aaaaaa);
    animation: rotate-y-left-right ease-in-out 6s infinite alternate;
}
#overlay-img-outer {
    margin: 25px 0 10px 0;
    animation: moving-up-down ease-in-out 2.5s infinite alternate;
}
@keyframes moving-up-down {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}
@keyframes rotate-y-left-right {
    0%   { transform: perspective(600px) rotateY(18deg); }
    100% { transform: perspective(600px) rotateY(-18deg); }
}


/******************** General styles ****************/

.text-green-background {
    background-color: rgb(55, 160, 55);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
}
.text-red-background {
    background-color: rgb(200, 0, 0);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
}
.text-green {
    color: rgb(49, 136, 49);
}
.text-red {
    color: rgb(200, 0, 0);
}



/******************** BUTTONS *******************/
button {
    padding: 6px 10px;
    margin-top: 4px;
    border-radius: 4px;
    border: none;
    font-size: 100%;
    font-weight: bold;
    text-decoration: none;
    background-color: #cccccc;
}
button:hover {
    background-color: #bbbbbb;
    cursor: pointer;
}
.button-blau {
    background-color: rgb(28, 142, 248);
    color: white;
}
.button-blau:hover {
    background-color: rgb(79, 170, 255);
}


/******************** BUTTONS plus / minus *******************/
/* TODO some things here a duplicated */
.button-minus {
    background-color: rgb(190, 190, 190);
    display: inline-block;
    padding: 5px 10px;
    margin-top: 4px;
    border-radius: 4px 0 0 4px;
    text-decoration: none;
    color: white;
    font-weight: bold;
}
.button-plus {
    background-color: rgb(28, 142, 248);
    display: inline-block;
    padding: 5px 10px;
    margin-top: 4px;
    margin-bottom: 5px;
    border-radius: 0 4px 4px 0;
    text-decoration: none;
    color: white;
    font-weight: bold;
}
.button-plus:hover {
    background-color: rgb(79, 170, 255);
    cursor: pointer;
}
/* This is the number that is between the "+" and "-" buttons */
.plus-minus-anzahl {
    background-color: rgb(224, 224, 224);
    display: inline-block;
    padding: 4px 10px;
    border-top: 1px solid rgb(172, 172, 172);;
    border-bottom: 1px solid rgb(172, 172, 172);;
    font-weight: bold;
    
}


/******************** HEADER ********************/
#header {
    background-color: white;
    height: 55px;
    /* With this, the z-index is used (?) so that the shadow of the "box" <div> is
       NOT on top of the header */
    position: relative;
    margin-bottom: 20px;
}
#logo {
    width: 200px;
}
/* The white stripe at the top should be 100 % of viewport width (wider than the wrapper) */
#header-komplette-breite {
    background-color: white;
    height: 55px;
    position: absolute;
    width: 100%;
}
#header-right {
    vertical-align: top;
    float: right;
}


/***************** FOOTER *************************/
.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: white;
    text-align: center;
}


/********** KONTO INFO (im Header) ******/
.konto-info {
    float: right;
    font-size: 12px;
    margin-top: 10px;
    margin-right: 5px;
}


/********** BURGER MENU ********/
.burger-menu {
    margin-top: 10px;
    margin-right: 10px;
    padding: 4px 7px;
    float: right;
    background-color: white;
    position: relative;
    cursor: pointer;
}
/* These are the three horizontal bars of the burger menu icon */
.burger-menu div {
    width: 28px;
    height: 3px;
    background-color: rgb(83, 83, 83);
    margin: 5px 0;
}
#burger-x {
    display: none;
    width: 28px;
    height: 29px;
    padding: 8px 4px 0 10px;
    z-index: 4;
}


/********************* NAVIGATION *******************/
#navigation {
    display: none;
    height: 200px;
    width: 250px;
    margin-bottom: -200px;
    margin-right: 10px;
    margin-top: -28px;
    padding: 10px;
    background-color: white;
    position: relative; /* needed for z-index */
    float: right;
    z-index: 4;
}
#navigation .nav-item-emoji {
    display: inline-block;
    width: 32px; /* so that every emoji has the same witdh */
    font-size: 22px;
    vertical-align: middle;
}
#navigation .nav-item-text {
    vertical-align: middle;
}
#navigation a {
    color: #222222;
    display: block;
    padding: 6px 0 6px 12px;
    margin: 2px 0;
    text-decoration: none;
}
#navigation a:hover {
    background-color: #dddddd;
    color: #222222 !important;
}
.active-navigation-item {
    background-color: rgb(28, 142, 248);
    color: white !important;
    font-weight: bold;
}

.logout-link {
    background: none;
    border: none;
    color: #222222;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    display: block;
    padding: 6px 0 6px 12px;
    margin: 2px 0;
    width: 100%;
    text-align: left;
}

.logut-link:hover {
    background-color: #dddddd;
    color: #222222 !important;
}

/******************** BOX ********************/
/* "box" <div>s are the white boxes that contain most content. */
.box {
    background-color: white;
    margin: 0 10px 15px 10px;
    box-shadow: 0px 0px 15px #999999;
    border-radius: 10px;
    text-align: center;
}
.box p {
    padding: 10px 15px 0 15px;
    margin: 0;
    text-align: left;
}
.box h2 {
    font-weight: normal;
    font-size: 125%;
    margin: 0;
    padding: 8px 5px 7px 15px;
    text-align: left;
    border-radius: 10px 10px 0  0;
    /* don't know how it works but looks good */
    box-shadow: 0 10px 20px -16px #888888;
}


/********** ARTIKEL **********/
.artikel {
    border: 1px solid rgb(211, 211, 211);
    background-color: rgb(240, 240, 240);
    border-radius: 5px;
    display: inline-block;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 3px;
    margin-right: 3px;
    padding-bottom: 10px;
}
.artikel img {
    margin-top: 10px;
    margin-bottom: 5px;
    filter: drop-shadow(3px 5px 6px #666666);
}
/* Vertical articels, usually drinks: 3 per row */
.artikel-vertikal {
    width: 28%;
}
.artikel-vertikal img {
    width: 50%;
}
/* Horizontal articles, usually snacks: 2 per row */
.artikel-horizontal {
    width: 45%;
    /* Horizontal products should be centered vertically. Not like drinks, which are vertically
       aligned at the bottom, as if they stand on the ground. */
    vertical-align: middle;
}
.artikel-horizontal img {
    width: 85%;
}


/****************************** TRANSAKTIONEN (TABELLE) ******************************/
.transaktionen {
    border-collapse: collapse;
    width: 93%;
    margin: 10px auto;
    padding-bottom: 20px;
}
.transaktionen td {
    border-bottom: 1px solid #aaaaaa;
    height: 70px;
}
.transaktionen th {
    border-bottom: 1px solid #aaaaaa;
}
.transaktionen img {
    max-width: 80px;
    max-height: 55px;
    filter: drop-shadow(2px 2px 3px #888888);
}
.transaktionen .datum-artikel {
    text-align: left;
}
.transaktionen .datum {
    font-weight: bold;
}
.transaktionen .gesamtpreis {
    font-weight: bold;
}


/****************************** KUNDEN-GUTHABEN (Tabelle) ******************************/
.customer-list-row {
    border-bottom: 1px solid grey;
    display: block;
    text-decoration: none;
    color: black;
    text-align: right;
    max-width: 320px;
    margin: 1px auto;
    height: 50px;
    line-height: 50px;
}
.customer-list-row:hover {
    background-color: #dadada;
}
.customer-emoji {
    font-size: 140%;
}
.customer-name {
    float: left;
    margin-left: 10px;
}
.customer-balance {
    padding-right: 10px;
    font-weight: bold;
}
.customer-list-arrow {
    display: inline-block;
    margin-left: 10px;
    margin-right: 10px;
}
.customer-list-arrow > div:nth-child(1) {
    border-bottom: 3px solid grey; width: 15px; rotate: 45deg;
}
.customer-list-arrow > div:nth-child(2) {
    border-bottom: 3px solid grey; width: 15px; rotate: -45deg; margin-top: 6px;
}


