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;
    font-size: 100%;
}

#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: 9;
    text-shadow: 0 0 2vh 2vh #000;
}

#titleImg {
    object-fit: cover;
    filter: brightness(60%);
    position: relative;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    overflow: hidden;
}

#gallery {
    background-color: #1F1F1F;
    padding: 5vh 15vw 10vh 15vw;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    border-top: .6vh solid #ffe354;
}

@media only screen and (min-aspect-ratio: 1/1) {

    #galleryInfoContainer {
        width: 90%;
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        margin-bottom: 10vh;
    }

    #mainGallery {
        width: 90%;
        justify-content: center;
        align-items: center;
        align-content: center;
        display: flex;
        flex-flow: row wrap;
        margin-bottom: 15vh;
        user-select: none;
    }

    .galleryThumbnail {
        width: 18vw;
        height: 18vw;
        max-width: 18vw;
        max-height: 18vw;
        box-sizing: border-box;
        cursor: pointer;
        object-fit: cover;
        margin: 2vh;
        background-color: #2f2f2f;
        padding: 0.5vh;
        -webkit-box-shadow: 2px 3px 19px -5px rgba(0,0,0,0.75);
        -moz-box-shadow: 2px 3px 19px -5px rgba(0,0,0,0.75);
        box-shadow: 2px 3px 19px -5px rgba(0,0,0,0.75);
    }
}

@media only screen and (max-aspect-ratio: 1/1) {

    #galleryInfoContainer {
        display: flex;
        width: 90%;
        flex-flow: row wrap;
        justify-content: center;
        align-items: center;
        align-content: center;
        margin-bottom: 10vh;
    }

    #mainGallery {
        width: 95%;
        justify-content: center;
        align-items: center;
        align-content: center;
        display: flex;
        flex-flow: row wrap;
        margin-bottom: 15vh;
        user-select: none;
    }

    .galleryThumbnail {
        width: 80vw;
        height: 80vw;
        max-width: 80vw;
        max-height: 80vw;
        box-sizing: border-box;
        cursor: pointer;
        object-fit: cover;
        margin: 2vh;
        background-color: #F7F7F7;
        padding: 0.5vh;
        -webkit-box-shadow: 2px 3px 19px -5px rgba(0,0,0,0.75);
        -moz-box-shadow: 2px 3px 19px -5px rgba(0,0,0,0.75);
        box-shadow: 2px 3px 19px -5px rgba(0,0,0,0.75);
    }

    #galleryInfoImg {
        margin-bottom: 3vh;
    }
}

#galleryInfoImgContainer {
    flex: 1;
    position: relative;
    top: 3vh;
}

#galleryInfoImg {
    width: 30vh;
    height: auto;
    margin-right: 8vh;
}

#galleryInfo {
    flex: 4;
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
    color: #ffe354;
}

.galleryImg {
    max-width: 75vw;
    min-width: 30vw;
    max-height: 75vh;
    min-height: 30vw;
    transition: 0.5s;
    position: absolute;
    background-color: #2f2f2f;
    padding: 1%;
}

#galleryView {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    user-select: none;
    z-index: 10;
}

#pageCover{
    background-color: #000000;
    opacity: 0.8;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    z-index: 9;
    user-select: none;
}


#galleryImgs {
    transition: scale 1s;
    position: relative;
    left: auto;
    z-index: 11;
    display: flex;
    justify-content: center;
    align-items: center;
}

#galleryNext{
    width: 30%;
    height: 100%;
    position: absolute;
    top: 0%;
    right: 0%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 4rem;
    opacity: 0;
    transition: opacity 1s;
    cursor: pointer;
    z-index: 13;
}

#galleryPrev{
    width: 30%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 4rem;
    transition: opacity 1s;
    opacity: 0;
    cursor: pointer;
    z-index: 13;
}

#galleryNext:hover , #galleryPrev:hover{
    opacity: 1;
}

.arrow{
    margin: 10%;
    box-sizing: border-box;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    border-radius: 50%;
    color: #ffe354;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 13;
}

.closeX{
    position: absolute;
    top: -1rem;
    right: -1rem;
    margin: 0%;
    font-size: 3.5vh;
    cursor: pointer;
    color: #ffe354;
}

@keyframes arrows{
    100% {opacity: 1}
    0% {opacity: 0}
}

.arrows{
    opacity: 0;
}

@keyframes dots{
    0% {opacity: 0;}
    100% {opacity: 1;}
}

.dots{
    animation: dots 0.5s;
    -webkit-animation: dots 0.5s;
    transition: opacity 1s;
}

.dots:hover{
    opacity: 1;
}

@media only screen and (max-aspect-ratio: 1/1){
    .galleryThumbnail {
        width: 100%;
        height: 65vw;
    }

    #mainGallery {
        padding-top: 10vw;
    }

    .galleryInfoContainer {
        margin: 8vh 0vh 8vh 0vh;
        display: flex;
        width: 95%;
        flex-flow: row wrap;
        justify-content: center;
        align-items: center;
        align-content: center;
    }
}

@media only screen and (min-aspect-ratio: 1/1) {

    .galleryInfoContainer {
        margin: 8vh 0vh 8vh 0vh;
        display: flex;
        width: 55%;
        flex-flow: row wrap;
        justify-content: center;
        align-items: center;
        align-content: center;
    }
}

#postCounter {
    font-size: 2.5vh;
    display: flex;
    flex-flow: row nowrap;
}

#postNum {
    margin-right: 0.5vh;
    margin-left: 0.5vh;
}