/* Fichier: css/game-layout.css */

.game-and-sidebar-wrapper {
    display: flex;
    /* justify-content: center; */
    align-items: flex-start; /* Align items to the top */
    gap: 0px; /* Space between game and sidebar */
    padding: 20px 0;
    width: 100%;
    min-width: 0; /* flex : permet au bloc de rétrécir sans déborder */
}

.game-main-content {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* pleine largeur : sinon le cadre .cb-shell reste à ~420px (largeur du canvas) */
    flex-grow: 1;
    min-width: 0;
}

/* Cadre coloré (niveau) + zone canvas : occuper toute la largeur de la colonne (comme la barre difficulté). */
.game-main-content .cb-shell,
.game-main-content .cb-canvas-wrap {
    width: 100%;
    box-sizing: border-box;
}

.game-main-content .cb-canvas-wrap canvas {
    display: block;
    max-width: 100%;
}

.game-right-sidebar {
    width: 0; /* Ajusté à 0 pour masquer la barre latérale */
    display: none; /* Masquer complètement la barre latérale */
    flex-direction: column;
    gap: 15px;
    padding-top: 0px;
    position: relative; /* Pour positionner l'image de fond à l'intérieur */
    overflow: hidden; /* Pour cacher les parties de l'image qui dépassent */
}

.game-right-sidebar #right-sidebar-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Pour couvrir toute la zone */
    transform: rotate(90deg) scale(1.5); /* Rotation et ajustement de la taille pour couvrir */
    transform-origin: center center;
    z-index: -1; /* Placer l'image derrière le contenu textuel */
}

/* Styles pour le HUD du jeu */
.cb-game-hud.meta {
    color: white;
    text-align: center;
    font-size: 1.1em;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cb-game-hud.meta strong {
    color: #fef9c3; /* Light yellow for emphasis */
}