/* || GENERAL STYLES */


:root {

	--background-color: rgb(253,253,253);


	font-family: "futura-pt", sans-serif;
	font-weight: 500;
	font-style: normal;

	background: var(--background-color);    
	display: block;
}

body {
	overflow: hidden;
	box-sizing: border-box;

	margin: 0;
	padding: 0;

	height: 100vh;
	width: 100vw;

	z-index: 0;


	position: fixed;
	top: 0;

}

h1 {
	all: unset;

	font-weight: 600;
	font-size: 4.8em;
	letter-spacing: 0.03em;
}

h2, h3 {
	all: unset;

	margin-inline: none;

	display: block;
	user-select: none;
}

img {
	max-width: 100vw;
	max-height: 100vh;
}

a {
	text-decoration: none;
	color: inherit;
}

object, img {
	-webkit-user-select: none; /* Safari */
	-ms-user-select: none; /* IE 10 and IE 11 */
	user-select: none; /* Standard syntax */

	-webkit-user-drag: none;
	-khtml-user-drag: none;
	-moz-user-drag: none;
	-o-user-drag: none;
	user-drag: none;
}

em {
	all: unset;

	font-size: 1.15em;
	font-weight: 500;
}


.date {
    opacity: 50%;
    font-weight: 500;
    margin-block: 1em;
    text-transform: lowercase;
}



/* || UTILITIES */


.hidden {
	display: none !important ;
	visibility: hidden !important;
	opacity: 0 !important;
}

.no-select {
	-webkit-user-select: none; /* Safari */
	-ms-user-select: none; /* IE 10 and IE 11 */
	user-select: none; /* Standard syntax */
}

.accelerated {
	transform: translate3d(0, 0, 1px);
	backface-visibility: hidden;
}







/* || HOME PAGE SPECIFIC */

#front-page {
	position: absolute;
	left: 0px;
	top: 0px;

	width: 100vw;
	height: 100vh;

	margin: 0;

	display: flex;
    flex-wrap: nowrap;

	column-gap: 0.5em;

	justify-content: center;
	align-items: center;
}

header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;

	padding-top: 0.6em;
	padding-right: 2em;
	padding-left: 1em; 
	
	text-align: right;

	display: flex;
	align-items: center;


	transition: top 1000ms cubic-bezier(.8,0,.4,1);

	z-index: 1;
}

#header-logo {
	font-size: 2em;
	font-weight: 500;

	margin-right: auto;

	text-transform: lowercase;
}

#header-logo:hover {
    cursor: pointer;
}

header span {
	font-weight: 500;
	font-size: 1em;

	text-transform: lowercase;

	margin: 0 0.8em;

	opacity: 0.4;

	transition: opacity 0.2s linear;

}

header span:not(.nav-current) {
    opacity: 1.0;
}

header span:hover {
    cursor: pointer;
}


@media only screen and (max-width: 42rem) {
    header {
        padding-right: 1em;
    }

    #header-logo {
        font-size: 1.5em;
    }
}



/* || GALLERY */

.page-preview {
	position: static;

	padding: 0px;
	margin: 0px;

	overflow: hidden;

    width: fit-content;
    height: fit-content;

    flex: 0 0 auto;
}

.keyshot {
	object-fit: cover;
	object-position: center;

	display: block;

	min-width: 110%;
	height: 110%;

	/*hitta på et sätt att centrera dom vertikalt*/
}

.keyshot-container {
	display: block;

	overflow: hidden;
/*
	width: 28vh;
	aspect-ratio: 1/2;
*/

	height: 56vh;
	aspect-ratio: 2.75/5;

	background-repeat: no-repeat;

/*  background-color: white; 
*/

	transition-property: background;
	transition-duration: 1000ms;
	transition-delay: 0s;
	transition-timing-function: cubic-bezier(.8,0,.4,1);
}


.open-page {
	position: absolute;

	top: 0px; 
	left: 0px;

	width: 100vw;
	height: fit-content;

	z-index: 4;

	background-color: white;
}

@media only screen and (max-width: 42rem) {
    #front-page {
        overflow-x: scroll;
        justify-content: flex-start;

        box-sizing: border-box;
        width: 100vw;

        padding: 0 2em;
    }

    .open-page .keyshot-container {
        position: relative;
    }
}


/* || KEYSHOTS CONFIGURATIONS AND IMAGE SOURCES */


