@charset "UTF-8";

@font-face {
    font-family: 'dollie';
    src: url('../fonts/dolliescript-webfont.woff2') format('woff2'),
         url('../fonts/dolliescript-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'latoregular';
    src: url('../fonts/lato-regular-webfont.woff2') format('woff2'),
         url('../fonts/lato-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'tt_berlinerins';
    src: url('../fonts/tt_berlinerins_trial_script-webfont.woff2') format('woff2'),
         url('../fonts/tt_berlinerins_trial_script-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/*
html {
  -webkit-transition: all 0.5s ease-in-out; 
  transition: all 0.5s ease-in-out; 
}
  */
    
body {
  margin: 0;
  padding: 160px 0 0; 
  width: 100%;
  min-height: 100%;
  height: auto;
  font-family: 'Lato', 'latoregular', sans-serif; /* 'Lato',  */
  font-size: 18px;
  color: #232426;
  background: #AABFCA url(../img/bg1-bottom.jpg) 0 0 no-repeat; 
  background-size: cover;
  background-attachment: fixed;
}


/* ---------------------------------------------------------------------------------------
	Header / Nav
--------------------------------------------------------------------------------------- */ 

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 160px; 
  z-index: 9999;
  background: transparent;
  border-bottom: 1px solid #EBDACB; /* #2F4868; */
  -webkit-box-shadow: 0 0 22px rgba(0,0,0,0.4);
  box-shadow: 0 0 22px rgba(0,0,0,0.4);
}

hgroup {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 60px; 
  z-index: 999;
  background: #507194 url(../img/bg1-top.jpg) 0 100% no-repeat; 
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #EBDACB;
}

hgroup > div {
  margin: 0 auto;
  padding: 0;
  width: 90%;
  height: 100%;
  text-align: center;
  vertical-align: middle;

  display: -webkit-box;
	display: -moz-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: box;
	display: flex;
	-webkit-flex-direction: row;
	flex-direction: row;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-align-items: center;
  align-items: center;
  flex-wrap: wrap;
}

hgroup > div h1 a img {
  display: none; 
  height: auto;
  width: 44px;
}

nav {
  background: #7994B1;
}

nav ul {
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto;
  background: #507194; 
  display: -webkit-box;
	display: -moz-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: box;
	display: flex;
	-webkit-flex-direction: row;
	flex-direction: row;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-align-items: center;
  align-items: center;
  flex-wrap: wrap;
}

nav ul li {
  width: 50%; /* 33%;  */
  height: 50px;
  text-align: center;
  color: #fff;
}

nav ul li a {
  position: relative;
  display: block;
  height: 100%;
  color: #f9f9f9;
  border: none; 
	display: -webkit-flex; 
	display: flex;
	-webkit-flex-direction: row;
	flex-direction: row;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-align-items: center;
  align-items: center;
  flex-wrap: wrap;
}

nav ul li:nth-child(2) a {
  word-break: break-all;
}

/* color blend dk - lt 

#2F4868  rgba(47,72,104,1)
#425B7B  rgba(66,91,123,1)
#566E8D  rgba(86,110,141,1)
#6981A0  rgba(105,129,160,1)
#7C94B2  rgba(124,148,178,1)

*/


nav ul li a#home {
  background: #2F4868; 
}

nav ul li a#instruction {
  background: #425B7B;
}

nav ul li a#bio {
  background: #566E8D;
}

nav ul li a#dice {
  background: #6981A0; 
}

nav ul li a#story {
  background: #7C94B2; 
}

nav ul li a:hover {
  text-decoration: none;
  /* color: #F7C522; */
}

nav ul li a:hover span, nav ul li a.here span {
  -webkit-animation: glow 3s ease-in-out infinite alternate;
  -moz-animation: glow 3s ease-in-out infinite alternate;
  animation: glow 3s ease-in-out infinite alternate;

  transform: scale(1.05);
}

h1, h2, h3, h4, h5 {
  font-weight: normal;
}

h4 {
  font-size: 1.5rem;
}

hgroup h1 a {
  display: -webkit-box;
	display: -moz-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: box;
	display: flex;
	-webkit-flex-direction: column;
	flex-direction: column;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-align-items: center;
  align-items: center;
  flex-wrap: wrap;
  
  position: relative;
  margin: 0;
  padding: 0; 
  height: 100%; 
  max-height: 150px;
  font-family: 'Dancing Script', 'tt_berlinerins', 'dollie',  cursive; /* 'Dancing Script',  */
  font-size: 2rem;
  color: #EBDACB;
  background: transparent;
  text-shadow: 0px -1px 0px rgba(0,0,0,.7);
}

hgroup h1 a:hover {
  text-decoration: none;
}


/* ---------------------------------------------------------------------------------------
	Global
--------------------------------------------------------------------------------------- */ 

