/*
* ltstorage - main css
*/

/*
* resource setup
*/

@font-face {
    font-family: "M+ 2p";
    src: url('rsrc/mplus-2p.ttf');
    /* a big thanks to the M+ FONTS PROJECT for providing their design under the Free License */
}

@font-face {
    font-family: "Vollkorn";
    src: url('rsrc/vollkorn.ttf');
}

/*
* elements
*/

* {
    margin:0px;
    padding:0px;
}

body {
    font-family: "M+ 2p", sans-serif;
    font-size: 18px;
    color: #242424;
    background: #fff;
    text-align: center;
}

h1 {
    font-size: 3em;
}

h2 {
    font-size: 2em;
}

small {
    font-size: 0.6em;
}

p {
    font-family: "Vollkorn", sans-serif;
    line-height: 1.6em;
}

/*
* general
*/

.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-white {
    color: rgba(255, 255, 255, 0.9);
}

.text-capital-first::first-letter {

    font-size: 1.7em;
    text-align: justify;
}

.text-animate-fade-in {
    animation: 2s forwards paused animation-text-fade-in;
}

.image {
    position: relative;
    max-width: 100%;
    max-height: 100%;
}

.image img, .image video {
    max-width: 100%;
    max-height: 95%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.image .image-caption {
    margin-top: 1em;
    white-space: normal;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}

.image-full {
    overflow: hidden;
}

.image-full img {
    min-width: 100%;
    min-height: 100%;
}

.image-animate-pan-up img {
    position: relative;
    z-index: -2;
    animation: 15s ease-out forwards paused animation-image-pan-up;
}

.overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
}

.tutorial-box {
    position: absolute;
    bottom: 2em;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.4;
}

/*
* icons
*/

.icon-loading {
    width: 5em;
    height: 5em;
    border: 2px solid rgba(255, 255, 255, 1);
    border-radius: 50%;
    animation: 2.25s ease-out infinite animation-icon-loading;
}

/*
* default page
*/

.page {
    position: relative;
    width: 100%;
    height: 100%;
}

.page::before {
    content: "";
    position: absolute;
    bottom: 0.7em;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
}

.page::after {
    content: attr(id);
    position: absolute;
    bottom: 0;
    left: 50%;
    color: rgba(0, 0, 0, 0.3);
    transform: translateX(-50%);
}

.page p {
    max-width: 50%;
    max-height: 50%;
    font-size: 1.5em;
}

/*
* special pages
*/

.page-cover {
    overflow: hidden;
    box-shadow: 0 0 2em rgba(0, 0, 0, 0.5);
}

.page-cover::before, .page-cover::after {
    display: none;
}

.page-cover h1 {
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.page-cover h1 small {
    opacity: 0.7;
}

.page-cover .overlay {
    z-index: -1;
    background: rgba(0, 0, 0, 0.2);
}

.page-cover .page-cover-image {
    position: absolute;
    z-index: -2;
    min-width: 100%;
    min-height: 100%;
}

.page-cover .page-cover-image:nth-of-type(1) {
    z-index: -2;
    animation: 30s ease-out infinite animation-page-cover-image;
}

.page-cover .page-cover-image:nth-of-type(2) {
    min-width: 125%;
    min-height: 125%;
    z-index: -3;
    animation: 30s ease-out 10s infinite animation-page-cover-image;
}

.page-cover .page-cover-image:nth-of-type(3) {
    min-width: 125%;
    min-height: 125%;
    z-index: -4;
    animation: 30s ease-out 20s infinite animation-page-cover-image;
}

.page-cover .tutorial-box {
    color: #fff;
}

.page-half {
    display: inline-block;
    position: relative;
    width: 50%;
    height:100%;
    margin: -3px;
}

.page-half:nth-of-type(1) p {
    text-align: left;
}

.page-half:nth-of-type(2) p {
    text-align: left;
}

.overlay-loading {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100;
    background: #fff;
}

/*
* image stack
*/

.image-stack {
    position: relative;
    width: 50%;
    height: 50%;
}

.image-stack .image {
    display: none;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.image-stack .image:nth-child(n+1):nth-child(-n+4) {
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
}

.image-stack .image:nth-child(1) {
    transform: translate(-50%, -50%);
}

.image-stack .image:nth-child(2) {
    z-index: -1;
    transform: translate(-50%, -50%) rotate(-3deg);
    opacity: 0.9;
}

.image-stack .image:nth-child(3) {
    z-index: -2;
    transform: translate(-50%, -50%) rotate(-6deg);
    opacity: 0.6;
}

.image-stack .image:nth-child(4) {
    z-index: -3;
    transform: translate(-50%, -50%) rotate(-9deg);
    opacity: 0.2;
}

.image-stack .image-caption {
    display: none;
}

.image-stack .image img, .image-stack .image video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.image-stack .stack-caption {
    display: block;
    position: absolute;
    bottom: -2em;
    left: 50%;
    width: 100%;
    transform: translate(-50%, 100%);
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3);
}

.image-stack-open {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

.image-stack-open .image {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 79%;
    height: 79%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s, width 0.3s, height 0.3s;
}

/*.image-stack-open .image img, .image-stack-open .image video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}*/

.image-stack-open .image-active {
    width: 80%;
    height: 80%;
    z-index: 1;
    opacity: 1;
}

.image-stack-open .image-active .image-caption {
    display: block;
    color: rgba(255, 255, 255, 0.9);
}

.image-stack-open .stack-caption {
    display: none;
}

/*
* panorama
*/

.panorama-stack {
    position: relative;
    width: 80%;
    height: 50%;
}

.panorama-stack .image {
    position: relative;
    width: auto;
    height: 100%;
    overflow-x: scroll;
}

.panorama-stack .image img {
    max-width: none;
    max-height: 100%;
}

.panorama-stack .image .image-caption {
    position: fixed;
    right: 0;
    bottom: 0.9em;
    left: 0;
    margin: 0;
    padding: 0.25em;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    opacity: 1;
    transition: opacity 0.3s;
}

.panorama-stack:hover .image .image-caption {
    opacity: 0;
}

/*
* animations
*/

@keyframes animation-icon-loading {
    0% { border-color: rgba(0, 0, 0, 0); width: 1em; height: 1em; }
    30% { border-color: rgba(0, 0, 0, 0.9); }
    100% { border-color: rgba(0, 0, 0, 0); width: 6em; height: 6em; }
}

@keyframes animation-overlay-loading-hide {
    99% { z-index: 100; opacity: 0; }
    100% { z-index: -100; opacity: 0; }
}

@keyframes animation-page-cover-image {
    0% { z-index: -2; min-width: 125%; min-height: 125%; opacity: 1; }
    30% { opacity: 1; }
    33% { z-index: -2; min-width: 110%; min-height: 110%; opacity: 0; }
    95% { z-index: -4; min-width: 125%; min-height: 125%; opacity: 0; }
    100% { z-index: -4; min-width: 125%; min-height: 125%; opacity: 1; }
}

@keyframes animation-text-fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes animation-image-pan-up {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0%); }
}
