@-webkit-keyframes appear {
  0% {
    opacity: 0
  }
  to {
    opacity: 1
  }
}

@keyframes appear {
  0% {
    opacity: 0
  }
  to {
    opacity: 1
  }
}

@-webkit-keyframes fade-in-out {
  0%,
  to {
    opacity: 0
  }
  50% {
    opacity: 1
  }
}

@keyframes fade-in-out {
  0%,
  to {
    opacity: 0
  }
  50% {
    opacity: 1
  }
}

@-webkit-keyframes rumble {
  50% {
    -webkit-transform: translateY(-0.2em);
    transform: translateY(-0.2em)
  }
}

@keyframes rumble {
  50% {
    -webkit-transform: translateY(-0.2em);
    transform: translateY(-0.2em)
  }
}

@-webkit-keyframes shudder {
  50% {
    -webkit-transform: translateX(0.2em);
    transform: translateX(0.2em)
  }
}

@keyframes shudder {
  50% {
    -webkit-transform: translateX(0.2em);
    transform: translateX(0.2em)
  }
}

@-webkit-keyframes box-flash {
  0% {
    background-color: white;
    color: white
  }
}

@keyframes box-flash {
  0% {
    background-color: white;
    color: white
  }
}

@-webkit-keyframes pulse {
  0% {
    -webkit-transform: scale(0, 0);
    transform: scale(0, 0)
  }
  20% {
    -webkit-transform: scale(1.2, 1.2);
    transform: scale(1.2, 1.2)
  }
  40% {
    -webkit-transform: scale(0.9, 0.9);
    transform: scale(0.9, 0.9)
  }
  60% {
    -webkit-transform: scale(1.05, 1.05);
    transform: scale(1.05, 1.05)
  }
  80% {
    -webkit-transform: scale(0.925, 0.925);
    transform: scale(0.925, 0.925)
  }
  to {
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1)
  }
}

@keyframes pulse {
  0% {
    -webkit-transform: scale(0, 0);
    transform: scale(0, 0)
  }
  20% {
    -webkit-transform: scale(1.2, 1.2);
    transform: scale(1.2, 1.2)
  }
  40% {
    -webkit-transform: scale(0.9, 0.9);
    transform: scale(0.9, 0.9)
  }
  60% {
    -webkit-transform: scale(1.05, 1.05);
    transform: scale(1.05, 1.05)
  }
  80% {
    -webkit-transform: scale(0.925, 0.925);
    transform: scale(0.925, 0.925)
  }
  to {
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1)
  }
}

@-webkit-keyframes shudder-in {
  0%,
  to {
    -webkit-transform: translateX(0em);
    transform: translateX(0em)
  }
  5%,
  25%,
  45% {
    -webkit-transform: translateX(-1em);
    transform: translateX(-1em)
  }
  15%,
  35%,
  55% {
    -webkit-transform: translateX(1em);
    transform: translateX(1em)
  }
  65% {
    -webkit-transform: translateX(-0.6em);
    transform: translateX(-0.6em)
  }
  75% {
    -webkit-transform: translateX(0.6em);
    transform: translateX(0.6em)
  }
  85% {
    -webkit-transform: translateX(-0.2em);
    transform: translateX(-0.2em)
  }
  95% {
    -webkit-transform: translateX(0.2em);
    transform: translateX(0.2em)
  }
}

@keyframes shudder-in {
  0%,
  to {
    -webkit-transform: translateX(0em);
    transform: translateX(0em)
  }
  5%,
  25%,
  45% {
    -webkit-transform: translateX(-1em);
    transform: translateX(-1em)
  }
  15%,
  35%,
  55% {
    -webkit-transform: translateX(1em);
    transform: translateX(1em)
  }
  65% {
    -webkit-transform: translateX(-0.6em);
    transform: translateX(-0.6em)
  }
  75% {
    -webkit-transform: translateX(0.6em);
    transform: translateX(0.6em)
  }
  85% {
    -webkit-transform: translateX(-0.2em);
    transform: translateX(-0.2em)
  }
  95% {
    -webkit-transform: translateX(0.2em);
    transform: translateX(0.2em)
  }
}

