/* Layout */

html, body, p, input, button, ul, li {
    -webkit-user-select: none; 
    margin: 0;
    padding: 0;
}

body, input, button, textarea {
    font-family: Calisto MT, Bookman Old Style, Bookman, Goudy Old Style, Garamond, Hoefler Text, Bitstream Charter, Georgia, serif; 
}

body {
    background: #000;
}

a, a:visited {
    color: black;
    text-decoration: none;
}
 
h1, h1 a {
    font-weight: normal;
    font-size: 42px;
    text-transform: uppercase;
}

p, input, button, span, a {
    font-size: 24px;
    font-weight: normal;
    letter-spacing: 0.2px;
    line-height: 25px;
}

p {
    margin-bottom: 20px;
    line-height: 28px;
}

input:focus, textarea:focus {
    outline: none;
}

button:hover {
    cursor: pointer;
}

#page {
    margin: 50px auto;
    width: 1280px;
}

.theme:before, .theme:after, .custom:before, .custom:after {
    content: '';
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.theme:before, .custom:before {
    z-index: -100;
    background-image:  url('https://assets.bigcartel.com/assets/912097/bg.gif');
    background-size: cover;
    background-position: 50% 50%;
    opacity: 0.1;
    filter: invert(100%);
}

.theme:after, .custom:after {
    z-index: -200;
    background-color: #99ffff;
    animation: hue 16s infinite linear;
}

#page_nav {
  text-align: center;
}

#page_nav a {
  font-size: 26px;
}

#page_nav a img {
    transform: scale(1.0,1.0);
    transition-duration: 0.1s;
    max-width: 200px;
}

#page_nav a img:hover {
    transform: scale(1.05,1.05);
    image-rendering: pixelated;
}

#page h1 {
    margin: 60px 0px 40px 0px;
    text-align: center;
}

#page_outer {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow-x: scroll;
    scrollbar-width: none; /* hides scrollbars in firefox */
}

/* hides scrollbars in edge */
*::-webkit-scrollbar {
    width: 0;
    height: 0;
}

#page_inner {
    overflow: hidden;
}

/* Home */

#home {
    position: fixed;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

#home #page {
    transform: scale(1,1) !important;
    padding: 0px; /* Override to remove padding on home for map */
}

#home #page:before, #home #page:after { /* Override removes page background for map */
    display: none;
}

#home #page { /* Override removes page width for map */
    width: 100%;
    margin: 0px;
}

#home h1 {
    display: none;
}

#home_nav {
    position: absolute;
    width: 520px;
    height: 50px;
    bottom: 100px;
    left: 50%;
    margin: 0px 0px 0px -260px;
    transform-origin: bottom center;
    text-align: center;
    transition-duration: 0.3s;
    z-index: 9999;
}

#home_nav ul {
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    left: 47px;
    bottom: 0px;
    width: 380px;
    padding: 40px 24px 120px 24px;
    transition-duration: 0s;
    font-size: 48px;
    border-radius: 500px;
    background: #000;
    margin-bottom: -50px;
    transform: translate(0px, 380px) scale(0.3,0.1);
    will-change: transform;
}

#home_nav ul li {
    list-style: none;
    padding: 14px 20px 14px 20px;
    line-height: 35px;
}

#home_nav ul a {
    color: #000;
    font-size: 33px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -0.4px !important;
}

#home_nav #mouse {
    position: relative;
    transition-duration: 0.5s;
    bottom: 0px;
    z-index: 9999;
}

#home_nav #mouse:hover {
    cursor: pointer;
}

#home_nav #mouse:before {
    content: '';
    position: absolute;
    display: block;
    top: -40px;
    left: -44px;
    width: 91px;
    height: 80px;
    padding-left: 10px;
    background-color: #000;
    background-image: url('https://assets.bigcartel.com/assets/1069189/mouse.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 10px center;
    border-radius: 40px;
}

#home_nav #mouse:checked:before {
    
}

