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;
}

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

.fitem .desc {
    text-align: center;
    margin-left: -0.3em;
    margin-right: -0.3em;
    margin-top: -5px;
    margin-bottom: 0px;
    padding: 8px;
    font-size: 14pt;    
}

.fitem ul {
    margin-top: 15px;
    margin-bottom: 15px;
}

.fitem .link {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 15px;
}

.fitem .link a {
    padding: 6px;
    background-color: black;
    color: white !important;
    border: 3px solid black;
    border-radius: 10px;
}

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

#info a {
    white-space: nowrap;
}

/* farby a vzhľad */

.fitem {
    border-radius: 1em;
    background-color: silver;
    background-image: radial-gradient(white, silver);
}

.fitem:hover {
    background-color: #FFFFA6;
    background-image: radial-gradient(white, #FFFFA6);
}

.fitem-attention {
    background-color: #FF6D6D;
    background-image: radial-gradient(white, #FF6D6D);
}

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

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

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

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

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