/* fonts */

@font-face {
  font-family: "Grotesque";
  src: url('Grotesque.otf');

}

/* default css */

* {
	margin: 0;
	padding: 0;
	font-size: 100%;
  font-weight: normal;
	border: 0px solid;
}

::selection {
  background: #e5e5e5; /* WebKit/Blink Browsers */
}
::-moz-selection {
  background: #e5e5e5;
}

html {
  height: 100%;
}

body {
	padding: 0;
	font: 13px/1.4em Grotesque, Arial, Helvetica, sans-serif;
  color: #000;
  position: relative;
  margin: 0;
  background: #F6F6F6;
  background: #F6F6F6 url('/assets/images/background-light.jpg');
  background-size: cover;}

a {
  color: inherit;
  text-decoration: none;
}

p a {
  background: #b4b4b4;
  transition: background .5s;
}

p a:hover {
  background-color: #FFDA45;
}

p a.plain {
  background-color: transparent;
}

a:link img,
a:visited img {
	border: none;
	padding: 0;
}

a[target="xxpreview"]:after {
  content: '';
  width: 1em;
  height: 1em;
  background: transparent url(/assets/images/googly-eyes.svg) no-repeat;
  background-size: contain;
}

embed,
object {
	display: block;
}

input:active,
input:focus {
  border: none;
}

h1 {
	text-indent: -1000em;
}

h1 a {
  width: 120px;
  height: 97px;
  background: transparent url(/assets/images/nd_logo.svg) no-repeat;
  text-indent: -1000em;
  background-size: contain;
  display: block;
  position: fixed;
  right: 25px;
  top: 25px;
  z-index: 100;
  transition: .5s opacity;
}

h1 a:hover {
  opacity: .6;
}

h3 {
	margin-top: 2em;
}

h2, h3, xnav h4 {
	margin-bottom: 1em;
		font-size: 16px;
}

p {
  margin-bottom: 1em;
}

.weak {
  color: #acacac;
}

ul {
	list-style: none;
}

li {
  list-style-position: inside;
}

pre {
  font: 11px/1.4em courier, monospace;
}

.big {
	font-size: 16px;
}

.strike {
	xtext-decoration: line-through;
  -xmoz-text-decoration-style: wavy;
  -xwebkit-text-decoration-style: wavy;
    position: relative;
    white-space: nowrap; /* would center line-through in the middle of the wrapped lines */
}

.strike:after {
  border-top: 2px solid #000;
  position: absolute;
  content: "";
  right: 0;
  top: 28%;
  left: 0;
}

a.fancy,
nav li a:hover,
.addToCart {
  cursor: pointer;
  background: #FFDA45;
  transition: background .5s;
}

a.fancy:hover,
.addToCart:hover {
  background: #ffeeab;
}

/* Layout */

#content {
  	margin: 25px;
	min-width: 600px;
	position: relative;
}

#content div {
  width: 250px;
  z-index: 100;
}

#content #text,
#notices {
	width: 250px;
	display: block;
}

#content #text {
  z-index: 100;
  position: relative;
  padding-bottom: 50px;
}

#content #image {
  position: absolute;
  top: -50px;
  z-index: 1;
  opacity: 1;
  height: 50vh;
  margin-top: 25vh;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  width: auto;
}

#content #image.shifted {
  left: calc(50% + 125px);
}

#content #image figure {
  margin: 0 auto;
  display: block;
  height: 100%;
}

#content #image figure a {
  display: block;
  background: transparent;
  width: 100%;
  height: 100%;
  position: absolute;
  text-indent: -100em;
  overflow: hidden;
  cursor: url(/assets/images/eye.svg), zoom-in;
}

#content #image figure img {
  width: auto;
  height: 100%;
  display: block;
  margin: 0 auto;
}

#content .cover {
  position: relative;
}

#content .cover:after {
  content: '.';
  text-indent: -100em;
  background: transparent url('/assets/images/book-shadow.png') no-repeat;
  background-size: 100% 50px;
  display: block;
  padding: 10px 16px;
  margin-top: 0;
  opacity: .2;
}

#content .cover img {
  box-shadow: -0.5rem 0 3rem 0rem rgba(0, 0, 0, 0.15);
  border-radius: 2px;
}

#content #text #nav {
	margin-left: -250px;
	width: 250px;
}

#content #text,
#content div#book {

}

