header{
    margin: 1rem;
    background-color: lightgrey;
    height: 3rem;
    display: flex;
    align-items: center;
}

h2{
    font-size: 1.2rem;
    margin: auto;
}

header ul{
    display: none;
    margin-block: 0;
    padding-inline: 0;
    list-style: none;
    height: inherit;
    align-items: center;
}

header label, header span{
    cursor: pointer;
    padding: 0.5rem;
    background-color: bisque;
    margin: 0.5rem;
    border-radius: 10px;
}

header input{
    display: none;
}

#container{
    display: flex;
    justify-content: space-around;
}

#output{
    box-sizing: border-box;
    width: 15vw;
    height: 85vh;
    overflow: auto;
    background-color: lightgray;
    padding: 0.5rem;
    margin: 0 1rem;
}

#output img{
    width: 100%;
    transition: padding 0.3s linear, background-color 0.3s linear, width 0.3s linear, height 0.3s linear;

}

.selected{
    width: calc(100% - 20px) !important;
    padding: 10px;
    background-color: khaki;
}

table, #settings{
    width: 85vh;
    height: 85vh;
    margin: auto;
}

tr{
    width: 10%;
}
td{
    height: 10%;
    outline: solid 1px #0000001f;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#settings{
    background-color: lightgray;
    padding: 2rem;
    box-sizing: border-box;
}

#settings label, #settings input, #settings button{
    display: block;
    margin: auto;
    text-align: center;
}
#settings input{
    margin-bottom: 1rem;
}

#settings button{
    border: none;
    padding: 0.5rem;
    border-radius: 12px;
}

@media (max-width: 850px) {
    #container{
        flex-wrap: wrap-reverse;
    }
    
    #output{
        width: 100%;
        height: 8rem;
        display: flex;
        margin: 1rem 0 0 0;
    }

    #output img{
        margin: 0 5px;
        width: auto;
        height: 100%;
    }

    .selected{
        width: auto !important;
        height: calc(100% - 20px) !important;;
    }

    table, #settings{
        width: 95vw;
        height: 95vw;
        margin: auto;
    }
}