#home_nav #mouse:checked ~ ul {
    visibility: visible;
    pointer-events: auto;
    transform: translate(0px, -28px) scale(1,1);
    transition-duration: 0.3s;
    animation: border 0.3s linear;
    animation-fill-mode: forwards;
}

#home_nav #mouse:checked ~ ul a {
    color: #fff;
    transition-duration: 0.5s;
    transition-delay: 0.2s;
}

#home #page_outer {
    overflow-x: scroll;
    overflow-y: hidden;
}

#home #page_outer::-webkit-scrollbar {
    display: none;
}

#home #page_inner {
    transform-origin: top left;
    position: relative;
    overflow: hidden;
    width: 2800px;
    height: 1448px;
}

#scene {
    position: absolute;
    left: 440px;
    width: 1920px;
    height: 1448px;
    background: #00ffff;
    animation-delay: 2s;
    animation: hue 6s infinite linear;
}

#scene svg, #sprites {
    position:  absolute;
    left: 0px;
    top:  0px;
}

#scene svg path {
  opacity: 0;
}

#scene svg image {
    opacity: 1 !important;
}

#scene svg path:hover {
    cursor: pointer;
}

#Layer_1 image {
    pointer-events:  none;
}

#home #castle:hover, #home #castle:active {
    opacity: 1 !important;
    transform: scale(1.02, 1.02) translate(0px, -5px);
    image-rendering: pixelated;
    filter: drop-shadow(0px 5px 0px #000);
}

#temple:hover, #fish-babe:hover, #fishermouse:hover, #mailmouse:hover, #shop:hover, #portal:hover, #lighthouse:hover, #spaceship:hover, #car:hover {
    opacity: 1 !important;
    transform: scale(1.02,1.02);
    image-rendering: pixelated;
    filter: drop-shadow(0px 2px 0px #000);
}

#left_cloud, #right_cloud {
    position: absolute;
    width: 1040px;
    height: 1448px;
    top: 0px;
    z-index:  9999;
}

#left_cloud {
    left: -805px;
    background: url('https://assets.bigcartel.com/assets/1058740/new-left-cloud-colored.png');
    background-position: right;
    animation-delay: 2s;
    animation: cloud-l 3s;
    animation-fill-mode: forwards;
}

#right_cloud {
    right: -805px;
    background: url('https://assets.bigcartel.com/assets/1058743/new-right-cloud-colored.png');
    animation-delay: 2s;
    animation: cloud-r 3s;
    animation-fill-mode: forwards;
}

#sprites img {
    opacity: 0.5;
    position: absolute;
    display:  block;
    transform-origin: center center;
    transition-duration: 0.1s;
    animation-direction: backwards;
    animation: shake 8s infinite linear;
}

#bg {
    transition-duration:  2s;
}

/* Shop */

.flex {
  display: flex;
  flex-direction: row ;
  flex-wrap: wrap; 
}

#products_page .flex_container {
  padding: 0px 10px 0px 10px;
}

#products_page .flex_item {
  flex-basis: 33.3%; 
}

#products_page .product {
  padding: 10px; 
  text-align: center;
}
  
#products_page .product img {
  width: 100%;
  margin-bottom: 10px;
} 

#product .flex {
    margin-bottom: 10px
}

#pagination {
    text-align: center;
    padding: 20px 20px 40px 20px;  
}

span[aria-label^="Current page, page "], a[aria-label^="Go to page"] {
  display: inline-block;
  min-width: 20px;  
}

.cart_button {
  padding: 80px 0px 20px 0px;
  text-align: center;
}

.cart_button a { 
  padding: 20px 0px 20px 0px; 
} 

#cart_empty {
    height: 500px;
}

.price, .price span {
    font-size: 18px;
    font-weight: bold;
}

/* Product */

#product #page_body, #cart #page_body {
    margin: 0px auto;
    max-width: 760px !important; /* Adjust 720 narrow width type page for flex padding */
}

#product .product_image {
    padding: 10px;
}

#product .product_image:hover {
    cursor: pointer;
}

