html,body {
	padding: 0;
	margin: 0;
}

body {
	background-color: #1b1818;
	--main-text-color: #FBFBFB;
	color: var(--main-text-color);
	font-family: montserrat, sans-serif;
	font-weight: 500;
	scroll-behavior: smooth;
}

main {
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	/* Needed to enable the parallax scrolling effect of some backgrounds */
	perspective: 100px;
	height: 100vh;
	overflow-x: hidden;
	overflow-y: auto;
	position: absolute;
}

footer {
	background-color: #0f0f0f;
	padding: 10px;
}

#cc {
	font-size: 12px;
	text-align: center;
	color: gainsboro;
}

h1 {
	text-align: center;
}

h1::after {
	width: 70px;
    top: 14px;
	position: relative;
	content: "";
	height: 0.18rem;
	background: white;
	display: block;
	margin: auto;
	margin-bottom: 32px;
}


/* Background with parallax effect */

#parallax-background {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: block;
	background-image: url("./img/tex1.jpg");
	background-size: cover;
  
	transform: translateZ(-250px) translateY(1300px) scale(4);
}

@media only screen and (max-width: 1400px) {
	#parallax-background {
		transform: translateZ(-250px) translateY(1700px) scale(4);
	}
}

@media only screen and (max-width: 900px) {
	#parallax-background {
		transform: translateZ(-250px) translateY(2100px) scale(4.6);
	}
}

@media only screen and (max-width: 500px) {
	#parallax-background {
		transform: translateZ(-250px) translateY(2600px) scale(4.8);
	}
}

#content-container {
	display: block;
	position: absolute;
	z-index: 2;
	padding-top: 50px;
	width: 100%;
}


/* Menu bar */

header {
	opacity: 1;
	display: block;
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	height: 80px;
	z-index: 100;
	min-width: 292px;
}

#menubar-background {
	background-color: #0f0f0f;
	opacity: .9;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	position: absolute;
	box-sizing: border-box;
}

#menubar-content {
	position: relative;
	padding-left: 20px;
	padding-right: 30px;
	display: flex;
	align-items: center;
    justify-content: center;
	height: 100%;
}

#menubar-content-centered {
	width: 80%;
	max-width: 1180px;
	display: flex;
	align-items:center;
}

#menubar-title {
	font-size: 35px;
	font-weight: 600;
}

#menubar-nav {
	margin-left: auto;
}

#nav-list {
	display: flex;
	flex-direction: row;
	font-size: 16px;
}

.menu-item, .menu-item-mobile {
	padding-right: 20px;
	list-style-type: none;
	margin: 0;
}

#nav-list li a, #nav-list-mobile li a {
	text-decoration: none;
	color: var(--main-text-color);
	letter-spacing: .03rem;
}

#nav-list li a:hover, #nav-list-mobile li a:hover {
	color: dimgrey;
	transition: all 0.15s ease-out;
}

#menu-content-mobile {
	overflow: hidden;
	transition: 0.3s;
}

#menu-nav-mobile{
	background-color: #303030;
	opacity: .9;
}

#nav-list-mobile {
	margin: 0;
	padding: 8px;
	padding-left: 30px;
}

#nav-list-mobile li {
	margin-top: 10px;
	margin-bottom: 10px;
}

.download-link {
	cursor: pointer;
}


/* Burger menu */

#menubar-burger {
	right: 0;
	position: absolute;
	padding-right: 20px;
}

*{box-sizing: border-box}

#grid {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

#grid+label {
	margin:5px;
	width:25px;
	display:none;
	grid-template-rows: repeat(3,3px);
	row-gap:.3rem;
}
	
#grid+label span {
	background-color: white;
	border-radius: 10px;
}
	
#grid:checked+label span {
	grid-area: 2/1;
}

#grid:checked+label span:nth-child(2) {
	opacity: 0;
}

#grid:checked+label span:first-of-type {
	transform:rotate(45deg)
}
			
#grid:checked+label span:last-of-type {
	transform:rotate(-45deg);
}

/* Adaptive menu bar */

@media only screen and (max-width: 1250px) {
	#menubar-content-centered {
		width: 90%;
	}
}

@media only screen and (max-width: 1150px) {
	#menubar-nav {
		display: none;
	}
	
	#menubar-content-centered {
		justify-content: center;
	}
	
	#grid+label {
		display: grid;
	}
}

@media only screen and (min-width: 1151px) {
	#menu-content-mobile {
		display: none;
	}
}

@media only screen and (max-width: 430px) {
	#menubar-title {
		font-size: 28px;
	}
	#menubar-content {
		padding-left: 5px;
	}
}

@media only screen and (max-width: 340px) {
	#menubar-title {
		font-size: 22px;
	}
	#menubar-content {
		padding-left: 0px;
		padding-right: 50px;
	}
	#menubar-burger {
		padding-right: 28px;
	}
}


