.pagetop {
    height: 60vh;
    margin-bottom: 9px;
}

.toptext {
    padding: 40px 0 0 25px;
}

.topheader {
    padding-bottom: 10px;
    margin-top: 0;
}

.topheader p {
    line-height: 24px;
    font-size: 24px;
    color: #005842;
    font-weight: 700;
    font-style: normal;
}

.topx {
    right: -30px;
    z-index: 99;
    width: 150px;
}

.topx img {
    max-width: 100%;
}

.topblue {
    margin-left: 35px;
    background-color: #3db7e4;
    padding: 15px 15px 10px 15px;
    display: inline-block;
    width: auto;
}

.topblue p {
    line-height: 20px;
    font-size: 18px;
    padding-bottom: 0px;
    margin-bottom: 5px;
    color: #fff;
    font-weight: 400;
    font-style: normal;
}

.topbyline p {
    font-size: 14px;
    color: #005842;
    line-height: 120%;
    margin-bottom: 5px;
    font-weight:400;
    font-style: normal;
    text-shadow: 0 0 10px #fff;
}

.topbyline {
    display: inline-block;
    padding-left: 10px;
    margin-left:35px;
}

.bluewrapper {
    display: block;
    margin-bottom:15px;
}

.topimage {
    height: calc(100% - 30px);
    z-index: -1;
    width: 100%;
    bottom: 0px;
    background-repeat: no-repeat;
    background-size: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.topoverlay {
    bottom: 0px;
    height: 100%;
    overflow: hidden;
}

.topoverlay img {
    height: 100%;
    width: auto;
}

/* Responsive styles (mobile-first)
@media screen and (max-width: 767px) {
    .bluewrapper {
        position: absolute;
        bottom: 10px;
        z-index: 9999;
    }

    .topheader {
        margin-top: 20px;
    }

    .topblue {
        margin-left: 0px;
        position: absolute;
        bottom: 58px;
    }

    #kandidat span:not(:first-child) {
        padding-left: 0px;
    }

    .topoverlay {
        height: 50vh;
        width: 100%;
        transform: translateY(-45%);
        left: 0px;
        top: 0px;
    }

    .topoverlay img {
        width: 100%;
        height: auto;
    }
} */

@media screen and (max-width: 991px) {

    .topx {

        left:0px;
        top: 110%;
        z-index: 99;
        width: 150px;
    }

    .toptext {
        position: absolute;
        top: 80px;
        width:100vw;
        z-index: 9999;
        white-space: nowrap;
    }

    .topoverlay {
        display:flex;
        align-items: end;
        justify-content: end;
        height: 60vh;
        width: 100%;
        transform: translateY(-30vh);
        left: 0px;
        top: 0px;
    }

    .topoverlay img {
    height: auto;
    width: 65%;
    object-fit: contain;
    }

    .bluewrapper {

    }

    .topblue {
        margin-left: 0px;
        margin-bottom:10px;

    }

    .topbyline {
        margin-left: 0px;
    }

    .topheader {
        margin-top: 10px;
    }

    .topblue {

    }
}

/* Media queries for breakpoints 
@media screen and (min-width: 768px) {
    .pagetop {
        height: 250px;
        margin-bottom: 9px;
    }

    .toptext {
        padding: 60px 0 0 25px;
    }

    .topheader {
        padding-bottom: 10px;
        margin-top: 0;
    }

    .topheader p {
        line-height: 32px;
        font-size: 45px;
    }

    .topx {
        z-index: -1;
        right: 0px;
    }

    .topblue {
        padding: 10px 15px 0px 15px;
    }

    .topblue p,
    .topbyline p {
        font-size: 18px;
        margin-bottom: 12px;
    }
}
*/
@media screen and (min-width: 992px) {
    .pagetop {
        height: 400px;
    }

    .toptext {
        padding: 80px 0 0 25px;
    }

    .topheader {
        padding-bottom: 5px;
    }

    .topheader p {
        line-height: 56px;
        font-size: 60px;
    }

    .topblue {
        padding: 20px 15px 10px 15px;
    }

    .topblue p,
    .topbyline p {
        font-size: 32px;
        margin-bottom: 12px;
    }
}

@media screen and (min-width: 992px) {
.topx {
                top: 210px;
}

@media screen and (min-width: 1200px) {
    .toptext {
        padding: 80px 0 0 45px;
    }

    .topheader p {
        line-height: 65px;
        font-size: 56px;
    }

    .topx {
        right: -30px;
        top: 30px;
        width: 285px;
        z-index: 1;
    }

    .topblue {
        max-width: 500px;
    }

    #kandidat span {
        padding: 10px 20px 20px 20px;
        line-height: 80%;
    }
}

@media screen and (min-width: 1400px) {
    .toptext {
        padding: 90px 0 0 25px;
    }

    .topheader {
        padding-bottom: 15px;
    }

    .topheader p {
        line-height: 72px;
        font-size: 80px;
    }

    .topblue {
        max-width: 650px;
    }
}