
html, body {
    height: 100%;
}

body {
    font-family: 'Kufam', cursive;
}

div.dark {
    background: #000;
}

/* MISC */
input.narrow {
    max-width: 60px;
}

.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 60px; /* Set the fixed height of the footer here */
  line-height: 60px; /* Vertically center the text there */
  background-color: #f5f5f5;
  z-index: 2;
  -webkit-box-shadow: inset 0px 9px 2px -8px rgba(0,0,0,0.28);
    -moz-box-shadow: inset 0px 9px 2px -8px rgba(0,0,0,0.28);
    box-shadow: inset 0px 9px 2px -8px rgba(0,0,0,0.28);
}

.document-reader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: scroll;
    z-index: 1;
    background: url('../images/dark-wood.png');
}

.document {
    background: url('../images/paper.png');
    margin-top: 80px;
    margin-bottom: 80px;
    padding: 60px 40px;
    font-size: 250%;
}

.author-dane {
    font-family: 'Waiting for the Sunrise', cursive;
}

.polaroid {
    background: url('../images/polaroid.png');
    padding: 50px;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
    transform: rotate(1deg);
    border: 1px solid #999;
    display: block;
    margin: 40px auto;
}

.polaroid-flip {
    display: block;
    margin: 40px auto;
    perspective: 1200px;
    transform: rotate(1deg);
    text-align: center;
}

.polaroid-flip-button {
    background: transparent;
    border: 0;
    padding: 0;
    display: inline-block;
    cursor: pointer;
}

.polaroid-flip-inner {
    position: relative;
    width: 100%;
    display: block;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.polaroid-flip.is-flipped .polaroid-flip-inner {
    transform: rotateY(180deg);
}

.polaroid-flip-face {
    backface-visibility: hidden;
}

.polaroid-flip-front {
    position: relative;
}

.polaroid-flip-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.polaroid-flip-front .polaroid {
    margin: 0;
    transform: none;
}

.polaroid-flip-front img {
    display: block;
}

.polaroid-flip-back {
    background: #fff;
    border: 1px solid #999;
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
    transform: rotateY(180deg);
}

.polaroid-flip-back-inner {
    background: url('../images/polaroid.png');
    padding: 50px;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.4px;
    text-align: center;
}

.polaroid-flip-back-inner span {
    background: #fff;
    color: #fff;
    padding: 2px 6px;
}

.polaroid-flip-back-inner a {
    color: inherit;
    text-decoration: none;
}