#mcoag .meta-information {
    position: absolute;
    right: 6vw;
    top: 18vh;
    width: 25em;

    text-align: right;

    color: #747474;
}

#mcoag .meta-information .title {
    color: #EC8849;
}
#mcoag .meta-information .contributors-and-time {
    /*text-shadow: 0 0 0.08em rgba(49, 50, 51, 0.25);
    color: #fff;*/
    opacity: 0.5;
}

#mcoag > .keyshot-container {
    background-image: url(coag/keyshot.png);
    background-size: cover;

    background-position-x: 24%;
    background-position-y: center;
}

#mcoag > .keyshot-container.fullscreen {
    background-size: cover;
    background-position: center;
}


#mower .meta-information {
	position: absolute;
	right: 10vw;
	top: 24vh;
	width: 32em;

	text-align: right;

    color: #ffffff;
}

#mower .meta-information .meta-information-content {
	animation: 1s cubic-bezier(.58,.6,.55,1) 0s appear-from-right;
}
#mower .meta-information .title {
	color: #F26224;
}
#mower .meta-information .contributors-and-time {
	/*text-shadow: 0 0 0.08em rgba(49, 50, 51, 0.25);
	color: #fff;*/
}

#mower > .keyshot-container {
	background-image: url("mower/final_render_scenario.png");
	background-size: cover;

	background-position-x: 15%;
	background-position-y: center;
}

#mower > .keyshot-container.fullscreen {
	background-size: cover;
	background-position: center;
}


#miscellaneous .meta-information {
	position: absolute;
	left: 6vw;
	top: 24vh;
	width: 36em;

	text-align: left;

    color: #747474; 
}

#miscellaneous .meta-information .meta-information-content {
	animation: 1s cubic-bezier(.58,.6,.55,1) 0s appear-from-left;
}

#miscellaneous .meta-information .title {
	color: #28C6DB;
}

#miscellaneous .meta-information .contributors-and-time {
	/*text-shadow: 0 0 0.08em rgba(49, 50, 51, 0.25);
	color: #fff;*/
	opacity: 0.5;
}
	
	
#miscellaneous > .keyshot-container {
	background-image: url(misc/redbull_keyshot.png);
	background-size: cover;

	background-position-x: 73%;
	background-position-y: center;
}

#miscellaneous > .keyshot-container.fullscreen {
	background-size: cover;
	background-position: center;
}







/* || OPEN PAGE SPECIFIC */

#back-button {
	all: unset;

	width: 2em;
	aspect-ratio: 1 / 1;

	position: fixed;

	top: 1em;
	left: 1em;

	cursor: pointer;

	filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(152deg) brightness(106%) contrast(101%);

	background-image: url("resources/back-arrow_256.png");
	background-size: contain;
	background-repeat: no-repeat;
	mix-blend-mode: exclusion;

	z-index: 9999;

	animation: 1000ms cubic-bezier(.58,.6,.55,1) 0s background-appear-from-right; 


}

#back-button:hover {
    transform: translateX(-5%);
}

#more-below {
	all: unset;

	width: 4em;
	aspect-ratio: 5/3;

	position: absolute;

/*	bottom: 3em;
*/
	top: calc(100vh - 3em - (4em * 3 / 5));
	left: 50%;
	transform: translateX(-50%);

	filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(152deg) brightness(106%) contrast(101%);

	background-image: url("resources/more-below_512.png");
	background-size: contain;
	background-repeat: no-repeat;
	mix-blend-mode: exclusion;

	animation: 1400ms cubic-bezier(.58,.6,.55,1) 0s background-appear-from-bottom; 
}

.open-page > .keyshot-container {
	height: 100vh;
	width: 100vw;

	top: 0px;
	left: 0px;
}

.open-page .keyshot {
	position: absolute;
	z-index: -1;
	height: 100vh;
}

.meta-information {
	margin: 2vh;
	overflow: hidden;
}

.meta-information .meta-information-content {
	display: block;
	width: 100%;
	height: 100%;

	transition: transform 0.8s cubic-bezier(.67,.42,.36,.94), opacity 2s linear;

	animation: 1s cubic-bezier(.58,.6,.55,1) 0s appear-from-right;

	opacity: 1;
}

.meta-information .text-block {
	display: block;
	height: fit-content;
	overflow: hidden;
}

