@import url('https://fonts.googleapis.com/css?family=Oswald:200,300');

/* I really wish I didn't have to have this invalid CSS
 * here. Thanks Mozilla.
 */
html {
	overflow-y: scroll;
}

a {
	text-decoration: none;
	color: inherit;
	outline: 0;
}

body, h1, h2, p {
	font-family: 'Oswald', sans-serif;
	font-weight: lighter;
}

body {
	margin: auto;
	width: 1024px;
	background-color: #686f6f;
	background-image: url("../images/background.jpg");
}

#center {
	text-align: center;
}

#floatinghead {
	float: right;
}

#navbar {
	color: #f2f2f2;
	background-image: url("../images/header.png");
	text-align: left;
}

#navbar>#name h1 {
	padding: 53px 0px 25px 20px;
	display: inline-block;
	font-size: 42pt;
	position: relative;
	bottom: 15px;
	/*for regular font, not sure how to use that
	 *parameter instead if the good font isn't found*/
	/*letter-spacing: .1em;*/
	letter-spacing: .28em;
}

#navbar>ul {
	display: inline-block;
}

#navbar>ul>a {
	padding-left: 25px;
	padding-right: 36px;
	float: left;
}

#navbar>ul>a:first-child {
	padding-left: 1.8em;
	float: left;
}

#navbar>ul>a:last-child {
	padding-right: none;
}

#navbar>ul>a>img {
	transform: scale(1.9, 1.9);
}

#navbar>ul>a>img:hover {
    opacity: 0.8;
}

.fixed {
    position:fixed;
    top: 0;
}

#gridcontainer {
	background-image: url("../images/gridbg.jpg");
	/* height: 1192px; */
	height: 800px;
}

#infoboxcontainer {
	background-image: url("../images/gridbg.jpg");
	height: 100vw;
}

.gridelement {
	/* defines style of the boxes */
	/* alignment */
	padding: 5%;
	margin-top: 2%;
	margin-bottom: 15%;
	/* what puts the boxes on the left or right
	 * in the order they appear in the HTML*/
	height: 220px;
    width: 50%;
    border: 1em;
    float: left;
    box-sizing: border-box;
    /* shadow I wanted around my grid element's
     * but the way the border is designed it's not
     * gonna work anytime soon (I love CSS!)
    box-shadow: 5px 5px 5px #888888; */
}

.gridelement h2 {
	/* put text in a white trasparent box above an image */
	text-align: center;
	font-weight: bold;
	font-size: 20pt;
	background-color: rgba(255, 255, 255, 0.5);
}

.box {
	height:220px;
	overflow: hidden;
	transition: all .2s ease;
	box-shadow: inset 0 0 0px #000000;
}

.box:hover {
	transition: all .2s ease;
	box-shadow: inset 0 0 50px #000000;
}

.gridelement:nth-of-type(1) .box {
	background-image: url("../images/about.png");
	background-size: 100%;
}

.gridelement:nth-of-type(2) .box {
	background-image: url("../images/projects.png");
	background-size: 100%;
}

.gridelement:nth-of-type(3) .box {
	background-image: url("../images/music.png");
	background-size: 100%;
}

.gridelement:nth-of-type(4) .box {
	background-image: url("../images/photography.png");
	background-size: 100%;
}

.gridelement:nth-of-type(5) .box {
	background-image: url("../images/multimedia.png");
	background-size: 100%;
}

.gridelement:nth-of-type(6) .box {
	background-image: url("../images/multimedia.png");
	background-size: 100%;
}

#headerIcon {
	margin-top: 1em;
	float: left;
}

#infobox {
	box-sizing: border-box;
	background-color: rgba(255,255,255,0.5);
	padding: 2% 5% 5% 5%;
	margin: 5% 5% 0 5%;
	float: left;
}

#infobox a {
	color: #21179C;
}

#infobox h2 {
	margin-bottom: -5px;
	margin-left: -3%;
	font-size: 36pt;
	font-weight: bold;
}

#infobox h3 {
	font-size: 20pt;
	font-weight: bold;
}

#infobox p {
	text-indent: 30px;
	font-size: 16pt;
	font-weight: normal;
	letter-spacing: 1px;
	margin-bottom: 1%;
}

#infobox ul {
	margin-left: 30px;
	font-size: 16pt;
	font-weight: normal;
}

#infobox #floatinghead img {
	position: absolute;
	top: 220px;
	left: 50%;
	transform: translate(360px);
	}
	
#infobox audio {
	margin-left: 4%;
	margin-bottom: 2%;
}
	
#footer {
	width: 1024px;
	text-align: center;
	background-color: rgba(255,255,255,0.5);
	overflow: hidden;
}

#footer a {
	font-weight: bold;
	text-decoration: none;
	margin: 0 10px 0 10px;
}

#footer #contact {
	float: left;
}

#footer #legal {
	float: right;
}

/* Now begins the responsive design... */

@media screen and (max-width: 1024px) {
	body {
		width: 100%;
	}
	
	/* To do: redo navbar so that the entire element
	 * scales dynamically instead of just the text
	 * and icons */
	
	#navbar>#name h1 {
		padding: 2vw 1vw 2vw 1vw;
		font-size: 6.7vw;
		position: relative;
		bottom: 3px;
	}
	
	#navbar>ul>a>img {
		width: auto;
		height: auto;
		max-width: 5vw;
	}
	
	#navbar>ul>a:nth-of-type(n) {
		float: left;
		padding-left: 0;
		padding-right: 5vw;
		position: relative;

	}
	
	#navbar>ul>a:last-child {
		float: left;
		padding-right: 0;
	}
	
	.box {
		height: 40vw;
		overflow: hidden;
		transition: all .2s ease;
		box-shadow: inset 0 0 0px #000000;
	}
	
	#gridcontainer {
		background-repeat: repeaty;
		height: 377vw;
	}
	
	#infoboxcontainer {
		height: 98vh;
	}
	
	.gridelement {
		/* defines style of the boxes */
		/* alignment */
		padding-top: 8vw;
		margin: 2% 0 0 5%;
		/* what puts the boxes on the left or right
		* in the order they appear in the HTML*/
		height: 60vw;
		width: 80%;
		float: left;
		box-sizing: content-box;
	}

	.gridelement h2 {
		/* put text in a white trasparent box above an image */
		text-align: center;
		font-weight: bold;
		font-size: 5vw;
		background-color: rgba(255,255,255,0.5);
	}
	
	#headerIcon img {
		width: 8vw;
		height: auto;
		margin-top: -10px;
	}
	
	#infobox h2 {
		font-size: 7vw;
		margin-bottom: 0;
	}
	
	#infobox h3 {
		/* margin-left: 1vw; */
		/* font-size: 20pt; */
		font-size: 6vw;
	}
	
	#infobox p {
		font-size: 5vw;
	}
	
	#infobox ul {
		font-size: 5vw;
	}
	
	#infobox #floatinghead img {
		display: none;
	}
	
	iframe {
		width: 80vw;
	}
	
	#footer {
		width: 100vw;
		position: fixed;
		bottom: 0;
	}
	
	#footer a {
		font-size: 4vw;
		margin: 0 3vw 0 3vw;
	}

}

@media screen and (min-width: 1920px) and (min-height: 1080px) {
	body {
		zoom: 131%;
	}
