html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

html,body {
    width: 100%;
    margin: 0; 
    padding: 0;
    font-family: Verdana, Arial;
    font-size: 18px;
    background:#f4f4f4;
}

body#set-market,
body#start{
    overflow:hidden;
}

a {
    color: #aaa;
    text-decoration: none;
}

a:hover {
    color: #999;
}

h2{
    font-size:1rem;
}

#header{
    width:100%;
    height:75px;
    background-color:#fc9801;
}

#header #logo a{
    color:#fff;
    display:flex;
    flex-direction: row;
    align-items: center;
    font-size:1.2em;
}

#header #logo img{
    height: 75px;
    padding: 15px 10px 15px 20px;
}

#startanimation{
    background-color: #FC9801;
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    left:0;
    z-index:99999;
    text-align: center;
    justify-content:center;
    display:flex;
    flex-direction: column;
    color:#fff;

    opacity: 1;
    animation-name: startbg;
    animation-duration: .5s;
    animation-delay: 2s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

@keyframes startbg {
    0%   {opacity: 1;}
    100% {opacity: 0;}
  }

#startanimation .logo{
    margin: 0px auto;
    font-size:2em;;
}

#startanimation .logo img{
    width:150px;

    animation-name: startlogo;
    animation-duration: .5s;
    animation-delay: 2s;
    animation-timing-function: ease-out
}

@keyframes startlogo {
    0%   {width: 150px;}
    100% {width: 360px;}
  }

#startanimation.hide{
    display:none;
}

#content {
    font-size: 1em;
    margin: 25px 15px 120px 15px;
}

#content #product{
    display: flex;
}

#content #product #image{
    max-width: 300px;
    width: 100%;
    height: auto;
}

#content #product #image img{
    width:100%;
}

#content #product #name{
    padding:0 15px;
}

#content #product #name h1{
    font-size: 18px;
    margin: 0;
}

#content #product #name p{
    font-size: 14px;
    margin-top: 5px;
}











#content .stuff{
    border: 1px #aaa solid;
    padding: 20px 20px 13px;
    margin: 15px 0px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 7px rgba(0, 0, 0, .2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#content .stuffwrapper{
    opacity: 1;
    padding:0px;
    animation-name: stuffopen;
    animation-duration: .1s;
    animation-timing-function: ease-out;
}

@keyframes stuffopen {
    0%   {opacity:0;padding:0px 5px;}
    100% {opacity:1;padding:0px;}
  }

/* #content .stuff input{
    height:20px;
    width:20px;
} */

#content .stuff input[type="checkbox"] {
    display: none;
  }
  
  #content .stuff input[type="checkbox"] {
    display: none;
  }
  
   
  
  #content .stuff input[type="checkbox"] + label::before {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    content: "";
    float: left;
    margin-right: 5px;
    margin-top: -7px;
    border-radius: 20px;
    cursor: pointer;
    background-color: #fc9801;
    font-family: FontAwesome;
    content: "\f6e2";
    color:#fff;
  }

  #content .stuff input[type="checkbox"] + label.backwaren::before{
    content: "\f7ec";
  }

  #content .stuff input[type="checkbox"] + label.drogerie::before{
    content: "\f71e";
  }

  #content .stuff input[type="checkbox"] + label.haushalt::before{
    content: "\f0eb";
  }

  #content .stuff input[type="checkbox"] + label.getraenke::before{
    content: "\f72f";
  }

  #content .stuff input[type="checkbox"] + label.kaffee_tee::before{
    content: "\f0f4";
  }

  #content .stuff input[type="checkbox"] + label.kuehlregal::before{
    content: "\f7e5";
  }

  #content .stuff input[type="checkbox"] + label.nahrungsmittel::before{
    content: "\f80f";
  }

  #content .stuff input[type="checkbox"] + label.obst_gemuese::before{
    content: "\f094";
  }

  #content .stuff input[type="checkbox"] + label.suesses_salziges::before{
    content: "\f564";
  }

  #content .stuff input[type="checkbox"] + label.tiefkuehltruhe::before{
    content: "\f818";
  }
  
  #content .stuff input[type="checkbox"]:checked + label::before {
    font-family: FontAwesome;
    content: "\f00c";
    color: #fff;
    font-size: 0.9em;
    text-align: center;
    background-color: #aaa;;
  }

#content .stuff label{
    margin-left:15px;
    font-size:1.2em;
}

#content .stuff input:checked + label{
    text-decoration: line-through;
    color:#aaa;
}

/* BARCODE-SCANNER */
  
  #camera canvas{
    display:none;
  }

  #camera video{
    width:100%;
    max-width:640px;
    height:auto;
  }

/* ENDE BARCODE-SCANNER */

#content #setproductform input,
#content #setproductform select{
    width:100%;
    height:40px;
    margin-bottom:15px;
    padding:5px 10px;
}