#content div#book {
}

#content img {
}

/* Nav */

nav div {
  margin-right: 25px;
  float: left;
}

nav h4 {
  margin-bottom: .5em;
}

nav ol {
  margin-bottom: 2em;
  counter-reset: num;
}

nav ul li:before {
  color: #000;
  content: '— ';
  width: 1.5em;
}

nav ol li:before {
  color: #000;
  width: 1.5em;
  counter-increment: num;
  content: counters(num, ".", decimal-leading-zero) '. ';
}

nav ul.plain li {
  color: #000;
}

nav ul.plain li:before {
  content: '';
}

nav li {
	/* width: 250px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis; */
  list-style: none;
  text-indent: -1.5em;
  margin-left: 1.5em;
}

nav a {
  color: #000;
}

nav li p {
	white-space: normal;
}

nav ul + h4 {
  margin-top: 2em;
}

nav:before {
  content: "New Documents";
  font-size: 16px;
  width: 100%;
  float: left;
  margin-bottom: 1em;
}


/* --- SECTIONS --- */

/* Home */

body#home {
  background: transparent url('/images/0/1m.jpg') no-repeat top center;
  background-size: cover;
}


/* Book Detail */

.sticker {
  display: block;
  width: 89px;
  height: 52px;
  background: transparent url('/assets/images/sticker.svg') no-repeat;
  display: block;
  font-family: Helvetica;
  font-size: 18px;
  line-height: 52px;
  color: #252525;
  letter-spacing: 1px;
  text-align: center;
  xtext-shadow: 0 2px 4px rgba(0,0,0,0.50);
  transform: rotate(19deg);
  position: absolute;
  left: 200px;
  top: 100px;
  cursor: pointer;
  z-index: 1000;
}

.soldOut,
.ebook,
.edition {
  background-image: url('/assets/images/stickerWhite.svg');
  left: 250px;
  top: 150px;
  transform: rotate(-10deg);
  opacity: .9;
  z-index: 100;
}

.soldOut {
  font-size: 16px;
  letter-spacing: 0;
}

.soldOut:hover {
  font-size: 0;
}

.soldOut:hover::after {
  content: "Inquire";
  font-size: 16px;
}

#buyNow:hover {
  font-size: 0;
}

#buyNow:hover::after {
  content: "BUY NOW";
  font-size: 16px;
  letter-spacing: 0;
}

.ebook {
}

.ebook:before {
  content: "eBook Avail." !important;
  font-size: 10px;
  position: absolute;
  top:-15px;
  left: 0;
  width: 100%;
  text-align: center;
}

.sticker.edition {
  font-size: 12px;
  line-height: 14px;
  padding-top: 10px;
  z-index: 100;
}

.sticker:hover {
  opacity: .9
}

/* #bookPrice:before {
  content: "$";
} */

.alert {
	color: red;
}

.pulse {
	-webkit-animation: pulse 3s linear infinite;
	-moz-animation: pulse 3s linear infinite;
}

@-webkit-keyframes pulse {
	0% {opacity: 0;}
	50% {opacity: 1;}
	100% {opacity: 0;}
}

@-moz-keyframes pulse {
	0% {opacity: 0;}
	50% {opacity: 1;}
	100% {opacity: 0;}
}

#buy {
	margin-bottom: 1em;
}

.js #shippingRates {
  overflow: hidden;
  transition: max-height 0.5s;
  height: auto;
  max-height: 0;
}

.js #shippingRates.active {
  max-height: 600px;
  margin-bottom: 1em;
}

#shippingRates p {
  margin-top: 2em;
}

#shippingRates p:first-child,
#shippingRates li p {
  margin-top: 0;
}

button:hover {
	color: #000;
}


/* Object Detail */

.sad-boy-sticker #content #image {
  width: 300px;
  height: 300px;
  background: url(/images/objects/CharleySticker.png);
  background-size: contain
}


/* Order Page */

#orderSummary li a {
  border-bottom: 1px solid #000;
}

/* fading type */

nav li,
a.weak,
#buy a {
  color: #acacac;
   -webkit-transition: all 0.2s ease-in-out;
}

a.weak:hover,
#buy a:hover {
  color: #000;
}

.hidden {
  display: none;
}


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

body {
    -webkit-text-size-adjust:none;
    -moz-text-size-adjust:none;
    -ms-text-size-adjust:none;
}

}
