#back_games {
    background-image: linear-gradient(to right bottom, #F8DF51 0%, #E2B534 52%, #A16D11 100%);
    padding: 10px;
    border-radius: 7px;
    position: absolute;
    left: 3rem;
    top: 5rem;
    transition: all 0.3s ease-in;
    text-decoration: none;
    color: white;
}
#back_games:visited {
    color: white;
}

div#cbtomorrow {
    display: inline-block;
    width: 600px;
    padding: 15px;
    margin-top: 3rem;
    background: linear-gradient(52deg, #1E1E1E 0%, #290973 100%);
    margin-left: calc(50% - 300px);
    
}

#back_games:hover {
    transform: scale(1.1);
    background-image: linear-gradient(to left top, #F8DF51 0%, #E2B534 52%, #A16D11 100%);
}

body {
    max-width: 100vw;
    max-height: 100vh;
    background: linear-gradient(to bottom right,#242424 0% ,#131212 100%);
    font-family: Calibri,Arial;
    -moz-user-select: none; /* Firefox */
    -webkit-user-select: none; /* Chrome, Safari, Opéra depuis la version 15 */
    -ms-user-select: none; /* Internet explorer depuis la version 10 et Edge */
    user-select: none; /* Propriété standard */
}

div#game-b {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-container {
    text-align: center;
    width: 600px;
    height: 600px;
    border: 1px solid black;
    position: relative;
    overflow: hidden;
    background-image: url('/images/games/GHALLO1/fond.jpg');
}

#player {
    position: absolute;
    width: 100px;
    height: 116px;
    background-color: transparent;
    background-image: url('/images/games/GHALLO1/panier.png');
    background-size: 100%;
    /* PC */
    left: 260px;
    bottom: 10px;
    z-index: 0;
}

#player::before {
    content: "";
    position: relative;
    
    z-index: 1;
}

.candy {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.candy.purple {
    background-color: #9370DB;
    background-image: radial-gradient(at center top, #E2B8C5, #9C617A);
}

.candy.orange {
    background-color: #FFA500;
    background-image: radial-gradient(at center top, #FECCA6, #9E3422);
}

.candy.green {
    background-color: #00FF00;
    background-image: radial-gradient(at center top, #B2B981, #50533A);
}

.score-1, .score-2, .score-3, .timer {
    position: absolute;
    font-size: 20px;
    font-weight: bold;
    color: white;
    background-color: #131212c5;
    padding: 5px;
}

#l-b {
    display: none;
}

#r-b {
    display: none;
}

.score-1 {
    top: 10px;
    left: 10px;
}
.score-2 {
    top: 40px;
    left: 10px;
}
.score-3 {
    top: 70px;
    left: 10px;
}

.timer {
    top: 10px;
    right: 10px;
}

/* Overlay */
#overlay {
    position: absolute;
    top: 100px;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 4;
}

#message-container {
    text-align: center;
    color: white;
}



@media not all and (min-width: 640px) {
    #game-container {
        width: 340px;
        height: 340px;
    }

    #player {
        /* Mobile */
        left: 120px;
    }

    #l-b {
        width: 150px;
        height: 150px;
        background-image: url('/images/games/GHALLO1/button-l.png');
        display: inline-block;
    }
    
    #r-b {
        width: 150px;
        height: 150px;
        background-image: url('/images/games/GHALLO1/button-r.png');
        display: inline-block;
    }

    #back_games {
        position: static;
    }

    #controllers {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    #controllers {
        position: relative;
    }
    #l-b {
        position: absolute;
        top: 0px;
        left: 0px;
    }
    #r-b {
        position: absolute;
        top: 0px;
        right: 0px;
    }

    div#cbtomorrow {
        display: block;
        margin-left: 0px;
        margin-right: 0px;
        width: 100vw;
    }
}