button {
	border: none;
    margin: 0;
    padding: 0;
    width: auto;
    overflow: visible;

    background: transparent;

    /* inherit font & color from ancestor */
    color: inherit;
    font: inherit;

    /* Normalize `line-height`. Cannot be changed from `normal` in Firefox 4+. */
    line-height: normal;

    /* Corrects font smoothing for webkit */
    -webkit-font-smoothing: inherit;
    -moz-osx-font-smoothing: inherit;

    /* Corrects inability to style clickable `input` types in iOS */
    -webkit-appearance: none;
    
    cursor: pointer;
    font-size: 20px;
}

.gutter-sizer {
	width: 2%;
}

.chapter_item {
  float: left;
  width: 18.4%;
  margin: 0;
  box-sizing: border-box;
}

.double_width {
	width: 38.8%;
}

.one_img{
	width: 100%;
	height: auto;
	cursor:pointer;
	display: block;
}

.bar {
	width: 100%;
	height: 50px;
	display: block;
	position: absolute;
	top: 100px;
    z-index: 1987;
}

.sort {
	display: inline-block;
	margin-left: 2.5%;
	font-size: 17px;
}
	
	#filter
	{
		margin-right:20px;
	}
	
.sort-button {
	margin-left: 20px;
	margin-top: 5px;
	padding: 5px 0;
	font-size:17px;
}
.sort-button.active {
	border-bottom: 2px solid #000;
}

.button-group {
	display: inline-block;
}
	.button-group .button {
		margin-right: -6px;
	}

.button {
	width: auto;
	padding: 10px 15px;
	border:2px solid #000;
	color:#000;
	z-index: 10010;
	background:#fff;
	cursor:pointer;
}

.icon-button {
    background-repeat: no-repeat;
}

	#upload_btn
	{
		background-image: url('../img/foto.png');
		padding-left: 45px;
		background-position: 15px 50%;
		font-size: 16px;
		position: absolute;
		left: 50%;
		height: 36px;
		padding-top: 0px;
		padding-bottom: 0px;
		margin-left: -82px;
	}
	

.infobox {
	margin-top: 10px;
	position: relative;
	width: 100%;
	display: block;
	background-color: white;
}
	.infobox p {
		position: relative;
	    max-width: 70%;	
	    font-size:16px;
	    }

.vote-container {
	position: absolute;
	top: -5px;
	right: 0;
}

	.vote-button {
		width: 26px;
		height: 26px;
		font-size: .8em;
		margin-left: 2px;
	}
	
	.vote-counter {
		position: relative;
		top: -6px;
		font-size:16px;
	}
	
	.vote-button.voted {
		/*opacity: 0.5;
		cursor: default;
		pointer-events: none;*/
	}
	
	
@media only screen and (max-width: 781px) {
	.grid-sizer {
		width: 48%;
	}
	.gutter-sizer {
		width: 4%;
	}
	.chapter_item {
		width: 48%;
	}
}

@media only screen and (max-width: 450px) {
	div#canvas {
		top: 210px;
	}
	
	#upload_btn {
		position: relative;
		left: 2.5%;
		margin-top: 10px;
	}
	.sort {
		display: block;
	}
}