/* RESET */
html {
    box-sizing: border-box;
    font-size: 1rem;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ol, ul {
    margin: 0;
    padding: 0;
    font-weight: normal;
}
ol, ul {
    list-style: none;
}
img {
    max-width: 100%;
    height: auto;
}

/*Test*/
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    /*
    height: 100vh;
    -webkit-user-select: none; 
    */
    
    touch-action: none;
    overflow: hidden;
    color: #333;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
   
    user-select: none;
}

header {
    display: flex;
    justify-content: center;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    padding-bottom: 1em;
}
header > img {
    height: 4em;
}


main {
    flex-grow: 1;
    flex-shrink: 1;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    height: 100%;
}
main .fabric-container {
    margin: 1em;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
main canvas {
    border: 1px solid #eee;
}


footer {
    display: flex;
    flex-direction: column;

}
footer ul.icon-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    background: #eee;
    border-top: 1px solid #eee;
}
footer ul.icon-nav > li {
    flex: 1 0 160px;
    min-width: 120px;
    text-transform: uppercase;
    text-align: center;
    padding: 1rem;
    font-size: 0.75em;
    cursor: pointer;
    background-color: white;
    position: relative;
}
footer ul.icon-nav > li > .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
footer ul.icon-nav > li:hover {
    background-color: #eee;
}
footer ul.icon-nav > li > img {
    display: block;
    margin: auto;
    width: 3em;
    width: 4cap;
    height: 3em;
    height: 4cap;
    margin-bottom: 0.5rem;
}
footer ul.icon-nav > li.highlight {
    background-color: rgb(244, 134, 184);
    color: white;
    margin-top: -1px;
}
footer ul.icon-nav > li.highlight:hover {
    background-color: rgb(246, 107, 170);
    color: white;
}
footer ul.icon-nav > li.highlight > img {
    filter: invert();
}


footer div.headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background-color: #ddd;
}
footer div.headline h2 {
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: bold;
}
footer div.headline > span > img {
    display: inline-block;
    margin: auto;
    width: 1.5em;
    width: 2cap;
    height: 1.5em;
    height: 2cap;
    margin-right: 0.5rem;
}
footer div.headline > span {
    display: flex;
    align-items: center;
    font-size: 1rem;
    cursor: pointer;
}

footer ul.list-select {
    max-height: 16rem;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    background-color: #ddd;
}

footer ul.list-select li {
    display: inline-block;
    border-bottom: 1px solid transparent;
    padding: 0.5rem;
    gap: 1px;
    background-color: #fff;   
    text-align: center;

}

footer ul.list-select > li > img {
    width: 6rem;
    display: inline-block;
    max-width: 100%;
    height: auto; 
}

footer ul.list-select li.selected {
    border-bottom-color:rgb(244, 134, 184);    
    border-bottom: 1px solid ;
}
footer ul.list-select li:hover {    
    border-bottom: 1px solid ;
    border-bottom-color: rgb(244, 134, 184);
    background-color: #f2f2f2;
    
}
