html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    scroll-behavior: smooth; /*gjør at "back to top"-knappen scroller til toppen i en smooth bevegelse*/
    overflow-x: hidden; /*gjør at alt som ikke får plass på skjermen i x-aksen, skjules*/
    overflow: initial;
}

#whole-page {
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    background-color: #1F1F1F;
}



/*-----------------------------------------------------------------------------------*/


#titleScreen {
    height: 65vh;
    overflow: hidden;
    text-align: center;
    position: relative;
}


#titleScreen h1 {
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #ffe354;
    font-size: 12vh;
    position: absolute;
    top: 25vh;
    z-index: 100;
    text-shadow: 0 0 2vh 2vh #000;
}

#titleImg {
    object-fit: cover;
    filter: brightness(55%);
    position: relative;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    overflow: hidden;
}

#infoContainer {
    padding: 5vh 15vw 10vh 15vw;
    font-family: 'Montserrat', sans-serif;
    color: #ffe354;
    border-top: .6vh solid #ffe354;
}

#infoContainer h1 {
    font-weight: 600;
}

#infoContainer p {
    font-weight: 400;
    font-size: 2vh;
    text-align: justify;
    line-height: 1.8;
    word-spacing: .3vw;
}

.profileContainer {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    color: #ffe354;
}

.profile {
    height: 50vh;
    width: 20vh;
    min-width: 300px;
    min-height: 300px;
    box-sizing: border-box;
    background-color: #1F1F1F;
    border: .3vh solid #ffe354;
    padding: 0 .5vw 2vh .5vw;
    margin: 5vh 6vw 12vh 6vw;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column nowrap;
}

.imgHolder {
    width: 100%;
    flex: 20%;
    position: relative;
}

.img {
    width: 55%;
    height: auto;
    position: absolute;
    top: -150%;
    left: 22.5%;
    border: .3vh solid #ffe354;
}

.profileInfo {
    width: 100%;
    flex: 80%;
    text-align: center;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
}

.profileName {
    width: 100%;
    height: 10%;
}

.profileRole {
    width: 100%;
    height: 5%;
    text-decoration: underline;
    margin-bottom: -2%;
}

.profileBirth {
    width: 100%;
    height: 5%;
}

.profileQuote {
    width: 80%;
    height: 30%;
    font-style: italic;
}

@media only screen and (max-aspect-ratio: 1/1) {
    #titleScreen {
        height: 65vh;
        overflow: hidden;
        text-align: center;
        position: relative;
    }

    #infoContainer {
        padding: 5vh 2vw 10vh 2vw;
    }

    #infoContainer p {
        font-weight: 400;
        font-size: .8vh;
        text-align: justify;
        line-height: 1.8;
        word-spacing: .1vw;
    }

    .img {
        width: 75%;
        height: auto;
        position: absolute;
        top: -220%;
        left: 12%;
        border: .3vh solid #ffe354;
    }

    .profile {
        height: 30vh;
        width: 25vh;
        margin: 5vh 4vw 12vh 4vw;
    }

}