:root {
	--purple: #4F2E93;
	--green: #9FCE51;
	--tan: #F4F2E9;
}

* {
    font-family: 'Poppins', sans-serif;
  }

body {
    margin: 0;
	width: 100%;
 	max-width: 100vw;
    overflow-x: hidden; /* Prevents horizontal scrolling */
    padding: 0;
}

#services, #work, #about, #affiliations, #contact, #details {
	position: relative;
	top: -30px;
	margin-top: 30px;
}

h1 {
    color: var(--purple);
    font-size: 24px;
    font-weight: 500;
	border-bottom: 5px solid var(--green);
}

h2 {
    color: var(--purple);
    font-size: 16px;
    font-weight: 700;
}

p, ul, ol {
    color: black;
    font-size: 14px;
    line-height: auto;
}

img {
    height: auto;
    max-width: 100%;

}

.siteid img {
	height: 7em;
	width: auto;
}

.container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 10px;
	overflow: hidden;
}

.stretch {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 10px;
}

.box {
    margin: 0;
}

.siteid {
    grid-column: 1 / span 12;
    text-align: center;
}

.nav {
    grid-column: 1 / span 12;
    text-align: center;
	margin-top: 1em;
}

.hero {
    grid-column: 1 / span 12;
    margin-top: 0;
}


.overlay-gif {
    position: absolute;
    transform: translate(0%, 0%);
    pointer-events: none;
    z-index: 2;
}

.seal{
	grid-column: 8 / span 1;
	max-width: 80px;
	position: absolute;
	left: 80%;
	top: 0%;
}

.carousel {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: carouselAnimation 10s infinite;
}

.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Add styles for your logo */
  width: 200px;
  height: 100px;
  background-image: url('logo.png');
  background-size: contain;
  background-repeat: no-repeat;
}