section.page {
  margin: 0 auto;
  padding: 20px;
  width: 100%;
  max-width: 980px;
  height: 100%;
  color: #f9f9f9;
  -webkit-box-shadow: 0 0 12px rgba(0,0,0,0.7);
  box-shadow: 0 0 12px rgba(0,0,0,0.7);
  -webkit-border-radius: 4px;
  border-radius: 4px;
  -webkit-transition: all 0.2s ease-in-out; 
  transition: all 0.2s ease-in-out; 
}

/* color blend dk - lt 

#2F4868  rgba(47,72,104,1)
#425B7B  rgba(66,91,123,1)
#566E8D  rgba(86,110,141,1)
#6981A0  rgba(105,129,160,1)
#7C94B2  rgba(124,148,178,1)

*/

#homepage, .storybox {
  background: rgba(47,72,104,0.8); 
}

#instructionpage {
  background: rgba(66,91,123,0.8);
}

#biopage {
  background: rgba(86,110,141,0.8);
}

#dicepage, #dicekeypage {
  background: rgba(105,129,160,0.8); 
}

#storypage, #copyrightpage, #archivepage {
  position: relative;
  background: rgba(124,148,178,0.8); 
}

#storypage h4 {
	text-align: center;
}

#storypage #storyCubesPrint2 {
  position: absolute;
  top: 32px;
  right: 32px;
  font-size: 2rem;
}

.printinfo {
  text-align: center;
}

hr#top-hr {
  margin: 0 auto 20px;
  padding: 0;
  width: 90%;
  height: 100px;
  border: none;
  background: transparent url(../img/kmd-avatar-dk-red.png) 50% 50% no-repeat;
  background-size: contain;
}

hr.margins {
  margin: 32px 0;
}

.dieface {
  display: inline-block;
  padding: 0 2px 2px;
  border: 1px solid #f9f9f9;
}

/* ---------------------------------------------------------------------------------------
	Article
--------------------------------------------------------------------------------------- */ 

section.page article {
  margin: 0 auto;
  padding: 20px 0;
  width: 100%;
  min-height: 480px;
  border: none;
  -webkit-border-radius: 4px;
  border-radius: 4px;
}

section.page .biopage {
  display: -webkit-box;
	display: -moz-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: box;
	display: flex;
	-webkit-flex-direction: column;
	flex-direction: column;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-align-items: flex-start;
  align-items: flex-start;
  flex-wrap: nowrap;

  margin: 0 0 32px;
  padding: 0;

  border-bottom: 1px solid #f9f9f9;
}

article > hr {
  margin: 0 0 32px;
}

section.page .biopage figure {
  margin: 0 auto 32px;
  width: 90%;

  border: 4px solid rgba(9, 40, 72,1);
  background: transparent url(../img/bg1-top.jpg) 0 100% no-repeat;
  -webkit-box-shadow: 0 0 12px rgba(0,0,0,0.7);
  box-shadow: 0 0 12px rgba(0,0,0,0.7);

  -webkit-transition: 0.2s ease-in-out; 
  transition: 0.2s ease-in-out;
}

section.page .biopage figure:hover {
  scale: 1.2;
  rotate: -5deg;
}

section.page .biopage.rowreverse figure:hover {
  scale: 1.2;
  rotate: 5deg;
}

section.page .biopage figure figcaption {
  background: rgba(9, 40, 72,1);
}

section.page .biopage figure img {
  width: 90%;
  height: auto;
}

section.page .biopage > div {
  width: 100%;
  padding: 0;
}

section.page .biopage.rowreverse {
  -webkit-flex-direction: column;
	flex-direction: column;
}

section.page .biopage.rowreverse > div {
  width: 90%;
  padding: 0 auto 32px;
}

article h2 {
  padding: 0 0 10px;
  font-family: 'Dancing Script', 'tt_berlinerins', 'dollie', cursive;
  font-size: 2.5rem;
  text-align: center;
}

article p {
  margin: 0 0 20px;
  text-align: justify;
}

article figure {
  display: block;
  margin: 0 auto 12px;
  padding: 0;
  width: 100%;
  max-width: 640px;
}

article figure.addborder img {
  border: 4px solid #425B7B;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

article figure img {
	display: inline-block;
	margin: 0 auto -2px;
	padding: 0;
	width: 100%;
	height: auto;
}

.noborder, .noborder img {
	border: none;
}

article figure.right {
	display: block;
	float: none;
	margin: 12px auto;
	padding: 0;
	width: 100%;
	max-width: 180px;
}

#audiojungle, .audiojungle {
	text-align: center; 
	margin-bottom: 22px;
}

a {
  display: inline-block;
  padding-bottom: 2px;
  color: #FAC617; /* #F7C522; */
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a:hover {
  text-decoration: underline;
}

.glow {
  color: #fff;
  text-decoration: none;
  -webkit-animation: glow 3s ease-in-out infinite alternate;
  -moz-animation: glow 3s ease-in-out infinite alternate;
  animation: glow 3s ease-in-out infinite alternate;
}

.glow:hover {
  text-decoration: none;
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #FAC617, 0 0 20px #FAC617, 0 0 25px #FAC617, 0 0 30px #FAC617, 0 0 35px #FAC617
  }
  to {
    text-shadow: 0 0 10px #fff, 0 0 15px #5F1BA9, 0 0 20px #5F1BA9, 0 0 25px #5F1BA9, 0 0 30px #5F1BA9, 0 0 35px #5F1BA9, 0 0 40px #5F1BA9;
  }
}

