* { 
    box-sizing: border-box; 
    cursor: url('https://cybersandbox.ca/resources/elden/er-cur.png'), auto; 
}

html, body { 
    margin: 0; 
    width: 100%; 
    min-height: 100%; 
} 

body { 
    min-height: 100vh; 
    background-image: url("../images/TarzaniePoster.png"); 
    background-size: 100% 100%; 
    background-position: center center; 
    background-repeat: no-repeat; 
    background-color: #91d5e5; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

/* Bouton Jouer */
.play-button { 
    background: none; 
    border: none; 
    padding: 0; 
    cursor: pointer; 
    transition: transform 0.2s ease, opacity 0.3s ease, visibility 0.3s ease; 
} 

.play-button img { 
    width: 250px; 
    height: auto; 
    display: block; 
} 

/* Effet survol et clic du bouton Play */
.play-button:hover { 
    transform: scale(1.1); 
} 

.play-button:active { 
    transform: scale(0.95); 
} 

/* Masquer le bouton Play quand le pop-up est ouvert */
.play-button.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ==========================================
   STYLE DU MODAL / FENÊTRE JUNGLE (AJAX)
   ========================================== */

/* Arrière-plan assombri (Overlay) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

/* Fenêtre contextuelle vert semi-transparent */
.modal-content {
    background: rgba(20, 80, 35, 0.85);
    color: #f0fdf4;
    padding: 30px;
    width: 80%;
    max-width: 500px;
    border-radius: 20px;

    /* Cadre effet bois */
    border: 8px solid #5c3a21;
    outline: 4px solid #2d1a0e;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(0, 0, 0, 0.4);

    position: relative;
    text-align: center;
    font-family: 'Arial', sans-serif;

    /* Animation de zoom */
    transform: scale(0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Affichage dynamique du modal */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Bouton de fermeture (Croix) */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #e2d8b2;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

.close-btn:hover {
    color: #ff5555;
    transform: scale(1.2);
}

/* Titre dans le modal */
.modal-content h2 {
    margin-top: 0;
    color: #ffd700;
    text-shadow: 2px 2px 4px #000;
}

/* Disposition des boutons côte à côte */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Style identique pour TOUS les boutons .start-game-btn */
.start-game-btn {
    background: #5c3a21;
    color: #fff;
    border: 2px solid #ffd700;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.start-game-btn:hover {
    background: #7a4e2c;
    transform: scale(1.05);
}
/* ==========================================
   ECRAN DE CHARGEMENT UNITY (GIF)
   ========================================== */
#unity-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000; /* Fond noir derrière le gif si besoin */
    background-image: url('../images/gif.gif');
    background-size: cover; /* 'cover' pour prendre tout l'écran, ou 'contain' pour ne pas le rogner */
    background-position: center;
    background-repeat: no-repeat;
    z-index: 9999; /* Toujours au-dessus du reste */
    display: none; /* Caché par défaut */
}

/* --- Style de la boîte de notification personnalisée --- */
#custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#custom-alert-box {
    background: #2e1c0c; /* Marron bois foncé */
    border: 4px solid #8d5524; /* Bordure bois */
    border-radius: 12px;
    padding: 25px 30px;
    width: 350px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    color: #fffEE0;
    font-family: Arial, sans-serif;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

#custom-alert-overlay.active {
    opacity: 1;
}

#custom-alert-overlay.active #custom-alert-box {
    transform: scale(1);
}

#custom-alert-msg {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

#custom-alert-btn {
    background: #ffd700; 
    color: #000000;
    border: none;
    padding: 10px 25px;
    font-weight: bold;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px #000000;
    transition: all 0.1s ease;
}

#custom-alert-btn:hover {
    background: #ffd700;
}

#custom-alert-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px #1b5e20;
}