*,
*::before,
*::after {
	box-sizing: border-box;
}

/*  custom properties
-----------------------------------------------------------------------  */

:root {
	--ff-primary: Raleway, Verdana, sans-serif;
	--ff-secondary: Raleway, Verdana, sans-serif;
	
	--fw-reg: 400;
	--fw-bold: 600;
	
	--clr-light: #fff;
	--clr-dark: #303030;
	--clr-accent: #16e0bd;
	--clr-bckgrnd: #e6ffe6;
	--clr-cocobrown: #7E3817; /* #7E3817 - COCO BROWN */
	
	--fs-h1: 3rem;
	--fs-h2: 2.25rem;
	--fs-h3: 1.25rem;
	--fs-body: 1rem;
}

@media (min-width: 900px) {
	:root {
		--fs-h1: 3.75rem;
		--fs-h2: 3rem;
		--fs-h3: 1.5rem;
		--fs-body: 1.125rem;
	}
}
/*
img {
	display: block;
	max-width: 100%;
}	
*/
html {
	font-size: 16px; /* not really necessary if you set the font-size in the body to 1rem and use rem for all font sizes throughout your code. However, by setting font-size here, you can change this one setting and affect all the font sizes in the document. */
/*
	use em, %, or width for all other elements so they stay relative to there parent element (to avoid cascading 'problems')???
*/
}
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
body {
	font-size: 1.25rem;
	line-height: 1.6;
/*
	font-family: Arial, Tahoma, Verdana, sans-serif;
*/
	font-family: var(--ff-primary);
	text-align: center;
}
ul {
	padding: 0;
}

/* TYPOGRAPHY */
/* h1 element is defined in carousel.css */

h2 {
	font-weight: 400;
	font-size: 1.4em;
}
h3 {
	font-weight: 400;
	font-size: 1.25em;
}

/* NAVBAR */

.navbar {
	grid-area: navbar;
/*
		leave .navbar class visibility: visible; position: absolute; and background: none;
		this will put the navbar on top of the carousel
		***** this step is only necessary on index.html
		change .navbar-logo and .navbar-menu classes to visibility: hidden;
		change .navbar-toggle color to white

	visibility: hidden;
	display: none;
*/
}

/* CAROUSEL */

	.main-carousel {
		grid-area: main-carousel;
	}

/* MAIN-ABOUT */

	section h3 {
		text-align: left;
		margin: 0 .5em;
	}
 			
	section ul {
		text-align: left;
		list-style-type: none;
		padding-right: .5em;
		margin-left: 2em;
	}

	.main-about {
	/*
		padding-top: .6em;
	*/
		margin-bottom: .6em;
	}
	.main-about img {
		border-radius: 50%;
		margin-bottom: .6em;
		width: 100%;
		max-width: 150px;
		height: auto;
	}
	.main-about h2 {
		margin-top: 0;
	}

/* SCRIPTURE */

	#scripture {
		grid-area: main-about1;
	}
	#scripture p {
		padding: 0 .6em;
	}

/* FAMILY MAIN-ABOUT2 */

	#family {
		grid-area: main-about2
	}
	#family p {
		padding: 0 .6em;
	}
	#family-images div {
		display: flex;
		flex-flow: column wrap;
		align-items: center;
	}
	#family-images img {
		width: 90%;
		margin: 1em;
		object-fit: cover;
	}

	#family-images img {
		border-radius: 2em;
	}

	.family-submenu-links {
		display: flex;
		flex-flow: column wrap;
		justify-content: center;
		list-style: none;
		max-width: 90%;
		padding-top: 0.5em;
		margin: auto;
	}
	.family-submenu-links li {
		font-size: 0.75em;
		min-width: 225px;
		text-transform: uppercase;
		border: 1px solid #808080;
		border-radius: 1em;
		padding: .3em .9em;
		margin: .2em;
	}
	.family-submenu-links li {
		background-color: rgba(51, 153, 51, 0.4); /* #339933 */
	}
	.family-submenu-links li:hover {
		background-color: rgba(252, 255, 158, 1);
	}

	.family-about {
		text-align: left;
		padding: 1em;
	}

/* CAREER MAIN-ABOUT3 */

	#career {
		grid-area: main-about3;
	}
	#career p {
		padding: 0 .6em;
	}



/* footer
---------------------------------------------------------------------------- */

.site-footer {
	grid-area: footer;
}

.wrapper {
	display: grid;
	grid-template-areas:
		'navbar'
		'main-about1'
		'main-about2'
		'main-about3'
		'footer';
}

/* I like to include this as it helps me set breakpoints 
Extra small (xs) devices (portrait phones, less than 576px)

Small (sm) devices (landscape phones, 576px and up)
@media (min-width: 576px) { ... }

Medium (md) devices (tablets, 768px and up)
@media (min-width: 768px) { ... }

Large (lg) devices (desktops, 992px and up)
@media (min-width: 992px) { ... }

Extra (xl) large devices (large desktops, 1200px and up)
@media (min-width: 1200px) { ... }
*/

@media screen and (min-width:767px) {
	.wrapper {
		grid-template-areas:
		'navbar navbar'
		'main-about1 main-about1'
		'main-about2 main-about3'
		'footer footer';
	}
	
	#family-images div {
		flex-flow: row wrap;
		justify-content: space-between;
	}
	#family-images img {
		width: 40%;
	}

	.family-submenu-links {
		flex-flow: row wrap;
		justify-content: space-between;
	}
}

@media screen and (min-width:991px) {
	.wrapper {
		grid-template-areas:
		'navbar navbar navbar'
		'main-about1 main-about2 main-about3'
		'footer footer footer';
	}

	#family-images div {
		flex-flow: row wrap;
		justify-content: space-between;
	}
	#family-images img {
		width: 30%;
	}
	
}