#content #setproductform label{
    font-size:.8em;
}

#content #details{
    display:flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom:30px;
}

#content #details #infos{
    width:50%;
}

#content #details h1{
    font-size:1.5em;
    font-weight: 100;
}

#content #details #pic{
    width:50%;
}

#content #details #pic img{
    width:100%;
}

#footer{
    width:100%;
    position: fixed;
    bottom:0;
    z-index:9999;
    box-shadow: 0 -5px 7px rgba(0, 0, 0, .2);
    font-size:1em;
}

#footer nav{
    background-color:#fff;
}

#footer nav ul{
    display:flex;
    flex-direction: row;
    padding:0;
    margin: 0;
}

body#prodet #footer nav #addproduct{
 display:none;
}

#footer nav #openaddform,
body#prodet #addproduct button{
    position: absolute;
    width:70px;
    height:70px;
    background: #fc9801;
    color:#fff;
    font-size:1.5em;
    border-radius: 50%;
    border:none;
    bottom:30px;
    left:40%;
    z-index:9999;
}

#footer nav #addform,
#footer nav #openaddform.close{
    display:none;

}

/* #footer nav #openaddform.open{
    animation-name: addformopen;
    animation-duration: .9s;
    animation-delay: .1s;
    animation-timing-function: ease-out;
}

@keyframes addformopen {
    0%  {bottom:80px; left:15px;}
    75%  {bottom:80px; left:40%;}
    100%   {bottom:30px; left:40%;}
} */

#footer nav #addform.open,
#footer nav #addform.close,
#footer nav #openaddform.open{
    display:block;
}

#footer nav #addform.close #addbtn,
#footer nav #addform.open #addbtn{
    position: absolute;
    width:70px;
    height:70px;
    background: #fc9801;
    color:#fff;
    font-size:1.5em;
    border-radius: 50%;
    border:none;
}

#footer nav #addform.open #addbtn{
    bottom:80px;
    left:15px;
    animation-name: addbtn;
    animation-duration: .8s;
    animation-timing-function: ease-in-out;
}

@keyframes addbtn {
    0%   {bottom:30px; left:40%;}
    25%  {bottom:80px; left:40%;}
    100%  {bottom:80px; left:15px;}
}

#footer nav #addform.close #addbtn{
    bottom:80px;
    left:15px;
    animation-name: addbtnclose;
    animation-duration: .3s;
    animation-timing-function: ease-out;
    animation-delay: .3s;
    animation-fill-mode: forwards;
}

@keyframes addbtnclose {
    0%  {bottom:80px; left:15px;}
    75%  {bottom:80px; left:40%;}
    100%   {bottom:30px; left:40%;}
}

#footer nav #addform #addfield{
    display: none;
}

#footer nav #addform.close #addfield,
#footer nav #addform.open #addfield{
    display:block;
    position:absolute;
    height:70px;
    border-radius: 35px;
    border: 1px #aaa solid;
    font-size:1.2em;
}

#footer nav #addform.open #addfield{
    width:92%;
    padding-left:85px;
    left:15px;
    bottom:80px;
    animation-name: addfield;
    animation-duration: .8s;
    animation-timing-function: ease-in-out;
}

@keyframes addfield {
    0%   {bottom:30px; width:65px; left:40%; padding:0;}
    25%  {bottom:80px; width:65px; left:40%; padding:0;}
    100% {bottom:80px; width:92%; left:15px; padding-left:85px;}
}

#footer nav #addform.close #addfield{
    width:92%;
    padding-left:85px;
    left:15px;
    bottom:80px;
    display:block;
    animation-name: addfieldclose;
    animation-duration: .3s;
    animation-timing-function: ease-out;
    animation-delay: .3s;
    animation-fill-mode: forwards;
}

@keyframes addfieldclose {
    0% {bottom:80px; width:92%; left:15px; padding-left:85px;}
    75%  {bottom:80px; width:65px; left:40%; padding:0;}
    100%   {bottom:30px; width:65px; left:40%; padding:0;}
}

#footer nav #addform.open #addfield:focus{
    outline: none;
}

#footer nav #addform.open #barcodebtn{
    content: url('/images/icons/barcode.svg');
    position:absolute;
    right:50px;
    bottom:102px;
    opacity: 0;
    animation-name:barcodebtn;
    animation-duration: .2s;
    animation-delay: .8s;
    animation-fill-mode: forwards;
}

@keyframes barcodebtn {
    0% {opacity: 0;}
    100%   {opacity: 1;}
}

#footer nav ul li{
    list-style: none;
    flex-grow: 3;
    text-align: center;
    width:50%;
    padding:20px 5px;
}

#footer nav ul li:first-child{
    border-right:1px #aaa solid;
}