#cubes, #cubes2 {
  font-size: 16px;
}

#cubes > h2, #cubes2 > h2 {
  margin: 0;
  padding: 0;
}

.smallprint {
  font-size: 0.8rem;
  text-align: center;
}

#steps {
  margin-top: 7px;
  padding-top: 4px;
  text-indent: 0;
  text-align: left;
  font-size: 1rem;
  line-height: 1.2em;
  border-top: 1px solid rgba(49,0,0,1);
}

#steps li {
  margin: 0 0 10px;
}

figure {
  text-align: center;
}

figure h5 {
  border-bottom: 1px solid rgba(49,0,0,1);
}

.inline-ent {
  font-size: 22px;
  line-height: 1em;
}

.divider {
  margin: 24px 0;
  font-size: 42px;
  line-height: 1em;
  text-align: center;
}


.hr-rtb {
  margin: 0 auto 16px;
  max-width: 863px;
  width: 100%;
  height: 1px; 
  border: none;
  background: rgba(49,0,0,1);
  border-radius: 4px;
}

.signature {
  font-family: "Over the Rainbow", serif;
  font-size: 2rem;
  font-weight: 400;
  font-style: normal;
  text-align: right;
}

.siggy {
  font-family: "Over the Rainbow", serif;
  font-size: 2rem;
  font-weight: 400;
  font-style: normal; 
}

.center {
  text-align: center;
}

#copytext {
  margin: 0 auto;
  width: 90%;
  max-width: 640px;
}

blockquote {
  margin: 0 auto;
  padding: 0;
  width: 80%;
  text-align: center;
}

blockquote p {
  text-align: center;
}

/* Story Cubes 
-------------------------------------------------------------------------- */

#cubes ol.decimal li, #cubes2 ol.decimal li {
  margin: 0 0 12px;
}

#storyCubesCon, #storyCubesIcons {
  margin: 0 auto 32px;
  padding: 0;
  width: 100%;
  height: 120px;
  max-width: 880px;
  text-align: center;
  vertical-align: middle;

  font-size: 34px;

  display: -webkit-box;
	display: -moz-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: box;
	display: flex;
	-webkit-flex-direction: row;
	flex-direction: row;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-align-items: center;
  align-items: center;
  flex-wrap: wrap;
}

#storyCubesCon a, #storyCubesIcons span {
  display: inline-block;
  width: 60px;
  margin: 0;
  padding: 0;
  line-height: 1em;
  color: #EDE7E1;
  text-shadow: 0px 1px 0px rgba(255,255,255,.3), 0px -1px 0px rgba(0,0,0,.7);
}

#storyCubes div ul li img {
  max-width: 92px;
  max-height: 80px;
}

#storyCubes div ul li img.small {
  max-width: 80px;
  max-height: 72px;
}

span.conicon {
  display: inline-block;
  width: 40px;
  height: auto;
  margin: 0 10px;
  padding: 0;
  line-height: 1em;


  /*
  font-size: 28px;
  text-align: center;
  color: #EDE7E1;
  text-shadow: 0px 1px 0px rgba(255,255,255,.3), 0px -1px 0px rgba(0,0,0,.7);
  */
}

span.conicon img {
  width: 100%;
  height: auto;
}

img.inlineicon {
  display: inline-block;
  margin: 0 4px;
  width: 38px;
}

#storyCubesCon .navicon {
  position: relative;
  line-height: 1;
  font-size: 34px;
  margin: 10px;
}

    #storyCubesCon a img, #storyCubesIcons span img {
        width: 100%;
        height: auto;
    }

#storyCubesCon a:hover {
  text-decoration: none; 
  border: none;
  color: #F7C522;; 
}

#storyCubesCon button:hover {
  color: rgba(250,240,172,1);  
}

#storyCubesButton i {
  position: relative;
}

#storyCubesButton span {
  position: relative;
  top: -1px;
  line-height: 1;
  margin: 0;
  font-size: 60px;
}

#shortinstructions li {
  display: inline-block;
  width: 215px;
  text-align: center;
}

#shortinstructions li span {
  font-size: 24px;
  position: relative;
  top: 4px;
}

#storyCubes {
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 800px;
  height: auto;
  font-size: 1.5px;

  display: -webkit-box;
	display: -moz-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: box;
	display: flex;
	-webkit-flex-direction: row;
	flex-direction: row;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-align-items: center;
  align-items: center;
  flex-wrap: wrap;
}

#storyCubes b {
  font-size: 1.1rem;
  text-shadow: 0px 1px 0px rgba(0,0,0,.5);
  font-weight: normal;
}

