html, body {
	position: relative;
	width: 100%;
	height: 100%;
}

body {
	margin: 0;
	padding: 8px;
	box-sizing: border-box;
}

a {
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

label {
	display: block;
}

input, button, select, textarea {
	font-family: inherit;
	font-size: inherit;
	-webkit-padding: 0.4em 0;
	padding: 0.4em;
	margin: 0 0 1em 0;
	box-sizing: border-box;
	border-radius: 2px;
}

button {
	outline: none;
	margin: 0 0 0.5em 0;
	border: 0;
	display: inline-block;
	text-align: center;
}

div.clear {
	clear: both;
}

button.login, button.logout {
	position: fixed;
	right: 1%;
	bottom: 1%;
}

/* Item sections */
section.item {
	width: 300px;
	height: 17%; 
	padding: 16px;
	margin: 16px;
	float: left;
}

@media screen and (max-width: 400px) {
	section.item {
		width: 80%;
	}
}

@media screen and (max-height: 850px) {
	section.item {
		height: 20%;
	}
}
@media screen and (max-height: 750px) {
	section.item {
		height: 25%;
	}
}
@media screen and (max-height: 590px) {
	section.item {
		height: 30%;
	}
}
@media screen and (max-height: 500px) {
	section.item {
		height: 35%;
	}
}
@media screen and (max-height: 430px) {
	section.item {
		height: 45%;
	}
}
@media screen and (max-height: 350px) {
	section.item {
		height: 60%;
	}
}

section.item.claimed {
	background-color: #888;
	opacity: 0.4;
}

section.item div.title {
	width: 100%;
	height: 30%;
	float: left;
}

section.item div.title h3{
	margin: 0;
	padding: 0;
	font-size: 1em;
}

section.item div.link {
	padding: 1em 0 0 0;
	width: 50%;
	float: left;
}

section.item div.price {
	padding: 0 0 0em 0;
	width: 50%;
	float: left;
	clear: left;
}

section.item div.image {
	height: 70%;
	width: 50%;
	float: right;
}

section.item div.buttons {
	width: 100%;
	float: left;
	width: 50%;
}

section.item button.delete img,
section.item button.edit img {
	width: 10px;
}


section.item div span {
	float: left;
	width: 100%;
}

section.item input.thumb {
	max-width: 100%;
	max-height: 100%;
	border: none;
}

section.item button.unclaim, 
section.item button.claim,
section.item button.delete,
section.item button.edit {
	float: left;
	margin: 3px;
}

/* Add/Edit/Delete item and login Modals*/
.modal div {
	width: 100%;
}

.modal img.thumb, .modal img.big {
	width: 90%;
	height: 90%;
}

.modal div.form-container {
	width: 50%;
	float: left;
}

.modal div.image-container {
	width: 50%;
	float: left;
}

.modal p.disclaimer {
	font-size: 0.7em;
}

.modal button {
	float: left;
}
