/*Colour palette reference

Titanic Black: rgba(52,52,60,1);
Titanic Red: rgba(158,68,65,1);
Buff: rgba(252,188,116,1);
Aluminium: rgba(142,156,157,1);
Duck Egg: rgba(192,207,228,1);

*/
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.bold {
	font-weight: 800;
}

body {
	font-family: quicksand, sans-serif;
	overflow-x: hidden;
	font-weight: 300;
}

h1 {
	color: white;
	font-size: 2.25rem;
	line-height: 2.5rem;
	font-weight: 400;
}

h2 {
	color: rgba(252,188,116,1);
	margin-bottom: 1.25rem;
	font-weight: 200;
}

h3 {
	width: 16.67%;
	font-weight: 700;
	margin-bottom: 1.25rem;
}

h4 {
	height: 16.67%;
	white-space: normal;
	font-weight: 500;
	color: rgba(252,188,116,1);
	font-size: 1.2rem;
}

p {
	color: white;
	margin-top: 1.5rem;
}

a.emphasis_red {
	color: rgba(158,68,65,1);
	font-weight: 700;
	text-decoration: none;
}

#hero_image {
	position: relative;
	z-index: -100;
	overflow: hidden;
	width: 100%;
	max-height: 70vh;
}

#hero_image img {
	width: 100vw;
}

#hero_video {
	position: relative;
	z-index: -100;
	overflow: hidden;
	width: 100%;
}

#hero_video video {
	width: 100vw;
}

#hero_video video i {
	position: absolute;
	bottom: 2.5rem;
	color: white;
	width: 100%;
	text-align: center;
}

#hero_text_alt2 {
	position: absolute;
	width: auto;
	top: 35vh;
	left: 25%;
	font-size: 1.3rem;
	background-color: rgba(0, 0, 0, 0.25);
	padding: 1%;
	border-radius: 0.5rem;
}

#hero_text_alt {
	position: absolute;
	width: auto;
	top: 40vh;
	left: 25%;
	font-size: 1.3rem;
	background-color: rgba(0, 0, 0, 0.25);
	padding: 1%;
	border-radius: 0.5rem;
}

#hero_text {
	position: absolute;
	width: 33%;
	top: 20rem;
	left: 8.33%;
	font-size: 1.3rem;
}

#hero_text a {
	display: block;
	width: fit-content;
	font-size: 1rem;
	line-height: 1.5rem;
	color: rgba(52,52,60,1);
	background-color: rgba(252,188,116,1);
	border-radius: 1.5rem;
	margin-top: 2.5rem;
	padding: 0.75rem 1.5rem;
	text-decoration: none;
	font-weight: 500;
}

header {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	z-index: 100;
	position: absolute;
	top: 1.25rem;
	left: 8.33%;
	width: 83.33%;
	height: 15vh;
	margin-top: 2.5rem;
}

header img {
	height: 20vh;
}

#mobile_nav {
	color: white;
	cursor: pointer;
	display: none;
}

nav {
	padding: 0.25rem 0 0 2.5rem;
	position: relative;
}

nav a {
	color: white;
	margin: 0 1.5rem;
	text-decoration: none;
	transition: all 225ms cubic-bezier(0.4, 0, 0.2, 1);
	border-bottom: solid 2px transparent;
	font-weight: 500;
}

nav a:hover {
	border-bottom: solid 2px rgba(252,188,116,1);
}

nav a#psublink:hover ~ #projects_submenu {
	visibility: visible;
}

nav #projects_submenu {
	position: absolute;
	top: 5vh;
	left: 32%;
	text-align: left;
	background-color: rgba(255,255,255,0.9);
	padding: 3% 3% 0.25% 3%;
	box-sizing: border-box;
	visibility: hidden;
	transition: all 250ms;
}

nav #projects_submenu a {
	margin: 0 0 10% 0;
	display: block;
	color:  rgba(52,52,60,1);
	transition: none;
}


nav #projects_submenu:hover {
	visibility: visible;
}

