* {
    /* box-sizing: border-box; */
    margin: 0;
}


body {
    font-family: 'Lato', sans-serif;
    /* background: linear-gradient(90deg, #f57425 0%,  #ffffff 25%,  #ffffff 50%,#21bfbb 80%); */
    background-color: #EFC1CB;
    max-width: 100vw;
    margin: 4px;
}

.square:hover {
    border: solid 1px black;
    max-height: 10px;
    max-width: 10px;
    min-width: 10px;
    display: block;
}

#content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    max-width: 100vw;
    overflow: hidden;
    
}

.square {
    box-sizing: border-box;
    height: 10px;
    width: 10px;
    display: block;
    flex: 1;

}

#btn_div {
    /* width: 60px; */
    /* height: 350px; */
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 4px;
    max-width: 100%;
}

.row{
    height: 10px;
    width: 1200px;
    display: flex;
}

.button {
    border: solid #111 3px;
    border-radius: 8px;

    color: white;
    min-width: 40px;
    height: 40px;
    cursor: pointer;
    position: center;
    opacity: 1;
}
.button.selected {
    border: none;
}



.playground {
    border-style: solid;
    /* border-color: black; */
    display:inline-block;
    margin: auto;
    background-color: #333;
    padding: 2px;
    /* padding-bottom: 20px; */
    border-radius: 4px 4px 8px 8px;
}

#sidebar * {
    box-sizing: border-box;
}
#sidebar {
    box-sizing: border-box;
    width: 20%;
    background-color: #21bfbb;
    display: block;
    text-align: center;
    max-width: 200px;
    background-color: #333;
    color: #EEE;
    border-radius:0 4px 4px 0;
    margin: 0;
    padding: 6px;
    
}

#main {
    flex: 1;
    width: 80%;   
    height: 100%;
    display: inline-block;
    text-align: center;
    overflow: auto;
    /* touch-action: manipulation; */
    
}

#nbPlayer {
    text-align: center;
    margin: 16px 0;
    text-align: middle;
}

#info {
    color: #333;
    /* min-height: 100px; */
    text-align: center;
    background-color: #cca0a9;
    /* margin: 30px 10px; */
    margin-bottom: 0px;
    vertical-align: middle;
    border-radius: 8px;
    padding: 4px;

}

#change {
    border-color: black;
    width: 100px;
    height: 50px;
    text-align: center;
    background-color: #21bfbb;
}


#main.zoom .playground{
    /* transform: scale(0.5); */
    transform-origin: 0 0;
    transition-duration: 1s;


}
#main.zoom .square:hover, #main.zoom .square {
    max-width: calc(90vh / 120) !important;
    height: calc(90vh / 120) !important;
    max-height: calc(90vh / 120) !important;
    min-width: calc(90vh / 120) !important;

}
#main.zoom .row {
    width: calc(90vh) !important;
    height: calc(90vh /120) !important;
}

/* bouton de zoom */
#zoom-button {
    display: inline-block;
    margin: 16px auto;
    margin-top: 0;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: #EFC1CB;
    color: #333;
    cursor: pointer;
    user-select: none;

}


/* description  */
#art-description {
    color: #FFF;
    font-weight: 900;
    text-align: center;
    padding: 6px;
}


/* pour mobile */
@media (max-width: 700px) {
    #sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        max-width: unset;
        height: unset;
        width: 100%;
        border-radius: 16px 16px 0 0;   
    }
    body {
        padding: 0;
        padding-bottom: 50vh;
    }
    .button {
        border: solid #111 3px;
        border-radius: 6px;
        min-width: 30px;
        height: 30px;
    }



    
#main.zoom .playground{
    /* transform: scale(0.5); */
    transform-origin: 0 0;
    transition-duration: 1s;

}

 
#main.zoom .row {
    width: calc(95vw) !important;
    height: calc(95vw /120) !important;
}
#main.zoom .square, #main.zoom .square:hover {
    width: calc(95vw / 120) !important;
    max-width: calc(95vw / 120) !important;
    height: calc(95vw / 120) !important;
    max-height: calc(95vw / 120) !important;
    min-width: calc(95vw / 120) !important;

}
}