:root {
    --map-width: 1760;
    --map-height:1810;
    --main-color: rgb(16, 80, 40);
}
body {
    font-family: "Lato", sans-serif;
    background-color: var(--main-color);
    color: white;
}

#topmenu {
    fill: white !important;
    display: flex;
    flex-direction: row;
    padding: 0.5rem;
    height: 5rem;
    z-index: 1000;
    position: fixed;
}

#topmenu #ico-logo {
    height: 4rem !important;
}

#topmenu img {
    height: 2rem;
    max-height: 4rem;
}

#topmenu img path {
    fill: white;
}



#bottommenu {
    position: fixed;
    bottom: 30px;
    left: 0;
    z-index: 100000;

    #icons {
        display: none;
        img {
            /*border: 4px solid pink;*/
            /*background-color: deeppink;*/
        }
    }

}
#alert {
    position: fixed;
    width: 100vw;
    height: 4rem;
    background-color: var(--main-color);
    color: white;
    z-index: 10000;
    bottom: 0;
    left: 0;
    text-align: center;
}

section {
    /*flex-direction: column;*/
    /*position: absolute; */
    /*top: 0;*/
    /*width: 100vw;*/
    /*height: calc(100dvh);*/
    /*left: 0;*/
    /*overflow: scroll;*/
}

.buttons div {
    display: inline-block;
    padding: 4px
}
.buttons div.no-position {
    background-color: rgba(200, 0,0, 50%);
}

#mapka {
    /*scale: 30%;*/
    transform-origin: 0 0;
    /*background-image: url("map-cut.png");*/
    /*width: var(--map-width) ;*/
    /*height: var(--map-height);*/
    top: 0;
    left: 0;
    background-repeat: no-repeat;
    position: relative;
}
#mapka canvas {
    transform-origin: 0 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10
}

#mapka img {
    transform-origin: 0 0;
    /*border: 1px dashed red;*/
    z-index: 1;

    position: absolute;
    top: 0;
    left: 0;
}

/*
#mapka div {
    position: absolute;
    top: 0;
    left: 0;
    width: 9px;
    height: 9px;
    background-color: red;
}
*/
#debug {
    /*border: 4px solid red;*/
    /*font-family: monospace;*/
    /*min-height: 100px;*/
    display: none;
}
#act {
    /*position: absolute;*/
    /*top: 0;*/
    /*left: 40px;*/
    /*z-index: 12;*/
    /*height: 100px;*/
    /*width: 200px;*/
}

#operate {
    z-index:100000;
    display: none;
}


.overlay {
    background-color: var(--main-color);
    color: white;
    z-index: 100000000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: scroll;

    svg {
        fill: white;
    }


    article {
        background-color: rgba(16, 80, 40, 80%);

        a {
            color: white;
            text-decoration: none;
        }
        /*background-color: var(--main-color);*/
        div {
            text-align: center;
        }
        div.title {
            flex-grow: 40;
            text-align: left;
        }
        line-height: 2.5rem;
        position: fixed;
        top: 0;
        width: 100vw;
        display: flex;
        flex-direction: row;
        font-size: 1.5rem;

        .close {
            width: 3rem;
            color: white;
            text-align: center;
            line-height: 3rem;
            font-size: 3rem;
            margin-right: 1rem;
        }
    }

    .body {
        padding: 6rem 3rem 0 3rem;
        overflow: scroll;

        img {
            max-width: calc(100vw);
            min-width: 60vh !important;
            margin-left: -3rem;
        }

    }
    .body > p:only-child > img:only-of-type {
        margin-top: -3rem;
        /* CSS styles here */
    }


    p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}


section {
    /*border: 4px solid greenyellow;*/
}
canvas {
    /*border: 4px solid yellow;*/
}
img {
    /*border: 4px dotted pink;*/
}

#debpos {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    min-width: 40px;
    background-color: red;
    color: white;
    padding: 4px 10px;
    font-family: monospace;
}

#manage-path {
    background-color: mediumseagreen;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    right: 0;
}