@charset "utf-8";
/********* COLORS
background/Light Text: #F0F9FA
body background: #E7F0F0
Main Highlight: #F27068
Secondary Highlight: #DF382E
Text Color: #140A33


**********/

/********* CSS RESETS **********/

img {
	max-width:100%;
}

h1, h2, h3, p, ul, ol {
	margin: 0;
	padding: 0;
}

nav ul, nav ol, footer ul, footer ol {
	list-style-type: none;
}

a {
	text-decoration: none;
}

/********* End CSS Reset *********/

body {
	width: 85%;
	margin: auto;
	background-color: #F0F9FA;
	color: #140A33;
	font-family: "Noto Serif";
}

h1, h2, h3 {
	font-family: "Noto Sans"
}

#headerimg { 
height: 350px;
width: 100%;
object-fit: cover;
margin-bottom:20px;}

#pages img {
	height: 250px;
	width: 250px;
	object-fit: cover;
}

#top {
	display:inline;
}

h1 {
	font-size: 50px;
	text-align: center;
	margin: auto;
	margin-bottom: 20px;
	color: #DF382E;
}

.fostering {
	color: #F27068;
}

h2 {
	color: #F27068;
	margin-bottom: 10px;
}

h3 { 
	color: #DF382E; 
	margin-top: 20px;
	margin-bottom: 10px;
}

#main img {
	height: 400px;
	width: 100%;
	object-fit: cover;
	margin-top: 30px;
}

#main {
	margin-top: 20px;
	background-color: #E7F0F0;
}

#main p {
	margin-top: 10px;
	line-height: 1.5;
}
#main h2, #main h3 {
	margin: none;
}

#pages {
	display: none;
}

.front img {
	height: 300px;
	width: 200px;
	object-fit: cover;
}

.hl {
	color: #F27068;
}

#btn {
	width:150px;
	background:#F27068;
	color:#F0F9FA;
	font-size: 30px;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-right: 20px;
	padding-left: 20px;
	text-align: center;
	display: block;
	
}

#main article {
	width: 90%;
	margin: auto;
	margin-top: 20px;
}

#main article:last-of-type {
	margin-bottom: 20px;
}
#main {
	padding-top: 20px;
	padding-bottom: 20px;
}

#donform h2 {
	text-align: center;
}

#volform h3, #donform h3 {
	margin-top: 10px;
	margin-bottom: 10px;
}

#middle h2 {
	text-align: center;
	margin-top: 20px;
}

/********* Nav Styles *********/

#navigation {
	position: relative;
}

#mobilenav {
	background:#F27068;
	margin-bottom:20px;
	margin-top:20px;
}

#mobilenav h2 {
	text-align: right;
	margin-right: 20px;
	line-height: 50px;
	color: #F0F9FA;
	font-size: 36px;
}

#mainnav {
	width: 200px;
	position: absolute;
	top: 50px;
	right: 0;
	border-top: 1px solid #DF382E;
}
#mainnav ul {
	background: #F27068;
}

#mainnav ul li a {
	display:block;
	background:#F27068;
	color:#F0F9FA;
	font-weight:700;
	font-size:24px;
	line-height:45px;
	text-decoration:none;
	text-transform:uppercase;
	text-align:right;
	padding-right: 20px;
	width:195px;
}

#mainnav ul li a:hover {
	background:#DF382E;
}

/********* Footer Styles *********/

footer {
	display: flex;
	background-color: #F0F9FA;
	height: 50px;
	}
#info {
	margin: auto;
	display: flex;
}
#contact {
	margin-right: 20px;
}

/************ Forms **************/
form {
	width: 350px;
	margin: auto;
}
.answer {
	background-color: #cbd6d6;
	border: none;
	padding: 10px;
	width: 90%;
	margin: auto;
	
	
}
#volform, #donform {
	margin-top: 20px;
	background-color: #E7F0F0;
	width: 100%;
	padding-bottom: 30px;
	padding-top: 30px;
}

#volform h2 {
	text-align: center;
}
#btn {
	margin: auto;
	margin-top: 20px;
}
#volform h3 {
	margin: 5px;
}


/************ Card Flip Styles **************/

.flip-container { perspective: 960px; }
	
.flip-container.hover .back {
	transform: rotateY(0deg);
}

.flip-container.hover .front {
    transform: rotateY(180deg);
}

.flip-container, .front, .back {
	width: 100%;
}

.flipper {
	transition: 0.6s;
	transform-style: preserve-3d;
	width: 200px;
	position: relative;
	height: 0;
	padding-top:100%;
}

.front, .back {
	-webkit-backface-visibility: hidden; /*still needed for safari & android*/
	backface-visibility: hidden;
	transition: 0.6s;
	transform-style: preserve-3d;

	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
}

.front { transform: rotateY(0deg); z-index: 2; }

.back {
	transform: rotateY(-180deg);
	background:#F27068;
	color: #F0F9FA;
	font-size: 20px;
	padding:10px;
	box-sizing: border-box;
}

.front img {
	display:block; }

.front, .back {
	height: 300px;
	width: 175px;
}

#kittens {
	padding: 15px 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 400px;
	margin: auto;
}

#kittens article {
	margin-top: 115px;
}
#kittens article:first-of-type, #kittens article:nth-of-type(2) {
	margin-top: 10px;
}

#kittens {
	margin-bottom: 105px;
}
		
	@media only screen and (min-width: 600px) {
		body {
			width: 90%;
		}
		#pages a {
			display: flex;
			justify-content: center;
			color: #F27068;
			font-weight: bold;
			font-size: 20px;
			width: 100%;
		}
		
		#pages {
		display: flex;
		}
		#learn, #volunteer, #find {
			margin: auto;
			margin-top: 40px;
			margin-bottom: 40px;
		}
		
		#kittens {
			display: grid;
			grid-template-columns: 1fr 1fr 1fr 1fr;
			width: 80%;
			margin: auto;
			margin-bottom: 100px;
		}
		
		 #kittens article:nth-of-type(3), #kittens article:nth-of-type(4)  {
			 margin-top: 10px;
			
		}
		
		#volform, #donform {
			width: 80%;
			margin: auto;
		}
		
		#donform {
			margin-top: 20px;
		}
		
		/************ Desktop Nav Styles **************/
	
	#mobilenav {
		display:none;
	}
	#mainnav {
		box-sizing: border-box;
		position: static;
		width: 100%;
		margin-bottom: 20px;
		border-top: none;
	}
	#mainnav ul {
		display: flex;
	}
	
	#mainnav ul li {
		flex: 1;
	}

	#mainnav ul li a {
		width: 100%; 
		box-sizing: border-box;
		padding: 0;
		text-align: center;
		border-bottom: none;
	}
	
	#buttons {			
		display: flex; 
		justify-content: space-evenly;
	}
	
		#Location {
			margin-left: 10em;
		}
		
} 
		
	

	@media only screen and (min-width: 960px) {
		body {
			width: 960px;
			margin: auto;
		}
		#main {
			width: 900px;
			margin: auto;
		}
	}
