body {
  margin: 0;
  background: #FFF;
  /* background: #f8f8f8; */
}

.custom-app {
    display: block;
    position: relative;
}

.blink {
  animation: blinker 0.8s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}


.elmnt-arrow {
    width: 100%;
    position: absolute;
    z-index: +1;
    top: 95vh;
    padding-left: 1px;
    text-align: -webkit-center;
    text-align: -moz-center;
    text-align: center;
    background: #fff;
}

.elmnt-arrow img {
    width: 25px;
    padding: 20px;
}


/* used */
.elmnt-wrapper {
    display: block;
    position: relative;
    height: 100vh;
    overflow: auto;
    -webkit-transition: background-color 1s linear;
    -moz-transition: background-color 1s linear;
            transition: background-color 1s linear;
}

.elmnt-wrapper-vid {
    position: relative;
    /* display: none; */
    height: 100vh;
    overflow: auto;
    -webkit-transition: transform 1s ease;
    -moz-transition: transform 1s ease;
            transition: transform 1s ease;
}

#video-start-layer {
    position: absolute;
    z-index: +2;
}

/*  media full  */
.elmnt-media-wrapper-full {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}


.img-filter {
    /* filter: grayscale(100%) blur(5px) brightness(0.3); */
    filter: brightness(0.3) grayscale(100%) !important;

    /* Enable hardware acceleration to fix laggy transitions */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}
.img-filter-end {
    /* filter: grayscale(0%) blur(0px) brightness(1); */
    filter: brightness(1) grayscale(100%) !important;
}

.elmnt-media-full {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    filter: brightness(0.75);
}

@media screen and (max-aspect-ratio: 1920/1080) {
    .elmnt-media-full {
        height: 100%;
    }
}
@media screen and (min-aspect-ratio: 1920/1080) {
    .elmnt-media-full {
        width: 100%;
    }
}

/*  media standard   */
.elmnt-media-wrapper-standard {
    text-align: -webkit-right;
}
.elmnt-media-standard {
    margin-top: 10vh;
    width: 100%;
}

/* used */
.elmnt-layer {
    /* position: absolute; */
    z-index: +1;
    width: 100%;
    /* height: 100vh; */
}

/* used */
.elmnt-h {
    font-family: b-sanomat-sans-bold;
    /* margin-top: 50px; */
    color: rgb(32, 23, 72);
    /* text-align: center; */
    font-size: 35px;
    -webkit-transition: opacity 1s ease;
    -moz-transition: opacity 1s ease;
            transition: opacity 1s ease;
    margin-top: 14px;
}

.elmnt-h z {
    color: #E30513;
}

.elmnt-h-box {
    position: relative;
    width: 60%;
    margin-left: calc(50vw - (60%/2));
    /* border: 3px solid rgb(32, 23, 72); */
    /* padding-top: 9px;
    padding-bottom: 9px;
    padding-left: 11px;
    padding-right: 11px; */
    text-align: center;
    background: #FFF;
}

.elmnt-h-box-border {
    position: absolute;
    width: 1px;
    height: 1px;
    width: calc(100% - 4px);
    height: calc(100% - 3px);
    border: 3px solid rgb(32, 23, 72);
    border-top: unset;
    /* padding-top: 9px;
    padding-bottom: 9px;
    padding-left: 11px;
    padding-right: 11px; */
}

.elmnt-h-box-border-top {
    border-top: 10px solid rgb(32, 23, 72);
    transform: scaleX(0);
    -webkit-transition: transform 1s ease;
    -moz-transition: transform 1s ease;
            transition: transform 1s ease;
}

#border-1 {
    width: 0;
    height: 0;
    border: unset;
    border-left: 3px solid rgb(32, 23, 72);
}

.elmnt-h-box-txt {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

#kapitel1 .elmnt-h-box {
    margin-top: 33vh;
}

.elmnt-line {
    width: 3px;
    /* height: calc(100% - 84px); */
    height: 100px;
    background: rgb(32, 23, 72);
    margin-left: 50%;
}

