/* Remove margens e paddings */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Centraliza o mapa no meio da tela escura */
body {
    background-color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* Trava a proporção */
#map {
    position: relative;
    width: 100vw;
    max-width: 1000px;
    aspect-ratio: 1000 / 667;
    background-color: #000000;
}

/* Faz todas as tags <a> flutuarem uma sobre a outra */
#map>a {
    position: absolute;
    display: block;
}

/* Faz as imagens preencherem 100% das suas respectivas camadas */
#map>a>img {
    width: 100%;
    height: 100%;
    display: block;
}



/* =========================================
   SISTEMA DE DIÁLOGO E MODAL (POINT & CLICK)
   ========================================= */

/* Caixa de Diálogo */
#dialog-box {
    position: absolute;
    bottom: 5%;
    left: 10%;
    width: 80%;
    background-color: rgba(0, 0, 0, 0.85);
    border: 3px solid #fff;
    border-radius: 8px;
    padding: 15px 20px;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    z-index: 10;
    pointer-events: none;
    /* Deixa os cliques passarem, se o mouse ficar por cima */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    min-height: 80px;
    display: flex;
    align-items: center;
}

#dialog-text {
    margin: 0;
    line-height: 1.4;
    flex-grow: 1;
}

#dialog-indicator {
    font-size: 1.2rem;
    color: #fff;
    animation: blink 1s infinite;
    margin-left: 10px;
    align-self: flex-end;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hidden {
    display: none !important;
}

/* Modal Overlay */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#modal-overlay.hidden {
    display: none;
    opacity: 0;
}

/* Caixa do Modal */
#modal-box {
    background-color: #f4e8d3;
    color: #333;
    padding: 30px;
    border-radius: 12px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    font-family: 'Courier New', Courier, monospace;
    border: 4px solid #5c4033;
}

/* Botão de Fechar */
#modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    color: #5c4033;
    cursor: pointer;
    transition: transform 0.2s;
}

#modal-close:hover {
    transform: scale(1.2);
    color: #a00;
}

/* Tipografia dentro do modal */
#modal-content h1,
#modal-content h2 {
    margin-bottom: 15px;
    border-bottom: 2px dashed #ccc;
    padding-bottom: 5px;
}

#modal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}