.btn {
	display: inline-block;
	background: none;
	margin: 0 0 0 -1px;
	padding: 3px 0;
	border-width: 0;
	overflow: visible;
	font: 100%/1.2 Arial, Sans-serif;
	text-decoration: none;
	color: #333;
}

.btn img {
	vertical-align: text-bottom;
}

.btn.ico img {
	margin-right: 4px;
}

.wlabel img {
	margin-right: 4px;
}

* html button.btn {
	padding-bottom: 1px;
}

/* Immediately below is a temporary hack to serve the 
   following margin values only to Gecko browsers
   Gecko browsers add an extra 3px of left/right 
   padding to button elements which can't be overriden.
   Thus, we use -3px of left/right margin to overcome this. */
html:not ([lang *=""]) button.btn {
	margin: 0 -3px;
}

.btn span {
	background: #f9f9f9;
	z-index: 1;
	margin: 0;
	padding: 3px 0;
	border-left: 1px solid #ccc;
	border-right: 1px solid #bbb;
}

* html .btn span {
	padding-top: 0;
}

.btn span span {
	background: none;
	position: relative;
	padding: 3px .4em;
	border-width: 0;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #bbb;
}

.btn b {
	background: #e3e3e3;
	position: absolute;
	z-index: 2;
	bottom: 0;
	left: 0;
	width: 100%;
	overflow: hidden;
	height: 40%;
	border-top: 3px solid #eee;
}

* html .btn b {
	top: 1px;
}

.btn u {
	text-decoration: none;
	position: relative;
	z-index: 3;
}

/* pill classes only needed if using pill style buttons ( LEFT | CENTER | RIGHT ) */
.pill-l span {
	border-right-width: 0;
}

.pill-l span span {
	border-right: 1px solid #ccc;
}

.pill-c span {
	border-right-style: none;
	border-left-color: #fff;
}

.pill-c span span {
	border-right: 1px solid #ccc;
}

.pill-r span {
	border-left-color: #fff;
}

/* only needed if implementing separate hover state for buttons */
.btn:hover span,
.btn:hover span span {
	cursor: pointer;
	border-color: #9cf !important;
	color: #000;
}

/* use if one button should be the 'primary' button */
.primary {
	font-weight: bold;
	color: #000;
}

.active span span {
	background-color: #CCC;
	font-weight: normal;
}

.disabled span,
.disabled span span,
.disabled:hover span,
.disabled:hover span span {
	cursor: default;
	border-color: #ccc !important;
	color: #ccc;
	border-left-color: #fff;
}

.spacer_r {
	margin-right: 10px;
}

.spacer_l {
	margin-left: 10px;
}

body {
	font-family: sans-serif, Arial;
	font-size: 13px;
	background-color: white;
}

* {
	margin: 0px;
	padding: 0px;
}

.debug {
	font-family: monospace;
	white-space: pre-wrap;
	border-bottom: 1px solid gray;
}

a {
	color: #4756b1;
	cursor: pointer;
	text-decoration: none;
}

a.ico img {
	margin: 0 4px 0 0;
}

a:hover {
	text-decoration: underline;
}

img {
	border: none;
	vertical-align: text-bottom;
}

#page-wrap {
	background: white;
	min-width: 780px;
	max-width: 1260px;
	margin: 30px auto;
}

#page-wrap #content {
	margin: 0px 20px;
}

#main-content {
	padding-right: 408px;
	margin-bottom: 20px;
}

#header {
	background: #267f23;
	text-align: center;
}

#footer {}

.disclaimer {
	font-size: smaller;
	text-align: center;
}

#gallery_header_controls {
	line-height: 26px;
	margin-bottom: 10px;
	height: 26px;
}

#left_controls {}

#right_controls {
	float: right;
}

#gallery_footer_controls {
	text-align: center;
	clear: left;
}

#gallery_footer_controls .pagination a,
#gallery_footer_controls .pagination b {
	margin: 0 5px;
}