#kapitel1 .elmnt-line:last-of-type {
    height: 50vh;
}

#kapitel2 .elmnt-line:last-of-type {
    height: 50vh;
}

#kapitel3 .elmnt-line:last-of-type {
    height: 50vh;
}

#kapitel4 .elmnt-line:last-of-type {
    height: 50vh;
}

.elmnt-line-h {
    background: rgb(32, 23, 72);
    height: 3px;
    width: 60%;
    transform: scaleX(0);
    margin-left: calc(50vw - (60% / 2));
    -webkit-transition: transform 1s ease;
    -moz-transition: transform 1s ease;
            transition: transform 1s ease;
}

/* #kapitel1 .elmnt-line:nth-child(2) {
    margin-bottom: 100vh;
} */

#line-1 {
    height: 0px;
}

#line-7, #line-32, #line-42 {
    height: 50vh;
}

#line-1, #line-10, #line-31 {
    margin-bottom: 100vh;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
            transition: all 1s ease;
}

.elmnt-h-top {
    margin-top: 50px;
}

.elmnt-h-bottom {
    margin-top: 50vh;
}

.elmnt-h-full {
    text-align: center;
    /* maybe like this? */
    /* background: rgba(0, 0, 0, 0.8); */
    padding: 10px;
    width: 50%;
    margin-left: 25%;
}

.elmnt-h-standard {
    text-align: initial;
    max-width: calc(50% - 10px);
    margin-left: 20px;
}

/* used */
.elmnt-t {
    text-align: center;
    font-family: b-sanomat-sans-r;
    line-height: 19px;
    width: 30%;
    /* margin-left: 20px; */
    margin-left: calc(50vw - (30% / 2) - 20px);
    white-space: pre-line;
    /* this one */
    color: #000;
    /* background: rgba(255, 255, 255, 0.8); */
    padding: 20px;
    font-size: 20px;
    line-height: 25px;
    -webkit-transition: opacity 1s ease;
    -moz-transition: opacity 1s ease;
            transition: opacity 1s ease;
}

#videre .elmnt-t {
    font-family: b-sanomat-sans-bold;
    padding-bottom: 0px;
    color: rgb(32, 23, 72);
}

.elmnt-t-a {
    font-family: b-sanomat-sans-r !important;
    font-size: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 90%;
    margin-left: calc(50vw - (90% / 2) - 20px);
    color: blue !important;
    text-decoration: underline;
    cursor: pointer;
}

.elmnt-t-a:hover {
    color: #999 !important;
}

.elmnt-t-a:last-of-type {
    margin-bottom: 50vh;
}

/* used */
.elmnt-t-p {
    position: relative;
    z-index: 2;

    background: rgb(32, 23, 72);
    color: #FFF;
    /* opacity: 0; */
}

.elmnt-t-word {
    font-family: b-sanomat-sans-bold;
    font-size: 30px;
    color: #E30513;
}

.tint-element {
    position: absolute;
    z-index: +1;
    width: 100%;
    height: calc(100% - 10px);
    background: rgba(32, 23, 72, 0.2);
    pointer-events: none;
}

.elmnt-p-img {
    margin-top: 33px;
    margin-bottom: 33px;
    width: 50%;
    margin-left: calc(50vw - (50% / 2) + 1.5px);
    border: 3px solid rgb(32, 23, 72);
    opacity: 1;
    -webkit-filter: grayscale(1);
    -moz-filter: grayscale(1);
    filter: grayscale(1);
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
            transition: all 1s ease;
}

.elmnt-p-img-outer {
    position: relative;
    display: inline-block;
    width: 100%;
}

.elmnt-img-t {
    position: absolute;
    z-index: 2;
    background: #FFF;
    padding-top: 2px;
    padding-bottom: 0px;
    font-size: 12px;
    font-style: italic;
    line-height: 15px;
    bottom: 40px;
}