header a#downloads {
	color: white;
	padding: 0 1.5rem;
	text-decoration: none;
	display: block;
	border-radius: 1.5rem;
	border: solid white 2px;
	color: white;
	padding: 0.25rem 2.5rem;
	margin: 0 0.75rem 0 auto;
	font-weight: 500;
	transition: all 225ms cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
}

header a#downloads:hover {
	border: solid 2px rgba(252,188,116,1);
}

section#mainContent {
	width: 66.66%;
	background-color: white;
	padding: 4rem 8rem;
}

section#mainContent p {
	color: rgba(52,52,60,1);
	width: 100%;
	display: inline-flex;
	line-height: 1.9rem;
	font-size: 1.2rem;
}

section#mainContentAlt {
	width: 50%;
	background-color: white;
	padding: 4rem 0;
	margin-left: 25%;
}

section#mainContentAlt p {
	color: rgba(52,52,60,1);
	width: 100%;
	line-height: 1.9rem;
	font-size: 1.2rem;
}

span.paragraphBar {
	display: inline-block;
	background-color: rgba(252,188,116,1);
	border-radius: 0.375rem;
	align-self: stretch;
	padding: 0 0.4rem 0 0;
	margin: 0 1.5rem 0 0;
}

#cardsHolder {
	position: relative;
	width: 100vw;
	overflow-x: hidden;
	white-space: nowrap;
	padding: 0 8rem 4rem 8rem;
}

#cardsHolderConstruction {
	position: relative;
	width: 100%;
	overflow-x: hidden;
	white-space: nowrap;
	padding: 4rem 0;
	text-align: left;
}

i#card_slide_left {
	display: none;
	z-index: 10;
	cursor: pointer;
	position: absolute;
	left: 2.5rem;
	top: 42%;
	color: rgba(252,188,116,1);
	text-align: center;
}

i#card_slide_right {
	z-index: 10;
	cursor: pointer;
	position: absolute;
	right: 2.5rem;
	top: 42%;
	color: rgba(252,188,116,1);
	text-align: center;
}

.cards {
	position: relative;
	border: solid 0.25rem white;
	width: 20%;
	height: 30rem;
	border-radius: 1.5rem;
	background-size: cover;
	display: inline-flex;
	cursor: pointer;
	transition: all 1000ms cubic-bezier(0.4, 0, 0.2, 1);
	filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
	margin: 1.25rem 2.5rem 0 2.5rem;
}

.constructionCards {
	position: relative;
	border: solid 0.25rem white;
	width: 20%;
	height: 30rem;
	border-radius: 1.5rem;
	background-size: cover;
	display: inline-flex;
	cursor: pointer;
	transition: all 1000ms cubic-bezier(0.4, 0, 0.2, 1);
	filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
	margin: 2rem;
}

#firstCard {
	background-image: url("../img/conception_card.webp");
}

#secondCard {
	background-image: url("../img/construction_card.webp");
}

#thirdCard {
	background-image: url("../img/voyage_card.webp");
}

#fourthCard {
	background-image: url("../img/sinking_card.webp");
}

#fifthCard {
	background-image: url("../img/more_card.webp");
}

#firstCardConstruction {
	background-image: url("../img/agantry_card.webp");
	margin-left: 0;
}

#secondCardConstruction {
	background-image: url("../img/keel_card.webp");
}

#thirdCardConstruction {
	background-image: url("../img/framing_card.webp");
}

#fourthCardConstruction {
	background-image: url("../img/plating_card.webp");
}

.constructionCardContent {
	display: flex;
	flex-direction: column;
	justify-content: end;
	color: white;
	font-size: 0.875rem;
	line-height: 1.25rem;
	position: absolute;
	bottom: 1.25rem;
	left: 8.33%;
	height: 45%;
	width: 83.33%;
	text-align: left;
}

.constructionCardContent p {
	height: 50%;
	white-space: normal;
	margin-bottom: 3.3rem;
	font-size: 1.1rem;
	line-height: 1.4rem;	
}

.cardContent {
	display: flex;
	flex-direction: column;
	justify-content: end;
	color: white;
	font-size: 0.875rem;
	line-height: 1.25rem;
	position: absolute;
	bottom: 1.25rem;
	left: 8.33%;
	height: 45%;
	width: 83.33%;
	text-align: left;
}

