/* -----------------------------------------
	Table of Contents: 

	Tag Resets
	Normalize CSS
	Web Fonts
	Fluid Media
	Custom Styles
	Media Queries

----------------------------------------- */

/* -----------------------------------------

	Tag Resets

----------------------------------------- */

body,
div,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
th,
td,
article,
aside,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
	margin: 0;
	padding: 0;
	border: 0;
}


/* -----------------------------------------

	Normalize CSS
	https://necolas.github.com/normalize.css/

----------------------------------------- */

html {
	height: 100%;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

body {
	min-height: 100%;
	height:100%;
	font-size: 100%;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section,
audio,
canvas,
video {
	display: block;
}

iframe {
	border:none;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	top: -0.5em;
}

sub {
	bottom: -0.25em;
}

pre {
	white-space: pre;
	white-space: pre-wrap;
	word-wrap: break-word;
}

b,
strong {
	font-weight: bold;
}

em {
	font-style: italic;
}

abbr[title] {
	border-bottom: 1px dotted;
}

textarea {
	overflow: auto;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* this is taken from an article about correcting a problem where Apple mobile devices wouldn't play iframe videos: */

a,
object,
input,
a:active,
a:focus,
input:active,
input:focus {
	outline:none;
}


/* -----------------------------------------

	Web Fonts

----------------------------------------- */



/* -----------------------------------------

	Fluid Media

----------------------------------------- */


figure {
	position: relative;
}

figure img,
figure object,
figure embed,
figure video,
figure iframe {
	display: block;
	max-width: 100%; 
	margin:.65em auto;
}

/* 
interpolation-mode
https://css-tricks.com/ie-fix-bicubic-scaling-for-images/
 */

img {
	border: 0;
	-ms-interpolation-mode: bicubic;
}


/* -----------------------------------------

	Custom Styles

----------------------------------------- */

body {
	font-family: sans-serif;
	background-color: lightgray;
}

.container {
	width:80%;
	min-height:900px;
	margin: 0 auto;
	background-color: #FFF;
	padding: 1em 2em 2em;
}

.text-wrap {
	margin:1em;
	text-align: center;
}

h1 {
	margin:1em auto 1em;
}

header h1 {
	text-align:center;
	display:inline-block;
	font-weight:lighter;
	margin:-1em 0 1em 2em;
	top:-20px;
}

h2 {
	margin:1em 0;
}

a,
a:active {
	color:#000;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
	cursor:pointer;
}

p {
	margin-bottom: 1em;
	line-height: 1.35;
}

nav {
	position: absolute;
	right: 15%;
	color: #666;
	font-size: .9em;
}

nav a {
	color: #AAA;
	text-decoration: none;
}

nav ul {
	width: 100%;
	position:relative;
	list-style-type: none;
	display:inline-block;
	background: #FFF;
}

.item {
	display:inline-block;
	padding:1em;
	margin:.5em;
	vertical-align: top;
}

.thumb {
	border:1px solid lightgray;
}

form {
	margin-bottom: 1em;
}

input[type=text] {
	width:400px;
}

.button {
	border:1px solid;
	border-color: rgb(216, 216, 216) rgb(209, 209, 209) rgb(186, 186, 186);
	border-radius: 5px;
	padding:.6em 1em;
	display:inline-block;
	font-size: .7em;
	padding: .3em .6em;
	box-sizing: border-box;
}

input[type=submit] {
	border-radius: 5px;
}

input[type=submit]:hover {
	cursor: pointer;
	background-color: #EEE;
	border-radius: 5px;
}

.update {
	background-color:#00ffff;
}

input[type=submit].update:hover {
	background-color: #00deff;
}

.delete {
	color:red;
	border-color:red;
}

.delete:hover {
	background-color: #ffbfbf;
	border-radius: 5px;
	text-decoration: none;
}

.edit_icon_group {
	margin-top:.75em;
}
.edit_icons {
	margin-left:.5em;
}



/* -----------------------------------------

	Media Queries

----------------------------------------- */


/* less than 860px */

@media screen and (max-width: 860px) {
	
	header h1 {
		margin:1em auto 1em;
	}

}

/* less than 750px */

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

	nav a {
		font-size:.975em;
	}

	.container {
		width: 90%;
		padding-bottom:40px;
	}

	.colorgrid {
		padding:0 auto;
	}
	
	
}

/* less than 560px */

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

	.container {
		width: 100%;
		padding:0 auto;
	}

	.topic {
		width:calc(100% / 1.5);
	}

	.color1, 
	.color2, 
	.color3, 
	.color4 {
		margin:.3em 0;
	}
}
