* {
    font-family: sans-serif;
    box-sizing: border-box;
}

main {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-height: 100vh;
}

span#mapa {
    width: min-content;
    padding: 15px;
    text-align: center;
    max-height: 100vh;
    max-height: 100dvh;
}

.europa span#mapa {
    width: 50%;
}

span#mapa svg {
    max-height: 100vh;
    max-height: calc(100dvh - 40px);
}

svg path {
    transition: 75ms;
}

svg path.this {
    fill: royalblue;
}

svg path:hover {
    fill: lightskyblue!important;
}

body.match svg path.match {
    fill: cornflowerblue!important;
}

main > * {display: inline-block;}
main * {vertical-align: middle;}

div#powiat_info {
    width: 50%;
}

.europa div#powiat_info {
    width: 30%;
}

div#powiat_info:has(li) {
    max-height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
}

div h2 {
    text-align: center;
}

span#images {
    text-align: center;
    width: 100%;
    display: inline-block;
}

img#godlo, img#flaga {
    max-height: 75px;
    border: 1px solid lightgrey;
}

img#wojewodztwo {
    height: 30px;
    border: 1px solid lightgrey;
}

input {
    width: 100%;
    padding: 3px 5px;
}

span.tab {
    background-color: aliceblue;
    font-family: monospace;
    padding: 4px 6px;   
    font-size: 115%;
    margin-right: 5px;
    border-radius: 3px;
    border: 2px solid dodgerblue;
    display: inline-block;
}

span.tab.tab-nieuzywane {
    border-color: lightskyblue;
    border-style: dashed;
}

span.tab.tab-zabytek {
    background-color: yellow;
    border-color: goldenrod;
}

footer {
    color: grey;
    padding: 10px;
}

a.goback {
    margin-bottom: 8px;
    display: none;
}

body.goback a.goback {
    display: inline-block;
}

@media (max-width: 1000px) {
    main {
        flex-direction: column;
        max-height: initial;
    }
    main, main > * {
        width: 100%!important;
    }
    span#mapa svg {
        width: calc(100vw - 40px);
        height: min-content;
    }
}