@keyframes carouselAnimation {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.spacer {
    grid-column: 1 / span 12;

}

.spacer2 {
    grid-column: 1 / span 12;
    padding: 4em 0;
}

.minispacer {
	padding: 16px 0;
}

h1 {
	grid-column: 1 / span 11;
	text-align: center;
}

.story_profile { 
	grid-column: 2 / span 10;
	background-color: var(--tan);
	padding: 36px 48px;
}	

.slideshow {
    width: 80%;
    height: 50vh;
 	position: relative;
    border: 2px solid #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fade 16s infinite;
}

/* Set timings for each slide */
.slide:nth-child(1) {
    animation-delay: 0s;
}
.slide:nth-child(2) {
    animation-delay: 4s;
}
.slide:nth-child(3) {
    animation-delay: 8s;
}
.slide:nth-child(4) {
    animation-delay: 12s;
}
.slide:nth-child(5) {
    animation-delay: 16s;
}
.slide:nth-child(6) {
    animation-delay: 20s;
}


/* Keyframes for fading effect */
@keyframes fade {
    0% { opacity: 0; }
    25% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

.carousel {
	grid-column: 2 / span 10;
    max-width: 100%;
    position: relative;
	max-height: 460px;
}

.carousel-inner {
    position: absolute;
    width: 100%;
    height: auto;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-item img {
    width: 100%;
    display: block;
}

.carousel-item.active {
    opacity: 1;
}

.safetyimages {
	grid-column: 2 / span 9;
}

.services {
    grid-column: 2 / span 9;
    text-align: left;
}

.services h2 {
	border-left: 4px solid var(--green);
	padding-left: 6px;
}

.work {
    grid-column: 2 / span 10;
    text-align: center;
}

.work a {
    text-decoration: underline;
    font-size: 16px;
	font-weight: 700px;
    margin-top: 2em;
    color: black;
}

.work a:hover {
    text-decoration: underline;
	color: var(--purple);
}

.portfolio {
    display: grid;
    grid-gap: 10px;
    margin: 1em 0;
} 

.portfolio img {
	height: 300px;
	width: auto;
}

.portfolioContainer {
    position: relative;
    width: 100%;
	max-height: 300px; 
}

.portfolioContainer a {
	text-decoration: none;
    color: black;
}
  
.image {
    display: block;
    width: 100%;
    height: auto;
}
  
.overlay {
    position: absolute;
    top: initial;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: hsla(83, 56%, 56%, 0.53);
}

.portfolioContainer .overlay {
    opacity: 1;
	color: white;
	text-shadow: 2px 2px var(--purple);
}

.text {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 1em;
    font-weight: 700;
}

.portfolio {
  	overflow: hidden;
}

#filters {
	grid-column: 1 / span 12;
}

.filterDiv {
  	float: left;
  	text-align: center;
  	display: none; /* Hidden by default */
}

/* The "show" class is added to the filtered elements */
.show {
  	display: block;
}

/* Style the buttons */
.btn {
	border: none;
	border-radius: 13px;
	outline: none;
	padding: 8px 38px;
	background-color: var(--tan);
	cursor: pointer;
	margin: 4px;
}

/* Add a light grey background on mouse-over */
.btn:hover {
 	background-color: hsla(83, 56%, 56%, 0.53);
}

/* Add a dark background to the active button */
.btn.active {
  	background-color: var(--green);
  	color: black;
	
}

/* Project Detail Template */
.content {
	grid-column: 1 / span 12;
	text-align: left;
	margin-top: 12px;
}

.content h1 {
	text-align: left;
	margin-top: 8em;
}

.back-btn {
	grid-column: 1 / span 5;
	color: black;
	text-decoration: none;
}

.back-btn:hover {
	text-decoration: underline;
}

.detail_carousel {
	position: relative;
	margin-top: 10%;
}
.carousel-inner {
	display: flex;
	transition: transform 0.5s ease;
}
.detail_carousel img {
	width: 50%; /* Adjust the width to show two images at once */
	border-radius: 10px;
	margin-right: 10px; /* Adjust the spacing between images */
}

.carousel-button {
	position: absolute;
	top: 50%;
	transform: translateY(100%);
	background-color: var(--tan);
	border: none;
	color: var(--purple);
	cursor: pointer;
	padding: 10px;
	border-radius: 50%;
	z-index: 1;
}
.carousel-button.left {
	left: 10px;
}
.carousel-button.right {
	right: 10px;
}

.workmanship {
    grid-column: 2 / span 9;
}

.affiliations {
	grid-column: 2 / span 10;
}

.companies {
	display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-gap: 10px;
}

footer {
    grid-column: 1 / span 12;
}

header {
    background-color: var(--purple);
    box-shadow: 2px 2px 50px -10px var(--green);
    z-index: 100;
    position: fixed;
    width: 100%;
}

.pull h3 {
	font-size: 2.5em;
	color: white;
	font-weight: 700;
	text-shadow: 0px 0px 10px #666;
	margin-bottom: .25em;
}

.pull p {
	font-size: 1em;
	margin: 0;
	color: #fff;
	text-shadow: 0px 0px 10px #666;
	font-style: italic;
}

.profile img {
    margin: 0;
}

/* Footer styles */
footer {
    text-align: center;
    padding: 1.5em 5em;
    border-top: #666 solid thin;
	background-color: var(--purple);
}

footer ul {
    list-style: none;
    margin: 0; 
    padding: 0;
	color: white;
}

footer ul a {
	text-decoration: none;
	display: block;
	padding: 0 .5em;
}

.fas, .fab, .far {
    color: white;
	padding: 5px;
}

#copyright {
	grid-column: 1 / span 12;
}

/* Navigation */
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow:hidden;
    display: flex; 
  	flex-wrap: wrap; 
  	justify-content: center;
	font-size: 1em;
}

nav li {
    flex-grow: 1;
}

nav li a {
    color:white;
    text-decoration:none;
    display:block;
    text-align:center;
    padding: 8px;
}

nav ul li a:hover{
    text-decoration: underline solid var(--green) 3px;
	text-underline-offset: 7px;
}

