:root{
	--PrimaryPink: #FFD8D8;
	--PrimaryPinkOp: rgba(255, 216, 216, 0.685);
	--SecondaryPink: #B84D4D;
	--SecondPinkOp: rgba(184, 77, 77, 0.5);
	--PrimaryGray: #636262;
	--SecondaryGray: #333333;
	--LightGray: #E0E0E0;
    --Light: white;
}

body {
	background: #333;
	font-family: ubuntu, helvetica;
	color: white;
}
main {
	margin: 2% 10%;
}

h2 {
	color: #FFD8D8;
	text-align: right;
}

h1 {
	color: #FFD8D8;
	padding:.75rem;
	margin: 0;
	font-size: 2rem;
	text-align: right;
}

p{
	line-height: 1.5;
}
/**********
404
***********/
.notFound section{
	display: flex;
	justify-items: center;
	align-items: center;
	flex-direction: column;
	margin: 3rem auto;
}

/**********
Nav Bar
***********/
.nav-img{
	padding: 1rem 0 .5rem .5rem;
}
nav div{
	display: flex;
	align-items: center;
	flex-direction: row;
}
nav img{
	border-radius: 50%;
	width: 2.8rem;
}
nav {
	background: #636262;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	padding: 0 1rem;
}
a {
	color: #FFD8D8;
	text-decoration: none;
	padding: 1rem;
	margin: 0 .25rem;
	font-size: 1.25rem;

}
.logo{
	padding: .25rem;
}
.nav a:link{
	border-bottom: 0.25rem solid #FFD8D8;
	border-radius: 5%;
}

.nav a:focus{
	color: #FFD8D8;
	border-bottom: 0.25rem solid #B84D4D;
	border-radius: 5%;
}

.nav a:hover{
	color: #FFD8D8;
	border-bottom: 0.25rem solid #B84D4D;
	border-radius: 5%;
}

.nav a:active{
	color: #FFD8D8;
	background: #B84D4D;
	border-radius: 5%;
}



/**********
Sub nav
***********/
.filters{
	background: transparent;
	margin-top: 1.5rem;
	justify-content: center;
	align-items: center;
}

.filters button{
	color: #FFD8D8;
	text-decoration: none;
	padding: 1rem;
	margin: 0 .25rem;
	font-size: 1rem;
 	border: none;
	border-bottom: 0.25rem solid #FFD8D8;
	background: transparent;
}

.filters button:link{
	border-bottom: 0.25rem solid #FFD8D8;
	border-radius: 5%;
}

.filters button:focus {
	border-bottom: 0.25rem solid #B84D4D;
	border-radius: 5%;
}

.filters button:hover {
	border-bottom: 0.25rem solid #B84D4D;
	border-radius: 5%;
}

.filters button:active {
	background: #B84D4D;
	border-radius: 5%;
}
/**********
Links for whole website
***********/

a:link{
	color: #FFD8D8;
}

a:focus{
	color:#B84D4D;
}

a:hover{
color: #B84D4D;
}

a:active{
	color: #B84D4D;
}

/**********
portfolio filtered content
***********/
.content {
	width: 250px;
	margin: 1rem;
	overflow: hidden;
	display: flex;
	flex-wrap: wrap-reverse;
	justify-content: center;
  }

  .content h3{
	  font-size: .75rem;
  }

  .content img{
	border-radius: 5%;
	width: 100%;
	background: var(--PrimaryPink);
  }
  .filter-container{
	  margin: 1rem 3rem;
  }

  /**********
portfolio content links
***********/

.content a{
	margin: 0;
	padding: 0;
}

.content a:focus {
	border-bottom: 0.25rem solid #FFD8D8;
	border-radius: 5%;
}

.content a:hover {
	border-bottom: 0.25rem solid #FFD8D8;
	border-radius: 5%;
}

.content a:active {
	border-bottom: #FFD8D8;
	border-radius: 5%;
}

/**********
For Bio
***********/
/* controls both the bio img and contact img */
.bio-img{ 
	padding: .75rem;
}

.title{
	display: flex;
	justify-items: flex-end;
}

article img{
	width: 100%;
	border-radius: 50%;
	
}

article{
	display: grid;
	grid-template-columns: 1fr 1fr 3fr;
	margin: 3rem auto;
	max-width: 1100px;
}

article p{
	margin: 0 1rem;
	padding: .75rem;
	border-left: solid .25rem #B84D4D;
}

/**********
For Contact
***********/
.contact{
  display: grid;
	grid-template-columns: 1fr 1fr 3fr;
	margin: 3rem auto;
	max-width: 1100px;
}

.contact img{
	width: 100%;
	border-radius: 2.5rem;
}

