/* If Width will break anything, delete on the go */

section.home {
		width: 100%;
}

section.home video {
	z-index: 1;
	transition: 1s;
}

section.home div video:hover {
	filter: grayscale(50%);
	transform: scale(1.05);
	
}

section.home div img {
	z-index: 1;
	transition: 1s;
}

section.home div img:hover {
	filter: grayscale(50%);
	transform: scale(1.05);
	
}

@media (min-width: 1655px) { 
	
	section.home  { 
		display: grid;
		grid-template-columns: repeat(12, [col] 1fr);
		grid-template-rows: auto;
		grid-column-gap: 0.625em;   /*  .625% of 16 = 10, 0.625em = 10px ...  */
		grid-row-gap: 0.625em;
		grid-template-areas:
		".. .. .. .. .. .. .. .. .. .. .. .."
		"n1 n1 .. g1 g1 g1 g1 g2 g2 g2 g2 .."
		"n1 n1 .. g1 g1 g1 g1 g2 g2 g2 g2 .."
		"n1 n1 .. g3 g3 g3 g3 g3 g3 g3 g3 .."
		"n1 n1 .. g3 g3 g3 g3 g3 g3 g3 g3 .."
		"n1 n1 .. g4 g4 g4 g4 g5 g5 g5 g5 .."
		"n1 n1 .. g4 g4 g4 g4 g5 g5 g5 g5 .."
		"n1 n1 .. g6 g6 g6 g6 g7 g7 g7 g7 .."
		"n1 n1 .. g6 g6 g6 g6 g7 g7 g7 g7 .."
		"n1 n1 .. .. .. .. .. .. .. .. .. .."
		"n1 n1 .. .. .. .. .. .. .. .. .. .."
		".. .. .. .. .. .. .. .. .. .. .. .."
		"cr cr cr cr cr cr cr cr cr cr cr cr"
		;
	}
	
	section.home div {  } 
	section.home div.n1 { grid-area: n1; }
	section.home div.g1 { grid-area: g1; } /* Start, End, Fit, Justify align-self: center;*/
	section.home div.g2 { grid-area: g2; }
	section.home div.g3 { grid-area: g3; }
	section.home div.g4 { grid-area: g4; }
	section.home div.g5 { grid-area: g5; }
	section.home div.g6 { grid-area: g6; }
	section.home div.g7 { grid-area: g7; }
	section.home div.g8 { grid-area: g8; }
	section.home div.cr { grid-area: cr; }
	
}

/*------------------------------------------------------------------------------*/

/* Sub-Pages Links Navigation (For the grid see project-des for reference)*/

/* Navigation Decorations */

div.n1 p {
	text-align: left;
	margin-right: 30px;
}

div.nav_des {
	margin: 0px 0px 0px 20px;
}

div.nav_des2 {
	margin: 0px 0px 0px 20px;
}

/* Navigation Line IDs */

div.line_nav {
	width: 90%;
}

#line_1 {
	background-color: var(--line-color);
	height: 5px;
	
}

#line_2 {
	background-color: var(--line-color);
	height: 5px;
	margin: 0px 0px 0px 0px; /* Button Makeover */
	
}

/* Fixes Firefox Margin issue (It Does Not)*/
@-moz-document url-prefix() {
  #line_2 {
      margin: 0px 0px 0px 0px; /* Button Make Over */
  }
}

#line_3 {
	background-color: var(--line-color);
	height: 5px;
	margin: 40px 0px 0px 0px;
	
}

/* Navigation Buttons */
					/*Sticky Menu Check if it works*/

div.n1 {
	position: sticky;
	position: -webkit-sticky;
	top: 0;
	overflow: hidden;
	align-self: start;
	z-index: 2;
}

/* Navigation Menu */
div.nav-2 {
    position: sticky;
    top: 20px;
    left: 20px;
    z-index: 100;
}

div.nav-2 nav ul {
    list-style-type: none;
    padding: 0;
	margin-left: 4px;
}

div.nav-2 nav ul li {
    margin-bottom: 10px;
}

.nav-button {
    background-color: black; /* Dark Mode button color */
    color: white; /* Text color */
    padding: 10px 20px; /* Spacing */
    border: 2px solid white; /* Border similar to other buttons */
    border-radius: 5px; /* Rounded edges */
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    width: 180px; /* Original - 150px - Adjust width as needed */
    display: block;
	font-family: 'Anonymous Pro';
}

.nav-button:hover {
    background-color: gray; /* Match hover color */
}

/* Align buttons properly */
div.nav-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/*------------------------ Project Overview Divisions ------------------------*/

/* Decorations Divisions */

div.line {
	background-color: var(--line-color);
	width: 100%;
	height: 5px;
}

/* G2 - G3 Divisions */


/* G2 - G3 Divisions */

div.g8 {
}

/* Viewport 1530px ------- Visual Fix */

