:root{
	--default-text-shadow: 0px 2px 5px black;
}
/* Hide grecaptcha on non-form pages */
body:not(:has(form)) .grecaptcha-badge {
    display: none !important;
}
body, html {
    background: #051536;
    font-family: 'Ubuntu', sans-serif;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}
header {
    backdrop-filter: blur(4px) brightness(80%);
    background-color: rgba(5, 21, 54, 0.5);
    color: white;
    height: 100px;
    padding: 20px 0% 20px 5%;
	position: sticky;
    text-align: left;
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensures the header stays above other content */
}
nav{
    display: inline-block;
    position: absolute;
	top: 15px;
    transform-origin: 0 0;
    transition: all 0.3s;
    width: 76%;
}
nav a{
    color: #FFFFFF;
    display: inline-block;
    font-size: 1.5em;
    text-align: center;
    text-decoration: none;
    transform-origin: 0 0;
    transition: all 0.3s;
}
.textShadow{
	text-shadow: var(--default-text-shadow);
}
.navLogo {
    filter: drop-shadow(0px 6px 10px rgba(255, 255, 255, 0.5)) brightness(0) invert(1);
	height: 100px;
    position: relative;
	top: -20px;
    transform-origin: center;
    transition: all 0.3s;
}
.navLogo:hover{
	filter: brightness(0) invert(1)  drop-shadow(0px 6px 10px rgba(255,255,255,0.9));
	transform: scale(1.05);
}
#homeContentBlock1{
    color: #FFFFFF;
    font-size: 1.5em;
	min-height: calc(100vh + 50px);
	padding-bottom: 50px;
    position: relative;
    text-align: center;
	text-size-adjust: 100%;
    width: 100%;
    z-index: 0;
}
#homeContentBlock1 p{
	color: inherit;
}
#homeContentBlock1 .proactiveButton{
     margin: 15px;   
}
#videoBackground {
	filter: blur(3px);
    height: 100%;
	left: 0;
	object-fit: cover;
    overflow: hidden;
    position: absolute;
    width: 100%;
	z-index: -1;
}
#videoTextHolder {
	align-content: center;
	min-height: 100vh;
    padding: 100px 12.5% 0;
    position: relative;
    text-align: center;
}
#animatedText {
	color: white;
	font-family: "Exo 2", sans-serif;
	font-optical-sizing: auto;
	font-size: 3em;
	font-style: normal;
	font-weight: 500;
	letter-spacing: 3px;
	line-height: 1em;
	margin-bottom: 1rem;
	min-height: 150px;
	opacity: 0; /* Start invisible to allow for fade-in */
	text-overflow: clip;
	text-shadow: -3px 0 2px red, 3px 0 2px cyan;
	transition: opacity 2s ease-in-out;
}

/* Animation keyframes for fade-in and fade-out effects */
@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    25%, 75% { opacity: 1; }
}