form{
    margin: 0 1rem;
    padding: .75rem;
    border-left: solid .25rem var(--SecondaryPink);
    width: 90%;
    max-width: 800px;
}

form label{
    color: var(--PrimaryPink);
}
form input, 
form textarea {
  display: block;
  background: var(--PrimaryGray);
  color: var(--Light);
  border: none;
  border-radius: 4px;
  width: 100%;
  resize: none;
  padding: .25rem;
}
form label,
form input{
	max-width: 270px;
}

form textarea{
    height: 10rem;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 5%;
  background: #FFD8D8;
  color: #7B1919;
  margin: 0 0 5px;
  padding: .5rem;
  font-size: 1rem;
}

/* focus, hover, and active on contact form */

textarea:focus, input[type="email"]:focus, input[type="text"]:focus{
  border-bottom: solid .25rem #FFD8D8;
  outline: 0;
} 

textarea:hover, input[type="email"]:hover, input[type="text"]:hover{
  border-bottom: solid .25rem #FFD8D8;
} 

textarea:active, input[type="email"]:active, input[type="text"]:active{
  border-bottom: solid .25rem #FFD8D8;
} 

button[type="submit"]:focus,
button[type="submit"]:hover,
button[type="submit"]:active
{
	background: #B84D4D;
	color: #FFD8D8;
}

::placeholder{
  color: #E0E0E0;
}
/**********
Section on subpages
***********/
.intro{
	margin-top: 3rem;
	display: flex;
	justify-content: center;
}
.intro div{
	max-width: 40rem;
}
.intro a{
	display: inline;
	padding: 0;
	font-size: 1rem;
	margin: 0;
}
.intro p, .intro h1{
	padding: 0;
	margin: 0;
	margin-bottom: .5rem;
	text-align: center;
}

#catherder .intro p{
	text-align: left;
}

/* for cat herder sub page */
.cat{
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	justify-content: center;
	align-content: center;
	margin: 0 auto;
}
.cat img{
	width: 250px;
}
.cat h4{
	margin-top: .5rem;
	color: #FFD8D8;
}
/**********
Thumbnails
***********/

section{
	margin: 1rem 3rem;
}
#gallery{
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: center;
}

/* layout of items of each individual portfolio item */

section img{
	max-width: 200px;
	padding: 0;
	border-radius: 5%;
}

section a{
	display: flex;
	flex-direction: column;
	align-items: center;
	
}

h3 {
	color: var(--PrimaryPink);
	margin: .5rem;
}

figcaption {
	padding: 0.25rem 0;
	color: #b84d4d;
	display: none;
}

/**********
Lightbox Styling
***********/

.lg-img-wrap { 
	background-color: var(--SecondaryGray);
  }
.lg-toolbar.group, .lg #lg-counter, .lg .lg-actions .lg-next, .lg .lg-actions .lg-prev, .lg .lg-toolbar .lg-icon{
	background-color: var(--SecondaryPink);
	color: var(--PrimaryPink);
}


.lg-backdrop.in{
	background-color: #333333;
}




/**********
Media Queries
***********/


/* main nav for large screen sizes */
@media screen and (min-width: 1200px){
	nav{
		padding: 0 10%;
	}
}


/* help fit overlay on smaller screens */
@media screen and (max-width: 870px){
	.overlay a img {
	width: 80vw;
	height: auto;
}
}

/* Media query to switch from grid to block. Content changes from horizontal layout to verticle*/

@media screen and (max-width: 800px){

	#poetry, #photo, #doodles, #stickers, #poster{
		display: block;
		margin: 10% auto;
	}
	article, .contact{
		display: flex;
		flex-direction: column;
	}
	.port-items{
		margin-left: 0;
	}
	.background-content h1, .bio h1{
		text-align: left;
		margin: 0 1rem;
	}
	
	.bio-img img{
		max-width: 200px;
	}
	.bio-img{
		order: -1;
	}
}


@media screen and (max-width: 750px){
	.port-items{
		justify-content: flex-start;
	}
}


/* sub nav bar for smaller screens */
@media screen and (max-width: 630px){
	.filters{
		display: block;
		line-height: 3;
	}
}

/* main nav bar for smaller screens AND smaller images*/
@media screen and (max-width: 400px) {
	nav {
		display:block;
		padding-bottom:0;
	}
	nav a{
		line-height: 2.5rem;
		padding: .75rem;
	}
	.content {
		width: 200px;
	}
}


/* media query for left boarder on portfolio page AND smaller images*/
@media screen and (max-width: 335px){
	.port-items{
		border: none;
	}
	.content {
		width: 150px;
	}
}