@-webkit-keyframes rumble-in {
  0%,
  to {
    -webkit-transform: translateY(0em);
    transform: translateY(0em)
  }
  5%,
  25%,
  45% {
    -webkit-transform: translateY(-1em);
    transform: translateY(-1em)
  }
  15%,
  35%,
  55% {
    -webkit-transform: translateY(1em);
    transform: translateY(1em)
  }
  65% {
    -webkit-transform: translateY(-0.6em);
    transform: translateY(-0.6em)
  }
  75% {
    -webkit-transform: translateY(0.6em);
    transform: translateY(0.6em)
  }
  85% {
    -webkit-transform: translateY(-0.2em);
    transform: translateY(-0.2em)
  }
  95% {
    -webkit-transform: translateY(0.2em);
    transform: translateY(0.2em)
  }
}

@keyframes rumble-in {
  0%,
  to {
    -webkit-transform: translateY(0em);
    transform: translateY(0em)
  }
  5%,
  25%,
  45% {
    -webkit-transform: translateY(-1em);
    transform: translateY(-1em)
  }
  15%,
  35%,
  55% {
    -webkit-transform: translateY(1em);
    transform: translateY(1em)
  }
  65% {
    -webkit-transform: translateY(-0.6em);
    transform: translateY(-0.6em)
  }
  75% {
    -webkit-transform: translateY(0.6em);
    transform: translateY(0.6em)
  }
  85% {
    -webkit-transform: translateY(-0.2em);
    transform: translateY(-0.2em)
  }
  95% {
    -webkit-transform: translateY(0.2em);
    transform: translateY(0.2em)
  }
}

@-webkit-keyframes slide-right {
  0% {
    -webkit-transform: translateX(-100vw);
    transform: translateX(-100vw)
  }
}

@keyframes slide-right {
  0% {
    -webkit-transform: translateX(-100vw);
    transform: translateX(-100vw)
  }
}

@-webkit-keyframes slide-left {
  0% {
    -webkit-transform: translateX(100vw);
    transform: translateX(100vw)
  }
}

@keyframes slide-left {
  0% {
    -webkit-transform: translateX(100vw);
    transform: translateX(100vw)
  }
}

@-webkit-keyframes slide-up {
  0% {
    -webkit-transform: translateY(100vh);
    transform: translateY(100vh)
  }
}

@keyframes slide-up {
  0% {
    -webkit-transform: translateY(100vh);
    transform: translateY(100vh)
  }
}

@-webkit-keyframes slide-down {
  0% {
    -webkit-transform: translateY(-100vh);
    transform: translateY(-100vh)
  }
}

@keyframes slide-down {
  0% {
    -webkit-transform: translateY(-100vh);
    transform: translateY(-100vh)
  }
}

@-webkit-keyframes flicker {
  0%,
  29%,
  31%,
  63%,
  65%,
  77%,
  79%,
  86%,
  88%,
  91%,
  93% {
    opacity: 0
  }
  30% {
    opacity: 0.2
  }
  64% {
    opacity: 0.4
  }
  78% {
    opacity: 0.6
  }
  87% {
    opacity: 0.8
  }
  92%,
  to {
    opacity: 1
  }
}

@keyframes flicker {
  0%,
  29%,
  31%,
  63%,
  65%,
  77%,
  79%,
  86%,
  88%,
  91%,
  93% {
    opacity: 0
  }
  30% {
    opacity: 0.2
  }
  64% {
    opacity: 0.4
  }
  78% {
    opacity: 0.6
  }
  87% {
    opacity: 0.8
  }
  92%,
  to {
    opacity: 1
  }
}

.debug-mode tw-expression[type=hookref] {
  background-color: rgba(115, 123, 140, 0.15)
}

.debug-mode tw-expression[type=hookref]::after {
  font-size: 0.8rem;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  vertical-align: top;
  content: "?" attr(name)
}

.debug-mode tw-expression[type=variable] {
  background-color: rgba(140, 128, 115, 0.15)
}

.debug-mode tw-expression[type=variable]::after {
  font-size: 0.8rem;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  vertical-align: top;
  content: "$" attr(name)
}

.debug-mode tw-expression[type=tempVariable] {
  background-color: rgba(140, 128, 115, 0.15)
}

.debug-mode tw-expression[type=tempVariable]::after {
  font-size: 0.8rem;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  vertical-align: top;
  content: "_" attr(name)
}

.debug-mode tw-expression[type=macro]:nth-of-type(4n+0) {
  background-color: rgba(136, 153, 102, 0.15)
}

