html, body {
    height: 100%;
    margin: 0; padding: 0;
    /*background: #ecd9c6;*/
    font-family: sans-serif;
}

body.wait {
    cursor: wait;
}

.cim {
    position: absolute;
    left: 0; right: 0;
    height: 60px;
}

.cim h1 {
    text-align: center;
    font-size: 24pt;
    margin: 0;
    padding: 10px 0;
}

#szerzo {
    text-align: center;
    font-size: 24px;
    min-height: 15%;
}

#cim {
    text-align: center;
    font-size: 32px;
    min-height: 45%;
}

#kiadas {
    text-align: center;
    font-size: 24px;
    min-height: 15%;
}

#ajanlas {
    text-align: right;
    font-size: 20px;
    font-variant: italic;
    min-height: 25%;
    position: relative;
}

#ajanlas span {
    position: absolute;
    bottom: 0; right: 0;
}

.subhea {
    font-weight: bold;
}

.beljebb {
    margin-left: 20px;
}

.fo {
    position: absolute;
    left: 300px;
    right: 200px;
    top: 60px;
    bottom: 0;
    overflow: auto;
    padding: 10px 10px;
    text-align: justify;
    border-left: solid 2px gray;
    /*border-right: solid 2px gray;*/
    border-top: solid 2px gray;
}

.fo.nosidebar {
	left: 0px;
}

.fo p {
    margin: 0 0 5px 0;
}

#openclose {
    position: absolute;
    height: 50px;
    width: 16px;
    top: calc(50% - 25px);
    top: 50%;
    left: 0;
    padding: 1px;
}

.margo {
    position: absolute;
    width: 200px;
    right: 0;
    top: 60px;
    bottom: 0;
    overflow: hidden;
    padding: 10px 0px;
    text-align: justify;
    font-size: 9pt;
    border-top: solid 2px gray;
}

.margoElem {
    position: absolute;
    left: 5px;
    right: 5px;
    padding: 0;
    margin: 0;
    max-height: 120px;
    overflow: auto;
	-webkit-hyphens: auto;
	-ms-hyphens: auto;
	hyphens: auto;
}

.margoElem div p {
    margin: 0;
}

#loading {
    display: none;
    position: fixed;
    top: 60px; left: 300px; right: 0; bottom: 0;
    background: rgba(0,0,0,.5);
}

#loading .panel {
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,.7);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

a .MsoFootnoteReference {
    font-size: .8em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
    top: -0.3em;
    color: blue;
}

.ftnDiv {
    position: absolute;
    background: white;
    border: solid 1px black;
    padding: 10px;
    max-width: 200px;
    max-height: 200px;
    overflow-y: auto; 
    width: auto;
    height: auto;
    font-size: .8em;
    text-align: left;
}

blockquote {
    /*background: url('qm.svg') 0 0 no-repeat;*/
    background-color: rgba(255,255,255,.3);
    font-style: italic;
    border: 1px solid brown;
    padding: 10px;
    margin-left: 80px;
    border-radius: 5px;
    hyphens: auto;
}

blockquote span.noquote {
    font-style: normal;
    /*background: rgba(255,0,0,.3);*/
}

a.img {
    cursor: pointer;
    color: blue;
    /*background: rgba(255,255,0,.6);*/
}

a.img:hover {
    text-decoration: underline;
}

.imgView, .mapView {
    visibility: hidden;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.5);
    z-index: 9999;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.mapdiv {
    position: absolute;
    top: 0; bottom: 0; width: 50%;
    background: lightgray;
}

#oldmap {
    left: 0;
}

#newmap {
    right: 0;
}

.sideImg {
    left: 60%;
    top: 60px;
}


img.full {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin-left: auto; margin-right: auto;
    cursor: zoom-in;
}

img.zoom {
    position: absolute;
    cursor: zoom-in;
}

img.small {
    width: auto;
    height: auto;
    max-height: 50vh;
    max-width: 70%;
    display: block; /* float: right; padding: 10px; */
    margin-left: auto; margin-right: auto;
    cursor: pointer;
}

img.globe {
    cursor: pointer;
    float: left;
    height: 70px;
    margin-right: 15px;
}

img.globe + p, p.globe {
    font-weight: bold;
    hyphens: auto;
}

img.globe:hover {
    box-shadow: 0 0 5px black;
    background: rgba(255,255,255,0.5);
}

img.small:-webkit-full-screen {
    height:100%;
    width:auto;
    max-width:100%;
    max-height:100%;
}

img.small:-ms-fullscreen {
    width:auto;
    max-width:100%;
    height:100%;
    max-height:100%;
}

img.small:fullscreen {
    width:auto;
    height:100%;
}

.button {
    width: 32px;
    height: 32px;
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10000;
}

.fullButton {
    right: 42px;
    background: green;
    background-image: url('full.svg');
    background-size: cover;
}

.initViewButton {
    right: 79px;
    background: blue;
    background-image: url('sphere.svg');
    background-size: cover;
}

.closeButton {
    right: 5px;
    background: red;
    background-image: url('close.svg');
    background-size: cover;
}

/*
   navigációs fa
   checkboxok+ul, mint nyitható mappák 
*/
.navi {
    position: absolute;
    top: 60px;
    bottom: 0;
    left: 0; width: 300px;
    background: white;
    font-family: sans-serif;
    font-size: 10pt;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none; 
    overflow: auto;
    border-top: solid 2px gray;
}

.navi.closed {
    width: 0px;
    overflow: hidden;
}

.navi a, #fo a.gis {
    cursor: pointer;
    text-decoration: none;
    color: blue;
}
.navi a:hover, #fo a.gis:hover {
    color: red;
}

a.active {
    background-color: red;
    text-decoration: underline;
}

.navi ul {
    padding-left: 15px;
}

.navi ul input[type=checkbox] {
    display: none;
}

.navi ul input[type=checkbox]  ~ ul {
    display: none;
}

.navi ul input[type=checkbox]:checked  ~ ul {
    display: block;
}

.navi li>a {
    background: url('item.svg') 0 0 no-repeat;
    padding-left: 15px;
}

.navi li>label+a {
    padding-left: 0;
    background: none;
}

.navi ul input[type=checkbox] + label {
    background: url('plus.svg') 0 0 no-repeat;
    padding-left: 15px;
}
.navi ul input[type=checkbox]:checked + label {
    background-image: url('minus.svg');
}


.navi li {
    list-style: none;
    margin: 0; padding: 0;
}

img.scan {
    height: 100%;
    cursor: zoom-in;
}

.scanView {
    padding: 0;
    overflow: hidden;
    background: rgba(0,0,0,.5);
}

.scanView img {
    cursor: zoom-in;
}

.rotate-north {
    top: 65px;
    left: .5em;
}

dd {
    padding-bottom: 6px;
}

#middleButtons {
    position: absolute;
    z-index: 9999;
    bottom: 0; left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);    
    width: 25px;
}
#middleButtons button {
    position: relative;
    border: none;
    border-radius: 2px;
    width: 25px; height: 25px;
    margin-bottom: 5px;
    background-color: rgb(128, 158, 187);
    color: white;
    font-size: 18px;
    padding: 0;
    /*text-decoration: line-through;*/
}

#middleButtons button span {
    display: inline;
    position: absolute;
    top:0;left:0;bottom:0;right:0;
    text-align: center;
    background: url('wcross.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

#middleButtons button.checked span {
    display: none;
}
   

#middleButtons button[disabled] {
    background-color: #ccc;
}
#middleButtons button:enabled:hover {
    background-color: rgba(0,60,136,.7);
}

table.MsoTableGrid {
    margin-left: auto; margin-right: auto;
}