/* SIDEBARS */
#sidebars {
	float: right;
	width: 400px;

}

.sidebar {
	width: 190px;
	float: right;
	margin-left: 10px;
}

.double-sidebar {
	width: 390px
}

.sidebar .inactive {
	display: none;
}

.sidebar .widget {
	margin-bottom: 20px;
}

.sidebar .widget .title {
	font-weight: bold;
	line-height: 24px;
	margin: 0px;
}

.sidebar .widget .title img:first-child {
	vertical-align: text-bottom;
	margin-right: 5px;
}

.sidebar .widget .title a {
	font-size: smaller;
	color: gray;
	font-weight: normal;
	margin-left: 10px;
}


.sidebar .widget ul {
	list-style-type: none;
	padding-left: 0px;
}

.sidebar ul,
.sidebar .widget>div {
	margin: 10px 10px 0 10px
}

.sidebar .widget ul ul {
	list-style-type: none;
	padding-left: 20px;
	margin: 0px;
}





/* HORIZONTAL LISTS */
ul.h_list li {
	display: inline;
	list-style-type: none;
}

ul.h_list.menu li {
	margin-left: 20px;
}

ul.h_list.menu li:first-child {
	margin-left: 0px;
}

ul.h_list.menu li img {
	margin-right: 5px;
	vertical-align: text-bottom;
}

ul.h_list li input[type=image] {
	vertical-align: text-bottom;
}

/* TOP BAR */
#top_bar {
	padding-right: 30px;
	height: 30px;
	line-height: 30px;
	font-size: 13px;
}

#top_bar>* {
	float: right;
}

#top_bar a img {
	vertical-align: text-bottom;
	margin-right: 5px;
}






/*****************************************************************
 * LINKS WITH ICONS
 *****************************************************************/
a.ico_author {
	background: url("../images/famfamfam/user.png") left no-repeat;
	padding-left: 20px;
}

a.ico_tag,
a.ico_tag_yellow {
	background: url("../images/famfamfam/tag_yellow.png") left no-repeat;
	padding-left: 20px;
}

a.ico_tag_blue,
a.ico_tag_contest {
	background: url("../images/famfamfam/tag_blue.png") left no-repeat;
	padding-left: 20px;
}

a.ico_tag_red,
a.ico_tag_theme {
	background: url("../images/famfamfam/tag_red.png") left no-repeat;
	padding-left: 20px;
}

a.ico_tag_orange {
	background: url("../images/famfamfam/tag_orange.png") left no-repeat;
	padding-left: 20px;
}

a.ico_tag_green,
a.ico_tag_tag {
	background: url("../images/famfamfam/tag_green.png") left no-repeat;
	padding-left: 20px;
}








/*****************************************************************
 * Gallery Items
 *****************************************************************/
#gallery_items div.gallery_item {
	padding: 10px;
	border: 1px solid white;
	background-color: #FCFCFC;
	border: 1px solid #F9F9F9;
}

#gallery_items div.gallery_item .thumbnail {
	position: relative;
}

#gallery_items div.gallery_item .thumbnail .edit-button {
	position: absolute;
	right: 5px;
	top: 5px;
	line-height: 0 !important;
	margin: 0 !important;
	display: none;
}

#gallery_items div.gallery_item .thumbnail .nominate-button {
	position: absolute;
	right: 22px;
	top: 5px;
	line-height: 0 !important;
	margin: 0 !important;
	display: none;
}

#gallery_items div.gallery_item:hover .thumbnail .edit-button,
#gallery_items div.gallery_item:hover .thumbnail .nominate-button {
	display: block;
}

#gallery_items li {
	/*border: 1px solid;*/
	overflow: hidden;
}

#gallery_items div.gallery_item:hover {
	background-color: #F8F8F8;
	border: 1px solid #F2F2F2;
}


/* TILE VIEW */
#gallery_items.tile_view div.gallery_item {
	height: 225px;
	overflow: hidden;
}