/*
#storyCubes ul li { 
  font-family: 'Baloo Paaji', cursive;
  font-size: 1.1rem;
  text-shadow: 0px 1px 0px rgba(255,255,255,.5);
}
*/

#storyCubes > div {
  display: inline-block;
  width: 130px;
  height: 130px; /* 120px; */
  margin: 16px;
  padding: 0;
  text-align: center;

  border: 1px solid rgba(104,76,55,0.2);
  border-radius: 10%; /* 8px; */
 
  background:radial-gradient(ellipse at center, rgba(224, 215, 198,0.5) 0%, rgba(224, 215, 198,0.5) 66%, rgba(115,107,101,0.5) 100%), url(../img/wood2.png) 50% 50% repeat;

    box-shadow:
    inset 0 5px #D9CBA6, /* #FFF6DD,  */
    inset 0 -5px #B8A676,
    inset 5px 0 rgba(152, 132, 80, 0.8), /* #988450, */
    inset -5px 0 rgba(152, 132, 80, 0.8), /* #988450, */
    0 0 7px rgba(104,76,55,0.8);  
}

.blur {
  filter: blur(5px);
}

.button {
  margin: 0;
  padding: 4px 16px;
  text-align: center;
  color: #f9f9f9;
  border: 2px solid rgba(52,41,33,1); 
  background: rgba(171,104,66,1) url(../img/wood3a.png) 50% 50% no-repeat;
  border-radius: 3px;
}

.button:hover {
  color: #000; /* rgba(105,28,14,1); */
}

#storyCubes > div > div {
  display: inline-block;
  padding: 0;
  width: 130px;
  height: 130px;
  vertical-align: middle;
  background: transparent; 
  position: relative;
  top: 50%;
  -webkit-transform: perspective(1px) translateY(-50%);
  -ms-transform: perspective(1px) translateY(-50%);
  transform: perspective(1px) translateY(-50%);
}

#storyCubes div ul {
  width: 130px;
  height: 130px;
}

#storyCubes div ul li {
  position: relative;
  display: inline-block;
  font-size: 0.9rem;
  margin: 0;
  line-height: 0.95;
  width: 130px;
  height: 130px;
  cursor: default;
  display: -webkit-box;
	display: -moz-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: box;
	display: flex;
	-webkit-flex-direction: column;
	flex-direction: column;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-align-items: center;
  align-items: center;
  flex-wrap: wrap;
}

#storyCubes div ul li[data-title]:hover::after {
  content: attr(data-title);
  position: absolute;
  top: -10px;
  left: 0;
  z-index: 999;
  padding: 10px;
  color: #222;
  text-transform: capitalize;
  border-radius: 10px;
  background-color: rgba(194,233,108,0.8);
  width: auto;
}

#storyCubes div b {
  display: inline-block;
  font-family: tahoma;
  font-size: 4rem;
  margin: 0;
  line-height: 1.2;
  width: 130px;
  height: 130px;

  display: -webkit-box;
	display: -moz-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: box;
	display: flex;
	-webkit-flex-direction: column;
	flex-direction: column;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-align-items: center;
  align-items: center;
  flex-wrap: wrap;
}

#storyCubes div b img {
  height: 60%;
  width: auto;
}

#storyCubes.liststyle {
  display: block;
  width: auto;
}

#storyCubes.liststyle b {
  font-family: "Lato",'latoregular', sans-serif;
  color: rgba(49,0,0,1); 
  text-shadow: none;
}    

#storyCubes.liststyle > div {
	display: block;
	margin: 0 0 10px;
	width: auto;
	height: auto;
	text-align: left;
	background: transparent;
	border: none;
	-webkit-box-shadow: none;
	box-shadow: none;
}

#storyCubes.liststyle > div > div {
	display: block;
	width: auto;
	height: auto;
}

#storyCubes.liststyle ul li {
  font-family: 'Dancing Script', 'tt_berlinerins', 'dollie', cursive;
  font-size: 1.3rem;
  text-shadow: none;
}
    
#storyCubes.liststyle div ul, #storyCubes div li {
  display: inline-block;
} 

#storyCubes.liststyle li br {
  display: none;
}

audio {
  width: 260px;
}