.debug-mode tw-expression[type=macro]:nth-of-type(2n+1) {
  background-color: rgba(102, 153, 102, 0.15)
}

.debug-mode tw-expression[type=macro]:nth-of-type(4n+2) {
  background-color: rgba(102, 153, 136, 0.15)
}

.debug-mode tw-expression[type=macro][name="for"],
.debug-mode tw-expression[type=macro][name="loop"],
.debug-mode tw-expression[type=macro][name="print"],
.debug-mode tw-expression[type=macro][name="enchant"],
.debug-mode tw-expression[type=macro][name="display"] {
  background-color: rgba(0, 170, 255, 0.1) !important
}

.debug-mode tw-expression[type=macro][name="if"],
.debug-mode tw-expression[type=macro][name="if"]+tw-hook:not([name]),
.debug-mode tw-expression[type=macro][name="unless"],
.debug-mode tw-expression[type=macro][name="unless"]+tw-hook:not([name]),
.debug-mode tw-expression[type=macro][name="elseif"],
.debug-mode tw-expression[type=macro][name="elseif"]+tw-hook:not([name]),
.debug-mode tw-expression[type=macro][name="else"],
.debug-mode tw-expression[type=macro][name="else"]+tw-hook:not([name]) {
  background-color: rgba(0, 255, 0, 0.1) !important
}

.debug-mode tw-expression[type=macro][name="hidden"],
.debug-mode tw-expression[type=macro].false {
  background-color: rgba(255, 0, 0, 0.2) !important
}

.debug-mode tw-expression[type=macro][name="hidden"]+tw-hook:not([name]),
.debug-mode tw-expression[type=macro].false+tw-hook:not([name]) {
  display: none
}

.debug-mode tw-expression[type=macro][name="either"],
.debug-mode tw-expression[type=macro][name="a"],
.debug-mode tw-expression[type=macro][name="dm"],
.debug-mode tw-expression[type=macro][name="ds"],
.debug-mode tw-expression[type=macro][name="array"],
.debug-mode tw-expression[type=macro][name^="sub"],
.debug-mode tw-expression[type=macro][name="altered"],
.debug-mode tw-expression[type=macro][name="count"],
.debug-mode tw-expression[type=macro][name^="data"],
.debug-mode tw-expression[type=macro][name="find"],
.debug-mode tw-expression[type=macro][name$="ed"],
.debug-mode tw-expression[type=macro][name$="-pass"],
.debug-mode tw-expression[type=macro][name="range"],
.debug-mode tw-expression[type=macro][name^="num"],
.debug-mode tw-expression[type=macro][name^="str"],
.debug-mode tw-expression[type=macro][name="text"],
.debug-mode tw-expression[type=macro][name^="lower"],
.debug-mode tw-expression[type=macro][name^="upper"],
.debug-mode tw-expression[type=macro][name="words"],
.debug-mode tw-expression[type=macro][name="ceil"],
.debug-mode tw-expression[type=macro][name="floor"],
.debug-mode tw-expression[type=macro][name="random"],
.debug-mode tw-expression[type=macro][name="abs"],
.debug-mode tw-expression[type=macro][name="cos"],
.debug-mode tw-expression[type=macro][name="exp"],
.debug-mode tw-expression[type=macro][name^="log"],
.debug-mode tw-expression[type=macro][name="max"],
.debug-mode tw-expression[type=macro][name="min"],
.debug-mode tw-expression[type=macro][name="pow"],
.debug-mode tw-expression[type=macro][name="sign"],
.debug-mode tw-expression[type=macro][name="sin"],
.debug-mode tw-expression[type=macro][name="sqrt"],
.debug-mode tw-expression[type=macro][name="tan"],
.debug-mode tw-expression[type=macro][name="round"],
.debug-mode tw-expression[type=macro][name^="hsl"],
.debug-mode tw-expression[type=macro][name^="rgb"] {
  background-color: rgba(255, 255, 0, 0.2) !important
}

.debug-mode tw-expression[type=macro][name$="-game"],
.debug-mode tw-expression[type=macro][name="move"],
.debug-mode tw-expression[type=macro][name="put"],
.debug-mode tw-expression[type=macro][name="set"] {
  background-color: rgba(255, 128, 0, 0.2) !important
}