#kapitel2 .elmnt-p-img {
    margin-top: -30px;
}

#kapitel4 .elmnt-p-img:not(:last-child) {
    margin-top: -30px;
}

/* #kapitel4 .elmnt-p-img {
    margin-top: -30px;
}

#kapitel4 .elmnt-p-img:not(:last-of-type) {
    margin-top: -30px;
} */

#kapitel1 .elmnt-p-img:first-of-type {
    -webkit-filter: grayscale(0);
    -moz-filter: grayscale(0);
    filter: grayscale(0);
}

.elmnt-graf {
    position: relative;
    width: 50%;
    height: 350px;
    margin-left: calc(50vw - (50% / 2) - 20px);
}

.elmnt-graf-bar:not(:first-of-type) {
    float: left;
    font-size: 14px;
    line-height: 18px;
    width: calc(100% / 4);
    /* margin-left: calc(60% / 4 - (50px / 4)); */
}

#gt-7 {
    position: absolute;
    margin-top: -20px;
    margin-left: -10px;
    color: #000 !important;
}

.elmnt-graf-bar:first-of-type {
    margin-bottom: 30px;
    padding-top: 10px;
    border-top: solid 3px rgb(32, 23, 72);
}

.elmnt-graf-bar:not(:first-of-type) .elmnt-graf-bar-inner {
    margin-top: 210px;
    color: #FFF;
    height: 20px;
    background: rgb(32, 23, 72);
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
            transition: all 1s ease;
}

.elmnt-graf-bar:last-of-type .elmnt-graf-bar-inner {
    background: #E30513;
}

.elmnt-map {
    width: 100%;
    height: 587px;
    border-bottom: solid 2px rgb(32, 23, 72);
    border-top: solid 2px rgb(32, 23, 72);
}

.leaflet-popup-content {
    width: 200px !important;
}

.leaflet-popup-content img {
    margin-top: 20px;
    width: 200px;
}

.leaflet-container {
    font-family: 'b-sanomat-sans-r' !important;
    font-size: 14px !important;
}

.elmnt-p-app {
    /* margin-top: calc(100vh/2); */
    /* height: 100vh; */
    width: 50%;
    margin-left: calc(50vw - (50% / 2) - 20px);
}

.elmnt-p-app-h {
    font-family: b-sanomat-sans-bold;
    font-size: 25px;
    margin-bottom: 10px;
}

.elmnt-p-app-box {
    opacity: 0;
    /* margin-bottom: 50vh; */
    background: #FFF;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    color: #E30513;
    border: solid 3px rgb(32, 23, 72);
    -webkit-transition: opacity 1s ease;
    -moz-transition: opacity 1s ease;
            transition: opacity 1s ease;
}

.elmnt-p-app .elmnt-line {
    height: 50vh;
    /* margin-left: calc(50% + 1.5px); */
}

.elmnt-byline-h {
    font-family: b-sanomat-sans-bold;
    padding-bottom: 0px;
    color: rgb(32, 23, 72);
}

.elmnt-byline-t {
    padding-bottom: 0px;
}

.elmnt-byline-t:last-of-type {
    margin-bottom: 20px;
}

.elmnt-byline-logo {
    width: 40%;
    margin-left: calc(50vw - (40% / 2));
}

.elmnt-t z {
    /* background: #666; */
    /* color: red; */
    font-family: b-sanomat-sans-bold;
    color: #E30513;
    text-shadow: none;
}




#z-link1 {
    cursor: pointer;
    text-decoration: underline;
}

#z-link2 {
    cursor: pointer;
    text-decoration: underline;
}



.custom-app z-logo {
    font-family: b-sanomat-serif-black;
    font-size: 40px;
}



@media (max-width: 340px) {
    .elmnt-h {
        font-size: 29px;
    }
}

