:root {
    --whiteColor: #f9f8f2; /* var(--whiteColor) */
    --secondaryColor: #18101e; /* var(--secondaryColor) */
    --hlColor: #459f74; /* var(--hlColor) */
    --offBlackColor: #100f13; /* var(--bgColor) */
    --navSel: coral;
    --headerPos: fixed; /* breyta í sticky og fjarlægja animation á mobile fyrir safari? */
    --headerHeight: 55px;
    --navPadding: 0 1.25%;
    
    --titleHeight: 80%;
    
    --contactSheetLength: max-content;
    --contactSheetPadding: 0 25px;
    
}

@font-face {
    font-family: "Futura";
    src: url("fonts/FuturaCon-Boo.woff");
    font-weight: lighter;
    
}
@font-face {
    font-family: "Futura";
    src: url("fonts/Futura-Dem.woff");
    font-weight: normal;
    
}
@font-face {
    font-family: "Futura";
    src: url("fonts/Futura-Bol.woff");
    font-weight: bold;
}

html {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    
    font-family: "Futura", sans-serif;
    font-weight: normal;
    font-size: 1rem;
    
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    
    overflow-x: hidden;
}
html:-webkit-scrollbar {
    display: none;
}

body {
    background-color: #1b1b1b;
    height:100dvh;
    width: 100vw;
    margin: 0;
    
    
}

@media (max-width: 760px){
    html{font-size: 0.7rem;}
    :root {
        --headerHeight: 80px;
        --titleHeight: 40%;
        --navPadding: 0 5%;
        --contactSheetLength: 100vw;
        --contactSheetPadding: 0 0;
        
    }
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-flow: rows;
        grid-auto-rows: 1fr;
        height: 70%;
    }
    .nav {
        bottom: -5px;
    }
    .modalText {
        bottom: 5px;
    }

}
@media (width >= 761px) {
    #LandingContactSheet {
        padding: 0 25px;
    }
    .gallery {
        grid-template-rows: repeat(2, 1fr);
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        height: 80%;
    }
    .nav {
        top: 50%;
    }
    .modalText {
        bottom: 30px;
    }

}

#backgroundContainer {
    position: fixed;
    height: 100dvh;
    width: 100vw;
    background-image: linear-gradient(to bottom, var(--offBlackColor), var(--secondaryColor));
    
    z-index: -1;
}
/* HEADER REVEAL MARKER */
#topMarker {
    height:1px;
}
#graphicsMarker {
    position: absolute;
    top: 150vh;
    height:1px;

}
#logosMarker {
    position: absolute;
    top: 250vh;
    height:1px;
}
#motionMarker {
    position: absolute;
    top: 350vh;
    height:1px;
}
/* HEADER */
#header {
    
    top: calc(-1 * var(--headerHeight));
    z-index: 99;
    
    display: flex;
    position: fixed;
    height: var(--headerHeight);
    width: 100%;
    
    align-items: center;
    background-color: black;
    
    transition: top 0.5s ease;
}
#header.reveal {
    top: 0;
}

/* TITLE - HEADER */
.titleContainer {
    display: flex;
    position: relative;
    
    height: 100%;
    width: auto;
    padding-left: 25px;
}
.titleContainer a { display:flex;}
.titleContainer img {
    margin: auto;
    height: var(--titleHeight);
    object-fit: contain;
}

/* NAVIGATION - HEADER */
.navBar {
    
    height: auto;
    width: 100%;
    margin: 0;
    padding-right: 25px;
    text-align: right;
    font-family: "futura", sans-serif;
    font-weight: normal;
    font-size: 1.2rem;
}
.navBar a {
    padding: var(--navPadding);
    line-height: 2rem;
    text-decoration: none;
    color: var(--hlColor);
    transition: color 0.5s ease;
}
.navBar a:hover {
    color: var(--whiteColor);
}
.navBar #contactNav { color: var(--whiteColor);}


#contactNav:hover { color: coral;}


#graphicsNav.highlight { color: coral;}
#logosNav.highlight { color: coral;}
#motionNav.highlight { color: coral;}
#contactNav.highlight { color: coral;}


/* Contact */
#landingContactSheet {
    
    position: fixed;
    display: flex;
    
    justify-content: center;
    align-items: center;
    top: 0;
    right: -100vw;
    
    height: 55px;
    width: var(--contactSheetLength);
    padding: var(--contactSheetPadding);
    background-color: coral;
    transition: right 0.8s ease;
    
    font-size: 1.2rem;
    font-family: "futura", sans-serif;
    font-weight: normal;
    
    z-index: 2;
} 
#landingContactSheet.reveal { right: 0;}
#landingContactSheet a {
    display: block;
    
    text-decoration: none;
    color: black;
}
#landingContactSheet a:hover { color: var(--whiteColor);}

