.divHeader_Top {
	background: var(--accent-color);
	border-bottom:var(--border-width) solid var(--theme-basic);
}

.divHeader_Top .aText:first-child {	
	border-left: var(--border-width) solid var(--theme-basic);
}

.divHeader_Top .aText {
	border-right: var(--border-width) solid var(--theme-basic);
	font-size: 14rem;
	margin-right: 0;
	padding: 6rem 20rem;
	text-decoration: none;
}

.divHeader_Top .aText:hover {
	background: var(--theme-basic);
}

.aLogo {
	align-self: center;
	margin-right: 20rem;
	padding: 10rem 0;
	text-decoration: none;
}

.aLogo casterdepot-logo {
	display: block;
	height: 50rem;
	width: 200rem;
}

.divHeader_Main {
	border-bottom: 1rem solid var(--theme-highlight);
}

.divHeader_Main.flex,
.divHeader_Main .flex {
	align-items: stretch;
}

.divHeader_Main .flex.flexSpace {
	align-items: center;
	justify-content: space-between;
}

.divHeader_Main .aMain {
	align-items: center;
	color: var(--font-color);
	display: flex;
	font-size: var(--default-font-size);
	font-weight: bold;
	padding: 0 20rem;
	text-decoration: none;
}

.divHeader_Main .aMain:hover {
	background: var(--accent-color);
	color: var(--font-color);
}

.divHeader_Main .aMain.aActive {	
	background: var(--theme-highlight);
	color: var(--theme-font);
}

.txtMainInput {
	align-items: center;
	display: flex;
    flex: 1;
    padding: 0 20rem;
}

.txtMainInput::part(ti_divContainer) {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    margin: 0;
    position: relative;
    width: 100%;
}

.txtMainInput::part(ti_divInput) {
    height: var(--input-height);
    overflow: hidden;
}

.txtMainInput::part(ti_input) {
    height: var(--input-height);
    font-size: var(--default-font-size);
}

.Dropdown_Container {
	align-items: stretch;
	display: flex;
	flex-direction: column;
	font-size: 12rem;
	padding: 10rem;
	position: relative;
	text-align: center;
}

.Dropdown_Container:hover {
	background: var(--accent-color);
}

.divAccount_Dropdown_Container .Dropdown_hover{
	display: flex;
    flex-direction: column;
    justify-content: center;
}

.divHeader_Main .Dropdown_Container .aText,
.Dropdown_hover {
	color: var(--font-color);
    text-decoration: none;
}

.aIcon {
	display: block;
}

.aIcon,
.bttnIcon {
	align-self: center;
}

.Dropdown_hover:hover + .divDropdown,
.divDropdown:hover {
	animation: var(--transition-speed) toggle_dropdown_visibility;
	animation-fill-mode: forwards;
	display: block;
}

.Dropdown_Container:hover div {
	color: var(--theme-highlight);
}

.bttnDropdownPointer {
	top: -30rem;
	padding: 0;
	position: absolute;
	right: 0;
}

.bttnDropdownPointer svg{
	fill: var(--accent-color);
	height: 30rem;
	width: auto;
}

.divDropdown {
	background: var(--accent-color);
	border-radius: var(--border-radius);
	box-sizing: border-box;
	display:none;
	position: absolute;
	transition: var(--transition-speed) ease max-height;
	top: 120%;
	width: 250rem;
	z-index: var(--zIndex-aboveAll);
}