#product .product_image img {
    width: 100%;
}

#product .flex_item {
    flex-basis: 50%; 
    order: 2;
}

#product .flex_item_full {
    flex-basis: 100%; 
    order: 1;
}

#product .product p {
    padding: 0px 10px 0px 10px;
}

#product .price, .item_price , #total h2 {
    margin: 20px 0px 40px 0px;
    font-weight: bold;
    font-size: 30px;
}

#product .price, .item_price , #total h2, #cart_items input, #pagination a, #pagination span {
    font-family: Georgia, serif;
}

.update-btn {
    margin: 0px 0px 40px 0px;
}

/* Archives */

#archives #page_body {
    padding: 0px 40px 0px 40px;
}

#archives #page_body img {
    display: inline-block;
    padding: 0px 10px 20px 10px; 
}

#archives #page_body img:hover {
    cursor: pointer; 
}

#archives .focus {
    position: absolute;
    left: 50%;
    width: 800px;
    margin-left: -400px;
}

#modal {
    background-color: #000;
}

#modal, #modal-high {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}
/*
#archives #modal {
    background-color: #000 !important;
}
*/

/* Contact */

#contact #page_body {
    margin: 0px auto;
    width: 500px;
}

#contact_form {
    padding-bottom: 60px;
}

#contact_form li, #contact_form textarea {
    font-size: 24px;
    list-style: none;
}

#contact_form input, #contact_form textarea {
    margin-bottom: 20px;
    width: 455px;
}

#contact_form textarea {
  height: 200px;
}

#contact_form label {
    margin: 10px 0px 8px 0px;
    display: block;
}

#contact_form #contact_button {
    padding: 15px 20px 10px 20px
}

.previous {
    float: left; 
}

.next {
    float: right;
}

.next.disabled, .previous.disabled {
    opacity: 0;
}

a[aria-label^="Go to page"], span[aria-label^="Current page, page "] {
    /*margin-left: -25px;
    margin-right: 25px;*/
}

.quantity_input {
    pointer-events: none; /* prevent people from increasing quantities on items there are only one of for now */
    width: 90px;
}

#instant-checkout-button {
    display: none;
}

#cart_items img {
    margin: 0px 0px 20px 0px;
}

.quantity_input input, button, .remove_item, #cart_button, #contact_form input, #contact_form textarea, .previous, .next, a[aria-label^="Go to page"], span[aria-label^="Current page, page "], .cart_button a {
    background: none;
    border: #000 3px solid;
    border-radius: 100px;
    padding: 10px 20px;
    letter-spacing: -1px;
}

#contact_form input, #contact_form textarea {
    border-radius: 0px !important;
    text-transform: none !important; 
}

.recaptcha_note {
    opacity: 0;
    height: 0px;
    pointer-events: none;
}

button, .remove_item, span[aria-label^="Current page, page "], .cart_button a:active {  
    color: #fff !important;
    background-color: #000; 
}

.previous, .next, span[aria-label^="Current page, page "], .cart_button a {
    color: #000; 
}

.previous, .next { /* Override background none above */
    /*
    color: rgba(0,0,0,0);
    background-image: url('https://assets.bigcartel.com/assets/1344364/arrow.png');
    background-size: 35px 35px;
    background-repeat: no-repeat;
    background-position: center center;
    */
    font-family: Arial, sans-serif;
}
/*
.previous {
    transform: scale(-1,1);
}
*/
.previous:active, .next:active {
    background-color: white;
    border-color: white;
    filter: invert(100%);
}

.remove_item {
    display: inline-block;
}

.previous:hover, .next:hover {
    cursor: pointer; 
}

/* Castle */

#castle #page_body {
    padding: 0px 40px 0px 40px;
}

/* Random */

#caverns #page, #dimension #page, #farm #page, #shore #page, #swamp #page, #river #page, #library #page, #castle #page, #archives #page {
    color: #fff;
}

.custom {
    animation: appear 2s linear;
}

.custom:after {
    content: '';
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: #000;
}

