@font-face {
    font-family: forLi;
    src: url("../assets/forLi.ttf");
}

* {
    padding: 0;
    margin: 0;
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
}

.positionner {
    width: 600px;
    margin: auto;
    text-align: center;
    position: relative;
}

.sqr {
    width: 200px;
    height: 200px;
    position: absolute;
}

#un {
    left: 0;
    top: 0;
}

#deux {
    left: 203px;
}

#trois {
    left: 406px;
}

#quatre {
    left: 0;
    top: 200px;
}

#cinq {
    left: 200px;
    top: 200px;
}

#six {
    left: 400px;
    top: 200px;
}

#sept {
    left: 0;
    top: 400px;
}

#huit {
    left: 200px;
    top: 400px;
}

#neuf {
    left: 400px;
    top: 400px;
}

#scoreDesGens {
    font-size: 1.8em;
    font-family: "times new roman", serif;
}

#sideBar{
    position: absolute;
    width: 200px;
    height: 100%;
    left: -300px;
    background: salmon;
    transition: .5s ease-out;
    z-index: 4;
}

.toggleButton {
    position: absolute;
    top: 30px;
    left: 310px;
    cursor: pointer;
    height: 50px;
    width: 50px;
}

.toggleButton span {
    width: 60px;
    height: 10px;
    border-radius: 5px;
    background: salmon;
    display: block;
    margin-top: 4px;
    transition: .5s ease;
}

li{
    color: black;
    list-style-type: none;
    font-size: 2rem;
    cursor: pointer;
    padding-left: 5px;
    font-family: "forLi", serif;
}

li:hover{
    background: darkred;
}

#sideBar.active{
    left: 0;
}

#sideBar.active .toggleButton{
    top:2.8rem;
    left: 235px;
}

#sideBar.active span{
    position: absolute;
}

#sideBar.active span:nth-child(1){
    transform: rotate(45deg);
}

#sideBar.active span:nth-child(2){
    opacity: 0;
}

#sideBar.active span:nth-child(3){
    transform: rotate(-45deg);
}

#sideBar.active ~ .content{
    opacity: 0.3;
}

#sideBar a{
    color:white;
    font-family: "forLi", sans-serif;
    text-decoration: none;
    font-size: 2.5rem;
    cursor: pointer;
}