/* nav bar contact sheet*/
#contactSheet {    
    position: fixed;
    display: flex;
    
    
    
    top: -100px;
    right: 0;
    text-align: center;
    justify-content: center;
    
    height: auto;
    width: var(--contactSheetLength);
    padding: var(--contactSheetPadding);
    
    background-color: coral;
    transition: top 0.8s ease;
    
    font-family: "futura", sans-serif;
    font-weight: normal;
    font-size: 1.2rem;
    
    z-index: 2;
} 
#contactSheet.reveal { top: var(--headerHeight);}
#contactSheet a {
    display: block;
    
    text-decoration: none;
    color: black;
    

} #contactSheet a:hover { color: var(--whiteColor);}


/* MAIN CONTENT */

.windowContainer {

    height: 100%;
    width: 100%;
    
    
    
    
}
/* SECTIONS */
.section {
    scroll-snap-align: start;
    
    height: 100vh;
    width: 100vw;
}


.sectionTitle {
    padding-top: calc(var(--headerHeight) - 20px);
    width: 100vw;
    padding-left: 25px;
    font-size: 2rem;
    background-image: url("images/blackLiquid.gif");
 
    background-size: cover;
    background-repeat: no-repeat;


    font-family: "Futura", sans-serif;
    font-weight: bold;
}
.sectionTitle p{
    
    opacity: 1;
    width: max-content;
    
    color: var(--hlColor);
    
}
.sectionTitle p span { font-weight: normal; position: relative; font-size: 1.2rem; padding-left: 25px; color: var(--whiteColor); }


/*section specifics*/
#landing {
    position: relative;
    background-image: url("images/landingLiquid.gif");
    background-size: cover;
    background-repeat: no-repeat;
}
.mainBanner {
    
    top: min(30vh, 30vw);
    display: flex; /*flex*/
    position: relative;
    width: 100%; /*75% mobile*/
    height: auto;
    
    transition: top 0.6s ease;
    
}
#titleBanner.hide {top: -75%;}
#leftBanner {
    padding: 0 0 0 5%;
    width: 70%;
}
#leftBanner img {
    display: block;
    margin: 0;
    
    width: 100%;
    height: auto;
    
    object-fit: contain;
}
ul { padding-left: 5vw;}
#landingNav {
    position: relative;
    list-style-type: none;
    margin:0;
    
    text-align: left;
    width: 5%;
    padding-top: 1.5%;
}
#landingNav a {
    
    font-size:min(4.5vw, 5vh);
    
    text-decoration: none;
    
    font-family: "futura", sans-serif;
    font-weight: normal;
    line-height: 1.5;
    
    color:  var(--hlColor);
} 
#landingNav a:hover {
    color: coral;
}
#landingContactNav {
    color: var(--whiteColor);
}
#landingContactNav.highlight {
    color: coral;
}

.aboutText{
    margin: -2rem 0 0 10% ;
    display: inline-block;
    position: relative;
    
    width: 90%;
    height: auto;
    
    text-align: right;
    
    font-family: "Futura", sans-serif;
    font-weight: normal;
    font-size: 2rem;
    
    
    color: var(--whiteColor);    
}
.gallery {
    
    margin: auto;
    display: grid;
    
    width: 95%;
    
    object-fit: cover;
    position: relative;

    gap: 1.2vw;
}
.album {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
.album img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}
.modal {
    position: fixed;
    inset: 0;
    background: rgba(37, 35, 35, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
    
    transition: opacity 0.2s ease;
}

#modalVideo {
    max-width: 90%;
    max-height: 80%;
}

.modalText {
    display: block;
    position:absolute;
    
    padding: 0 15vw;
}

#modalText {
    font-family: "Futura";
    font-weight: normal;
    
    color: #c0c0c0;
}

.nav {
    position: absolute;
    
    font-size: 3rem;
    color: var(--hlColor);
    cursor: pointer;
    transform: translateY(-50%);
    user-select: none;
    z-index: 2;
}
.nav:hover {
    color: coral;
}

.nav.needless { display: none;}

.prev { left: 30px; }
.next { right: 30px; }

.close {
    position: absolute;
    top: 90px;
    right: 30px;
    font-size: 3rem;
    color: var(--hlColor);
    cursor: pointer;
}
.close:hover {
    color: coral;
}
#pageNumber {
    font-family: "Futura";
    font-weight: normal;
    
    position: absolute;
    top: 120px;
    right: 30px;
    font-size: 1rem;
    color: #c0c0c0;
    cursor: none;
}