.cardContent p {
	height: 50%;
	white-space: normal;
	margin-bottom: 3.3rem;
	font-size: 1.1rem;
	line-height: 1.4rem;
}

section#p401Main {
	height: 66%;
	background-color: rgba(52,52,60,1);
	padding: 4rem 8rem;
	text-align: left;
	font-size: 1.2rem;
}

section#p401Main h2 {
	color: white;
	width: 100%;
	display: inline-flex;
	line-height: 3.75rem;
	font-size: 2.5rem;
}


section#constructionMilestones {
	height: 66%;
	background-color: rgba(52,52,60,1);
	padding: 4rem 8rem;
	text-align: center;
}

section#constructionMilestones h2 {
	color: white;
	width: 100%;
	display: inline-flex;
	line-height: 3.75rem;
	font-size: 2.5rem;
}

section#collaborators {
	height: 66%;
	background-color: rgba(52,52,60,1);
	padding: 4rem 8rem;
	text-align: center;
}

section#collaborators #logos {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	margin: 5rem 0;

}

section#collaborators #logos img {
	padding: 0 4rem;
	min-width: 0;
}

form#contact {
	width: 50%;
	margin: 8rem auto 0 auto;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	text-align: left;
}

form#contact h2 {
	width: 100%;
	flex-shrink: 0;
}

form#contact p {
	width: 100%;
	margin: 1.25rem 0 2.5rem 0;
}

.elementGp1 {
	width: 49%;
	display: inline-flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	margin-right: 1%;
}

.elementGp2 {
	width: 50%;
	display: inline-flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	margin-left: auto;
}

.elementGp3 {
	width: 100%;
	margin-left: auto;
	margin-top: 1.25rem;
	margin-bottom: 1.25rem;
}

form#contact .consent {
	width: initial;
	margin-right: 1.25rem;
}

form#contact label {
	width: 100%;
	flex-shrink: 0;
	margin-bottom: 0.75rem;
	color: white;
}

form#contact input, form#contact select, form#contact textarea {
	width: 100%;
	flex-shrink: 0;
	padding: 0.75rem;
	background-color: rgba(255,255,255,0.05);
	border: 1px #5D5D63 solid;
	border-radius: 0.375rem;
	margin-bottom: 1.25rem;
	color: white;
}

form#contact select option {
	background-color: rgba(52,52,60,1);
	padding: 0.25rem 0;
}

form#contact input:focus {
	border-color: rgba(252,188,116,1);
	outline: none;
}

form#contact textarea {
	resize: none;
}

form#contact textarea:focus {
	border-color: rgba(252,188,116,1);
	outline: none;
}

form#contact input[type=submit] {
	width: 20%;
	flex-shrink: 0;
	background-color: rgba(252,188,116,1);
	border: 1px #5D5D63 solid;
	border-radius: 1.5rem;
	cursor: pointer;
	color: rgba(52,52,60,1);
	transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

form#contact input[type=submit]:hover {
	background-color: rgba(252,188,116,0.8);
}

#error_msg, #success_msg, #failure_msg {
	width: 100%;
	display: none;
}

#error_msg {
	color: rgba(252,188,116,1);
	text-align: left;
	margin-bottom: 5%;
}

#success_msg, #failure_msg {
	color: rgba(252,188,116,1);
	text-align: center;
	font-size: 2rem;
}

section#rebuild_footer {
	text-align: center;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
	height: 45vh;
	text-align: left;
	padding: 4rem 8rem;
}

section#rebuild_footer img {
	max-width: 100%;
	min-height: 100%;
	display: block;
	position: absolute;
	left:0;
	top:0;
	z-index: -100;
}

section#rebuild_footer a {
	display: block;
	width: fit-content;
	font-size: 1.2rem;
	line-height: 1.9rem;
	color: white;
	background-color: transparent;
	border:solid white thin;
	border-radius: 1.5rem;
	margin-top: 2.5rem;
	padding: 0.75rem 1.5rem;
	text-decoration: none;
	font-weight: 500;
}