.debug-mode tw-expression[type=macro][name^="link"],
.debug-mode tw-expression[type=macro][name$="-link"],
.debug-mode tw-expression[type=macro][name="dropdown"],
.debug-mode tw-expression[type=macro][name^="click"],
.debug-mode tw-expression[type=macro][name="goto"],
.debug-mode tw-expression[type=macro][name="undo"],
.debug-mode tw-expression[type=macro][name^="mouseo"] {
  background-color: rgba(32, 191, 223, 0.2) !important
}

.debug-mode tw-expression[type=macro][name^="replace"],
.debug-mode tw-expression[type=macro][name^="prepend"],
.debug-mode tw-expression[type=macro][name^="append"],
.debug-mode tw-expression[type=macro][name="show"],
.debug-mode tw-expression[type=macro][name^="remove"] {
  background-color: rgba(223, 96, 32, 0.2) !important
}

.debug-mode tw-expression[type=macro][name="event"],
.debug-mode tw-expression[type=macro][name="live"] {
  background-color: rgba(32, 32, 223, 0.2) !important
}

.debug-mode tw-expression[type=macro][name="align"],
.debug-mode tw-expression[type=macro][name^="colo"],
.debug-mode tw-expression[type=macro][name="background"],
.debug-mode tw-expression[type=macro][name="css"],
.debug-mode tw-expression[type=macro][name="font"],
.debug-mode tw-expression[type=macro][name="hook"],
.debug-mode tw-expression[type=macro][name$="-style"],
.debug-mode tw-expression[type=macro][name^="text-"],
.debug-mode tw-expression[type=macro][name^="transition"],
.debug-mode tw-expression[type=macro][name^="t8n"],
.debug-mode tw-expression[type=macro][name="live"] {
  background-color: rgba(255, 191, 0, 0.2) !important
}

.debug-mode tw-expression[type=macro]::before {
  content: "(" attr(name) ":)";
  padding: 0 0.5rem;
  font-size: 1rem;
  vertical-align: middle;
  line-height: normal;
  background-color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.5)
}

.debug-mode tw-hook {
  background-color: rgba(0, 85, 255, 0.1) !important
}

.debug-mode tw-hook::before {
  font-size: 0.8rem;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  vertical-align: top;
  content: "["
}

.debug-mode tw-hook::after {
  font-size: 0.8rem;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  vertical-align: top;
  content: "]"
}

.debug-mode tw-hook[name]::after {
  font-size: 0.8rem;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  vertical-align: top;
  content: "]<" attr(name) "|"
}

.debug-mode tw-pseudo-hook {
  background-color: rgba(255, 170, 0, 0.1) !important
}

.debug-mode tw-collapsed::before {
  font-size: 0.8rem;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  vertical-align: top;
  content:"{"
}

.debug-mode tw-collapsed::after {
  font-size: 0.8rem;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  vertical-align: top;
  content: "}"
}

.debug-mode tw-verbatim::before,
.debug-mode tw-verbatim::after {
  font-size: 0.8rem;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  vertical-align: top;
  content: "`"
}

.debug-mode tw-align[style*="text-align: center"] {
  background: linear-gradient(to right, rgba(255, 204, 189, 0) 0%, rgba(255, 204, 189, 0.25) 50%, rgba(255, 204, 189, 0) 100%)
}

.debug-mode tw-align[style*="text-align: left"] {
  background: linear-gradient(to right, rgba(255, 204, 189, 0.25) 0%, rgba(255, 204, 189, 0) 100%)
}

.debug-mode tw-align[style*="text-align: right"] {
  background: linear-gradient(to right, rgba(255, 204, 189, 0) 0%, rgba(255, 204, 189, 0.25) 100%)
}

.debug-mode tw-column {
  background-color: rgba(189, 228, 255, 0.2)
}

.debug-mode tw-enchantment {
  animation: enchantment 0.5s infinite;
  -webkit-animation: enchantment 0.5s infinite;
  border: 1px solid
}

.debug-mode tw-link::after,
.debug-mode tw-broken-link::after {
  font-size: 0.8rem;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  vertical-align: top;
  content: attr(passage-name)
}

.debug-mode tw-include {
  background-color: rgba(204, 128, 51, 0.1)
}

.debug-mode tw-include::before {
  font-size: 0.8rem;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  vertical-align: top;
  content: attr(type) ' "' attr(title) '"'
}

