/********* CSS RESETS **********/

img {
	max-width:100%;
}

h1, h2, h3, p, ul, ol {
	margin: 0;
	padding: 0;
}

/********* End CSS Reset *********/

body {
	font-family: 'Open Sans Condensed', sans-serif;
	font-weight:300;
	color:#2d5cb2;
	background-color: #61645f;
	
}

header {
	padding-bottom:20px;
	background:#f3ede8;
}

#blog {
	 background:#9c9995;
	 background-image: url(images/logo.png);
	 background-repeat: no-repeat;
	 background-position: right;
	 opacity: 80%;
	 
	}

	.grid {
    padding: 5px 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 5px;
	border-radius: 10px;
}

.grid article h1 {
	font-family: 'Times New Roman', Times, serif;
	color: #551434;
	padding-bottom: 18px;
	padding-top: 25px;
	display: flex;
}

/************ Logo Styles ***************/
header h1 { 
	font-size: 20vw;
	text-align: center;
	letter-spacing:-4px;
}

footer h1 { font-size: 10vw; }

footer h2 { font-size: 24px; }

.wild { color:#55711e; }

.olives { color:#551434; }

.travel { color:#b64c92; }

footer .space { color:#bdd4de; }

#top { padding: 0;}

#top { display: flex;}

#top article { padding: 40px; }

#top article:first-of-type { background:#85a0ad; }

#top article:last-of-type { background:#f3ede8; }


/********** Typography Rules **********/

h1 {
	text-transform:uppercase;
	font-weight:400;
	padding-left: 20px;
}

h2 {
	font-size: 15px;
	text-transform:uppercase;
	font-weight: 100;
	display: flex;
	padding-top: 20px;
	padding-left: 20px;
}

p { line-height: 1.3em; }

/********** Footer Rules **********/
footer {
	display: flex;
	background:#f3ede8;
	padding:15px;
}

footer section {
	flex:1;
	padding: 5px 0;
}

footer section:last-of-type{
	padding-left: 5px;
	padding-top: 10px;
}

/************ Card Flip Styles **************/

.flip-container { perspective: 1000px; }
	
.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;
	position: relative;
	height: auto;
	padding: top 10px;
}

.front, .back {
	-webkit-backface-visibility: hidden; /*still needed for safari & android*/
	backface-visibility: hidden;
	transition: 0.6s;
	transform-style: preserve-3d;
	position: inherit;
	top: 0;
	left: 0;
	padding-left: 20px;
}

.front { transform: rotateY(0deg); z-index: 2; 
	padding: 10px;}

.back {
	transform: rotateY(-180deg);
	background:#eaeeee;
	padding:25px;
	box-sizing: border-box;
	border-radius: 10px;
}
 .back a:hover {
	color: #551434;
 }

 .back a:visited {
	color: #55711e;
 }

.front img {
	display: flex;
	border-radius: 5px;
	width: 100px;
	height: 200px;
}

.title {
	text-transform:uppercase;
	font-size:14px;
}

.name {
	margin-bottom:10px;
	font-weight:700;
	color:#40606f;
}

@media only screen and (min-width: 600px) {
	.grid { grid-template-columns: 1fr;
	padding: auto; }

	#page {
        width:960px;
        margin:auto;
    }

    header{ 
        display: flex;
        padding-bottom: 0;
    }

    header h1 {
        font-size: 10vw;
		letter-spacing: 2px;
    }

   header h2 {
		padding-left: 25px;
		padding-top: 40px;
    }

    header img {
        width: 100%;
    }

    #top p, footer p {
        font-size: 24px;
    }
}

.flip-container,.back {
	width: 100%;
}

.flipper {
	height: auto;
}



@media only screen and (min-width: 960px) {

    #page {
        width:960px;
        margin:auto;
		height: auto;
    }

    header h1, footer h1 {
        font-size:80px;
    }

    header h2 {
        font-size: 20px;
    }
	.front img {
		display: flex;
		border-radius: 25px;
		width: 100px;
		height: 300px;
		align-items: center;
	}

	
}