@media screen and (min-width: 865px) and (max-width: 1654px) {
	
	section.home  { 
		display: grid;
		grid-template-columns: repeat(12, [col] 1fr);
		grid-template-rows: auto;
		grid-column-gap: 0.625em;   /*  .625% of 16 = 10, 0.625em = 10px ...  */
		grid-row-gap: 0.625em;
		grid-template-areas:
		".. .. .. .. .. .. .. .. .. .. .. .."
		"n1 n1 .. g1 g1 g1 g1 g1 g1 g1 g1 .."
		"n1 n1 .. g2 g2 g2 g2 g2 g2 g2 g2 .."
		"n1 n1 .. .. .. .. .. .. .. .. .. .."
		"n1 n1 .. g3 g3 g3 g3 g3 g3 g3 g3 .."
		"n1 n1 .. g3 g3 g3 g3 g3 g3 g3 g3 .."
		"n1 n1 .. g4 g4 g4 g4 g4 g4 g4 g4 .."
		"n1 n1 .. g5 g5 g5 g5 g5 g5 g5 g5 .."
		"n1 n1 .. g6 g6 g6 g6 g7 g7 g7 g7 .."
		"n1 n1 .. g6 g6 g6 g6 g7 g7 g7 g7 .."
		"n1 n1 .. .. .. .. .. .. .. .. .. .."
		"n1 n1 .. .. .. .. .. .. .. .. .. .."
		".. .. .. .. .. .. .. .. .. .. .. .."
		"cr cr cr cr cr cr cr cr cr cr cr cr"
		;
	}
	
	section.home div {  } 
	section.home div.n1 { grid-area: n1; }
	section.home div.g1 { grid-area: g1; } /* Start, End, Fit, Justify align-self: center;*/
	section.home div.g2 { grid-area: g2; }
	section.home div.g3 { grid-area: g3; }
	section.home div.g4 { grid-area: g4; }
	section.home div.g5 { grid-area: g5; }
	section.home div.g6 { grid-area: g6; }
	section.home div.g7 { grid-area: g7; }
	section.home div.g8 { grid-area: g8; }
	section.home div.cr { grid-area: cr; }
	
}


/*------------------------ Mobile Version (Originally 864px) ------------------------*/

@media screen and (max-width: 864px) {
	
	/* Section Home Paragraph Fix */
	
	section.home h2 {
		margin: 20px;
		
	}
	
	section.home p {
		margin: 20px;
	}
	
	/* Mobile Menu */
	
	div.n1 nav ul {
	float: left;
	list-style-type: none;
	padding: 0;
	margin: -12px 0px 0px 0px;
	width: auto;
	}

	div.n1 nav ul li {
	display: inline-block;
	float: left;
	height: 0%;
	}
	
	div.n1 {
		position: sticky;
		background-color: transparent; /*Original var(--bg-color-nav) - Removes Colour Background*/
		height: 40px; /*61px Legacy Setting - Fixes the height of the sub navigation*/
		width: 800px;
		transform: rotate(-270deg); /* Roatation Menu */
		margin-left: -380px;
		margin-top: 380px;
		top: 378px;
		bottom: 160px;
	}
	
	div.nav_des {
		margin: 0px 0px 0px 150px;
		display: none;
	}
	
	.toggle-button {
		display: none;
	}
	
	div.n1 nav ul li button {
		letter-spacing: 1px;
		display: inline;
		margin: 0px 1px;
	}
	
	
	div.nav-2 {
		top: 12px; /* Keeps Button at Top in Mobile Menu */
	}
	
	.nav-button {
		width: 100%;
	}
	
	/* Line Properties */
	
	div.line_nav {
		width: 100%;
	}
	
	#line_1 {
		height: 1.5px;
		display: none;
	}
	
	#line_2 {
		margin: 95px 0px 0px 0px; /*Leak Line*/
		height: 2.5px;
	}
	
	div.nav_des2 {
		display: none;
	}
	
	div.g1 {
		margin-top: -400px; /* Brings the Main Text Up */
	}
	
	.g1, .g2, .g3, .g4, .g5, .g6, .g7 {
    padding: 0 0 0 40px;
	}
	
	div.g1 h3 {
		margin: 20px;
	}
	
	div.g4 h3 {
		margin: 20px;
	}
	
	.line {
		margin-left: -40px;
		padding-right: 40px;
	}
	

}

/*4K Optimisation */

@media screen and (min-width: 2560px) {
	
	#line_2 {
		margin: 0px 0px 0px 0px;
	}
	
	div.n1 nav ul li button {
		font-size: 36px;
		width: 300px;
	}
	
	h3 {
		font-size: 34px;
	}
	
	h2 {
		font-size: 38px;
	}
	
	p {
		font-size: 24px;
	}
	
	div.n1 nav ul li a.frame {
		width: 300px;
	}
	
	div.n1 h4 {
		font-size: 26px;
	}
	
	div.n1 nav ul li a:hover:not(.active) {
	width: 250px; /*Overlay Length*/
} 
	
}