@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&family=Sofia+Sans:ital,wght@0,1;0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;0,1000;1,1;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900;1,1000&display=swap');
/* CSS Document */

/*

Color palette:

FEF1EB
E2EBD6
EE9C81
5F4845
221B22
*/

html {
	scroll-behavior: smooth;
}

body {
	background: #FEF1EB;
	color: #2C2627;
	font-family: 'Playfair Display', serif;
	margin: 0;
}

@keyframes loadPageAnimation {
    0% {
        opacity: 0%;
		transform: translateX(-10px);
    }
    100% {
        opacity: inherit;
		transform: translateX(0px);
     }
}

nav {
	position: sticky;
	top: 0;
	background-color: #5F4845;
	display: flex;
	align-items: center;
	z-index: 1;
}

#ejlogo {
	width: 90px;
	height: 30px;
	background: #221B22;
	padding: 30px;
}

nav ul {
	width: 100%;
	display: flex;
	justify-content: flex-end;
	margin: 0;
	padding: 0;
	font-size: 18px;
}

nav li {
	list-style: none;
	display: inline-block;
	padding: 30px;


}

a li {
	text-decoration: none;
	color: #FEF1EB;
}

li a {
	text-decoration: none;
	color: #FEF1EB;
}

a li:hover {
	transition: 0.15s;
	background-color: #EE9C81;
}


#section1 {
	padding: 350px 0px 50px 30px;
	background: linear-gradient(#EE9C8111, #5F4845bb), url('Resources/eli-1500w.png'), url('Resources/eli-300w.png'), #403826;
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

#section1 > * {
	filter: drop-shadow(0 0 10px black);
}

h1 {
	text-transform: uppercase;
	font-weight: 900;
	font-size: 100px;
	margin-bottom: -20px;
	color: #FEF1EB;
	animation: loadPageAnimation ease 0.2s;
}

h2 {
	font-family: 'Sofia Sans', sans-serif;
	text-transform: lowercase;
	letter-spacing: 2px;
	font-weight: 400;
	color: #E2EBD6;
	animation: loadPageAnimation ease 0.2s;
}

#worksection1 {
	padding: 5px 0px 200px 30px;
	background: linear-gradient(#FEF1EB00, #E2EBD655), url('Resources/layingdown-1500w.png'), url('Resources/layingdown-300w.png'), #78816E;
	background-attachment: fixed;
	background-position: bottom;
	background-repeat: no-repeat;
	background-size: cover;
}

#worksection1 {
	text-align: center;
}

#worksection1 > * {
	filter: drop-shadow(0 0 10px black);
}

h3 {
	font-size: 50px;
	text-align: center;
	margin: 50px 0px 0px;
	animation: loadPageAnimation ease 0.2s;
}

h4 {
	margin: 10px 0px 30px 0px;
	font-family: 'Sofia Sans', sans-serif;
	text-transform: lowercase;
	letter-spacing: 2px;
	font-weight: 400;
	color: #5F4845;
	text-align: center;
	animation: loadPageAnimation ease 0.2s;
}


#section2 {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0% 23% 60px;
}

p {
	font-size: 18px;
	animation: loadPageAnimation ease 0.2s;
}


/* My work page */



#subnavbar {
	margin: 0;
	height: 80px;
	background-color: #E2EBD6;
	display: flex;
	align-items: center;
	justify-content: space-around;
}

#subnavbar ul {
}

#subnavbar li {
	list-style: none;
	display: inline-block;
}

/* Grid */

.grid {
	display: grid;
	grid-template-columns: auto auto auto;
	margin: 50px 300px 50px 300px;
	justify-content: center;
	gap: 2vh 2vw;
}

.griditem {
	display: inline-grid;
	width: 250px;
	height: 300px;
	margin: 0px;
	background-color: #E2EBD6;
	border: 0px hidden #000000;
	text-align: left;
	transform: scale(100%);
	transition: 0.2s;
	border-radius: 4px;
	overflow: hidden;
	filter: drop-shadow(0 0 20px #5F4845);
}

.griditem img {
	height: 200px;

}

.griditem p {
	margin: 0px 20px 20px 20px;
	width: 210px;
}

.griditem:nth-of-type(2) {
	background-color: blue;
}

.griditem:hover {
	cursor: pointer;
	transform: scale(103%);
	filter: drop-shadow(0 0 30px #5F4845);
	transition: 0.2s;
}

/* Contact page */

#contactsection {
	display: flex;
	align-items: center;
	justify-content: center;
}

#contactimg {
	background: linear-gradient(#FEF1EB00, #E2EBD633), url("Resources/pumpkin-1500w.png"), url("Resources/pumpkin-300w.png"), #98E1E5;
	width: 500px;
	height: 700px;
	background-size: cover;
	background-position: center;
	margin: 30px 0px;
}

#contactinfo {
	width: 350px;
	margin: 0px 100px 0px 100px;
}

#contactinfo a {
	color: #5F4845;
}

/* Footer */

#footer {
	background-color: #221B22;
	display: flex;
	align-items: center;
	justify-content: space-around;
}

#footer li {
	list-style: none;
	text-align: center;
	line-height: 30px;
	font-size: 18px;
}

#footer img {
	width: 300px;
	padding: 50px 0px 50px 0px;
	
}

#footerquote {
	color: #E2EBD6;
	font-style: italic;
	text-align: right;
	animation: none;
}


/* MOBILE */


/* Shrink grid to fit mobile screens */
@media screen and (max-width: 850px) {
	.grid {
		grid-template-columns: auto auto;
	}
}

@media screen and (max-width: 600px) {
	.grid {
		grid-template-columns: auto;
		
	}
	.griditem {
	display: flex;
	width: 80vw;
	height: 200px;
	margin: 0px;

	}
	.griditem img {
	height: 100%;

	}
	.griditem p {
	margin: 20px 20px 20px 20px;
	width: 210px;
	}
}