:is(a, button).proactiveButton{
	background-color: #ff5500;
	background-image: -webkit-linear-gradient(
		top left,
		rgba(255, 255, 255, 0.2) 0%,
		rgba(255, 255, 255, 0.2) 37%,
		rgba(255, 255, 255, 0.8) 45%,
		rgba(255, 255, 255, 0.0) 50%
	);
	background-image: -moz-linear-gradient(
		0 0,
		rgba(255, 255, 255, 0.2) 0%,
		rgba(255, 255, 255, 0.2) 37%,
		rgba(255, 255, 255, 0.8) 45%,
		rgba(255, 255, 255, 0.0) 50%
	);    
	background-image: -o-linear-gradient(
		0 0,
		rgba(255, 255, 255, 0.2) 0%,
		rgba(255, 255, 255, 0.2) 37%,
		rgba(255, 255, 255, 0.8) 45%,
		rgba(255, 255, 255, 0.0) 50%
	);
	background-image: linear-gradient(
		0 0,
		rgba(255, 255, 255, 0.2) 0%,
		rgba(255, 255, 255, 0.2) 37%,
		rgba(255, 255, 255, 0.8) 45%,
		rgba(255, 255, 255, 0.0) 50%
	);
	background-position: 90% -74px, 0 0;
	background-size: 250% 250%, 100% 100%;
	border-radius: 100px;
	border: 2px solid #FFFFFF;
	color: #FFFFFF;
	display: inline-block;
	padding: .5em .5em;
	position: relative;
	text-decoration: none;
	text-shadow: var(--default-text-shadow);
	transition: background-position 0s ease;
}
:is(a, button).proactiveButton:hover{
	background-position: 0 0, 0 0;
	transition-duration: 0.5s;
}
.visualListing{
    margin-top: -50px;
    position: relative;
}
ul.menu {
	display: flex;
	justify-content: center;
	list-style: none;
}
.menu li {
	margin-right: 5%;
}
.menu a {
	display: block;
	overflow: hidden;
	position: relative;
}
.menu a span {
	transition: transform 0.2s ease-out;
}
.menu a span:first-child {
	display: inline-block;
	padding: 10px;
}
.menu a span:last-child {
	align-items: center;
	bottom: 0;
	display: flex;
	justify-content: center;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	transform: translateY(-100%);
}
.menu i {
	font-size: 30px;
}
.menu a:hover span:first-child {
	transform: translateY(100%);
}
.menu a:hover span:last-child,
.menu[data-animation] a:hover span:last-child {
	transform: none;
}
/* ANIMATIONS
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.menu[data-animation="to-top"] a span:last-child {
	transform: translateY(100%);
}
.menu[data-animation="to-top"] a:hover span:first-child {
	transform: translateY(-100%);
}
.menu[data-animation="to-right"] a span:last-child {
	transform: translateX(-100%);
}
.menu[data-animation="to-right"] a:hover span:first-child {
	transform: translateX(100%);
}
.menu[data-animation="to-left"] a span:last-child {
	transform: translateX(100%);
}
.menu[data-animation="to-left"] a:hover span:first-child {
	transform: translateX(-100%);
}
.aboutBlock{
    background: #FFFFFF;
    border-radius: 50px;
    color: #333333;
    font-size: 1.4em;
    line-height: 1.4;
    margin: 50px 2%;
    padding: 25px 5%;
    text-shadow: none;
    width: 96%;
}
.aboutBlock > img{
	height: calc(625px - 15vw);
}
.aboutBlock h2{
     color: #00639d;
}
article:is(.missionGridItem, .teamGridItem) {
    align-items: center;
    background-color: black;
    background-size: cover;
    background-attachment: scroll;
    background-position-x: center;
    background-position-y: center;
    background-repeat: no-repeat;
    border: 3px solid #cc90d0;
    border-radius: 50px;
    box-shadow: 0px 0px 10px #cc90d0;
    display: grid;
    font-size: 1.5em;
    gap: 1em;
    grid-template-columns: 0.5fr 1fr 0.25fr;
    margin: 20px 2%;
    padding: 2em;
	position: relative;
	overflow: hidden;
	z-index: 0;
}
article:is(.missionGridItem, .teamGridItem) > img.gridBackgroundImage{
	display: block;
	height: 100%;
	position: absolute;
	object-fit: cover;
	width: 100%;
	z-index: -1;
}
article:is(.missionGridItem, .teamGridItem) .logo {
	aspect-ratio: 1;
	border-radius: 30%;
	max-width: 300px;
	padding: 30px;
	object-fit: contain;
	transform-origin: 0 0;
	transition: all 0.3s;
	width: 100%;
}
article:is(.missionGridItem, .teamGridItem) > div {
	backdrop-filter: blur(4px) brightness(80%);
	background: rgb(0 0 0 / 30%);
	border-radius: 1em;
	padding: 1em;
}
article:is(.missionGridItem, .teamGridItem) > div > :is(h2, p) {
	color: white;
	text-shadow: 2px 3px 2px black;
}
article:is(.missionGridItem, .teamGridItem) > :is(a, span){
	justify-self: center;
}
article:is(.missionGridItem, .teamGridItem) > :is(a, div, span):is(:has(.logo), .hasLogo){
	/* Fallback in case the browser doesn't support rgba */
	background-color: white;
	background-color: rgba(255, 255, 255, 73%);
	backdrop-filter: blur(4px) brightness(100%);
	border: 4px solid #FFFFFF;
	border-radius: 100%;
	box-shadow: 0px 4px 20px #000000;
	max-width: 300px;
	overflow: hidden;
	transform-origin: 0 0;
	transition: all 0.3s;
}
article:is(.missionGridItem, .teamGridItem) > :is(a, div, span):is(:has(.logo), .hasLogo):hover{
	background-color: rgba(255, 255, 255, 95%);
	backdrop-filter: blur(10px) brightness(200%);
	border: 4px solid #FFFFFF;
	box-shadow: 0px 4px 20px #000000;
}
img.backgroundPhoto {
    filter: brightness(0.75);
    height: 100%;
    left: 0;
    object-fit: cover;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
}
.footer{
	background: #2f3a40;
	color: white;
	font-size: 1.1em;
    padding: 25px 5%;
	text-align: center;
    width: 100%;
}
.footer :is(h1, h2, h3, h4, h5, h6, p, span, strong, em) {
	color: white;
}