#caverns #page_body, #dimension #page_body, #farm #page_body, #shore #page_body, #swamp #page_body, #river #page_body, #product #page_body, #library #page_body {
    margin: 0px auto;
    max-width: 720px;
    padding: 0px 40px 0px 40px;
    color: #fff;
}

#caverns #page_nav, #dimension #page_nav, #farm #page_nav, #shore #page_nav, #swamp #page_nav, #river #page_nav, #library #page_nav, #castle #page_nav {
    filter: invert(1);
}

#product #page_body {
    color: #000; /* override white text color, we need to organize this all better */
}

#caverns #page_body img, #dimension #page_body img, #farm #page_body img, #shore #page_body img, #swamp #page_body img, #river #page_body img, #product #page_body img {
    width: 100%;
}

#back {
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

#back:hover {
    cursor: default;
}

/*
@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (   min--moz-device-pixel-ratio: 2),
only screen and (     -o-min-device-pixel-ratio: 2/1),
only screen and (        min-device-pixel-ratio: 2),
only screen and (                min-resolution: 192dpi),
only screen and (                min-resolution: 2dppx) {
    body:not(#home) {
        zoom: 80% !important;
    }
}
*/

@media screen and (min-width: 800px) {
    #page  {
        transform: scale(0.8,0.8);
        transform-origin: top center;
    }
}

@media screen and (max-width: 740px) {
    #page_body {  
        width: 100%;
    }
}

@media screen and (max-width: 800px) {
    #products_page .flex_item {  
        max-width: 50%;
        flex: 50%; 
    }
    /*
    body:not(#home) {
        zoom: 100% !important;
    }*/
    #left_cloud {
        left: -305px;
        animation: cloud-l-m 9s;
        animation-fill-mode: forwards;
    }
    #right_cloud {
        right: -305px;
        animation: cloud-r-m 9s;
        animation-fill-mode: forwards;
    }
}

@media screen and (max-width: 1280px) {
    #page { 
        width: 100%;
    }
}

@keyframes border {
    from { border-radius: 100px }
    to { border-radius: 0px }
}

@keyframes hue {
    from { filter: hue-rotate(0deg) }
    to { filter: hue-rotate(360deg) }
}
/*
@keyframes cloud-l {
    from { margin-left: 0px }
    to { margin-left: -120px }
}
@keyframes cloud-r {
    from { margin-right: 0px }
    to { margin-right: -120px }
}
*/
@keyframes cloud-l {
    from { transform: translate(0,0) }
    to { transform: translate(-120px,0) }
}
@keyframes cloud-r {
    from { transform: translate(0,0) }
    to { transform: translate(120px,0) }
}
@keyframes cloud-l-m {
    from { transform: translate(0,0) }
    to { transform: translate(-620px,0) }
}
@keyframes cloud-r-m {
    from { transform: translate(0,0) }
    to { transform: translate(620px,0) }
}
/*
@keyframes shake {
    0% { margin: 0 0 0 0 }
    10% { margin: 2px 0 0 -2px }
    20% { margin: 1px 0 0 -2px }
    30% { margin: -1px 0 0 3px }
    40% { margin: 0px 0 0 1px }
    50% { margin: -2px 0 0 2px }
    60% { margin: -4px 0 0 1px }
    70% { margin: -1px 0 0 0px }
    80% { margin: 0px 0 0 2px }
    90% { margin: -3px 0 0 -2px }
    100% { margin: 0px 0 0 0px }
}
*/
@keyframes shake {
    0% { transform: translate(0,0) }
    10% { transform: translate(2px,-2px) }
    20% { transform: translate(1px,-2px) }
    30% { transform: translate(-1px,3px) }
    40% { transform: translate(0px,1px) }
    50% { transform: translate(-2px,2px) }
    60% { transform: translate(-4px,1px) }
    70% { transform: translate(-1px,0px) }
    80% { transform: translate(0px,2px) }
    90% { transform: translate(-3px,-2px) }
    100% { transform: translate(0px,0px) }
}

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