:root {
  --blue: #005a9c;
  --off-white: #f6f6f6;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
	margin: 0;
	background-color: var(--off-white);
	font-family: 'Work Sans', sans-serif;
	line-height:1.5rem;
}

.clear {
	clear:both;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: #000;
}

/* navigation styles start here */

header {
  background-color: var(--blue);
  text-align: center;
  position: fixed;
  z-index: 9;
  width: 100%;
	border-bottom: 1px solid white;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.10);
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
}

.logo {
	font-family: 'Viner Hand ITC', sans-serif;
	color: #fff;
}
a.logolink:link {
  color: white;
  text-decoration: none;
}
.logocontainer {
	width:250px;
    border-radius: 50%;
	border: 2px solid #fff;
	padding: 0;
	margin:15px auto;
}

.dealer {
	padding-top:10px;
	text-align:center;
}
.dealer a {
  color: white;
  text-decoration: none;
}

.dealer a:hover {
  color: #000;
}

nav {
  position: absolute;
  z-index: 999;
  text-align: left;
  top: 100%;
  left: 0;
  background-color: var(--blue);
  width: 100%;
  transform: scale(1, 0);
  transform-origin: top;
  transition: transform 400ms ease-in-out;
  color: #000;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li {
  margin-bottom: 1em;
  margin-left: 1em;
}

nav a {
  color: white;
  text-decoration: none;
  opacity: 0;
  transition: opacity 150ms ease-in-out;
}

nav a:hover {
  color: #000;
}

.bases {
	position:relative;
}
.subbases {
	position: absolute;
	top:-10px;
	left:150px;
	display:none;
	background-color: var(--blue);
	transform: scale(1, 0);
	transform-origin: top;
	transition: transform 400ms ease-in-out;
}
.bases:hover .subbases {
	display: block;
	transform: scale(1, 1);
}
.subbases li {
	padding:10px;
	margin:0;
}

.walls {
	position:relative;
}
.subwalls {
	position: absolute;
	top:-10px;
	left:150px;
	display:none;
	background-color: var(--blue);
	transform: scale(1, 0);
	transform-origin: top;
	transition: transform 400ms ease-in-out;
  }
.walls:hover .subwalls {
	display: block;
	transform: scale(1, 1);
}
.subwalls li {
	padding:10px;
	margin:0;
}

.acc {
	position:relative;
}
.subacc {
	position: absolute;
	top:-10px;
	left:150px;
	display:none;
	background-color: var(--blue);
	transform: scale(1, 0);
	transform-origin: top;
	transition: transform 400ms ease-in-out;
  }
.acc:hover .subacc {
	display: block;
	transform: scale(1, 1);
}
.subacc li {
	padding:10px;
	margin:0;
}


 #hamburger {
	 justify-self: end;
	 display: block;
	 border: none;
	position: absolute;
	top: 75px;
	left: 0;
}
 #hamburger #expanded {
	 display: none;
}
 #hamburger svg {
	 width: 3em;
	 height: 3em;
}
#hamburger span {
	 display: block;
	 color: #fff;
	 font-size:1rem;
}
 #hamburger[aria-expanded="true"] + nav {
	 transform: scale(1,1);
}
 #hamburger[aria-expanded="true"] + nav a {
  opacity: 1;
  transition: opacity 250ms ease-in-out 250ms;
}
button { background-color:var(--blue); }

/* End Navigation */


.content {
  width:80%;
  min-height:100vh;
  padding-top:170px;
  margin:auto;
}

.footer {
	background-color: #005a9c;
	text-align: center;
	color: white;
	padding: 15px;
}

.hero {
	width:100%;
	border: 3px solid white;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.19);
	margin:auto;
}
.dealerform {
	display:none;
}
img {
  max-width: 100%;
  height: auto;
}
.card {
	max-width: 406px;
	height:auto;
	float:left;
	background-color:white;
	border: 3px solid white;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.19);
	margin:30px;
}
.card:hover {
	box-shadow: 0 4px 8px 10px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.19);
}
.color-text {
	text-align:center;
	font-weight:bold;
	margin:20px;
}

