* {
	margin: 0; /* removes default margins on all elements */
	padding: 0; /* removes default paddings on all elements */
	box-sizing: border-box; /* this will make padding and border included in widths, this is best for responsive layout */
	}

body {
	font-family: 'Open Sans', sans-serif; /* set the default font for the entire site */
	}

img {
    max-width: 100%;
    }

/* site wide styles */

.bold {font-weight: bold;}
.italic {font-style: italic;}


.wrap {
	width: 90%;
	margin: 0 auto;
	}

header {
	padding: 1em 0 0 0;
	}

	
/* unvisited link */
a:link {
    color: black;
    text-decoration: none;
	}

/* visited link */
a:visited {
    color: black;
    text-decoration: none;
	}

/* mouse over link */
a:hover {
    color: black;
    text-decoration: none;
	}

/* selected link */
a:active {
    color: black;
    text-decoration: none;
	}

#backtop {
	
    position: fixed;
	left: auto; right: 20px; top:auto; bottom: 20px;
	outline: none;
	overflow: hidden;
	color: #fff;
	text-align: center;
	background-color: rgba(195,246,254,0.8); /* rgba is opacity with color */
	height: 40px;
	width: 40px;
	line-height: 40px;
	font-size: 14px;
	border-radius: 2px;
	cursor: pointer;
	transition: all 0.3s linear;
	z-index: 999999;

	opacity:1;
	display: none;
	}

#backtop:hover {
	background-color: #EAEAEA;
	}

#backtop.mcOut {
	opacity: 0;
	}
	
/* menu styles */

nav ul {
	list-style-type: none; /* removes bulletpoints */
	background-color: #C3F6FE;
	display: flex; /* li becomes flex items */
	flex-direction: column; /* puts list items in a row */
	justify-content: space-between;
	font-size: 0.9em;
	}
	
nav ul li {
	flex: 1 0 auto; /* grow set to 1 (items fill available space), 0 (it won't shrink), auto (the starting size) */
	text-align: center;
	}

nav li a {
	display: block; /* allows the whole link to be clickable, use with padding */
	padding: 1em;
	border: solid 0.2em white;
	text-decoration: none; /* removes link underline */
	font-weight: 700;
	color: black;
	}
	
nav li a:hover {
	background-color: #EAEAEA;
	}

/* font styles */

h2 {
	margin-left: -15px;
	margin-bottom: 5px;
	}
	
#logo {
	padding-bottom: 0.5em;
	text-align: center;
	font-family: 'Abril Fatface', cursive;
	font-weight: normal;
	font-size: 2em;
	color: black;
	}
	
#logo a:hover {
    color: #C3F6FE;
	}

#logo2 {
  	padding-bottom: 0.5em;
	display: block;
  	margin: auto;
  	width: 250px;
  	}
	
#statement {
	padding: 2em 1em;
	text-align: center;
	font-family: 'Abril Fatface', cursive;
	font-size: 1.8em;
	}

#word {
	color: #FF0052;
	}

#word2 {
	color: #FFB400;
	}

#word3 {
	color: #5000FF;
	}
	
footer {
	padding: 6em 0;
	text-align: center;
	background-color: #FF0052;
	}

footer i {
	font-size: 2em;
	color: white;
	}
	
footer p {
	font-size: 0.8em;
	color: white;
	}
	
#footer2 {
	background-color: #FFB400;
	}
	
#footer3 {
	background-color: #5000FF;
	}
	

/* grid styles */

#work {
	width: 80%;
	margin: 0 auto;
    outline: none;
	}
#work img {
    outline: none;
    padding-bottom: 2em;
    }

#project h2 {
    padding: 0 2em;
    }
#project p {
    padding: 0 2em 2em 2em;
    }

#project img {
    padding: 0 2em 2em 2em;
    }

video {
    padding: 0 2em 2em 2em;
    max-width: 100%;
    outline: none;
    }


/* overlay style */
.container {
    position: relative;
    width: 100%;
    outline: none;
}

.image {
    display: block;
    width: 100%;
    height: auto;
}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 92%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: #FF0052;
}

.container:hover .overlay {
    opacity: .95;
}

.text {
    color: white;
    font-family: 'Abril Fatface', cursive;
    font-size: 2em;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
}


/* Slideshow container */
.slideshow-container {
  max-width: 1200px;
  position: relative;
  margin: auto;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
    }

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
    }

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  color: white;
  background-color: rgba(195,246,254,0.8);
    }

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #EAEAEA;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #C3F6FE;
}

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}


#bio p {
    padding-bottom: 2em;
    }

#contact {
	text-align: center;
	font-size: 1em;
	}

#contact a:link, #contact a:visited {
    color: black;
    text-decoration: underline;
	}

#contact a:hover, #contact a:active {
    color: #C3F6FE;
    text-decoration: underline;
	}

/* form style */
.antispam {display: none;}

form {
	margin: 2em auto; /* centers the form */
	}

label {
	display: block;
	padding-top: 1em;
	font-family: 'Abril Fatface', cursive;
	font-size: 1.6em;
	}

/* style the text input area */
input, textarea {
	width: 100%;
	height: 30px; /* must be in px */
	background: white;
	padding: 10px; /* space inside box */
	margin-top: 3px;
	color: #5000FF; /* font color */
    outline: none;
	}

textarea {
	height: 200px;
	}

button {
	width: 180px;
	height: 50px;
	font-weight: 700;
	font-size: 0.9em;
	background-color: #C3F6FE;
	cursor: pointer; /* changes mouse to pointer when over submit button */
	}


/*MEDIA QUERIES*/
@media only screen and (min-width: 481px){
	
	.wrap {
		width: 80%;
        max-width: 1200px;
		}
		
	header {
	padding: 2em 0 1em 0;
	}
		
	/* menu styles*/

	nav ul {
		flex-direction: row;
        margin: 0 auto;
        max-width: 800px;
		}
    
    nav li a {
        border: solid 0.5em white;
        }

	/* font styles*/
	
    #logo {
        font-size: 2.2em;
        }
    
	#statement {
		padding: 3em 1em;
        font-size: 3.5em;
        margin: 0 auto;
        max-width: 1200px;
		}

	footer {
		text-align: left;
		}

	/*grid styles */

    #work {
        padding-bottom: 2em;
        margin: 0 auto;
        }
    
    #work img {
        padding: 0;
        }
    .overlay {
        height: 99.25%;
        }
    
    .grid {
        display: grid;
        grid-gap: 2em;
        grid-template-columns: 1fr 1fr;
        }
    
    #one {
        grid-column: 1/2;
        }
    #two {
        grid-column: 2/3;
        }
    #three {
        grid-column: 1/3;
        }

    #about {
        display: flex;
        }
    
    #selfportrait {
        padding: 1em;
		width: 40%;
		}
	
	#bio {
		width: 60%;
		}
	
	form {
        max-width: 800px;
		}
	}