/* Styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden; /* Pas de scroll horizontal */
    font-family: Arial, sans-serif;
}

/* Disposition principale */
h1 {
    text-align: center;
    background: #003366;
    color: white;
    padding: 20px;
    margin-bottom: 0;
    font-size: 1.8rem;
}

/* Conteneur principal */
.container {
    display: flex;
    height: calc(100% - 60px); /* Hauteur restante après le H1 */
}

/* Section du labyrinthe */
.prim-section {
    width: 66.66%; /* 66% de la largeur */
    background: #f4f4f9; /* Couleur de fond douce */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto; /* Scroll si nécessaire */
}

.prim-controls {
    margin-bottom: 20px;
}

.prim-controls input {
    width: 60px;
    margin-left: 10px;
    margin-right: 10px;
}

canvas {
    border: 2px solid #333;
    background: #fff;
    margin-top: 20px;
}

/* Section des meilleurs scores */
.highscores-section {
    width: 33.33%; /* 33% de la largeur */
    background: #e6efff; /* Couleur de fond douce */
    padding: 20px;
    overflow-y: auto; /* Scroll vertical si la liste est longue */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.highscores-section h2 {
    color: #003366;
    margin-bottom: 10px;
    text-align: center;
}

#highscore-board {
    list-style: none;
    padding: 0;
}

#highscore-board li {
    background: #ffffff;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #003366;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .prim-section,
    .highscores-section {
        width: 100%; /* Prend toute la largeur en mobile */
        height: 50%; /* Divise l'espace en 2 */
    }
}