section#rebuild_footer p {
	width: 70%;
	line-height: 1.9rem;
	font-size: 1.2rem;
}

footer {
	height: 20%;
	background-color: rgba(142,156,157,0.4);
	padding: 1.25rem 8rem;
}

footer p {
	color: rgba(52,52,60,1) ;
}

.gallery {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 0 5%;
    backdrop-filter: blur(5px); /* Apply blur effect */
    -webkit-backdrop-filter: blur(5px); /* Safari fix */
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 5%;
    right: 5%;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 5%;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s;
    user-select: none;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.prev:hover, .next:hover {
    color: #ddd;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the spinner */
    font-size: 50px; /* Adjust the size as needed */
    color: white; /* Ensure the spinner is visible on dark background */
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.9); 
}

.modal-content {
	background-color: rgba(52,52,60,0.9);
	margin: 5% auto;
	padding: 1%;
	border-radius: 1rem;
	width: 50%;
	animation: fadeIn 0.5s ease-in-out;
}

.modal-content h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: rgba(252,188,116,1);
    border-bottom:thin solid white;
    padding-bottom: 1.5%;
	font-weight: bold;
}

.modal-content p {
	font-weight: 700;
}

.modal-content a {
	color: rgba(252,188,116,1);
	text-decoration: none;
}

.file-list {
    list-style-type: none;
    padding: 0;
}

.file-list p {
	margin: 0.5rem 0.5rem 1rem 0.5rem;
	font-weight: initial;
}

.file-list li {
    margin: 2rem 0;
}

.file-list li h3 {
	width: initial;
	color: rgba(252,188,116,1);
	font-weight: bold;
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}

.file-list li a {
    color: rgba(252,188,116,1);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    margin-bottom: 0.5rem;
}

.file-list li a:hover {
    color: rgba(158,68,65,1);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.accordion {
  color: rgba(252,188,116,1);
  cursor: pointer;
  padding: 1%;
  text-align: left;
  transition: 900ms all;
  margin-top: 5vh;
  background-color: initial;
  width: 100%;
  font-size: 1.2rem;
  line-height: 1.9rem;
  font-weight: 500;
  outline: none;
  border: none;
}

.active, .accordion:hover {
	background-color: rgba(255,255,255,0.15);
}

.panel {
	position: relative;
	display: flex;
	overflow: hidden;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	background-color: rgba(255,255,255,0.15);
	transition: max-height 0.8s ease, opacity 0.8s ease;
	max-height: 0;
	opacity: 0;
}

.open {
    opacity: 1;
}

.panel .spinner2 {
	display: none;
    text-align: center;
    width:100%;
    font-size: 50px; /* Adjust the size as needed */
    color: white; /* Ensure the spinner is visible on dark background */
}

.panel img {
  width:18%;
  max-width: 150px;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  margin: 1vh 1%;
  border-radius: 0.25rem;
}

.panel img:hover {
	opacity: 0.5;
	transition: all 500ms;
}

#products {
	width: 100vw;
  	padding: 0 8rem 4rem 8rem;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
}

#products .product {
	width: 15%;
	height: fit-content;
	margin: 2rem 5%;
}

#products .product .productImage {
	border: solid #B2BBBD 0.25rem;
	width: 100%;
	height: 30vh;
	background-size: contain;
	background-image: url("../store/img/placeholder.webp");
	background-repeat: no-repeat;
	background-color: white;
	background-position: center;
	border-radius: 1em;
}

#products .product h2, h4 {
	margin: 4%;
	font-size: 1rem;
	color: black;
	font-weight: 800;
}

#products .product h4 {
	margin: 4%;
	font-size: 1rem;
	color: black;
	font-weight: 600;
	height: initial;
}

#products .product button {
	background-color: #34343C;
	color: white;
	text-align: center;
	border-radius: 2rem;
	width:100%;
	padding: 4%;
	border: none;
	cursor: pointer;
	transition: all 300ms;
}

#products .product button:hover {
	background-color: #34343CBF;
}

#products .product button:disabled {
	background-color: #8E9C9D;
	cursor: initial;
}

