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

*{
    margin: 0;
    margin-left: 2px;
    padding: 0;
    text-align: left;
}

body{
    background-image: url("../assets/ping-pong.jpg");
    text-align: center;
}

#sideBar{
    position: absolute;
    width: 230px;
    height: 100%;
    background-color: salmon;
    left: -300px;
    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: 2.5rem;
    cursor: pointer;
    padding-left: 5px;
    font-family: "forLi", sans-serif;
}

li:hover{
    background: darkred;
}

.lesJeux:visited {
    color: black;
}

.forBar {
    color: whitesmoke;
}

#sideBar.active{
    left: 0;
    margin: 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;
}





a:link {
    color: whitesmoke;
    text-decoration: none;
    font-family: "forLi", sans-serif;
    font-size: 2rem;

}

#choice a:visited{
    color: whitesmoke;
}
#choice a:hover {
    color: darkred;
    font-weight: bold;
    background-color: salmon;
}

#choice {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 50%;
    width: 50%;
    background-color: rgba(0,0,0, 0.5);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    padding: 50px;
    border-radius: 15px;
    backdrop-filter: blur(2px);
    text-align:center;
    text-transform: uppercase;
}

h2{
    text-align: center;
    font-size: 2.5rem;
    color: #EFE7BC;
}