* {
	box-sizing: border-box;
}


body {
	background-color: #2B2B2B;
	color: #222222;
	font-family: Tahoma, Arial, sans-serif;
	margin: 0;
}

/* #wholepage css on every page */
#wholepage {
	background-color: #1F1F1F;
	padding: 0;
}

/* The Baltimore Vault title */
header {
	background-color: #1F1F1F;
	/* background-image: url(images/vault.png); */
	background-repeat: no-repeat;
	color: #F2B705;
	height: 128px;
	padding-left: 105px;
	padding-top: 5px;
	padding-bottom: 5px;
}

header a {
	text-decoration: none;
}

header a:link {
	color: #F2B705;
}

header a:visited {
	color: #F2B705;
}

header a:hover {
	color: black;
}

h1 {
	font-size: 1.6em;
}

h2 {
	color: #8F1A22;
}

h3,
dt {
	color: #8F1A22;
}

h3 {
	font-size: 1.7em;

}

/* gold title bar above each neighborhood or artist */
h4 {
	background-color: #F2B705;
	font-size: 1.4em;
	padding-left: .5em;
	padding-bottom: 0;
	text-transform: uppercase;
	border-bottom: 1px solid #221811;
	clear: left;
	margin-left: 0;

}

/*the 5 page links */
nav {
	background-color: #B3202A;
	text-align: center;
	font-size: 1.25em;
}

nav a {
	text-decoration: none;
	display: block;
}

nav a:link {
	color: #FFFFFF;
}

nav a:visited {
	color: #F7F3EA;
}

nav a:hover {
	color: #F2B705;
	transform: translateY(-3px);
	/*translateY makes sure the element can only move vertically*/
	/* negative values move the element upwards*/

}

nav ul {
	display: flex;
	flex-direction: column;
	list-style-type: none;
	margin: 0;
	padding: 0;
}

nav li {
	border-bottom: 1px solid #F7F3EA;
	padding: .5em 1em;
	width: 100%;
}

/* cream content area */
main {
	background-color: #F7F3EA;
	background-image: radial-gradient(#D5CBB8 1px, transparent 1px); /* searched this to have each page have dots to give the page an artistic sense */
	/* radial gradient is an image type create, radial gradients spread out in a circular  pattern. */
	/* transparent makes the ciruclar pattern see-through */
	background-size: 20px 30px;
	display: block;
	padding: 0 0 2em 0;
}

h2,
h3,
h4,
p,
div,
ul,
ol,
dl {
	padding-left: 1em;
	padding-right: 1em;
}

main ul,
main ol {
	padding-left: 2em;
}

main a:link {
	color: #8F1A22;
}

main a:visited {
	color: #5B2A6B;
}

main a:hover {
	color: #1F1F1F;
}

/*one row with a photo and its text - explore and artists pages*/
.details {
	padding-left: 20%;
	padding-right: 20%;
	overflow: auto;
	margin: 1 auto;
	padding: 1;
	width: 85%;
	border: 1px solid black;
	font-size: 1.2em;

}

img {
	padding-left: 10px;
	padding-right: 10px;
}

.details img {
	width: 350px;
	height: auto;
	padding: 0;
}

/*each pages background */
#herohome, 
#heroexplore,
#heroartists,
#heroplaces,
#heroabout {
	height: 300px;
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

 #herohome {   /* home background at top of page  */
	background-image: url(images/redbg.jpg);
}

#heroexplore {   /* explore background at top of page  */
	background-image: url(images/graffitihouse.jpg);
}

#heroartists {   /* artisits background at top of page  */
	background-image: url(images/artists.jpg);
}

#heroplaces {   /* places background at top of page  */
	background-image: url(images/places.jpg);
}

#heroabout {   /* about background at top of page */
	background-image: url(images/about.jpg);
}

footer {
	background-color: #1F1F1F;
	color: #F7F3EA;
	font-size: .75em;
	font-style: italic;
	text-align: center;
	padding-bottom: 1em;
	border-top: 2px solid #F2B705;
}

footer a:link,
footer a:visited {
	color: #F2B705;
}

/* table on the Places page, striped rows */
table {
	margin: auto;
	width: 90%;
	border-spacing: 0;
}

th,
td {
	padding: 10px;
	text-align: left;
}

th {
	color: #8F1A22;
}

tr:nth-of-type(odd) {  /* to make every odd row cream/whiteish */
	background-color: #EFE8D6;
}

/* photo submission form on about page */
form {
	display: flex;
	flex-direction: column;
	padding-left: 1em;
	width: 80%;
}

input,
textarea,
select {
	margin-bottom: .5em;
}

/*  map on places page */
iframe {
	max-width: 100%;
	border: 0;
}

@media (min-width: 600px) {
	header {
		padding-left: 0;
		text-align: center;
	}

	h1 {
		font-size: 3em;
	}

	/* nav becomes one row */
	nav ul {
		flex-flow: row nowrap;
		justify-content: space-around;
	}

	nav li {
		border-bottom: none;
	}

	#herohome {
		height: 50vh;
	}

	/* #flow wraps the table */
	#flow {
		display: flex;
		flex-direction: row;
	}

	.details {
		display: flex;
		flex-direction: row;
		gap: 1.5em;
		width: 80%;
		padding: 0;
		align-items: stretch;
	}

	h4 {
		margin-left: 0%;
		margin-right: 10%;
		font-size: 1.6;
	}

	/* label on the left, field on the right */
	form {
		width: 70%;
		display: grid;
		gap: 1em;
		grid-template-columns: 8em 1fr;
	}

	input[type="submit"] {
		grid-column: 2;
		width: 9em;
	}
}

@media (min-width: 1024px) {
	@supports (display: grid) {
		header {
			grid-area: header;
		}

		nav {
			grid-area: nav;
		}

		main {
			grid-area: main;
		}

		footer {
			grid-area: footer;
		}

		/* header on top, nav column on the left, main on the right, footer at the bottom */
		#wholepage {
			display: grid;
			grid-template:
				"header header"
				"nav    main"
				"footer footer"
				/ 200px;
		}

		nav ul {
			flex-direction: column;
		}
	}
}