/* --- Fichier : css/minigame.css --- */

.minigame-container {
    position: fixed; /* Se superpose au reste */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fond noir semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* S'assure qu'il est au-dessus de tout */
}

.game-stats-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px; /* Space between stat items */
    background-color: rgba(0, 0, 0, 0); /* Semi-transparent background for readability */
    padding: 10px;
    border-radius: 8px;
    color: black;
    font-size: 1.1em;
    z-index: 10; /* Ensure it's above the canvas */
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
}

.stat-icon {
    width: 24px; /* Adjust size as needed */
    height: 24px;
    vertical-align: middle;
}

.help-button {
    position: absolute;
    top: 30px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #9370db; /* Blue color */
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100; /* Above other game elements */
}

.help-button:hover {
    background-color: #0056b3;
}

.help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Darker overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Above everything else */
}

.help-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    max-height: 80%;
    overflow-y: auto; /* Enable scrolling for long content */
    position: relative;
    color: #333;
}

.help-content h2, .help-content h3 {
    color: #007bff;
    margin-top: 15px;
    margin-bottom: 10px;
}

.help-content ul {
    list-style: none;
    padding: 0;
}

.help-content ul li {
    margin-bottom: 8px;
    /*display: flex;*/
    align-items: center;
}

.help-content ul li strong {
    margin-right: 5px;
}

.help-content .stat-icon {
    margin-right: 5px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #666;
}

.close-button:hover {
    color: #333;
}