* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.splash {
      position: fixed;
      width: 100vw;
      height: 100vh;
      background-color: rgba(255, 255, 242, 0.93);
      display: none;
      justify-content: center;
      align-items: center;
      text-align: center;
      font-size: 1.5rem;
      color: #132e52;
      z-index: 99;
      transition: all 0.3s ease;
      cursor: pointer;
      white-space: nowrap;
}
#splash1 p, #splash2 p {
    position: absolute;
    left: 7vw;
    top: 35vh;
    text-align: left;
}
#splash1 img, #splash2 img {
    position: absolute;
    right: 7vw;
    top: 32vh;
}
#splash1 h4, #splash2 h4 {
    position: absolute;
    bottom: 22vh;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: #607388;
    z-index: 101;
}
header {
    position: fixed;
    height: 8vh;
    width: 100vw;
    top: 0;
    left: 0;
    z-index: 85;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #132e52;
    border-bottom: 5px solid #fdd000;
}
header img {
    max-height: 60%;
    height: auto;
}
main {
    margin-top: 10vh;
    padding: 20px;
}
:root {
  font-family: Inter, sans-serif;
  font-feature-settings: 'liga' 1, 'calt' 1;
}
@supports (font-variation-settings: normal) {
  :root { font-family: InterVariable, sans-serif; }
}
body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 8vh;
    padding-bottom: 8vh;
    overflow-y: hidden;
    overflow-x: auto;
    font-family: sans-serif;
    background-color: #d4d4d2;
}
footer {
position: fixed;
    bottom: 0;
    width: 100vw;
    z-index: 85;
    padding: 15px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: #132e52;
    border-top: 5px solid #fdd000;
    color: #fffff2;
    flex-wrap: wrap;
}
footer .footer-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 4px;
    font-size: 0.85em;
    min-width: 180px;
}
footer a {
    color: #fffff2;
    text-decoration: none;
}
@media (max-width: 768px) {
    footer {
        flex-direction: column;
        height: auto;
        padding: 7px 7px;
    }
    footer .footer-column {
        min-width: unset;
        margin: 5px 0;
        font-size: 0.7em;
        text-align: center;
    }
    footer a {
        font-size: 0.9em;
    }      
    #prev-btn,
    #next-btn {
        display: none;
    }
}

/* Book */
.book {
    position: relative;
    width: 750px;
    height: 500px;
    max-width: 100vw;
    transition: transform 0.5s;
}
.paper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    perspective: 1500px;
}
.front,
.back {
    background-color: #fffff2;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform-origin: left;
    transition-delay: 0.1s;
    transition: transform 0.5s;
}
.front {
    z-index: 1;
    backface-visibility: hidden;
}
.back {
    z-index: 0;
}
.front-content,
.back-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.back-content {
    transform: rotateY(180deg)
}
/* Paper flip effect */
.flipped .front,
.flipped .back {
    transform: rotateY(-180deg);
}
/* Controller Buttons */
button {
    color: #fffff2;
    background-color: #132e52;
    border-radius: 10px;
    cursor: pointer;
    max-width: 100vw;
    margin: 10px;
    transition: transform 0.5s;
}
button:hover{
  color: #fdd000;
  background-color: #0c1c32;
  transition: all 0.5s;
}
i {
    font-size: 50px;
    color: #fffff2;
}
/* Paper stack order */
#p1 {
    z-index: 3;
}
#p2 {
    z-index: 2;
}