.formWrapper{
	background: url("/images/design/bg-image-forms.jpg") no-repeat top left;
	background-size: cover;
	height: 100%;
	padding: 3em 15%;
	width: 100%;
}

#contactForm{
    background-color: rgb(255 255 255 / 73%);
    backdrop-filter: blur(4px) brightness(100%);
    border: 4px solid #FFFFFF;
    border-radius: 25px;
    padding: 1em 5%;
    box-shadow: 0px 4px 20px #000000;
}
#contactForm > section{
	margin-bottom: 2em;
}
#contactForm label.form-label:has([required]) > strong:after {
	content: "*";
	color: var(--color-orange);
}
#contactForm .proactiveButton{
	font-size: 1.25em;
	width: 150px;
}
#contactForm .form-switch{
	align-self: center;
	font-size: 1.25em;
}
.twoColumn{
	display: grid;
	gap: 1em 5%;
	grid-template-columns: 1fr 1fr;
}
.twoColumn > h2{
	grid-column: 1 / 3;
}
#contactThanks{
	font-size: calc(1vw + 1em);
	left: 50%;
	max-height: calc(100vh - 200px);
	overflow: auto;
	padding: 1em;
	position: absolute;
	text-align: center;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
}
#contactThanks img{
	height: 80px;
}
#contactThanks *{
	color: white;
}
main:has(#contactThanks) ~ footer{
	bottom: 0;
	position: fixed;
}