.active {
	text-decoration: underline solid var(--green) 3px;
	text-underline-offset: 7px;
}



/* CSS for Screens larger than 576px */ 

@media screen and (min-width: 655px) {
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 20px;
}
	
.stretch {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 20px;
}

.box {
    margin: 0;
}
	
.siteid {
    grid-column: 1 / span 4;
}
	
.nav {
    grid-column: 5 / span 7;
}
	
.hero {
    grid-column: 1 / span 12;
    margin-top: 0;
}
	
h1 {
	grid-column: 1 / span 4;
	text-align: right;
}

.story_profile { 
	grid-column: 1 / span 8;
	margin-left: 48px;
}
	
.carousel {
	grid-column: 9 / span 4;
    max-width: 640px;
    position: relative;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
	max-height: 400px;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-item img {
    width: 100%;
	height: 100%;
    display: block;
}

.carousel-item.active {
    opacity: 1;
}
	
.safetyimages {
	grid-column: 1 / span 6;
	padding-left: 48px;
}
	
.services {
	grid-column: 7 / span 6;
	padding: 0 48px;
}
	
.work {
    grid-column: 1 / span 12;
    text-align: center;
}
	
.portfolio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    margin: 1em 0;
	padding: 0 48px;
} 
	
.portfolioContainer:hover .overlay {
    opacity: 1;
	color: white;
	text-shadow: 2px 2px var(--purple);
}
	
#filters {
	grid-column: 1 / span 12;
	margin: 10px 48px;
}
	
.btn {
	margin: 4px;
}
	
.content {
	grid-column: 1 / span 12;
	text-align: left;
	margin-top: 12px;
}
	
.content h1 {
	text-align: left;
	margin-top: 2em;
}

.back-btn {
	grid-column: 1 / span 5;
	color: black;
	text-decoration: none;
}

.back-btn:hover {
	text-decoration: underline;
}

.detail_carousel {
	position: relative;
	margin-top: 0;
}
.carousel-inner {
	display: flex;
	transition: transform 0.5s ease;
}
.detail_carousel img {
	width: 50%; /* Adjust the width to show two images at once */
	border-radius: 10px;
	margin-right: 10px; /* Adjust the spacing between images */
}

.carousel-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: var(--tan);
	border: none;
	color: var(--purple);
	cursor: pointer;
	padding: 10px;
	border-radius: 50%;
	z-index: 1;
}
.carousel-button.left {
	left: 10px;
}
.carousel-button.right {
	right: 10px;
}

.workmanship {
	grid-column: 1 / span 12;
}
	
.workman {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 10px;
	margin: 1em 0;
}
	
.affiliations {
	grid-column: 1 / span 12;
}

#affiliations {
	padding-top: 0em;
}
	
.companies {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	grid-gap: 10px;
	margin: 0 48px;
	place-items: center;
}
	
footer {
	display: grid;
	place-items: center;
}
	
header {
	height: 112px;	
}
	
.spacer {
    grid-column: 1 / span 12;
    padding: 14px;
}
	
.spacer2 {
    grid-column: 1 / span 12;
    padding: 1em 0;
}
	
/* Footer Styles */
.contact_image {
	grid-column: 5 / span 1;
}
.contact{
	grid-column: 6 / span 3;
	text-align: left;
}
    
/* Navigation */
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow:hidden;
    display: flex; 
  	flex-wrap: wrap; 
  	justify-content: center; 
	font-size: 16px;
}
	
nav li {
    flex-grow: 1;
}
	
nav li a {
    color:white;
    text-decoration:none;
    display:block;
    text-align:center;
    padding: 27px 0;
}
	
nav li a:hover {
    text-decoration: underline solid var(--green) 3px;
	text-underline-offset: 7px;
}
	
.seal {
	grid-column: 8 / span 1;
	max-width: 100px;
	position: absolute;
	left: 90%;
	top: 0%;
}
}/*Close Media Query */