div.content {
	padding: 0.5em;
	max-width: 650px;
	margin: 0 auto;
}

@media (min-width: 600px) {
	div.content {
		padding: 1em;
	}
}


p.copyright {
        text-align: center;
        font-size: 0.8em;
}

p.footnote {
	font-size: 0.8em;
	color: #808080;
}

div.message {
        margin: 0;
        padding: 1em 2em;
        text-align: center;
        color: #ffffff;
        background: #de741b;
        background: linear-gradient(#de741b, #f78d34);
}


div.message p {
	margin: 0.6em 0;
}

div.digital_remaining {
	background: linear-gradient(#117320, #0eb122);
	display: none;
}

div.digital_remaining a {
	color: #ffffff;
	text-decoration: underline;
}

div.digital_remaining.remaining {
	display: block;
}

div.digital_remaining.plural span.plural {
	display: inline;
}

div.digital_remaining span.plural {
	display: none;
}


/*
#selection_count {
	background: #ffffff;
	color: #4362A8;
	width: 22px;
	height: 22px;
	line-height: 22px;
	border-radius: 11px;
	display: block;
	text-align: center;
	font-size: 0.8em;
	font-weight: bold;
	position: absolute;
	right: 1em;
	top: 1em;
}
*/


h2 {
	text-align: center;
        color: #de741b;
	margin-top: 1.6em;
	margin-bottom: 1em;
}

/* ========== header ========== */

#header {
        margin: 0;
        padding: 0.4em 1em;
        background: #4362A8;
        color: #ffffff;
}

#header a {
	color: #ffffff;
	text-decoration: none;
}

#logo {
	width: 110px;
	margin: 0 auto 0 auto;
	padding-top: 1em;
}

#logo img {
	width: 100%;
}

#set_details {
	position: relative;
}

#set_details h1 {
	margin: 0.1em 0 0.1em 0;
	font-size: 1.5em;
}

p.description {
	margin: 0.1em 0 1em 0;
	font-weight: normal;
	font-size: 0.95em;
	text-align: center;
}

@media (min-width: 600px) {
	#logo {
		width: 125px;
		position: absolute;
		right: 2em;
		top: 0;
	}

	#set_details {
		margin-left: 1em;
		margin-right: 200px;
	}

	#set_details h1, #set_details p.description {
		text-align: left;
	}

	#set_details h1 {
		font-size: 1.8em;
	}
}

@media (max-height: 600px) {
	#set_details {
		margin-right: 0;
	}

	#set_details h1 {
		text-align: center;
	}

	#set_details p.description {
		display: none;
	}

	#logo {
		display: none;
	}
}


/* ========== menu ========== */

#menu {
        margin: 0;
/*
        padding: 0.5em 0 0 0;
*/
        padding: 0;
        background: #4362A8;
        color: #ffffff;
	overflow: auto;
	border-top: 1px solid #627ab3;
	position: sticky;
	top: 0;
	z-index: 10;
}

#menu a {
	text-decoration: none;
	color: #ffffff;
}

#menu ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

#menu ul li {
	display: block;
	float: left;
	width: 33.33%;
	margin: 0;
	font-size: 1.1em;
	line-height: 2.7em;
	padding: 0.4em 0;
	padding: 0;
	text-align: center;
/*
	border-bottom: 1px solid #a1b0d3;
*/
}

#menu ul li.selected {
	background: #394c7c;
        background: linear-gradient(#33446f, #394c7c);
}

#menu ul li a {
	display: block;
	width: 100%;
/*
	padding: 0.4em 0;
*/
	position: relative;
}

#filter {
        margin: 0;
        padding: 0.3em 1em;
        background: #4362A8;
        background: #686868;
	background: #838383;
	background: #394c7c;
        color: #ffffff;
}

#filter a {
	color: #ffffff;
}


/* ========== navigation ========== */