/* Mission Details Page */
#missionDetailBannerImage {
	background-size: cover;
	background-position: center;
	overflow: hidden;
	padding-bottom: 200px;
	position: relative;
	width: 100%;
}
#missionDetailBannerImage > img{
	display: block;
	height: 100%;
	position: absolute;
	object-fit: cover;
	width: 100%;
}
#missionDetailBannerImage::after {
	background-image: linear-gradient(to top, rgba(5,21,54,255), rgba(5,21,54,0));
	bottom: 0;
	content: '';
	height: 350px;
	left: 0;
	position: absolute;
	right: 0;
}
#missionDetailBannerImageTextHolder {
	backdrop-filter: blur(4px) brightness(100%);
	background-color: rgb(255 255 255 / 73%);
	border: 4px solid #FFFFFF;
	border-radius: 50px;
	box-shadow: 0px 4px 20px #000000;
	font-size: 1.4em;
	margin-left: 70px;
	min-height: 600px;
	padding: 100px 3%;
	position: relative;
	text-align: center;
	top: 200px;
	z-index: 1;
}
#missionDetailsPageLogo{
	margin-bottom: 25px;
	width: 90%;
}
#missionDetailBannerImageTextHolder i{
 	color: #ff5500;
}
#missionDetailBannerImageTextHolder h3{
 	margin-top: 35px;   
}
#curriculumSitesContainer{
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	justify-content: center;
}
#educationalCategoriesDisplay{
	list-style-type: none;
	padding: 0;
	margin: 0;
}
#educationalCategoriesDisplay li{
	display: inline-block;
	margin-right: 15px;
}
:not(.twoColumn) > #missionDetailFullDescription{
	padding-left: 70px;
}
#missionDetailFullDescription{
	padding: 50px 3% 50px 0px;
	text-align: left;
}
#missionDetailFullDescription :is(h1, h2, h3, h4, h5, h6, p, em, i, strong, ul, ol, li){
	color: #FFFFFF;
}
#missionDetailFullDescription p{
	font-size: 1.3em;
	line-height: 1.6;
}
#missionDetailSupportImages{
	align-content: flex-start;
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 50px 3%;
	padding: 50px 0px 50px 70px;
}
#missionDetailSupportImages img{
	aspect-ratio: 5 / 4;
	border-radius: 25px;
	border: 3px solid #cc90d0;
	box-shadow: 0px 0px 10px #cc90d0;
	object-fit: cover;
	width: 31%;
}
#missionTeams > h2{
	color: white;
	font-size: 3em;
	margin: 0;
	padding: 0.5em;
	text-align: center;
}
.whiteFade{
	background: white/*linear-gradient(white, 95%, black)*/;
	font-size: 1.1em;
	padding: 1em 5% 3em;
}
:is(#technicalRequirements, #sponsors) > h2{
	color: var(--color-dark-blue);
}
#copyRequirements{
	font-size: medium;
	margin: 0;
	padding: 8px 15px;
	vertical-align: text-bottom;
}
#flexSponsors{
	align-items: center;
	display: grid;
	gap: 1em;
	grid-auto-rows: 1fr;
	grid-template-columns: repeat(4, 1fr);
}
#flexSponsors img{
	object-fit: contain;
	width: 100%;
}
/* End Mission Details Page */

@media screen and (max-width: 1024px){
	#animatedText{
		font-size: 2em;
		min-height: 6.5em;
		overflow-wrap: anywhere;
	}
	#videoTextHolder{
		padding: 100px 1em;
	}
	article:is(.missionGridItem, .teamGridItem){
		font-size: calc(2vw + 0.5em);
		grid-template-columns: 1fr;
		text-align: center;
	}
	article:is(.missionGridItem, .teamGridItem) .logo{
		justify-self: center;
	}
	.twoColumn{
		grid-template-columns: 1fr;
	}
	.twoColumn > h2{
		grid-column: 1 / 2;
	}
    .formWrapper{
        padding: 1em 5%;
    }
    #contactForm{
		font-size: calc(2vw + 0.5em);
	}
	#contactForm input.form-control[type="datetime-local"]{
		line-height: 1;
		min-height: 50px;
		padding: 0 .75rem;
	}
	#contactForm .proactiveButton{
		width: 100%;
	}
	nav{
		display: none;   
	}
	.navLogo{
		width: 100%;   
	}
	header.mimizedHeader .navLogo{
		margin-right: 6%;
		top: 0px;
		width: 40%;
	}
	a.proactiveButton{
		margin-bottom: 25px;
	}
	/* Mission Details Page */
	#missionDetailBannerImageTextHolder{
		margin-left: 5%;
		margin-right: 5%;
		top: 100px;
	}
	#missionDetailSupportImages{
		gap: 1em;
		grid-row: 2;
		padding-left: 5%;
		padding-right: 5%;
	}
	#missionDetailSupportImages img{
		width: calc(50% - 0.5em);
	}
	#missionDetailFullDescription{
		padding-left: 5% !important;
		padding-right: 5%;
	}
	/* End Mission Details Page */
}