﻿





#fundo_mapa {
    padding: 0 !important;
    width: 100%;
    height: 500px;
    overflow: scroll;
    position: relative;
    background-color: #fff9d6;
}

    #fundo_mapa.quadricula > #mapa {
        background-image: url('/img/quadricula_mapa.png');
        background-size: 20px 20px;
        
    }


    #fundo_mapa::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
        background-color: #F5F5F5;
    }

    #fundo_mapa::-webkit-scrollbar {
        width: 10px; /* Largura da scrollbar vertical */
        height: 10px; /* Altura da scrollbar horizontal */
        background-color: #F5F5F5;
    }

    #fundo_mapa::-webkit-scrollbar-thumb {
        background-color: #004c78;
        border: 0px solid #55555;
    }



#mapa {
    width: 500%;
    height: 500%;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: center center;
}

#canvas_mapa {
    pointer-events: none; /* Deixa os eventos passarem através do canvas */
    position: absolute; /* Garante que o canvas está posicionado corretamente */
    top: 0;
    left: 0;
    z-index: 0; /* Coloca o canvas atrás das divs */
}

.seccao {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: absolute;
    transform-origin: center;
    cursor: pointer;
    z-index: 1;
}

    .seccao:hover {
        background-color: #c75402;
    }

.sepultura {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: absolute;
    transform-origin: center;
    cursor: pointer;
    transition: background 0.3s ease-out;
    border-radius: 6px;
}

    .sepultura .codigo {
        position: absolute;
        right: 6px;
        bottom: 3px;
    }

    .sepultura span.pode_enterrar {
        width: 12px;
        height: 12px;
        border-radius: 6px;
        position: absolute;
        top: 5px;
        left: 5px;
    }

        .sepultura span.pode_enterrar.true {
            background-color: #4cff00;
        }

        .sepultura span.pode_enterrar.false {
            background-color: #ff6a00;
        }

    .sepultura:hover {
        background-position: bottom;
    }

    /*livre - verde*/
    .sepultura.estado0 {
        background-color: #4cff00;
        background-image: linear-gradient(160deg, #4cff00 0%, #1e7829 100%);
        background-size: 400% 400%;
        background-position-x: -100px;
    }

    /*regular - azul*/
    .sepultura.estado1 {
        background-color: #4682b4;
        background-image: linear-gradient(160deg, #80D0C7 0%, #4682b4 100%);
        background-size: 400% 400%;
        background-position-x: -100px;
    }
    /*irregular - vermelho*/
    .sepultura.estado2 {
        background-color: #ee3b3b;
        background-image: linear-gradient(160deg, #ee3b3b 0%, #ee3b3b 100%);
        background-size: 400% 400%;
        background-position-x: -100px;
    }

    /*cinza - geral*/
    .sepultura.estado3 {
        background-color: #bbbbbb;
        background-image: linear-gradient(160deg, #bbbbbb 0%, #808080 100%);
        background-size: 400% 400%;
        background-position-x: -100px;
    }

    /*laranja - averiguar*/
    .sepultura.estado4 {
        background-color: #ff6a00;
        background-image: linear-gradient(160deg, #ff6a00 0%, #eb9e12 100%);
        background-size: 400% 400%;
        background-position-x: -100px;
    }


.seccao, .sepultura {
    -webkit-user-select: none; /* Chrome, Safari, Edge */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Padrão */
}

.seccaoMenu {
    border: 1px solid rgba(0, 0, 0, .125);
    background-color: #fff;
    color: #4682b4;
    margin-right: 10px;
    border-radius: 6px;
}

    .seccaoMenu li {
        padding: 2px;
    }

        .seccaoMenu li:hover {
            background-color: #4682b4;
        }

        .seccaoMenu li.active {
            background-color: #ffd800;
        }

    .seccaoMenu img {
        width: 34px;
        height: 34px;
    }

.posicaoXY {
    border: 1px solid rgba(0, 0, 0, .125);
    background-color: #fff;
    color: #4682b4;
    width: 100px;
    position: absolute;
    bottom: -1px;
    right: -1px;
    z-index: 2000;
    padding: 5px 10px 5px 10px;
    text-align: center;
    font-size: 12px;
}

.itemContext {
    position: fixed;
    display: none;
    z-index: 1000;
    border: 1px solid #000000;
    background-color: #fff;
    padding: 2px;
    top: 0px;
    left: -10000px;
}

    .itemContext li {
        cursor: pointer;
        padding: 5px 30px 5px 20px;
    }

        .itemContext li:hover {
            background-color: #4682b4;
            color: #fff;
        }



.bg-item1 {
    transition: background 0.3s ease-out;
    border-radius: 6px;
    background-color: #0093E9;
    background-image: linear-gradient(160deg, #4682b4 0%, #80D0C7 100%);
    background-size: 400% 400%;
    background-position-x: -100px;
}