.navigation {
	position: relative;
	margin: 0;
	padding: 0 2em;
	text-align: center;
	background: #a0a0a0;
	background: #4c4c4c;
        background: linear-gradient(#202020, #4c4c4c);
        background: linear-gradient(#454545, #676767);
        background: linear-gradient(#333333, #5c5c5c);
	color: #d0d0d0;
	color: #de741b;
	color: #582d04;
	color: #d4a252;
	color: #ffc363;
	min-height: 44px;
	line-height: 44px;
	overflow: auto;
}

.navigation a {
	color: #ffffff;
}

.navigation a:active {
	color: #de741b;
}

.navigation ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.navigation li {
	margin: 0;
	padding: 0;
	padding-left: 0.6em;
	padding-right: 0.6em;
	display: inline;
	font-size: 0.9em
}

.navigation .prev, .navigation .next {
	margin: 0;
	padding: 0;
}

.navigation .prev a, .navigation .next a {
	display: block;
	height: 44px;
	min-width: 50px;
/*
	width: 160px;
	min-width: 60px;
*/
	text-decoration: none;
	font-size: 1.1em;
	line-height: 44px;
	position: absolute;
	top: 0;
	background-repeat: no-repeat;
	background-size: 12px 18px;
}

.navigation .prev a {
	left: 10px;
	padding-left: 18px;
	text-align: left;
	background-image: url("../images/arrow_white_left.png");
	background-position: left center;
}

.navigation .next a {
	right: 10px;
	padding-right: 18px;
	text-align: right;
	background-image: url("../images/arrow_white_right.png");
	background-position: right center;
}


.pagination li {
	padding: 0;
}

.pagination ol {
	display: inline;
	margin: 0;
	padding: 0;
}

.pagination a {
	display: inline-block;
	min-width: 1.2em;
	padding: 0 0.4em;
	color: #ffffff;
}

.pagination li.current a {
	background: #de741b;
	background: linear-gradient(#c15d17, #de741b);
}

li.pagination {
	display: none;
}

@media (min-width: 600px) {
	li.pagination {
		display: inline;
	}

	li.pages_summary {
		display: none;
	}
}

/* ========== tables ========== */

table.order {
	margin: 0 auto 1em auto;
	border-collapse: collapse;
}

table.order td, table.order th {
	padding: 0.15em 0.5em;
	border: 1px solid #c0c0c0;
	vertical-align: middle;
}

table.order td.quantity {
	text-align: center;
/*
	font-weight: bold;
*/
}

table.order td.quantity input {
	width: 3em;
}

table.order td.controls {
	white-space: nowrap;
}

table.order td.controls button {
	display: inline-block;
	width: 30px;
	height: 30px;
	padding: 0;
	border-radius: 15px;
	background: #808080;
	background: linear-gradient(#a0a0a0, #808080);
	box-shadow: inset 0px -2px 7px -1px rgba(255, 255, 255, 0.54),
		inset 0px 2px 3px -1px rgba(0,0,0,0.6);
	color: #fff;
	font-size: 1em;
	cursor: pointer;
}

table.order td.controls button:focus {
	outline: none;
}

table.order thead {
/*
	border-bottom: 2px solid #4362A8;
*/
	background: #4362A8;
	color: #ffffff;
}

table.order thead th {
	font-weight: normal;
	border: 1px solid #334a80;
}

table.order tfoot {
	color: #4362A8;
	font-weight: bold;
	border-style: solid;
	border-width: 2px 0 0 0;
	border-color: #4362A8;
}

table.order span.price.updating {
	color: #e8e8e8;
}

table.pricing {
	margin: 1em auto;
/*	border-collapse: collapse;
*/
	border-spacing: 0;
	border: 1px solid #4362A8;
	border-radius: 5px 5px 0 0;
	font-size: 0.85em;
}

table.pricing td, table.pricing th {
	border: 0;
	padding: 0.2em 0.5em;
}

table.pricing thead {
        background: #4362A8;
        color: #ffffff;
}

table.pricing tbody tr:nth-child(even) {
	background: rgba(67, 98, 168, 0.08);
}

/* ========== thumbnail ========== */

div.thumbnail {
	height: 184px;
	line-height: 184px;
	padding: 10px;
	position: relative;
	text-align: center;
	background: #e0e0e0;
}

div.thumbnail img {
	vertical-align: middle;
	max-width: 100%;
	max-height: 184px;
	box-sizing: border-box;
	border: 1px solid #ffffff;
}

/* ========== browse ========== */

ol.browse {
	list-style-type: none;
	margin: 0;
	padding: 0 0 1px 0;
	border: 0;
	overflow: auto;
}

ol.browse li {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
}

ol.browse li div.thumbnail {
	box-shadow:     1px 0 0 0 rgba(0,0,0, 0.1),
    0 1px 0 0 rgba(0,0,0,0.1),
    1px 1px 0 0 rgba(0,0,0,0.1),   /* Just to fix the corner */
    1px 0 0 0 rgba(0,0,0, 0.1) inset, 
    0 1px 0 0 rgba(0,0,0, 0.1) inset;
}

ol.browse li.next {
	display: none;
	text-align: center;
	color: #ffffff;
	background: #4362A8;
}

ol.browse li.next a {
	display: block;

	box-shadow:     1px 0 0 0 rgba(0,0,0, 0.5),
    0 1px 0 0 rgba(0,0,0,0.5),
    1px 1px 0 0 rgba(0,0,0,0.5),   /* Just to fix the corner */
    1px 0 0 0 rgba(0,0,0, 0.1) inset, 
    0 1px 0 0 rgba(0,0,0, 0.1) inset;
	color: #ffffff;
	height: 184px;
	line-height: 184px;
	padding: 10px;
}

@media (min-width: 400px) {
	ol.browse li {
		float: left;
		width: 50%;
	}
}

@media (min-width: 600px) {
	ol.browse li {
		width: 33.33%;
	}
}

@media (min-width: 800px) {
	ol.browse li {
		width: 25%;
	}

	ol.browse li.next {
		display: block;
	}
}

@media (min-width: 1000px) {
	ol.browse li {
		width: 20%;
	}

	ol.browse li.next {
		display: none;
	}
}

@media (min-width: 1200px) {
	ol.browse li {
		width: 16.66%;
	}
}

@media (min-width: 1400px) {
	ol.browse li {
		width: 14.28%;
	}

	ol.browse li.next {
		display: block;
	}
}

/* ========== order ========== */

ul.order {
	list-style-type: none;
	margin: 0;
	padding: 0;
	position: relative;
	overflow: auto;
}

ul.order li {
	padding: 0.5em 0;
	border-bottom: 1px solid #e0e0e0;
	width: 100%;
	text-align: center;
}

ul.order li .inner {
	position: relative;
	overflow: auto;
/*
	max-width: 500px;
*/
}

ul.order li a.remove,
ul.order li a.download {
	display: block;
        height: 52px;
        width: 52px;
        margin: 0;
        padding: 0;
        border: 0;
        position: absolute;
        top: 0px;
        z-index: 5;
	background: transparent;
	background-size: 30px 30px;
	background-position: center center;
	background-repeat: no-repeat;
	text-indent: -100em;
	transition: opacity 0.2s;
}

ul.order li a.remove {
        left: 0px;
	background-image: url("../images/x_icon2.png");
	opacity: 0.8;
}

ul.order li a.remove:hover {
	opacity: 1;
}

ul.order li a.download {
        right: 0px;
	background-image: url("../images/download_icon.png");
	opacity: 0.5;
}

ul.order li a.download:hover {
	opacity: 1;
}

ul.order li div.thumbnail {
	margin: 0 auto 1em auto;
	background: #c0c0c0;
	background: #df935e;
	background: #535154;
	width: 220px;
}

ul.order li div.details {
	padding: 0 0.5em;
}

ul.order li div.details p {
	margin-top: 0;
}

ul.order li div.details table {
	text-align: left;
}

@media (min-width: 450px) {
	ul.order li {
		padding: 0;
	}

	ul.order li .inner {
		margin: 0 auto;
		padding: 0 0 0 0.5em;
		padding: 0;
		text-align: left;
	}

	ul.order li div.thumbnail {
		float: left;
		margin: 0;
		width: 35%;
		box-sizing: border-box;
		height: 204px;
	}

	ul.order li div.details {
		padding-left: 35%;
		padding-right: 0;
		padding-top: 0.9em;
	}


	ul.order li div.details table.order,
	ul.order li div.details p {
		margin-left: 0.9em;
		margin-bottom: 0.8em;
	}
}

@media (min-width: 900px) {
	ul.order li {
		width: 50%;
		float: left;
		box-sizing: border-box;
	}
}

@media (min-width: 1350px) {
	ul.order li {
		width: 33.33%;
	}
}

.order form.modify {
	display: none;
}


/* ========== single ========== */


.single ul.selectable li {
	position: relative;
}

div.preview {
	max-width: 600px;
	margin: 0 auto;
}

img.preview {
	display: block;
	max-height: 600px;
	max-width: 100%;
	margin: 0 auto;
}


@media (min-width: 800px) {
	img.preview {
		max-width: 800px;
	}
}

