/*--------------------------------------------------------------
Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:hover,
.screen-reader-text:active,
.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar */
}

/*--------------------------------------------------------------
Typography
--------------------------------------------------------------*/

body {
	margin: 0;
}

body,
button,
input,
select,
textarea {
	font-family: 'Source Sans Pro', 'Helvetica', 'Arial', sans-serif;
	font-size: 18px;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

b,
strong {
	font-weight: bold;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
    display: inline-block;
    font-family: "Courier 10 Pitch", Courier, monospace;
    color: #ddca7e;
    background: #282c34;
	padding: .5em .8em;
    border-radius: .2em;
}

code,
kbd,
tt,
var {
	font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

sup,
sub {
	font-size: 75%;
	height: 0;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	bottom: 1ex;
}

sub {
	top: .5ex;
}

small {
	font-size: 75%;
}

big {
	font-size: 125%;
}

figure {
	margin: 0;
	padding: 0;
}

/*--------------------------------------------------------------
Feature Header
---------------------------------------------------------------*/
.overlay {
  position: relative;
  text-align: center;
  color: #fff;
  width: auto;
  z-index: -1;
}

.centered {
	position: absolute;
	/* the settings below were disabled since the animation changes the xy coordinates */
	/* top: 50%;
	left: 50%; */
	/* transform: translate(-50%, -50%); */
	/* new xy coordinates are located in the custom css sheet at multiple breakpoints now, 
	since they are different for different viewports */
	transform: translate(0%, 0%);
	/* workaround to allow animated home page heading to display on web server, even though
	it displays fine on the local server */
	-webkit-transform: translate(0%, 0%); /* (Chrome, Safari, newer versions of Opera and Edge, 
	almost all iOS browsers including Firefox for iOS */
	-moz-transform: translate(0%, 0%); /* Firefox */
	-ms-transform: translate(0%, 0%); /* IE and Microsoft Edge, before Chromium */
	padding: 0 0.5em;
	background: hsla(0, 0%, 0%, .8);
	font-size: 2em;
}

/*--------------------------------------------------------------
General styling
--------------------------------------------------------------*/

img {
	border: 0;
	max-width: 100%;
	height: auto;
}

.mainImages {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 40%;
}

/*---------------------------------------------------------------
Branding section
---------------------------------------------------------------*/
.site-title {
	text-align: center;
	padding-left: 10px;
}

.logo {
	font-size: 8em;
	margin-left: auto;
	margin-right: auto;
	margin-top: -20px;
	border: 0;
	width: 50%;
	max-width: 100%;
	height: auto;
}

.site-title {
	margin-top: -1em;
	padding-bottom: 20px;
	}

/*--------------------------------------------------------------
Header:
--------------------------------------------------------------*/

.masthead {
	padding: 0 1em;
	text-align: center;
}

/*--------------------------------------------------------------
Navigation:
--------------------------------------------------------------*/
.main-nav {
	padding: 1em;
	font-size: 1.1em;
	color: white;
    background-color: hsl(0, 0%, 10%);
	z-index: 1;
}

.trigger {
	display: none;
	padding: .1em .5em;
	color: white;
	background: hsl(0, 0%, 10%);
	border: none;
	transform: rotate(90deg);
}

.trigger:focus,
.trigger:hover {
	outline: 2px dotted hsl(0, 0%, 10%);
}

.trigger:focus {
	outline-color: white;
}

.main-nav ul {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style-type: none;
}

.main-nav a {
	display: block;
	padding: .4em 1em;
	color: white;
	text-decoration: none;
}

.main-nav a:focus,
.main-nav a:hover {
	text-decoration: underline;
}

.topics {
	position: relative;
}

/*--------------------------------------------------------------
Cards:
--------------------------------------------------------------*/
.main-area {
	background-color: #6c98c5; /*Stokes County Blue*/
	margin-top: -10px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.cards {
	max-width: 25em;
	margin: 1em auto;
	padding: 0;
	list-style-type: none;
}

.cards a {
	display: block;
	margin-bottom: 1em;
	text-decoration: none;
}

.caption {
	padding: 1em;
	font-size: 90%;
	color: black;
	text-align: center;
}

.caption-title {
	margin-bottom: 10px;
	font-size: 1.4em;
	line-height: 1em;
}

.caption p {
	margin-top: .5em;
	margin-bottom: 0;
}

.cards a:focus .caption,
.cards a:hover .caption {
	background: hsl(0, 0%, 97%);
}


/*--------------------------------------------------------------
Sidebar:
--------------------------------------------------------------*/
.twin {
	margin-top: -18px;
	background: #e6e6e6;
	color: black;
}

.twin:last-of-type {
	background: #e6e6e6;
	padding-bottom: 2em;
}

/*--------------------------------------------------------------
Footer:
--------------------------------------------------------------*/
.colophon {
	padding: 2em;
	background: hsl(0, 0%, 10%);
	color: white;
	text-align: center;
}

.colophon a {
	color: white;
	text-decoration: none;
}

.colophon a:hover {
	text-decoration: none;
	color: #6c98c5; /*change color to site's medium blue */
}

.colophon a:active {
	text-decoration: none;
	color: #d4afd1; /*change color to purple */
}

/*--------------------------------------------------------------
Basic responsive layout for all browsers:
--------------------------------------------------------------*/
.site {
	margin: 0 auto;
}
/*--------------------------------------------------------------
CSS Grid layout for wider screens, when browser supports grid:
--------------------------------------------------------------*/
@supports (grid-area: auto) {

	@media screen and (min-width: 27em) {

		.centered {
			font-size: 3em;
		}
		
/*--------------------------------------------------------------
Feature Header
--------------------------------------------------------------*/

/*--------------------------------------------------------------
Cards:
--------------------------------------------------------------*/
.main-area {
	padding-top: 0;
	padding-bottom: 1em;
}

.twin {
	margin-bottom: -2em;
}

.mainImages {
	max-width: 100%;
}

.site {
	display: grid;
	grid-template-areas:
		"header"
		"feature"
		"main"
		"sidebar"
		"footer";
}

.masthead {
	grid-area: header;
}

.feature {
	grid-area: feature;
}

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

.caption {
	text-align: center;
}

.sidebar {
	grid-area: sidebar;
}

.twin:last-of-type {
	padding-bottom: 5em;
}

.colophon {
	grid-area: footer;
}

.main-nav {
	position: relative;
	width: 12em;
	left: -13em;
	grid-column: 1;
	grid-row: 1/5;
}

.reveal .main-nav {
	left: 0;
}

.main-nav ul {
	position: fixed;
	display: none;
	flex-direction: column;
}

.reveal .main-nav ul {
	display: flex;
}

.trigger {
	position: fixed;
	display: block;
	top: 1.5em;
	left: .2em;
}

.reveal .trigger {
	left: 14.5em;
}

.cards {
	margin: 0 auto;
	padding: 1em;
}

.card {
	margin: 0;
	padding: .5em;
	display: grid;
	grid-template-columns: 8em auto;
}

.cards a:focus,
.cards a:hover {
	outline: 1px solid hsl(0, 0%, 80%);
}

}

@media screen and (min-width: 60em) {

.masthead {
	padding-top: 3em;
}

/*--------------------------------------------------------------
End of Logo:
--------------------------------------------------------------*/

.main-area {
	padding-bottom: 0;
	padding-right: 0;
}		

/*--------------------------------------------------------------
End of Cards:
--------------------------------------------------------------*/

.twin {
	margin-top: -10px;
	padding-top: 2em;
	padding-bottom: 1em;
	background: #e6e6e6;
	color: black;
}

.twin:last-of-type {
	background: #e6e6e6;
}

/*--------------------------------------------------------------
Sidebar:
--------------------------------------------------------------*/
		
.masthead {
	grid-column: 1/2;
	grid-row: 1/2;
}

.feature {
	grid-column: 2/4;
	grid-row: 1/2;
}

.main-area {
	grid-column: 2/3;
	grid-row: 2/3;
}

.sidebar {
	grid-column: 3/4;
	grid-row: 2/3;
}


.twin:last-of-type {
	padding-bottom: 27.25em;
}

.colophon {
	grid-column: 1/4;
	grid-row: 3/4;
}

.cards {
	max-width: none;
	margin: 1em 0;
	padding: 1em;
	display: grid;
	grid-template-columns: 20em;
	grid-gap: 1em;
	justify-content: center;
}

.card {
	margin: 0;
	padding: .5em;
	display: grid;
	grid-template-columns: 8em auto;
}

.cards a:focus,
.cards a:hover {
	outline: 1px solid hsl(0, 0%, 80%);
}
}

.double {
	grid-column: span 3;
}

.double .card {
	display: block;
}

}

@media screen and (min-width: 65em) {

.feature {
	grid-column: 2/4;
}

.main-area {
	grid-column: 1/3;
	grid-row: 2/3;
}

.sidebar {
	grid-column: 3/4;
	grid-row: 2/3;
}

.twin:last-of-type {
	padding-bottom: 7em;
}

.colophon {
	grid-column: 1/4;
	grid-row: 3/4;
}

.cards {
	margin: 1em 0;
	display: grid;
	grid-template-columns: repeat(2, 20em);
	grid-gap: 1em;
	justify-content: center;
}

}

@media screen and (min-width: 119em) {
.main-nav {
	padding: 1em;
	font-size: 1.1em;
	color: white;
	background-color: hsl(0, 0%, 10%);
}

.trigger {
	padding: .1em .5em;
	color: white;
	background: hsl(0, 0%, 10%);
	border: none;
	transform: rotate(90deg);
}

.trigger:focus,
.trigger:hover {
	outline: 2px dotted hsl(0, 0%, 10%);
}

.trigger:focus {
	outline-color: white;
}

.main-nav ul {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style-type: none;
}

.main-nav a {
	display: block;
	padding: .4em 1em;
	color: white;
	text-decoration: none;
}

.main-nav a:focus,
.main-nav a:hover {
	text-decoration: underline;
}
}