.contactform { 
	max-width:650px;
}
form.contact { 
	margin:10px 20px 20px 20px;  
}
form.contact input { 
	width:98%; 
	height:35px;
	padding:0 0 0 4px; 
	border:1px solid #999; 
	background-color:#fff; 
	display:block;
	margin:0 auto 0px auto;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px; 
}
form.contact label { 
	font-weight:bold;
	margin:8px 0 0 0; 
	display:block; }
form.contact .button { 
	font-size:1.5rem;
	width: 98%;
	margin-top:25px;
	cursor: pointer;
}
.alert {
	color:red;
	border:1px solid #999; 
	background-color:#fff; 
}
.area {
	width:99%;
	height:145px;
	padding:0 0 0 4px; 
	margin:0 auto 0px auto;
}

@media screen and (min-width: 865px) {
	
	 #hamburger {
		 display: none;
	}

  .nav-toggle-label {
    display: none;
  }

  header {
    display: grid;
    grid-template-columns: 1fr auto minmax(600px, 4fr) 3fr 1fr;
	grid-template-rows: 25px 1fr;
  }
  
  .logocontainer {
    grid-column: 2 / 3;
	grid-row: span 2;
  }
	.dealer {
		grid-column: 3 / 5;
		grid-row: 1;
		text-align:right;
	}
  nav {
    // all: unset; /* this causes issues with Edge, since it's unsupported */
    
    /* the following lines add Edge support */
    position: relative;
    text-align: left;
    transition: none;
    transform: scale(1,1);
    background: none;
    top: initial;
    left: initial;
    /* end Edge support stuff */
    
    grid-column: 3 / 5;
	grid-row: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  
  nav ul {
    display: flex;
  }
  
  nav li {
    margin-bottom: 0;
  }
  
  nav a {
    opacity: 1;
    position: relative;
  }
  
  nav a::before {
    content: '';
    display: block;
    height: 5px;
    background: black;
    position: absolute;
    top: -.75em;
    left: 0;
    right: 0;
    transform: scale(0, 1);
    transition: transform ease-in-out 250ms;
  }
  
  nav a:hover::before {
    transform: scale(1,1);
  }
	.bases:hover .subbases {
		display: block;
		transform: scale(1, 1);
	}
	.subbases {
		top:19px;
		left:0;
	}
	.walls:hover .subwalls {
		display: block;
		transform: scale(1, 1);
	}
	.subwalls {
		top:19px;
		left:0;
	}
	.acc:hover .subacc {
		display: block;
		transform: scale(1, 1);
	}
	.subacc {
		top:19px;
		left:0;
	}
/* End Navigation */

	.dealerform {
		display:block;
		background-color: #005a9c;
		width:280px;
		height:350px;
		margin:30px;
		float:right;
	}
	.dealerformheader { 
		color:#fff;
		text-shadow:1px 1px 0px #666; 
		margin:10px 20px; 
		font-weight:bold;
		text-align:center;
	}
	form.sideform { 
		margin:10px 20px 20px 20px; 
		width:240px; }
	form.sideform input.text { 
		width:98%; 
		height:35px;
		padding:0 0 0 4px; 
		border:1px solid #999; 
		background-color:#fff; 
		display:block;
		margin:0 auto 0px auto;
		-webkit-border-radius: 3px;
		-moz-border-radius: 3px;
		border-radius: 3px; }
	form.sideform label { 
		color:#fff;
		font-weight:bold;
		text-shadow:1px 1px 0px #666; 
		margin:8px 0 0 0; 
		display:block; }
	form.sideform .button { 
		font-size:1.5rem;
		width: 100%;
		margin-top:25px;
		cursor: pointer;
	}
	.two-column {
		display: grid;
		grid-template-columns: 1fr 280px;
		grid-gap: 20px;
		justify-items: center;
		align-items: center;
	}
	.two-even-column {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-gap: 20px;
		justify-items: center;
		align-items: center;
	}
}