/* the following are not implemented: save for poss future use 
@keyframes shake-rotate {
	2% {transform: translate(0px, 0px) rotate(3.5deg);}
	4% {transform: translate(0px, 0px) rotate(4.5deg);}
	6% {transform: translate(0px, 0px) rotate(1.5deg);}
	8% {transform: translate(0px, 0px) rotate(2.5deg);}
	10% {transform: translate(0px, 0px) rotate(3.5deg);}
	12% {transform: translate(0px, 0px) rotate(0.5deg);}
	14% {transform: translate(0px, 0px) rotate(-5.5deg);}
	16% {transform: translate(0px, 0px) rotate(-1.5deg);}
	18% {transform: translate(0px, 0px) rotate(1.5deg);}
	20% {transform: translate(0px, 0px) rotate(6.5deg);}
	22% {transform: translate(0px, 0px) rotate(3.5deg);}
	24% {transform: translate(0px, 0px) rotate(6.5deg);}
	26% {transform: translate(0px, 0px) rotate(-0.5deg);}
	28% {transform: translate(0px, 0px) rotate(7.5deg);}
	30% {transform: translate(0px, 0px) rotate(6.5deg);}
	32% {transform: translate(0px, 0px) rotate(-3.5deg);}
	34% {transform: translate(0px, 0px) rotate(-1.5deg);}
	36% {transform: translate(0px, 0px) rotate(3.5deg);}
	38% {transform: translate(0px, 0px) rotate(7.5deg);}
	40% {transform: translate(0px, 0px) rotate(-0.5deg);}
	42% {transform: translate(0px, 0px) rotate(3.5deg);}
	44% {transform: translate(0px, 0px) rotate(7.5deg);}
	46% {transform: translate(0px, 0px) rotate(7.5deg);}
	48% {transform: translate(0px, 0px) rotate(3.5deg);}
	50% {transform: translate(0px, 0px) rotate(0.5deg);}
	52% {transform: translate(0px, 0px) rotate(2.5deg);}
	54% {transform: translate(0px, 0px) rotate(5.5deg);}
	56% {transform: translate(0px, 0px) rotate(2.5deg);}
	58% {transform: translate(0px, 0px) rotate(-4.5deg);}
	60% {transform: translate(0px, 0px) rotate(-4.5deg);}
	62% {transform: translate(0px, 0px) rotate(7.5deg);}
	64% {transform: translate(0px, 0px) rotate(0.5deg);}
	66% {transform: translate(0px, 0px) rotate(2.5deg);}
	68% {transform: translate(0px, 0px) rotate(2.5deg);}
	70% {transform: translate(0px, 0px) rotate(5.5deg);}
	72% {transform: translate(0px, 0px) rotate(5.5deg);}
	74% {transform: translate(0px, 0px) rotate(-2.5deg);}
	76% {transform: translate(0px, 0px) rotate(7.5deg);}
	78% {transform: translate(0px, 0px) rotate(2.5deg);}
	80% {transform: translate(0px, 0px) rotate(-6.5deg);}
	82% {transform: translate(0px, 0px) rotate(-0.5deg);}
	84% {transform: translate(0px, 0px) rotate(2.5deg);}
	86% {transform: translate(0px, 0px) rotate(5.5deg);}
	88% {transform: translate(0px, 0px) rotate(0.5deg);}
	90% {transform: translate(0px, 0px) rotate(-0.5deg);}
	92% {transform: translate(0px, 0px) rotate(-1.5deg);}
	94% {transform: translate(0px, 0px) rotate(-0.5deg);}
	96% {transform: translate(0px, 0px) rotate(0.5deg);}
	98% {transform: translate(0px, 0px) rotate(-4.5deg);}
	0%, 100% {transform: translate(0px, 0px) rotate(0deg);}
}

@keyframes shake-hard {
	2% {transform: translate(2px, -5px) rotate(2.5deg);}
	4% {transform: translate(4px, 6px) rotate(-1.5deg);}
	6% {transform: translate(-5px, 3px) rotate(-2.5deg);}
	8% {transform: translate(-8px, 7px) rotate(3.5deg);}
	10% {transform: translate(-2px, -8px) rotate(3.5deg);}
	12% {transform: translate(-9px, -1px) rotate(1.5deg);}
	14% {transform: translate(1px, -8px) rotate(-0.5deg);}
	16% {transform: translate(-3px, 10px) rotate(-1.5deg);}
	18% {transform: translate(9px, -4px) rotate(0.5deg);}
	20% {transform: translate(4px, 8px) rotate(2.5deg);}
	22% {transform: translate(3px, 2px) rotate(-0.5deg);}
	24% {transform: translate(-5px, 6px) rotate(2.5deg);}
	26% {transform: translate(-7px, -6px) rotate(0.5deg);}
	28% {transform: translate(3px, 0px) rotate(2.5deg);}
	30% {transform: translate(8px, -8px) rotate(2.5deg);}
	32% {transform: translate(-9px, -8px) rotate(2.5deg);}
	34% {transform: translate(-9px, 3px) rotate(2.5deg);}
	36% {transform: translate(-2px, 7px) rotate(2.5deg);}
	38% {transform: translate(8px, 7px) rotate(-1.5deg);}
	40% {transform: translate(4px, 0px) rotate(-1.5deg);}
	42% {transform: translate(-4px, -9px) rotate(-0.5deg);}
	44% {transform: translate(0px, -4px) rotate(2.5deg);}
	46% {transform: translate(4px, 2px) rotate(2.5deg);}
	48% {transform: translate(10px, -9px) rotate(2.5deg);}
	50% {transform: translate(3px, -6px) rotate(2.5deg);}
	52% {transform: translate(1px, 6px) rotate(0.5deg);}
	54% {transform: translate(3px, -1px) rotate(-1.5deg);}
	56% {transform: translate(-1px, -9px) rotate(0.5deg);}
	58% {transform: translate(7px, -4px) rotate(-0.5deg);}
	60% {transform: translate(2px, 0px) rotate(2.5deg);}
	62% {transform: translate(-5px, 3px) rotate(0.5deg);}
	64% {transform: translate(6px, -8px) rotate(3.5deg);}
	66% {transform: translate(1px, -3px) rotate(2.5deg);}
	68% {transform: translate(10px, 1px) rotate(1.5deg);}
	70% {transform: translate(0px, 7px) rotate(-0.5deg);}
	72% {transform: translate(-9px, 6px) rotate(3.5deg);}
	74% {transform: translate(8px, 0px) rotate(-0.5deg);}
	76% {transform: translate(0px, 5px) rotate(0.5deg);}
	78% {transform: translate(6px, 6px) rotate(-0.5deg);}
	80% {transform: translate(4px, 3px) rotate(-2.5deg);}
	82% {transform: translate(8px, -2px) rotate(3.5deg);}
	84% {transform: translate(0px, -8px) rotate(1.5deg);}
	86% {transform: translate(-2px, -8px) rotate(2.5deg);}
	88% {transform: translate(10px, -7px) rotate(2.5deg);}
	90% {transform: translate(2px, 10px) rotate(-0.5deg);}
	92% {transform: translate(-9px, 4px) rotate(2.5deg);}
	94% {transform: translate(-3px, 1px) rotate(1.5deg);}
	96% {transform: translate(-2px, -1px) rotate(0.5deg);}
	98% {transform: translate(7px, -9px) rotate(3.5deg);}
	0%, 100% {transform: translate(0px, 0px) rotate(0deg);}
}

@keyframes shake-crazy {
	10% {transform: translate(-10px, -17px) rotate(6deg);}
	20% {transform: translate(-11px, 10px) rotate(5deg);}
	30% {transform: translate(15px, -3px) rotate(-9deg);}
	40% {transform: translate(11px, 17px) rotate(5deg);}
	50% {transform: translate(-11px, 13px) rotate(1deg);}
	60% {transform: translate(15px, -16px) rotate(7deg);}
	70% {transform: translate(-10px, -12px) rotate(-6deg);}
	80% {transform: translate(13px, -17px) rotate(-4deg);}
	90% {transform: translate(-16px, -11px) rotate(3deg);}
	0%, 100% {transform: translate(0px, 0px) rotate(0deg);}
}

@keyframes spin {
	10% {transform: rotate(36deg);}
	20% {transform: rotate(72deg);}
	30% {transform: rotate(108deg);}
	40% {transform: rotate(144deg);}
	50% {transform: rotate(180deg);}
	60% {transform: rotate(216deg);}
	70% {transform: rotate(252deg);}
	80% {transform: rotate(288deg);}
	90% {transform: rotate(314deg);}
	0%, 100% {transform: rotate(360deg);}
}

.shake-rotate:hover {
  animation: 100ms ease-in-out 0s normal none infinite running shake-rotate;
}

.shake-hard:hover {
  animation: 100ms ease-in-out 0s normal none infinite running shake-hard;
}

.shake-crazy:hover {
  animation: 100ms ease-in-out 0s normal none infinite running shake-crazy;
}
*/