/* Home */

#content-home {
	background-color: #202020;
	height: 100vh;
	padding-top: 40px;
	display: flex;
	align-items:center;
	justify-content: center;
}

#content-home-centered {
	display: flex;
	flex-direction: row;
}

/* Home Text slide */

.slider-wrapper {
	overflow: hidden;
	width: 360px;
	display: flex;
	align-items:center;
	margin-right: 180px;
}

.slides-container {
	width: 100%;
	display: flex;
	overflow: hidden;
	scroll-behavior: smooth;
	list-style: none;
	margin: 0;
	padding: 0;
}

.slide {
	width: 100%;
	height: 100%;
	flex: 1 0 100%;
	font-size: 44px;
	text-align: center;
	padding: 2px;
}

.slide:nth-child(1) {
	background-color: #49b293;
}

.slide:nth-child(2) {
	background-color: #b03532;
}

.slide:nth-child(3) {
	background-color: #6a478f;
	margin: 0;
}

.slide:nth-child(4) {
	background-color: #da6f2b;
}

.slide:nth-child(5) {
	background-color: #49b293;
}


/* Home picture and adaptive content */

#photo1 {
	max-width: 340px;
	height: auto;	
	filter: drop-shadow(2px 1px 6px #000000);
}

@media only screen and (max-width: 1100px) {
	.slider-wrapper {
		margin-right: 90px;
	}
}

@media only screen and (max-width: 820px) {
	#content-home-centered {
		flex-direction: column;
	}
	.slider-wrapper {
		margin-right: 0px;
		margin-bottom: 60px;
	}
}

@media only screen and (max-width: 420px) {
	#content-home {
		padding-top: 10px;
	}
	.slider-wrapper {
		width: 260px;
	}
	.slide {
		font-size: 32px;
	}
	#photo1 {
		max-width: 260px;
	}
}

@media only screen and (max-width: 300px) {
	.slider-wrapper {
		width: 220px;
	}
	.slide {
		font-size: 28px;
	}
	#photo1 {
		max-width: 200px;
	}
}


/* About */

#content-about {
	min-height: 200px;
	background-color: #303030;
	display: flex;
	align-items:center;
	justify-content: center;
	padding-top: 10px;
	padding-bottom: 40px;
}

#content-about-centered {
	max-width: 60%;
}

/* Skills */
#content-skills {
	min-height: 400px;
	padding-top: 10px;
	padding-bottom: 40px;
	display: flex;
	align-items:center;
	justify-content: center;
}

#content-skills:before {
    content: "";
    display: block;
    background-image: url("./img/tex1.jpg");
    background-size: cover;
}

#content-skills-centered {
	max-width: 65%;
}

#skills-flex {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}

.skill-block {
	min-width: 280px;
	min-height: 120px;
	max-width: 280px;
	max-height: 120px;
	overflow: hidden;
	margin: 10px;
	margin-left: 2px;
	margin-right: 2px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: left;
	transition: all 0.25s;
	border-radius: 10px;
	/*outline: solid;*/
}

.skill-block-logo {
	height: 100px;
	width: 100px;
	margin-left: 8px;
}

.skill-block-text {
	font-size: 22px;
	margin-left: 0px;
	margin-right: 15px;
	text-align: center;
	width: 100%;
}

.skill-subtitle {
	margin-top: 6px;
	font-size: 18px;
	font-weight: 300;
}

.skill-block:hover {
	transform: scaleX(1.1) scaleY(1.1);
	background-color: rgba(220,210,190,0.08);
	box-shadow: 0px 0px 10px rgba(220,210,190,0.16);
}

#skills-flex a {
	text-decoration: none;
	color: var(--main-text-color);
}


/* Portfolio */

#content-portfolio {
	background-color: #1b1818;
	padding-top: 10px;
	padding-bottom: 40px;
	display: flex;
	justify-content: center;
}

#content-portfolio-centered {
	max-width: 65%;
	padding-bottom: 20px;
}

#portfolio-flex {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-top: 6px;
}

.portfolio-row {
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: left;
}

.portfolio-unit {
	margin: 15px;
	margin-bottom: 8px;
	text-align: center;
}

.portfolio-unit a {
	text-decoration: none;
	color: var(--main-text-color);
}

.portfolio-block {
	min-width: 500px;
	min-height: 340px;
	margin-bottom: 8px;
	background-size: cover;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.portfolio-block-background-image {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: 520px;
	background-position: center center;
	transition: all 0.3s;
}

.portfolio-block-background-image:hover {
	transform: scale(1.05);
}

.portfolio-block-background-image::after {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.3);
	transition: all 0.3s;
	opacity: 0;
}

.portfolio-block-background-image:hover::after {
	opacity: 1;
}