@keyframes enchantment {
  0%,
  to {
    border-color: #ffb366
  }
  50% {
    border-color: #6fc
  }
}

@-webkit-keyframes enchantment {
  0%,
  to {
    border-color: #ffb366
  }
  50% {
    border-color: #6fc
  }
}

tw-debugger {
  position: fixed;
  box-sizing: border-box;
  bottom: 0;
  right: 0;
  z-index: 999999;
  min-width: 10em;
  min-height: 1em;
  padding: 0em 1em 1em 1em;
  font-size: 1.25em;
  font-family: sans-serif;
  color: #000;
  border-left: solid #000 2px;
  border-top: solid #000 2px;
  border-top-left-radius: .5em;
  background: #fff;
  opacity: 1
}

tw-debugger select {
  margin-right: 1em;
  width: 12em
}

tw-debugger button {
  border-radius: 3px;
  border: solid #999 1px;
  margin: auto 4px;
  background-color: #fff;
  font-size: inherit;
  color: #000
}

tw-debugger button.enabled {
  background-color: #eee;
  box-shadow: inset #ddd 3px 5px 0.5em
}

tw-debugger .panel {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-direction: normal;
  -webkit-box-orient: vertical;
  -webkit-flex-direction: column;
  -moz-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  position: absolute;
  bottom: 100%;
  left: -2px;
  right: 0;
  padding: 1em;
  max-height: 40vh;
  overflow-y: scroll;
  overflow-x: hidden;
  z-index: 999998;
  background: #fff;
  border: inherit;
  border-bottom: solid #999 2px;
  border-top-left-radius: .5em;
  border-bottom-left-radius: .5em;
  font-size: 0.8em
}

tw-debugger .panel:empty,
tw-debugger .panel[hidden] {
  display: none
}

tw-debugger .panel table {
  border-spacing: 0px
}

tw-debugger .variable-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-direction: normal;
  -webkit-box-orient: horizontal;
  -webkit-flex-direction: row;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  flex-shrink: 0
}

tw-debugger .variable-row:nth-child(2n) {
  background: #EEE
}

tw-debugger .variable-name {
  display: inline-block;
  width: 50%
}

tw-debugger .temporary-variable-scope {
  opacity: 0.8;
  font-size: 0.75em
}

tw-debugger .temporary-variable-scope::before {
  content: " in "
}

tw-debugger .global::before {
  content: "$"
}

tw-debugger .temporary::before {
  content: "_"
}

tw-debugger .variable-path {
  opacity: 0.4
}

tw-debugger .variable-value {
  display: inline-block;
  width: 50%
}

tw-debugger .error-row {
  background-color: rgba(230, 101, 204, 0.3)
}

tw-debugger .error-row:nth-child(2n) {
  background-color: rgba(237, 145, 219, 0.3)
}

tw-debugger .error-row * {
  padding: 0.25em 0.5em
}

tw-debugger .error-row .error-message {
  cursor: help
}

tw-debugger .panel-source {
  font-family: monospace;
  overflow-x: scroll;
  white-space: pre
}

tw-debugger .tabs {
  padding-bottom: 0.5em
}

tw-debugger .tab {
  border-radius: 0px 0px 0.5em 0.5em;
  border-top: none
}

tw-dialog {
  z-index: 999997;
  position: fixed;
  left: auto;
  right: auto;
  bottom: auto;
  top: auto;
  border: #fff solid 2px;
  padding: 2em;
  color: #fff;
  background-color: #000;
  display: block;
  /*max-width: 50vw;*/
  max-height: 75vh;
  overflow: hidden
}

tw-dialog input[type=text] {
  font-size: inherit;
  width: 100%;
  color: #000;
}

tw-backdrop {
  z-index: 999996;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center
}

tw-link,
.link,
tw-icon,
.enchantment-clickblock {
  cursor: pointer
}

tw-link,
.enchantment-link,tw-link,
.enchantment-link:visited {
 color: #000;
    background: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease-in-out
}

.enchantment-link:hover {
	color: #bbb;
}

tw-passage tw-enchantment[style^="color"] tw-link:not(:hover),
tw-passage tw-enchantment[style*=" color"] tw-link:not(:hover),
tw-passage tw-enchantment[style^="color"] .enchantment-link:not(:hover),
tw-passage tw-enchantment[style*=" color"] .enchantment-link:not(:hover) {
  color: inherit
}

