/* CORE STYLE */

* {
	box-sizing: border-box;
}

body {
	position: absolute;
	margin: 0;
	padding: 0;
	font-family: Arial, Helvetica, sans-serif;
	background-color: #333;
	color: white;
	font-size: 1.1em;
	line-height: 1.5;
	text-align: center;
}

.card img {
	display: block;
	width: 100%;
	height: auto;
}

.photobox1:hover {
    transition: 0.3s;
    transform-origin: left top;
    transform: scale(1.8);
    box-shadow: 18px 18px 18px #000;
}

.photobox:hover {
    transition: 0.3s;
	transform-origin: center top;
    transform: scale(1.8);
    box-shadow: 18px 18px 18px #000;
}

.photobox2:hover {
    transition: 0.3s;
    transform-origin: right top;
    transform: scale(1.8);
    box-shadow: 18px 18px 18px #000;
}

.card-title {
	text-decoration: underline;
}

h1,
h2,
h3 {
	margin: 0em;
	padding: 1em 0;
	letter-spacing: 0.038em;
}

p {
	margin: 0;
	padding: 1em 0;
	letter-spacing: 0.02em;
}

p strong {
	color: red;
	letter-spacing: 0.02em;
}

/* HEADER STYLING */

#hearder1deco {
	width: 100%;
}

.companylogo {
	display: none;
	padding: 0 3em 0 3em;
}

.companyname {
	margin: 1em;
	font-size: 1.3em;
}

/* NAV BAR STYLING */

nav {
	margin: 2em 0 2em;
	columns: 2;
}

nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

nav li :hover {
	color: rgb(207, 159, 166);
}

nav a {
	color: white;
	text-decoration: none;
	font-size: 15px;
}

.nav2 a {
	text-decoration: none;
	color: white;
	font-weight: 900;
	font-size: 25px;
	padding: 12px;
	background-color: red;
	border-radius: 0 18px 0 18px;
}

/* END OF CORE STYLE. START OF ONE OFF ITEMS */

/* END OF ONE OFF ITEMS. START OF INDIVIDUAL SECTION STYLES */
#showcase {
	background: rgba(0, 0, 0, 0.4);
	min-height: 500px;
	text-align: center;
	text-shadow: -2px 2px 2px black;
}

#showcase .bg-img {
	position: absolute;
	background-image: url(img/Projectsmall.jpeg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	width: 100%;
	height: 500px;
	object-fit: cover;
	z-index: -1;
	opacity: 0.6;
}

#showcase video {
	display: none;
}

iframe {
	display: none;
}

#showcase .content-wrap,
#section-a .content-wrap {
	padding: 0 1.5em;
}

#showcase .content-wrap {
	color: red;
	text-shadow: 0px 0px 2px black;
}

/* SECTION A */

#section-a {
	background: #eaeaea;
	color: #333;
	padding-bottom: 2em;
}

/* SECTION B */

#section-b {
	padding: 2em 1em 1em;
}

#section-b ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#section-b li {
	margin-bottom: 1em;
	background: white;
	color: #333;
}

.card-content {
	padding: 1.5em;
}

/* SECTION C */

#section-c {
	padding: 2em;
	background: white;
	color: #333;
}

/* SECTION D / BOXES */
#section-d .box {
	background: rgb(207, 159, 166);
	padding: 2em;
	color: white;
}

#section-d .box:first-child {
	background: rgb(0, 100, 0);
}

#section-d .box:last-child {
	display: grid;
	grid-template-columns: 1fr;
}

textarea {
	resize: vertical;
}

/* FOOTER */

#main-footer {
	display: inline-block;
	padding: 2em;
	background: #333;
	color: white;
	letter-spacing: 0.07em;
	text-align: center;
	line-height: 2em;
}

#main-footer a {
	color: black;
	text-decoration: none;
}

.fa {
	font-size: 15px;
	box-sizing: content-box;
	line-height: 38px;
	width: 38px;
	height: 38px;
	display: inline-block;
	overflow: hidden;
	border-radius: 50%;
	background-color: rgb(255, 255, 255);
}

/* MEDIA QUERY */

@media (min-width: 900px) {
	#showcase {
		background: rgba(0, 020, 0, 0);
		color: white;
	}

	.bg-img {
		display: none;
	}

	.header1deco {
		position: absolute;
		margin: 0;
		padding: 0;
		width: 100%;
		display: flex;
		background-color: #333;
		opacity: 0.8;
	}

	.companylogo {
		background-image: url(img/bg.png);
		display: inline-block;
		margin: 20px 0px;
		background-position: center;
		background-repeat: no-repeat;
		background-size: contain;
	}

	.companyname {
		display: fixed;
		margin-top: 1.4em;
	}

	nav {
		position: relative;
		margin-left: auto;
		display: inline;
	}

	nav .ul li {
		margin: 0px;
		padding: 0 1.2em;
	}

	.ul a {
		margin: 0;
		padding: 0;
		font-size: 12px;
	}

	#showcase video {
		display: inline-flex;
		position: absolute;
		margin: 0;
		padding: 0;
		margin-top: 0;
		margin-left: 0;
		min-width: 100%;
		min-height: auto;
		width: 100%; /* IMPORTANT */
		height: 500px; /* IMPORTANT */
		object-fit: cover;
		z-index: -1;
	}
}

@media (min-width: 700px) {
	.grid {
		display: grid;
		grid-template-columns: 1fr repeat(2, minmax(auto, 25em)) 1fr;
	}

	h1 {
		position: relative;
		margin-top: 8%;
	}

	#section-a .content-text {
		columns: 2;
		column-gap: 2em;
	}

	#section-a .content-text p {
		padding-top: 0;
		text-align: left;
	}

	.content-wrap,
	#section-b ul {
		grid-column: 1/5;
	}

	.box {
		grid-column: span 2;
	}

	#main-footer div {
		grid-column: span 4;
	}

	#section-b ul {
		display: flex;
		justify-content: space-around;
	}

	#section-b li {
		width: 23.8%;
	}
}

@media (max-width: 700px) {
	.photobox1:hover {
		transform: scale(1.0);
		box-shadow: 0px 0px 0px;
	}
	
	.photobox:hover {
		transform: scale(1.0);
		box-shadow: 0px 0px 0px;
	}
	
	.photobox2:hover {
		transform: scale(1.0);
		box-shadow: 0px 0px 0px;
	}
}