/* Final rotation after rolling dice
--------------------------------------------------------------------- */
#storyCubes > div.r30 {transform: rotate(30deg);}
#storyCubes > div.r25 {transform: rotate(25deg);}
#storyCubes > div.r20 {transform: rotate(20deg);}
#storyCubes > div.r15 {transform: rotate(15deg);}
#storyCubes > div.r10 {transform: rotate(10deg);}
#storyCubes > div.r-30 {transform: rotate(-30deg);}
#storyCubes > div.r-25 {transform: rotate(-25deg);}
#storyCubes > div.r-20 {transform: rotate(-20deg);}
#storyCubes > div.r-15 {transform: rotate(-15deg);}
#storyCubes > div.r-10 {transform: rotate(-10deg);}

#storyCubes > div.r40 {transform: rotate(40deg);}
#storyCubes > div.r45 {transform: rotate(45deg);}
#storyCubes > div.r35 {transform: rotate(35deg);}
#storyCubes > div.r55 {transform: rotate(55deg);}
#storyCubes > div.r60 {transform: rotate(60deg);}
#storyCubes > div.r-40 {transform: rotate(-40deg);}
#storyCubes > div.r-45 {transform: rotate(-45deg);}
#storyCubes > div.r-35 {transform: rotate(-35deg);}
#storyCubes > div.r-55 {transform: rotate(-55deg);}
#storyCubes > div.r-60 {transform: rotate(-60deg);}