@media (max-width: 450px) {

    .elmnt-map {
        position: relative;
        width: 90%;
        height: 75vh;
        margin-left: calc(50vw - ((90% + 4px) / 2));
        border-left: solid 2px rgb(32, 23, 72);
        border-right: solid 2px rgb(32, 23, 72);
    }

    .elmnt-p-img {
        width: 100%;
        margin-left: 0;
        border-left: unset;
        border-right: unset;
        margin-top: 0px !important;
    }

    .elmnt-p-img:not(:first-of-type):not(#kapitel3-img-13):not(#kapitel4-img-19) {
        border-top: unset;
    }

    .elmnt-h-box-border {
        width: calc(100% - 3px);
    }

    .elmnt-h-box {
        width: 90%;
        margin-left: calc(50vw - (90%/2));
    }

    .elmnt-line-h {
        width: 90%;
        transform: scaleX(0);
        margin-left: calc(50vw - (90% / 2));
    }

    .leaflet-control-zoom {
        display: none;
    }

    .elmnt-byline-logo {
        width: 90%;
        margin-left: calc(50vw - (90% / 2));
    }

    .elmnt-t-p {
        width: calc(100% - 40px) !important;
    }

    .elmnt-arrow {
        top: 80vh;
    }


    /* old stuff */

    .elmnt-layer {
        width: calc(100% - 10px);
        margin-left: 5px;
        margin-top: 50px;
    }

    .elmnt-svg {
        width: calc(100% - 10px);
        margin-top: 5px;
        margin-left: 5px;
    }

    .elmnt-wrapper {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .elmnt-menu {
        bottom: initial;
    }
    .elmnt-menu div {
        height: 10px;
    }
    .elmnt-h-full {
        width: 70%;
        margin-left: calc(15% - 5px);
    }
    .elmnt-t {
        /* width: calc(100% - 15px); */
        width: calc(100% - 42px);
        margin-left: 0;
    }
    .elmnt-media-wrapper-standard {
        padding-top: 20px;
    }

    .elmnt-byline {
        bottom: 15px;
    }

    .elmnt-time-bar {
        width: calc(90% - 7px);
        margin-top: 10px;
        margin-left: calc(50vw - 22px - (90% / 2));
        background: #000;
        padding: 20px;
    }

    .elmnt-button {
        margin-bottom: 5px;
    }

    .elmnt-button:last-child {
        margin-bottom: 70px;
    }

    .elmnt-top-nav {
        position: fixed;
        z-index: +3;
        background: rgba(0, 0, 0, 0.5);
        top: 0;
        width: calc(100% - 53px);
    }
}

/* exclude hover styles from phone */
@media(min-width: 451px) {
    .elmnt-button:hover {
        background: #FFF;
        color: #000;
        -webkit-transition: all .5s;
        -moz-transition: all .5s;
                transition: all .5s;
    }

    .elmnt-call-audio-button:hover {
        background: #FFF;
        color: #000;
        -webkit-transition: all .5s;
        -moz-transition: all .5s;
                transition: all .5s;
    }

}

@media(max-width: 550px) {
    .elmnt-graf {
        width: 100%;
        margin-left: 0;
        padding: 0;
        margin-bottom: 60px;
    }

    .elmnt-graf-bar:not(:first-of-type) {
        width: calc(100% / 4);
    }
}

@media(max-width: 600px) {
    .elmnt-menu div {
        border-left: solid 1px rgba(0, 0, 0, 0);
    }
}

/* @media(min-width: 400px) and (max-width: 750px) {
    .elmnt-t {
        width: calc(50% - 15px);
    }
} */

@media (max-width: 920px) {
    /* .elmnt-menu {
        width: 100%;
        left: 4px;
    }
    .elmnt-menu div {
        margin-right: initial !important;
    } */
}

@media (min-width: 1600px) {
    .elmnt-svg {
        width: 30%;
        margin-left: calc(50vw - -8px - (30% / 2));
    }
}

@media (min-width: 1080px) {
    .elmnt-media-wrapper-standard {
        margin-left: calc(50% - (1080px / 2));
        width: 1080px;
    }
}