tw-link:hover,
.enchantment-link:hover {
  color: #bbb;
}

tw-link:active,
.enchantment-link:active {
  /*color: #DD4B39*/
  color: #8a4d06;
}

.visited {
  color: #8a4d06;
}

tw-passage tw-enchantment[style^="color"] .visited:not(:hover),
tw-passage tw-enchantment[style*=" color"] .visited:not(:hover) {
  color: inherit;
}

.visited:hover {
  color: #FFF;
}

tw-broken-link {
  color: #993333;
  border-bottom: 2px solid #993333;
  cursor: not-allowed
}

tw-passage tw-enchantment[style^="color"] tw-broken-link:not(:hover),
tw-passage tw-enchantment[style*=" color"] tw-broken-link:not(:hover) {
  color: inherit
}

.enchantment-mouseover {
  border-bottom: 1px dashed #666
}

.enchantment-mouseout {
  border: rgba(64, 149, 191, 0.25) 1px solid
}

.enchantment-mouseout:hover {
  background-color: rgba(64, 149, 191, 0.25);
  border: transparent 1px solid;
  border-radius: 0.2em
}

.enchantment-clickblock {
  box-shadow: inset 0 0 0 0.5vmax;
  display: block;
  color: rgba(65, 105, 225, 0.5);
  transition: color 0.2s ease-in-out
}

.enchantment-clickblock:hover {
  color: rgba(0, 191, 255, 0.5)
}

.enchantment-clickblock:active {
  color: rgba(222, 78, 59, 0.5)
}



tw-storydata {
  display: none
}

tw-story {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-direction: normal;
  -webkit-box-orient: vertical;
  -webkit-flex-direction: column;
  -moz-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  font: 100% Georgia, serif;
  box-sizing: border-box;
  width: 100%;
  min-height: 100%;
  font-size: 1em;
  line-height: 1.3em;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background-color: #000;
  color: #fff
}

tw-story br[data-cons] {
  display: block;
  height: 0;
  margin: 0.8ex 0
}

tw-story select {
  background-color: transparent;
  font: inherit;
  border-style: solid;
  padding: 2px
}

tw-story select:not([disabled]) {
  color: inherit
}

tw-passage {
  display: block
}

tw-sidebar {
  left: -5em;
  width: 3em;
  position: absolute;
  text-align: center;
  display: block
}

tw-icon {
  display: block;
  margin: 0.5em 0;
  opacity: 0.2;
  font-size: 2.75em
}

tw-icon:hover {
  opacity: 0.4
}

tw-hook:empty,
tw-expression:empty {
  display: none
}

tw-error {
  display: inline-block;
  border-radius: 0.2em;
  padding: 0.2em;
  font-size: 1rem;
  cursor: help
}

tw-error.error {
  background-color: rgba(223, 58, 190, 0.4);
  color: #fff
}

tw-error.warning {
  background-color: rgba(223, 140, 58, 0.4);
  color: #fff;
  display: none
}

.debug-mode tw-error.warning {
  display: inline
}

tw-error-explanation {
  display: block;
  font-size: 0.8rem;
  line-height: 1rem
}

tw-error-explanation-button {
  cursor: pointer;
  line-height: 0em;
  border-radius: 1px;
  border: 1px solid black;
  font-size: 0.8rem;
  margin: 0 0.4rem;
  opacity: 0.5
}

tw-error-explanation-button .folddown-arrowhead {
  display: inline-block
}

tw-notifier {
  border-radius: 0.2em;
  padding: 0.2em;
  font-size: 1rem;
  background-color: rgba(223, 182, 58, 0.4);
  display: none
}

.debug-mode tw-notifier {
  display: inline
}

tw-notifier::before {
  content: attr(message)
}

tw-colour {
  border: 1px solid black;
  display: inline-block;
  width: 1em;
  height: 1em
}



/*center {
  text-align: center;
  margin: 0 auto;
  width: 60%
}
*/

/*blink {
  text-decoration: none;
  animation: fade-in-out 1s steps(1, end) infinite alternate;
  -webkit-animation: fade-in-out 1s steps(1, end) infinite alternate
}*/

tw-align {
  display: block
}

tw-columns {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-direction: normal;
  -webkit-box-orient: horizontal;
  -webkit-flex-direction: row;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  -webkit-justify-content: space-between;
  -moz-justify-content: space-between;
  justify-content: space-between
}