#gallery_items.tile_view div.gallery_item h3 {}

#gallery_items.tile_view .gallery_item .item_details {
	text-align: center;
}

#gallery_items.tile_view .item_d_name {
	font-weight: bold;
}

#gallery_items.tile_view .item_d_author {}

#gallery_items.tile_view .item_d_date,
#gallery_items.tile_view .item_references,
#gallery_items.tile_view .item_tags {
	display: none;
}

#gallery_items.tile_view div.gallery_item .thumbnail {
	vertical-align: top;
	height: 180px;
	text-align: center;
	margin-bottom: 5px;
	overflow: hidden;
}

#gallery_items.tile_view div.gallery_item .thumbnail a {
	line-height: 100px;
	margin: 0 -100px;
}

#gallery_items.tile_view div.gallery_item .thumbnail img {
	max-width: 180px;
	max-height: 180px;
	vertical-align: middle;
}

/* LIST DETAILS VIEW */
#gallery_items.listdetails_view li {
	margin: 0 0 10px;
}

#gallery_items.listdetails_view div.gallery_item {
	min-height: 100px;
}

#gallery_items.listdetails_view div.gallery_item .thumbnail {
	vertical-align: top;
	display: inline;
	float: left;
	width: 100px;
	height: 100px;
	text-align: center;
	margin-right: 10px;
	overflow: hidden;
}

#gallery_items.listdetails_view div.gallery_item .thumbnail a {
	line-height: 100px;
	margin: 0 -100px;
}

#gallery_items.listdetails_view div.gallery_item .thumbnail img {
	max-width: 100px;
	max-height: 100px;
	vertical-align: top;
}

#gallery_items.listdetails_view div.gallery_item .item_details {
	vertical-align: top;
	/*display: inline;*/
}

#gallery_items.listdetails_view .item_d_name {
	font-size: x-large;
	/*min-height: 60px;*/
}

#gallery_items.listdetails_view .item_d_author {
	display: inherit;
}

#gallery_items.listdetails_view div.gallery_item .item_details,
#gallery_items.listdetails_view .item_tags,
#gallery_items.listdetails_view .item_references {
	margin-left: 110px;
}

#gallery_items.listdetails_view .item_tags,
#gallery_items.listdetails_view .item_references {
	margin-top: 10px;
}














/*****************************************************************
 * Single Item View
 *****************************************************************/
#gallery_single_item .item_d_name {
	font-size: x-large;
	margin-bottom: 5px;
}

#gallery_single_item .item_d_image,
#gallery_single_item .item_d_image img {
	max-width: 100%;
	text-align: center;
}

#gallery_single_item .item_d_field {
	margin-top: 10px;
}

#gallery_single_item .label {
	font-weight: bold;
	margin-right: 5px;
}

.item_references ul {
	list-style-type: none;
	padding-left: 0px;
	margin: 0 0 0 20px;
}

.item_references .reference_link img {
	width: 16px;
}













/*****************************************************************
 * Item Editor
 *****************************************************************/

#gallery_item_editor input.optional {
	border: 2px solid lightgrey;
}

#gallery_item_editor input.required {
	border: 2px solid red;
}

#gallery_item_editor input.non-empty {
	border: 2px solid white;
}

#gallery_item_editor input[type=text]:focus,
#gallery_item_editor input[type=text]:hover {
	border: 2px solid grey !important;
}



#gallery_item_editor #item_name,
#gallery_item_editor #item_image_url {
	font-size: x-large;
	margin-bottom: 5px;
	width: 100%;
}







.barrel_roll {
	-webkit-transition: -webkit-transform 4s ease;
	-webkit-transform: rotate(360deg);
	-moz-transition: -moz-transform 4s ease;
	-moz-transform: rotate(360deg);
	-o-transition: -o-transform 4s ease;
	-o-transform: rotate(360deg);
	transition: transform 4s ease;
	transform: rotate(360deg);
}