/* dice roll animation
-------------------------------------------------------------------- */
@keyframes spin-shake {
	10% {transform: translate(-10px, -17px) rotate(36deg);}
	20% {transform: translate(-11px, 10px) rotate(72deg);}
	30% {transform: translate(15px, -3px) rotate(108deg);}
	40% {transform: translate(11px, 17px) rotate(144deg);}
	50% {transform: translate(-11px, 13px) rotate(180deg);}
	60% {transform: translate(15px, -16px) rotate(216deg);}
	70% {transform: translate(-10px, -12px) rotate(252deg);}
	80% {transform: translate(13px, -17px) rotate(288deg);}
	90% {transform: translate(-16px, -11px) rotate(314deg);}
	0%, 100% {transform: translate(0px, 0px) rotate(360deg);}
}

.s-r {
  display: inline-block;
  transform-origin: center center 0;    
  animation: 150ms ease-in-out 0s normal none 4 running spin-shake;
}


/* =======================================================================================
		Story Archive Accordion
======================================================================================= */
dl#storyArchive {
  margin: 0 auto;
  width: auto;
  max-width: 740px;
  min-width: 220px;
  height: auto;
}


/* preserve orig design of archive accordion

#storyArchive dt {
  display: block;
  margin: 0 0 4px;
  padding: 10px 8px 5px 8px;
  height: 60px;
  cursor: pointer;
  
  color: #2F4868;
  border: 1px solid #6981A0;
  background: #7C94B2 url(../img/patterns/back-pattern.png) 0 0 repeat; 
  -webkit-border-radius: 12px;
  border-radius: 12px;
  box-shadow: inset 0 5px #B3BED0, 
              inset 0 -5px #92A3BD, 
              inset 5px 0 rgba(134,153,182,0.9), 
              inset -5px 0 rgba(134,153,182, 0.9), 
                    0 0 7px rgba(104, 76, 55, 0.8);
                    
}

#storyArchive dt div {
	display: -webkit-box;
	display: -webkit-flex;
	display: flex;
	flex-direction: row;
  justify-content: space-around;
  align-items: center;
  font-size: 1rem;
  width: 100%;
  height: 100%;

  border: 2px solid #6981A0;
  -webkit-border-radius: 8px;
  border-radius: 8px;
}

#storyArchive dt div span {
  display: -webkit-box;
	display: -webkit-flex;
	display: flex;
	flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  padding-right: 12px;
  width: 18%;
  height: 100%;
} 

#storyArchive dt div span:first-child {
  padding-left: 12px;
  width: 58%;
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  border-left: 8px double #6981A0;

  justify-content: flex-start;
}

#storyArchive dt div span:last-child {
  border-right: 8px double #6981A0;
}
*/

#storyArchive dd {
  position: relative;
	display: none;
  top: -7px;
	max-width: 95%;
  min-height: 444px;
	margin: 0 auto 12px;
  padding: 22px 18px;
  font-size: 1.1rem;
  color: #0B0B16;
  border-radius: 0 0 4px 4px;
  background: rgba(218,222,229,0.5) url(../img/patterns/cream-paper.png) 0 0 repeat;
  -webkit-box-shadow: 0 0 8px rgba(0,0,0,0.7);
  box-shadow: 0 0 8px rgba(0,0,0,0.7);
}

#storyArchive dd p {
	margin: 0 0 12px;
	line-height: 1.2em;
  color: #f9f9f9;
}

#storyArchive dd h4 {
  color: #f9f9f9;
  text-align: center;
}








/* ---------------------------------------------------------------------------------------
	Footer
--------------------------------------------------------------------------------------- */ 

footer {
  position: relative;
  z-index: 99999;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 80px;
}

footer > div {
  margin: 0;
  padding: 20px 0;
  font-size: 0.9rem;
  
  display: -webkit-box;
	display: -moz-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: box;
	display: flex;
	-webkit-flex-direction: column;
	flex-direction: column;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-align-items: center;
  align-items: center;
  flex-wrap: wrap;
}


footer a {
  color: #1A3D62;
}

footer a:hover {
  text-decoration: underline;
}
  


/* ---------------------------------------------------------------------------------------
	Preload larger animal images 
--------------------------------------------------------------------------------------- */ 

body:after{
  position:absolute; 
  top: -9999rem;
  left: -9999rem;
  opacity: 0;
  z-index:-1;
  content: url(../img/lg-animals/a-amka.png) 
           url(../img/lg-animals/a-anton.png) 
           url(../img/lg-animals/a-athena.png) 
           url(../img/lg-animals/a-daisuke.png) 
           url(../img/lg-animals/a-jack.png) 
           url(../img/lg-animals/a-javier.png) 
           url(../img/lg-animals/a-sophia.png) 
           url(../img/lg-animals/a-uki.png) 
           url(../img/lg-animals/a-yuri.png)
           url(../img/lg-animals/a-zoya.png);
}


/* =======================================================================================
		Mobile First Media Queries
======================================================================================= */

/* mobile 2 - up to 379px */
@media (min-width: 380px) {
  .bookspine, .bookspine > div {
    height: 70px;
  }
  .bookspine > div span:first-child {
    font-size: 1.8rem;
  }
}