tw-outline {
  color: white;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000
}

tw-shadow {
  text-shadow: 0.08em 0.08em 0.08em #000
}

tw-emboss {
  text-shadow: 0.08em 0.08em 0em #000;
  color: white
}

tw-condense {
  letter-spacing: -0.08em
}

tw-expand {
  letter-spacing: 0.1em
}

tw-blur {
  color: transparent;
  text-shadow: 0em 0em 0.08em #000
}

tw-blurrier {
  color: transparent;
  text-shadow: 0em 0em 0.2em #000
}

tw-blurrier::selection {
  background-color: transparent;
  color: transparent
}

tw-blurrier::-moz-selection {
  background-color: transparent;
  color: transparent
}

tw-smear {
  color: transparent;
  text-shadow: 0em 0em 0.02em rgba(0, 0, 0, 0.75), -0.2em 0em 0.5em rgba(0, 0, 0, 0.5), 0.2em 0em 0.5em rgba(0, 0, 0, 0.5)
}

tw-mirror {
  display: inline-block;
  transform: scaleX(-1);
  -webkit-transform: scaleX(-1)
}

tw-upside-down {
  display: inline-block;
  transform: scaleY(-1);
  -webkit-transform: scaleY(-1)
}

tw-fade-in-out {
  text-decoration: none;
  animation: fade-in-out 2s ease-in-out infinite alternate;
  -webkit-animation: fade-in-out 2s ease-in-out infinite alternate
}

tw-rumble {
  -webkit-animation: rumble linear 0.1s 0s infinite;
  animation: rumble linear 0.1s 0s infinite;
  display: inline-block
}

tw-shudder {
  -webkit-animation: shudder linear 0.1s 0s infinite;
  animation: shudder linear 0.1s 0s infinite;
  display: inline-block
}

tw-shudder-in {
  animation: shudder-in 1s ease-out;
  -webkit-animation: shudder-in 1s ease-out
}

.transition-in {
  -webkit-animation: appear 0ms step-start;
  animation: appear 0ms step-start
}

.transition-out {
  -webkit-animation: appear 0ms step-end;
  animation: appear 0ms step-end
}

[data-t8n^=dissolve].transition-in {
  -webkit-animation: appear .8s;
  animation: appear .8s
}

[data-t8n^=dissolve].transition-out {
  -webkit-animation: appear .8s reverse;
  animation: appear .8s reverse
}

[data-t8n^=shudder].transition-in {
  display: inline-block;
  -webkit-animation: shudder-in .8s;
  animation: shudder-in .8s
}

[data-t8n^=shudder].transition-out {
  display: inline-block;
  -webkit-animation: shudder-in .8s reverse;
  animation: shudder-in .8s reverse
}

[data-t8n^=rumble].transition-in {
  display: inline-block;
  -webkit-animation: rumble-in .8s;
  animation: rumble-in .8s
}

[data-t8n^=rumble].transition-out {
  display: inline-block;
  -webkit-animation: rumble-in .8s reverse;
  animation: rumble-in .8s reverse
}

[data-t8n^=boxflash].transition-in {
  -webkit-animation: box-flash .8s;
  animation: box-flash .8s
}

[data-t8n^=pulse].transition-in {
  -webkit-animation: pulse .8s;
  animation: pulse .8s;
  display: inline-block
}

[data-t8n^=pulse].transition-out {
  -webkit-animation: pulse .8s reverse;
  animation: pulse .8s reverse;
  display: inline-block
}

[data-t8n^=slideleft].transition-in {
  -webkit-animation: slide-left .8s;
  animation: slide-left .8s;
  display: inline-block
}

[data-t8n^=slideleft].transition-out {
  -webkit-animation: slide-right .8s reverse;
  animation: slide-right .8s reverse;
  display: inline-block
}

[data-t8n^=slideright].transition-in {
  -webkit-animation: slide-right .8s;
  animation: slide-right .8s;
  display: inline-block
}

[data-t8n^=slideright].transition-out {
  -webkit-animation: slide-left .8s reverse;
  animation: slide-left .8s reverse;
  display: inline-block
}

[data-t8n^=slideup].transition-in {
  -webkit-animation: slide-up .8s;
  animation: slide-up .8s;
  display: inline-block
}

[data-t8n^=slideup].transition-out {
  -webkit-animation: slide-down .8s reverse;
  animation: slide-down .8s reverse;
  display: inline-block
}