.meta-information > * {
	display: block;

/*    line-height: 1em;
	vertical-align: bottom; 

	animation: 1000ms cubic-bezier(.62,.69,.42,1) 0s appear-from-right;
*/
}

.meta-information .title {
	font-weight: 600;
	font-size: 4.8em;
	letter-spacing: 0.03em;
	line-height: 0.84em;
}

.meta-information .subtitle {
	font-size: 1.6em;
	font-weight: 400;

	text-transform: lowercase;
}

.meta-information .contributors-and-time {
	font-size: 1.4em;
	font-weight: 500;

	margin-top: 2em;
}



.figure {
	width: 25em;
	min-width: 20em;
	max-width: 80vw;

	overflow: hidden;

	box-sizing: border-box;

	padding-top: 2em;
}

.figure :is(object, img, embed) {
	max-height: 50vh;
	max-width: 100%;

	width: 100%;
	height: 45vh;

	object-position: center;
	object-fit: contain;

	display: block;
}

.figure p {
	text-align: center;

	font-size: 1.2em;
	font-weight: 400;

	width: 100%;
	padding: 0.8em 1em;
	margin-bottom: 0px;
	margin: 0;

	box-sizing: border-box;
}


/*
.figure.small {
	width: 20vw;

	min-width: 20em;
	max-width: 40vw;

	& object, img, embed {
		height: 30vh;
	}

	& p {
		font-size: 1em;
		font-style: oblique;
	}
}
*/
.figure.wide {
	width: 100vw;
	max-width: unset;
	padding: 0 20%;
	margin: 20vh 0;
}

.figure.wide :is(object, img, embed) {
    height: auto;
    width: 100%;
}




.impatient-dots {
	position: absolute; 
	left: 0;
	right: 0;

	bottom: 5vh;

	margin: 0 auto;
	height: 1.2em; 
	width: fit-content;

	filter: brightness(0) saturate(100%) invert(100%) sepia(58%) saturate(2%) hue-rotate(140deg) brightness(115%) contrast(100%);
}

/*
.split-page {
	width: 100%;
	display: grid;

	grid-template-columns: 1fr 1fr;

	gap: 1em;

	& > .left-column {
		grid-column: 1;
	}

	& > .right-column {
		grid-column: 2;
	}
}

*/

.block {
	width: 100%;
	height: 100vh;

	position: relative;
}

.autowrap {
	display: flex;

	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-evenly;
	align-items: flex-end;

	gap: 5em;

	margin: 15vh 0 25vh 0;
}

.center-column {
	width: 42%;
	min-width: 40rem;

	margin-left: auto;
	margin-right: auto;

	box-sizing: border-box;
}

.centered {
	margin-left: auto;
	margin-right: auto;

	box-sizing: border-box;

    text-align: center;
}





/* || MODIFIERS */

.keyshot-container:hover:not(.open-page *) {
	cursor: pointer;
}






/* || TOOL LOGO OVERLAYS */

.image-container {
	height: fit-content;
	width: fit-content;

    position: relative;
}

.image-container img {
	object-fit: contain;

	width: 100%;
	height: 100%;
}

.image-container .tool-row {
	position: absolute;

	bottom: 1em;
	left: 1.5em;
}

.image-container .tool-row.under {
	position: static;
	margin-top: 0.2em;
	margin-left: 1.5em;
}



.tool-row {
	display: flex;

	gap: 0.4em;
}

.tool-row div {
	content: "";

	height: 1.2em;
	aspect-ratio: 1/1;

	filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(152deg) brightness(106%) contrast(101%);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	mix-blend-mode: exclusion;

	opacity: 0.5;
}

.tool-row .tool-photoshop {
	background-image: url("resources/photoshop.png");
}

.tool-row .tool-blender {
	background-image: url("resources/blender.png");
}


/* || ANIMATIONS */

@keyframes appear-from-right {
	from {
		transform: translateX(130%);
	}
	to {
		transform: translateX(0);
	}
}

@keyframes appear-from-left {
	from {
		transform: translateX(-130%);
	}
	to {
		transform: translateX(0);
	}
}



@keyframes background-appear-from-right {
	0% {
		background-position-x: 2em;
	}
	50% {
		background-position-x: 2em;
	}
	100% {
		background-position-x: 0em;
	}
}

@keyframes background-appear-from-bottom {
	0% {
		background-position-y: 4em;
	}
	65% {
		background-position-y: 4em;
	}
	100% {
		background-position-y: 0em;
	}
}

