html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Bree Serif', sans-serif;
    color: #2f2f2f;
}

.loadingPane {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 999999;
    top: 0;
    left: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

@-webkit-keyframes fadein {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

@-moz-keyframes fadein {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

@keyframes fadein {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.mkidn_info {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 9999;
    height: 100px;
    width: auto;
    pointer-events: none;
}

.loadingPane img {
    width: 200px;
    opacity: 1;

    -webkit-animation: fadein 1s ease-in alternate 10;
    -moz-animation: fadein 1s ease-in alternate 10;
    animation: fadein 1s ease-in alternate 10;
}

#mCSB_1_scrollbar_vertical {
    display: none!important;
}

#viewport {
    cursor: move;
    cursor: all-scroll;
    cursor: -webkit-grab;
}
#viewport:active {
    cursor: move;
    cursor: all-scroll;
    cursor:-webkit-grabbing;
}

.legend {
    width: 270px;
    height: 381px;
    background: url('../images/legenda.png') no-repeat center;
    position: absolute;
    left: 0px;
    top: 310px;
    z-index: 8;
    background-size: 100% 100%;
}

.legend_ul {
    list-style-type: none;
    padding-left: 40px;
    margin-top: 23px;
}

.legend_ul li {
    text-align: center;
    font-family: 'Bree Serif', sans-serif;
    position: relative;
    padding: 6px 0;
    font-size: 15px;
}

.legend_ul li:before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    left: -25px;
}

.legend_1:before {
    top: -4px;
    background: url('../buildings/budynek-2.png') no-repeat center;
    background-size: 25px;
}

.legend_2:before {
    top: 5px;
    background: url('../buildings/budynek-7.png') no-repeat center;
    background-size: 30px;
}

.legend_3:before {
    top: -4px;
    background: url('../buildings/budynek-3.png') no-repeat center;
    background-size: 25px;
}

.legend_4:before {
    top: 8px;
    background: url('../buildings/budynek-4.png') no-repeat center;
    background-size: 35px;
}

.legend_5:before {
    top: 5px;
    background: url('../buildings/budynek-5.png') no-repeat center;
    background-size: 37px;
}

.legend_6:before {
    top: 8px;
    background: url('../buildings/budynek-1.png') no-repeat center;
    background-size: 34px;
}

.legend_7:before {
    top: 5px;
    background: url('../buildings/budynek-6.png') no-repeat center;
    background-size: 32px;
}

.mainLogo {
    max-width: 260px;
    width: 100%;
    height: auto;
}

.mainLogo:hover {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.rightLegend {
    position: absolute;
    right: -35px;
    top: 0;
    height: 100%;
    z-index: 2;
}

.wrapper {
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

#viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wrapper {
    position: relative;
}

.mainLegend {
    margin: 0;
    top: 20px;
    left: 30px;
    background: transparent;
    position: fixed;
    z-index: 9;
}

.map-control {
    position: absolute;
    top: 30px;
    right: 30px;
    height: 75px;
    width: 30px;
    z-index: 9;
}

.map-control a {
    height: 23px;
    width: 23px;
    display: block;
    text-indent: -999em;
    position: absolute;
    outline: none;
    z-index: 2;
}

.map-control a.zoom {
    right: 0;
    top: 0;
    height: 60px;
    width: 60px;
    background: url('../images/Plus.png') center center no-repeat;
    background-size: 100%;
    padding: 0;

}

.map-control a.back {
    right: 0;
    top: 55px;
    height: 60px;
    width: 60px;
    background: url('../images//Minus.png') center center no-repeat;
    background-size: 100%;
    padding: 0;
}

.map-control a.blocked {
    opacity: 0.5;
    cursor: default;
}

#buildingTile {
    position:absolute;
    z-index: 9999;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background: repeat center center rgba(70,70,70,0.8);
    background-size: 100% auto;
    text-align:center;
    color:#fff;
    visibility: hidden;
    height:100%;
    opacity: 0;
    transition: all .3s;
    -webkit-transition: all .3s;
}

#buildingTile.show {
    visibility: visible;
    opacity: 1;
    transition: all .3s;
    -webkit-transition: all .3s;
}

#buildingTile .clickable {
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
}

#buildingTile .window {
    position:relative;
    width: 580px;
    left: 50%;
    margin-left: -290px;
    top: 5%;
    max-height: 90%;
    background: url('../images/karta_tekst.png') no-repeat center;
    background-size: 100% 100%;
    overflow-y: hidden;
}

#buildingTile p {
    color: #2f2f2f;
    font-family: 'Bree Serif', sans-serif;
    font-size: 18px;
    line-height: 1.2em;
    text-align: justify;
    justify-items: auto;
    font-weight: 400;
}

#buildingTile h2.title {
    font-family: "Bree Serif", sans-serif;
    color: #2f2f2f;
    text-align: center;
    font-size: 35px;
    line-height: 1em;
    letter-spacing: 2px;
}

#buildingTile p.first {
    margin-top: 20px!important;
    padding: 0 20px;
}

.building-image {
    width: 100%;
    text-align: center;
}

.building-image img {
    width: 50%;
    max-width: 100%;
    height: auto;
}

.building-image.icon img {
    width: 30%;
    max-width: 50%;
}

.buildingData {
    width: 85%;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.buildingScroll {
    overflow: auto;
    top: 0;
    height: 83%;
    margin: 5% 0;
    width: 100%;
}

div.text {
    width: 100%;
    text-align: left;
    padding-top: 40px;
    margin: 0 auto;
}

/* ANIMATIONS */
@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }

    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

@media (max-width: 1112px) {
    .mainLogo {
        width: 200px;
    }

    .legend {
        left: 0;
        top: 230px;
    }

    .map-control {
        top: 20px;
        right: 20px;
    }

    .mkidn_info {
        height: 80px;
    }
}

@media (max-width: 738px) {
    .mainLogo {
        width: 200px;
    }

    .mainLegend {
        position: absolute;
    }

    .legend {
        left: 0px;
        top: 180px;
    }

    .mkidn_info {
        height: 60px;
        bottom: 5px;
        right: 5px;
    }

}

@media (max-width: 414px) {
    .mainLegend {
        top: 8px;
        left: 14px;
    }

    .mainLogo {
        width: 150px;
    }

    #buildingTile .window {
        width: 375px;
        margin-left: -187px;
    }

    #buildingTile h2.title {
        font-size: 25px;
    }

    #buildingTile p {
        font-size: 15px;
    }

    .map-control {
        top: 10px;
        right: 10px;
    }

    .building-image.icon img {
        width: 25%;
    }
}

@media (max-width: 375px) {
    #buildingTile .window {
        width: 300px;
        margin-left: -150px;
    }
}

@media (max-width: 320px) {
    #buildingTile .window {
        width: 100%;
        margin: 0;
        left: 0;
    }
}