/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

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;
}

/* personnal css*/

body, html {
	background-color: rgb(240, 248, 255);
	box-sizing: border-box;
	overflow-x: hidden;
}

@media screen and (min-width: 0px) {
	article {
		background-color: rgb(182, 201, 213);
		width: 99%;
		margin: 1rem auto;
		border: 2px solid #236fa2;
		border-radius: 15px;
	}
	
	div {
		margin: 0;
		padding: 0;
	}

	h1 {
		color: #236fa2;
		text-align: center;
		font-weight: 900;
		margin: 1rem auto;	
		font-size: 3rem;
	}
	
	h2 {
		color: #236fa2;
		text-align: center;
		font-weight: 800;
		margin: 0 auto;	
		width: 50%;
		padding: 1.5rem;
		font-size: 1.5rem;
	}
	
	ul {
		list-style: none;
		width: 99.5%;
		margin: 0;
		padding: 0;
	}
	
	#list_container {
		width: 50%;
		display: flex;
		flex-direction: column;
		margin: 0 auto;
	}
	
	#list li {
		border: 1px solid #236fa2;
		border-radius: 5px;
		padding: 5px;
		margin: 5px auto;
		float: left;
		display: block;
		width: 100%;
		color: #FFFFFF;
		font-weight: 700;
	}

	#newItems {
		border: 1px #236fa2 solid;
		border-radius: 5px;
		padding: 5px;
		margin: 10px auto;
		width: 100%;
		display:block;
	}
	
	#list_container button {
		border: #236fa2 5px solid;
		border-radius: 5px;
		background-color: #236fa2;
		color: #FFFFFF;
		margin: 10px;
		box-shadow: 0px 5px #A0A0A0;
		display: block;
		transition: all 0.5s;
	}

	#list_container button:hover {
		background-color: #60839a;
		transform: translateY(5px);
		box-shadow: 0px 0px #A0A0A0;
		border: #60839a 5px solid;
	}
	
	.hot {
		background-color: #A54242;
	}
	
	.normal {
		background-color: #42A563;
	}
	
	.cool {
		background-color: #4291A5;
	}
	
	.completed {
		background-color: #A0A0A0;
	}
	
	#legend_container {
		width: 50%;
		margin: 3rem auto;
		background-color: rgb(240, 248, 255);
		font-weight: 700;
	}
	
	#legend_container h2 {
		border: 2px solid #236fa2;
		padding: 10px 0px;
		width: 100%;
		background-color: rgb(240, 248, 255);
	}
	
	#legend_container ul {
		list-style: none;
		width: 100%;
	}
	
	#legend_container ul li {
		border: 2px solid #236fa2;
		background-color: #FFFFFF;
		width: 100%;
	}
	
	#legend_container ul li div {
		display: inline-block;
		width: 3rem;
		height: 2rem;
	}
	#legend_container ul li:first-child div {
		background-color: #42A563;
	}
	#legend_container ul li:nth-child(2) div {
		background-color: #4291A5;
	}
	#legend_container ul li:nth-child(3) div {
		background-color: #A0A0A0;
	}
	#legend_container ul li:last-child div {
		background-color: #A54242;
	}
	
	#legend_container ul li p {
		display: inline-block;
		font-size: 0.75rem;
		padding: 2px;
		margin: 0px auto;	
		text-align: center;
		/* width: 100%; */
	}
}

@media screen and (min-width: 568px) {
	article {
		width: 50%;
	}
	#list li {
		width: 100%
	}
	#newItems {
		width: 99.5%;
	}
	#legend_container {
		width: 50%;
	}
}

@media screen and (min-width: 1024px) {
	#legend_container {
		width: 30%;
	}
}