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

img {
	display: block;
	max-width: 100%;
}	

ul, ol {
	padding: 0;
}

html {
	font-size: 16px;
}

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

@media (min-width: 900px) {
	:root {
		--fs-h1: 3.5rem;
		--fs-h2: 3rem;
		--fs-h3: 1.5rem;
		--fs-body: 1.125rem;
	}
}
/*  
---------------------------------------------------------------------------  */
body {
	font-size: 1.25rem;
	line-height: 1.6;
	font-family: var(--ff-primary);
	text-align: center;
    background: linear-gradient(90deg, #fcff9e 0%, #339933 100%);
}

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

h1, h2, h3, h4, h5, h6 {
	font-weight: 400;
}
h1 {
	font-size: var(--fs-h1);
	margin: 0;
}
h2 {
	font-size: var(--fs-h2);
}
h3 {
	font-size: var(--fs-h3);
}

/* utility classes
---------------------------------------------------------------------------- */

.indent-ml01 {
	margin-left: 1rem;
}

.indent-ml02 {
	margin-left: 2rem;
}

.myCenter {
	margin: 0 auto;
}

.bodyWrapper {
	max-width: 1200px;
	margin: 0 auto;
}

/* 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 h2 {
	padding-top: .5em;
	padding-bottom: .25em;
}

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

section li {
	font-size: 0.9em;
}

.main-about p {
	font-size: 0.8em;
	margin-bottom: .6em;
}

.main-about h2 {
	margin-top: 0;
}

img.sublogo_img {
	height: auto;
	border-radius: 50%;
	margin-bottom: .6em;
}

div.pictureWrapper {
	text-align: center;
	padding: 0;
	margin: 0 0 1em 0;
}

.pictureWrapper picture img {
	max-width: 100%;
	max-height: 100%;
	display: block; /* remove extra space below image */
	border-radius: 1.5em;
	margin: 0 auto;
}

/* SCRIPTURE MAIN-ABOUT1
----------------------------------------------------------------------------- */

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

/* FAMILY MAIN-ABOUT2 
----------------------------------------------------------------------------- */
	section .family-submenu {
		grid-area: familyMenu;
		padding-bottom: 1.5em;
	}
	
	#family {
		grid-area: main-about2
	}
	#family p {
		padding: 0 .6em;
	}
	#family-gallery01 div {
		display: flex;
		flex-flow: column wrap;
		align-items: center;
		padding-top: 2em;
	}

	#family-images div {
		display: flex;
		flex-flow: column wrap;
		align-items: center;
	}
	#family-images img {
		border-radius: 2em;
/*
		width: 90%;
		object-fit: cover;
*/
		margin: 1em;
	}

	.family-submenu-links {
		display: flex;
		flex-flow: column wrap;
		justify-content: center;
		list-style: none;
/*
		max-width: 90%;
*/
		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;
	padding-bottom: 1.5em;
}
#career p {
	padding: 0 .6em;
}

/* blank page template
---------------------------------------------------------------------------- */
#blank-page {
	text-align: left;
	padding: .5em 2em 2em 2em;
}
#blank-page a {
	padding-left: 3em;
}
#blank-page h1 {
	text-align: center;
}

/* torah portion notes page /library/scripture/tpnotes.html
---------------------------------------------------------------------------- */
section#scripture {
	/*background-color: #e6ffe6;*/
	/*background-color: rgb(230, 255, 230);*/
	background-color: rgb(230, 255, 230);
	border-radius: .5em 1em 0 0;
}

section#scripture.main-about div.titleBar {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	padding-top: 1rem;
}
section#scripture.main-about div.titleBar img {
	border-radius: 50%;
}
section#scripture.main-about div.titleBar h2 {
	min-width: 60%;
}

section#scripture.main-about h3 {
	font-size: 1.6rem;
	text-align: center;
	margin-bottom: 1em;
}

.flexTable {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	gap: 15px 20px;
	padding: 0 0.5em;
	margin-bottom: 1em;
}
.flexTable-Column {
	display: flex;
	flex-flow: column nowrap;
	text-align: left;
}
.flexTable-Column a {
	font-size: 1rem;
}

.tpNotes {
	text-align: left;
	padding-left: 0.5em;
}
.tpNotes p {
	margin-left: 1em;
}

/* 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';
	}

	.main-about img {
		width: auto;
		max-width: 100px;
		height: auto;
	}
*/

	#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%;
	}
	
}