.divDropdown .aText {
	border: var(--border-width) solid var(--accent-color);
	border-bottom: var(--border-width) solid var(--theme-basic);
	border-radius: var(--border-radius);
	box-sizing: border-box;
    display: block;
    font-size: var(--default-font-size);
    padding: 14rem 20rem;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.divDropdown .aText + .aText{
	border-top: 0rem;
}

.divDropdown .aText:last-child {
	border-bottom: var(--border-width) solid var(--accent-color);
}

.divDropdown .aText:hover {
	background: var(--theme-basic);
}

@keyframes toggle_dropdown_visibility {
	from {overflow: hidden; max-height: 0;}
	to {overflow: visible; max-height: 100vh;}
}

.divDropRight {
	right: 0;
}

.divSubHeader {
	background: var(--accent-color);
	border-top: calc(var(--border-width) / 2) solid var(--theme-highlight); /* split subheader border between divSubHeader and divHeader_Main */
	border-bottom: var(--border-width) solid var(--theme-basic);
	margin-bottom: 20rem;
}

.divSubHeader .flex {
	align-items: stretch;
}

.bttnSubHeaderContainer {
	display:flex;
}

.aSubHeader.aSub,
.bttnSubHeader.bttnSub,
.bttnSubHeaderSelected .bttnSub {
	color: var(--theme-font);
	display: flex;
	background: var(--theme-highlight);
	font-weight: bold;
}

.bttnSubHeader.bttnSub:hover,
.bttnSubHeaderSelected .bttnSub:hover {	
	color: var(--font-color);
	background: var(--theme-basic);
}

.bttnSubHeaderSelected .bttnSub:hover + svg {
    fill: var(--theme-basic);
}

.bttnSubHeaderContainer svg {
	display:none;
}

.bttnSubHeaderSelected svg {
    display: block;
    fill: var(--theme-highlight);
    min-height: 100%;
    width: 34rem;
}

.divSubHeaderContainer {
	flex-wrap: nowrap;
	overflow: hidden;
	width: 0;
}

.divSubHeaderContainer.expandedSubHeader {
	min-width: fit-content;
	transition: var(--transition-speed) ease width;
}

.aSub,
.bttnSub {
	color: var(--accent-color-varient);
	cursor: pointer;
	font-size: 14rem;
	padding: 8rem 20rem;
	text-decoration: none;
	white-space: nowrap;
}

.aSub:hover,
.bttnSub:hover {
	color: var(--font-color);
}

.aSub.aSubSelected {
	font-family: var(--font-family-bold);
    background: var(--theme-basic);
}

footer {
	background: var(--accent-color);
	border-top: var(--border-width) solid var(--theme-highlight);
	padding-bottom: 50rem;
	padding-top: 50rem;
}

.divFooterColumn {
    align-items: end;	
	display: flex;
    flex: 1 0 auto;
	flex-direction: column;
	font-size: 14rem;
	justify-content: space-between;
}

.divFooterColumn h5 {
	margin: 16rem 0;
	text-transform: uppercase;
}

.divFooterColumn a {
	color: var(--font-color);
	margin-bottom: 10rem;
	text-decoration: none;
	transition: var(--transition-speed) ease opacity;
}

.divFooterColumn a:hover {
	opacity: .5;
}

.divFooterColumn .divText {
	font-size: 13rem;
	line-height: 24rem;
	margin: 10rem 0;
}

.divFooterColumn .divText .aText {
	text-decoration: underline;
}

.divFooterColumn .aIcon {
	align-self: flex-start;
	fill: var(--theme-opposite);
	margin-right: 20rem;
	margin-top: 20rem;
}

.aIcon svg {
	height: var(--square-icon-small);
	width: var(--square-icon-small);
}

.aIcon.aBBB {
	margin-top: 10rem;
}

.BBB,
.BBB_A {
	color: #005F86;
	font-family: var(--font-family-bold);
	font-size: 10rem;
}

.BBB {
	font-size: 10rem;
	margin-right: 10rem;
}

.BBB_A {
	font-size: 20rem;
	margin-left: 10rem;
}

.flexBBB .flexColumn {	
	border-right: var(--border-width) solid #005F86;
}

.flexBBB {
	border: var(--border-width) solid #005F86;
	border-radius: 10rem;
	box-sizing: border-box;
	flex-wrap: nowrap;
	padding: 4rem 10rem;
}

.divMobileNav {
	margin: 0 auto; /* Should always be set to this. */
	position: relative;
	width: var(--layout-width); /* Should always be set to this. */	
}

.divDropdown h2 {
    margin-top: 0;
}

.svgIcon,
hamburger-menu,
cart-button {
	display: block;
	height: 50rem;
	width: 50rem;
}

hamburger-menu {
	display: block;
	fill: var(--theme-highlight-read);
}

cart-button {
	display: flex;
	position: relative;
}

.divHeader_Main .Dropdown_Container:hover .divIcon svg,
.divHeader_Main .Dropdown_Container:hover ::part(svg_Cart) {
	fill: var(--theme-highlight);
	color: var(--theme-highlight);
}

.svgIcon,
::part(svg_Cart) {
	align-self: center;
	box-sizing: border-box;
	fill: var(--font-color);
	padding: 4rem;
}

::part(svg_Cart) {
	margin-right: 10rem;
 }

::part(divCart_Quantity_Container) {
	position: absolute;
	right: 0;
	text-align: center;
	top: 0;
}

::part(spanCart_Quantity) {
	background: var(--theme-highlight);
	border-radius: 100%;
	color: var(--theme-font);
	display: block;
	font-family: var(--font-family-bold);
	font-size: 12rem;
	height: 16rem;
	line-height: 20rem;
	padding: 4rem;
	min-width: var(--default-font-size);
}

/*do this instead of display none for accessibility and screen readers*/
.hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.custom-label {
	display: block;
	pointer: cursor;
}

.hidden-input:focus + .custom-label {
  outline: 2px solid var(--theme-highlight);
  outline-offset: 2px;
}

.fileUpload_Name {
    margin-left: 20rem;
}

.fileUpload_Details {
    font-size: 12rem;
    font-style: italic;
}

@media (min-width: 742px) and (max-width: 1330px) {
	.aLogo casterdepot-logo {
		height: auto;
		width: 250rem;
	}

	.divHeader_Top {
		padding-bottom: 10rem;
		padding-top: 10rem;
	}

	.divHeader_Top .aText {
		font-size: 24rem;		
	}

	.divHeader_Main.flex, .divHeader_Main .flex {
		height: 150rem;
	}

	.bttnSubHeaderSelected svg,
	.divSubHeaderContainer {
		display: none;
	}

	.bttnSubHeaderContainer {
		display: flex;
		width: 100%;
	}

	.bttnSub {
		font-size: 20rem;
		justify-content: center;
		padding: 20rem;
		width: 100%;
	}

	.bttnSubHeader.bttnSub {
		background: var(--accent-color);
		color: var(--accent-color-varient);
	}

	.bttnSubHeader.bttnSub:hover,
	.bttnSubHeaderSelected .bttnSub:hover,
	.bttnSubHeaderSelected .bttnSub {
		background: var(--theme-highlight);
		color: var(--theme-basic);
	}

	::part(spanCart_Quantity),
	.divIcon_Label{
		font-size: 22rem;
	}

	.Dropdown_Container {
		align-items: center;
		justify-content: center;
	}
	
	.divFooterColumn:first-child {
		flex: 0 0 100%;
		margin-bottom: 20rem;
	}

	.divFooterColumn {
		flex: 1 0 50%;
		font-size: var(--default-font-size);
	}

	.divFooterColumn .divText {
		font-size: var(--default-font-size);
		line-height: 50rem;
	}

	.divFooterColumn.flex.flexColumn {
		flex-direction: row;
		margin-top: 40rem;
	}

	.divFooterColumn a {
		margin-bottom: 20rem
	}

	.divHeader_Main .aMain {
		max-width: 100rem;
	}
}

/* Mobile portrait layout. We do not implement a mobile landscape layout because we do not see value in it. */
@media (max-width: 742px) {
	header {
		display: none;
	}

	.aLogo {
		margin-right: 0;
	}

	.aMobile {
	    border-bottom: var(--border-width) solid var(--theme-basic);
	    box-sizing: border-box;
	    color: var(--font-color);
	    display: flex;
	    font-size: 24rem;
	    padding: 10rem 20rem;
	    text-decoration: none;
	    white-space: nowrap;
	    width: 100%;		
	}

	.divMobileNav {
		width: 100%;
	}

	.mobileNav {
		box-sizing: border-box;
		padding: 10rem;
	}

	.mobileNav .aIcon svg,
	.mobileNav .bttnIcon svg {
		fill: var(--theme-highlight);
	}

	.navFullMobileMenu,
	.divMobileCart {
	    background: var(--accent-color);
		display: flex;
		flex-direction: column;
		position: absolute;
		transition: var(--transition-speed) ease left;
		width: calc(var(--layout-width) - 50rem);
		z-index: var(--zIndex-aboveAll);
	}

	.divMobileCart.collapseOffcanvas,
	.navFullMobileMenu.collapseOffcanvas {
		left: calc(var(--layout-width) * -1);
	}

	.divMobileCart.expandOffcanvas,
	.navFullMobileMenu.expandOffcanvas {
		left: 0;
	}

	.divFooterColumn {
		flex: 1 0 100%;
		font-size: 22rem;
	}
}