html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

body{
	font-family: 'Roboto', sans-serif;
	width:100%;
}

/* mobile css */

@media screen and (max-width:599px){
	#graphic{
		width:85%;
	}

	#headernav{
		margin-left: auto;
		align-items: center;
		display:flex;
		flex-wrap:wrap;
	}
	
	#headernav i{
		font-size:40px;
		text-decoration:none;
		color:black;
		margin-right:30px;
	}
	
	.sidenav {
		height: 100%;
		width: 0;
		position: fixed;
		z-index: 10;
		top: 0;
		right: 0;
		background-color: #111;
		overflow-x: hidden;
		padding-top: 60px;
		transition: 0.5s;
		display:flex;
		flex-direction:column;
	}
	
	.sidenav a {
		padding: 8px 8px 8px 32px;
		text-decoration: none;
		font-size: 30px;
		color: #818181;
		display: block;
		transition: 0.3s;
	}
	
	.sidenav a:hover {
		color: #f1f1f1;
	}
	  
	.sidenav .closebtn {
		position: absolute;
		top: 0;
		right: 0;
		font-size: 36px;
		margin-left: 50px;
	}
	
	.sidenav h1{
		color:white;
		z-index:1;
		font-size:41px;
		margin-bottom:20px;
		margin-left:auto;
	}
	
	.sidenav hr{
		width:40%;
		color:rgb(70, 70, 70);
		margin-left:30px;
	}

	#gridarticle{
		display:grid;
		grid-template-columns:1fr;
		grid-template-rows:1fr 1fr 1fr 1fr;
	}

	#gridarticle p{
		display:flex;
		align-items:center;
	}

	#p1{
		grid-column:1/2;
		grid-row:1/2;
	}

	#p2{
		grid-column:1/2;
		grid-row:2/3;
	}

	#p3{
		grid-column:1/2;
		grid-row:3/4;
	}

	#p4{
		grid-column:1/2;
		grid-row:4/5;
	}

	#gridarticle p{
		margin-bottom:20px;
	}

	#desktopnav{
		display:none;
	}

	#graphic2 img{
		width:50%;
	}

	#p1 h2, #p2 h2, #p3 h2, #p4 h2{
		margin:auto;
		font-size:30px;
	}
}

@media screen and (min-width:1200px){
	#graphic{
		width:40%;
		display:block;
		margin:auto;
	}

	#headernav{
		display:none;
	}

	.sidenav{
		display:none;
	}

	#gridarticle{
		display:grid;
		grid-template-columns:1fr 1fr;
		grid-template-rows:1fr 200px 200px;
	}

	#gridarticle p{
		width:50%;
		margin:auto;
		text-align:center;
		line-height:30px;
		font-size:20px;
	}

	#p1{
		grid-column:1/2;
		grid-row:1/2;
	}

	#p2{
		grid-column:2/3;
		grid-row:1/2;
	}

	#p3{
		grid-column:1/2;
		grid-row:2/3;
	}

	#p4{
		grid-column:2/3;
		grid-row:2/3;
	}

	#p1,#p2{
		padding-bottom:30px;
	}

	#p1, #p2, #p3, #p4{
		display:flex;
		flex-direction:column;
	}

	#p1 h2, #p2 h2, #p3 h2, #p4 h2{
		margin:auto;
		font-size:30px;

	}

	#desktopnav a{
		color:black;
		text-decoration:underline;
		text-decoration-thickness:1px;
		text-underline-offset:5px;
		font-size:30px;
		margin:0px 40px;
		display:block;
		padding:20px;
		border-radius:10px;
	}

	#desktopnav a:hover{
		transition:0.5s;
		background-color:rgb(187, 187, 187);
	}

	#desktopnav{
		display:flex;
		flex-direction:row;
		justify-content:space-between;
		text-align:center;
		margin:auto;
	}

	#graphic2{
		width:20%;
	}
}

body{
	overflow-x:hidden;
}

header{
	display: flex;
	padding: 20px 0px;
	align-items: center;
	width:100%;
	margin:auto;
	box-sizing:border-box;
}

header img{
	width: 4em;
}

header h1{
	font-size:35px;
	font-weight:300;
	margin-left:15px;
}

#article1{
	background-color:rgb(57, 57, 110);
	height:120px;
	color:white;
	font-size:30px;
	font-weight:300;
	display:flex;
	align-items:center;
	justify-content:center;
	text-align:center;
	line-height:35px;
}

#graphic{
	border:solid gray 2px;
	margin-top:20px;
}

#gridarticle{
	padding:25px;
}

#pic{
	text-align:center;
}