[data-t8n^=slidedown].transition-in {
  -webkit-animation: slide-down .8s;
  animation: slide-down .8s;
  display: inline-block
}

[data-t8n^=slidedown].transition-out {
  -webkit-animation: slide-up .8s reverse;
  animation: slide-up .8s reverse;
  display: inline-block
}

[data-t8n^=flicker].transition-in {
  -webkit-animation: flicker .8s;
  animation: flicker .8s
}

[data-t8n^=flicker].transition-out {
  -webkit-animation: flicker .8s reverse;
  animation: flicker .8s reverse
}

[data-t8n$=fast] {
  animation-duration: .4s;
  -webkit-animation-duration: .4s
}

[data-t8n$=slow] {
  animation-duration: 1.6s;
  -webkit-animation-duration: 1.6s
}

tw-sidebar tw-icon.redo {
  display: none;
}

tw-sidebar tw-icon.undo {
  display: none;
}

tw-story {
  /*background-image:url("https://tiempodefe.cofradiafe.es/img/fondo.jpg");*/
  background-size: cover;
}

tw-passagedata a:link {
  color: yellow;
  background-color: transparent;
  text-decoration: none;
}

tw-passagedata a:visited {
  color: yellow;
  background-color: transparent;
  text-decoration: none;
}

tw-passagedata a:hover {
  color: red;
  background-color: transparent;
  text-decoration: underline;
}

tw-passagedata a:active {
  color: yellow;
  background-color: transparent;
  text-decoration: underline;
}

tw-passagedata h1 {
  text-shadow: 2px 2px #FF0000;
}

tw-passagedata h3 {
  color: yellow;
}


.polaroid {
  background: #fff;
  padding: 1rem;
  box-shadow: 0 0.2rem 1.2rem rgba(0,0,0,0.2);
  
}
.polaroid > img{
  max-width: 100%;
  height: auto;
}
.caption {
  font-size: 1.8rem;
  text-align: center;
  line-height: 2em;
  color:#000;
}
.item {
  width: 50%;
  display: inline-block;
  margin-top: 2rem;
  filter: grayscale(100%);
}
.item .polaroid:before {
  content: '';
  position: absolute;
  z-index: -1;
  transition: all 0.35s;
}
.item:nth-of-type(4n+1) {
  transform: scale(0.8, 0.8) rotate(5deg);
  transition: all 0.35s;
}
.item:nth-of-type(4n+1) .polaroid:before {
  transform: rotate(6deg);
  height: 30%;
  width: 67%;
  bottom: 30px;
  right: 12px;
  box-shadow: 0 2.1rem 2rem rgba(0,0,0,0.4);
}
.item:nth-of-type(4n+2) {
  transform: scale(0.8, 0.8) rotate(-5deg);
  transition: all 0.35s;
}
.item:nth-of-type(4n+2) .polaroid:before {
  transform: rotate(-6deg);
  height: 30%;
  width: 67%;
  bottom: 30px;
  left: 12px;
  box-shadow: 0 2.1rem 2rem rgba(0,0,0,0.4);
}
.item:nth-of-type(4n+4) {
  transform: scale(0.8, 0.8) rotate(3deg);
  transition: all 0.35s;
}
.item:nth-of-type(4n+4) .polaroid:before {
  transform: rotate(4deg);
  height: 30%;
  width: 67%;
  bottom: 30px;
  right: 12px;
  box-shadow: 0 2.1rem 2rem rgba(0,0,0,0.3);
}
.item:nth-of-type(4n+3) {
  transform: scale(0.8, 0.8) rotate(-3deg);
  transition: all 0.35s;
}
.item:nth-of-type(4n+3) .polaroid:before {
  transform: rotate(-4deg);
  height: 30%;
  width: 67%;
  bottom: 30px;
  left: 12px;
  box-shadow: 0 2.1rem 2rem rgba(0,0,0,0.3);
}
.item:hover {
  filter: none;
  transform: scale(1, 1) rotate(0deg) !important;
  transition: all 0.35s;
}
.item:hover .polaroid:before {
  content: '';
  position: absolute;
  z-index: -1;
  transform: rotate(0deg);
  height: 90%;
  width: 90%;
  bottom: 0%;
  right: 5%;
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.2);
  transition: all 0.35s;
}
