html {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
}
.fitem, .fitem:before, .fitem:after {
  box-sizing: inherit;
  -webkit-box-sizing: inherit;
}

#outer,#outer2 {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;

}

#main,#main2 {
    display: flex;
    width: 100%;
    margin: 1ex auto;
    padding: 0;
    flex-flow: row wrap;
    justify-content: center;
    max-width: 1280px
    
    flex: 0 0 auto;
    order: 1;
}

#outer2 {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;

}

#main2 {
    display: flex;
    width: 100%;
    margin: 1em auto;
    padding: 0;
    flex-flow: row wrap;
    justify-content: center;
    max-width: 1280px
    
    flex: 0 0 auto;
    order: 1;
}

.fitem {
    flex: 0 0 auto;
    width: 10em;
    margin: .5em;
    padding: .3em;
    overflow: hidden;
}

.fitem img {
    width: 48px;
    height: 48px;
    display: block;
    margin: .3em auto;
}

.fitem .desc {
    text-align: center;
    margin: .3em -.3em -.3em;
    padding: .25em;
    font-size: 8pt;    
}

#info {
    text-align: center;
    font-weight: bold;
    
    order: 2;
}

#info a {
    white-space: nowrap;
}

/* farby a vzhľad */

.fitem {
    border-radius: 1em;
    background-color: #e1e1e1;
    font-size: xx-small;
}

.fitem:hover {
    background-color: #FFFFA6;
}

.fitem-attention {
    background-color: #FF6D6D;
}

#outer a {
    color:inherit;
    text-decoration: none;
}

.fitem .desc {
    background-color: #e1e1e1;
    font-weight:bold;
}

.fitem:hover {
    background-color: yellow;
}

#info a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
  #info {
    order: 0;
  }
}
