/* =========================================================================================
   MÓDULO INFO MODAL - CSS
   Copie este arquivo para seu projeto e linke-o no HTML.
   ========================================================================================= */

/* O botão "i" - Pode precisar de ajustes de posicionamento dependendo do layout do seu jogo */
#info-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background-color: #3498db;
    color: #fff;
    border-radius: 50%;
    font-family: 'Georgia', serif;
    font-weight: bold;
    font-style: italic;
    cursor: pointer;
    margin-left: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    vertical-align: middle;
    pointer-events: auto;
    transition: transform 0.2s, background-color 0.2s;
    font-size: 16px;
    line-height: 1;
}

#info-btn:hover {
    transform: scale(1.15);
    background-color: #2980b9;
}

/* O Overlay do Modal (Fundo escuro) */
.info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

/* Estado Ativo do Modal */
.info-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Conteúdo do Modal */
.info-content {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 25px;
    border-radius: 12px;
    width: 320px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    font-family: 'Segoe UI', sans-serif;
    text-align: left;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid #bdc3c7;
}

.info-modal-overlay.active .info-content {
    transform: translateY(0);
}

/* Títulos e Textos dentro do modal */
.info-content h3 {
    margin-top: 0;
    color: #2980b9;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.info-content p {
    margin: 8px 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.info-content .small-text {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 12px;
    display: block;
}

/* Botão de Fechar (X) */
.close-info {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #95a5a6;
    cursor: pointer;
    line-height: 0.8;
}

.close-info:hover {
    color: #e74c3c;
}