/* tablet - 380px to 599px (larger than 600px wide) */
@media (min-width: 600px) {
  body {
    padding: 120px 0 0;
  }
  header { 
    height: 100px;
  }
  nav ul {
    height: auto;
    -webkit-justify-content: flex-start;
	  justify-content: flex-start;
  }
  nav ul li {
    width: 50%; /* 20% */
    height: 40px;
  }

  section.page article {
    padding: 20px;
    border: 1px solid #f9f9f9;
  }

  article figure.right {
    float: right;
    margin: 0 0 12px 20px;
  }
  section.page .biopage {
    -webkit-flex-direction: row;
    flex-direction: row;
    padding: 32px;
  }
  section.page .biopage > div {
    width: 80%;
    padding: 0 20px 0;
  }
  section.page .biopage figure {
    margin: 0;
    width: 20%;
  }
  section.page .biopage.rowreverse {
    -webkit-flex-direction: row-reverse;
    flex-direction: row-reverse;
  }
  section.page .biopage.rowreverse > div {
    width: 80%;
    padding: 0 20px 0 0;
  }
  article > hr {
    margin: 0;
  }
  #storyCubesCon, #storyCubesIcons {
    margin: 0 auto;
    width: 90%;
    height: 60px; 
  }

  #storyCubesCon {
    margin: 0 auto 20px;
  }

  #storyCubesCon a, #storyCubesIcons span {
    margin: 0 10px;
    width: 40px;
    height: auto;
  }

  #storyCubesCon a:hover {
    transform: scale(1.1);
  }

#storyCubesCon a img, #storyCubesIcons span img {
    width: 100%;
    height: auto;
  }

  #storyCubesCon a, #storyCubesIcons span { 
  width: 40px;
  }

  .bookspine > div span:nth-child(2) {
    display: inline-block;
  }

  audio {
    width: auto;
    min-width: 320px;
  }

}

/* desktop  - 600px to 819px */
@media (min-width: 820px) {

  body {
    padding: 180px 0 0;
  }

  header {
    height: auto;
  }
  hgroup {
    height: 112px;
  }

  hgroup > div h1 a img {
    margin: 0 20px;
    height: 75%;
    width: auto;
    max-width: 70px;
    display: inline-block;
  }
  hgroup h1 a {
    -webkit-flex-direction: row;
    flex-direction: row;
    font-size: 4.5rem; 
  }

  .bookspine > div {
    padding: 0 65px;
  }
  .bookspine > div:before, .bookspine > div:after {
    display: block;
  }
  .bookspine > div span b {
    display: block;
  }
  .bookspine > div span:last-child {
    display: inline-block;
  }

}

/* desktop 2 - 820px to 1039px */
@media (min-width: 1040px) {
  
}


/* ---------------------------------------------------------------------------------------
	Print
	@page: https://www.tutorialspoint.com/css/css_paged_media.htm 
--------------------------------------------------------------------------------------- */ 

@media print {
  body { 
    font-size: 18px !important; 
    padding-top: 44px !important; 
    color: #222 !important;
  }

  section.page {
    color: #222 !important;
  }
 
  header, footer, hr#top-hr, .hide-print { display: none; }

  #dicepage, section.page {
    padding: 0;
    -webkit-box-shadow: none;
    box-shadow: 0 0 12px none;
  }

  #dicepage article { padding: 0; border: none; }
  article blockquote { background: transparent; }
  
  #storyCubes b {
    font-size: 0.8rem;  
  }

  #storyCubes > div {
    background: transparent;
    box-shadow: none;
    border-color: #222;
  }

  #storyCubes ul li {
    font-size: 1.2rem;
  }

  #storyCubesPrint2, #storyCubesPrint, #audiojungle, .audiojungle, #mystories, .pron {
    display: none !important;
  }

  .printinfo {
    display: block !important;
  }
  
  #storyCubesCon, #dicepage article#cubes:after, .hr-vk, .sc-hide { display: none; }
  #cubes > h5 { font-size: 16px; }
  #cubes { font-size: 14px; }

  .page-break {
    page-break-before: always;
  }

  figure {
    page-break-inside: avoid !important;
  }

  @media (min-width: 600px) {
    section.page .biopage figure {
        margin: 0;
        width: 20%;
    }
    section.page .biopage.rowreverse {
      -webkit-flex-direction: row;
      flex-direction: row;
    }
    section.page .biopage, section.page .biopage.rowreverse {
      padding: 0px;
    }
  }

  section.page .biopage figure {
    border: none;
    background: transparent;
    -webkit-box-shadow: none;
    box-shadow: none;
  }

  section.page .biopage figure figcaption {
    background: transparent;
  }

  section.page .biopage.rowreverse > div {
    width: 70%;
    padding: 0 20px 0;
  }

  section.page .biopage > div {
    width: 70%;
    padding: 0 20px 0;
  }

  section.page .biopage a { color: #222; }

  
  @page { margin: 1.5cm 1cm 2cm 2.5cm; }
}