.portfolio-ftext{
	pointer-events: none;
	max-width: 80%;
	z-index: 0;
	opacity: 0;
	transition: all 0.25s;
}

.portfolio-block:hover .portfolio-ftext {
	opacity: 1;
}

#portfolio-img-1 {
	background-image: url("./img/portfolio-ravenscape-min.jpg");
}

#portfolio-img-2 {
	background-color: rgba(200,200,200,0.2);
}

#portfolio-img-3 {
	background-color: rgba(200,200,200,0.2);
}

#portfolio-img-4 {
	background-color: rgba(200,200,200,0.2);
}

#portfolio-img-5 {
	background-color: rgba(200,200,200,0.2);
}

@media only screen and (max-width: 1650px) {
	#content-portfolio-centered {
		max-width: 80%;
	}
}

@media only screen and (max-width: 1300px) {
	#content-portfolio-centered {
		max-width: 92%;
	}
}

@media only screen and (max-width: 1150px) {
	#content-portfolio-centered {
		max-width: 100%;
	}
}

@media only screen and (max-width: 1150px) {
	.portfolio-block {
		min-width: 440px;
		min-height: 300px;
	}
	.portfolio-block-background-image {
		background-size: 455px;
	}
}

@media only screen and (max-width: 970px) {
	.portfolio-block {
		min-width: 380px;
		min-height: 258px;
	}
	.portfolio-block-background-image {
		background-size: 390px;
	}
}

@media only screen and (max-width: 835px) {
	.portfolio-row {
		flex-direction: column;
		align-items: center;
	}
	.portfolio-block {
		min-width: 440px;
		min-height: 300px;
	}
	.portfolio-block-background-image {
		background-size: 455px;
	}
}

@media only screen and (max-width: 480px) {
	.portfolio-block {
		min-width: 100vw;
	}
	.portfolio-block-background-image {
		background-size: 480px;
		
	}
}

@media only screen and (max-width: 400px) {
	.portfolio-block {
		min-height: 240px;
	}
	.portfolio-block-background-image {
		background-size: 400px;
		
	}
}


/* Contact */

#content-contact {
	padding-top: 10px;
	padding-bottom: 150px;
	background-color: #303030;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#content-contact-box {
	background-color: rgba(255,255,255,0.45);
	color: black;
	min-width: 800px;
	max-width: 80%;
	min-height: 500px;
	border-radius: 16px;
	display: flex;
	flex-direction: row;
}

#contact-form {
	flex-basis: 65%;
	display: flex;
	align-items: center;
	justify-content: center;
}

form {
	display: flex;
	flex-direction: column;
	margin: 15px;
}

input {
	font-size: 16px;
}

#contact-email-phone {
	display: flex;
	flex-direction: row;
}

#contact-email-phone input:first-child {
	flex-basis: 50%;
	width: 100%;
	margin-right: 10px;
}

#contact-email-phone input:nth-child(2) {
	flex-basis: 50%;
	width: 100%;
}

textarea {
	resize: none;
	font-size: 16px;
}

textarea:focus, input:focus{
    outline: none;
}

.contact-form-line {
	margin-bottom: 10px;
}

#submit {
	margin-top: 20px;
}

#contact-info {
	flex-basis: 35%;
	margin-bottom: 15px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

#contact-separator {
	height: 500px;
	min-width: 2px;
	background-color: rgba(0,0,0,0.3);
	margin-top: auto;
	margin-bottom: auto;
}

.contact-line {
	padding-top: 7px;
	padding-bottom: 7px;
	min-height: 44px;
	display: flex;
	align-items: center;
}

.contact-icon {
	width: 30px;
	height: 30px;
	margin-right: 8px;
}

.contact-big-icon {
	width: 40px;
	height: 40px;
	margin-top: 25px;
	box-shadow: 1px 1px 5px rgba(0,40,80,0.4);
	border-radius: 5px;
	transition: all 0.2s;
}

.contact-big-icon:hover {
	filter: brightness(1.12) hue-rotate(8deg);
	transform: scaleX(1.06) scaleY(1.06);
}

@media only screen and (max-width: 900px) {
	#content-contact-box {
		min-width: 84%;
		min-height: 550px;
	}
}

@media only screen and (max-width: 750px) {
	#content-contact-box {
		flex-direction: column-reverse;
	}
	#contact-separator {
		display: none;
	}
	#contact-info {
		margin-top: 30px;
	}
	#contact-form {
		margin-top: 15px;
		margin-bottom: 15px;
	}
}

@media only screen and (max-width: 400px) {
	#contact-email-phone input:first-child {
		margin-right: 0px;
		margin-bottom: 10px;
	}
	#contact-email-phone {
		flex-direction: column;
	}
	form {
		width: 100%;
	}
}
