/* General */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    height: 100%; width: 100%;
    cursor: url('pointer.cur'),default
}

body {
    opacity:0;
    display: block;
    background-color: rgb(139, 186, 255);
    background-image:url('background.png');
    background-size:100% 100%;
    overflow: hidden;
    font-family: "Stardew Valley";
    color:#4e1300;
    cursor: url('pointer.cur'),default;
    user-select: none;
 }

#book {
    position:absolute;
    margin-top: 5vh;
    margin-left: 50%;
    font-size: 1.5rem;
    color:#4e1300;
    width: 18%; height: 50%;
    transition: transform .5s linear 0s, width 0.5s linear,height 0.5s linear;
    perspective: 2000px;
    z-index: 0;
}

#emblem {
    position:absolute;
    height:52%;width:79%;left:12%;top:7%;
}

.paper {
    position:absolute;
    height:96%; width: 96%;top: 2%;
    line-height: 120%;
    transform-style: preserve-3d;
    transform-origin: Left;
    transition-property: transform;
    transition-duration: 1s;
    transition-delay:0s ;
}

.front, .back {
    position: absolute;
    width: 100%; height: 100%;
    border:  1px solid black;
    background-color:bisque;
    padding-top: 5%;
    padding-left: 8%;padding-right: 8%;
}

.front{ transform: translateZ(1px); }

.back { transform: rotateY(180deg); } 

.frontcover, .backcover{
    position: absolute;
    width: 100%; height: 100%;
    top: 0px;
    background-color: transparent;
}

.insidecover{ width:96%;height:96%; top: 2%; }

#logo{
    height:30%;width:70%;margin-left:15%;
    margin-top:10%; 
}

.unsetmargines{
    padding-top: 0;
    padding-left: 0;padding-right: 0;
}

.flipped { transform: rotateY(0) }

#lblday{ float: left;text-indent:2rem }

#dayvalue{
    text-indent:1rem;
}
 
#dayslider {
    appearance: none;
    position:absolute;
    left:8%;width:84%;top:86%;font-size: 0;
    background-color: rgba(0, 0, 0, 0);
}

#dayslider::-webkit-slider-thumb {
    appearance: none;
    width: 15%; height: 100%;
    background-color: #7a5120;
    border: 2px solid black;
    border-radius: 50%;
    cursor: url('pointer.cur'),default
}

#dayslider::-webkit-slider-runnable-track {
    appearance: none;
    height: 3vh;  
    cursor: url('pointer.cur'),default;
}

/* Customization */
.menuframe{
    position:absolute;
    height:100%;width:100%;
    z-index:-1
}
.menutext{
    text-align: center; 
    margin-top:2.2vh;
    line-height:.7;
}
#open-btn{
    position:absolute;
    left:85%;top:5vh; height:16%;width:10%;
    font-size:2.2rem;  
}
#next-btn{
    position: absolute;
    left:85%;top:24vh; height:10%;width:10%;
    font-size: 2.2rem;
}
#prev-btn{
    position: absolute;
    left:85%;top:37vh; height:10%;width:10%;
    font-size: 2.2rem;
}
#close-btn{
    position: absolute;
    left:85%;top:50vh; height:10%;width:10%;
    font-size: 2.2rem;
}
.orangeheader{
    text-align:center;font-size: 2rem; color:#e27a3e;
}
.resizeimage{
    width: 100%;height: 100%;
}
.infoBox{ 
    position: relative;
    margin: 30vh auto;
    height: 200px;width:300px;
}
.rotateImg{
    position: absolute;
    width: 100%;height: 100%;
}
.rotateMessage{
    position: absolute;
    font-size: 40px;
    margin-top: 52px;
    line-height: .8;
    text-align:center;
    width:300px;
}

@font-face {
    font-family: "Stardew Valley";
    src: url('fonts/Stardew_Valley.ttf') ;
    font-display: block; /* Fix flickering */}

@keyframes changeindex { 0%{z-index: 3} 100%{z-index: 0}}
@keyframes openingpagezindex { 0%{z-index: 0}  100%{z-index: 3;}}

@media (orientation: portrait){
  body            { background-size:cover;  }
  .GUI            { display: none;          }
  .infoBox        { display: block;         }
}
@media (orientation: landscape){
  .GUI            { display: block;         }
  .infoBox        { display: none;          }
 }
