@font-face {
    font-family: 'Helvetica Round';
    src: url('/assets/fonts/helvetica-round.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

html {
    height: 100%;
}

body {
    background-image: url("assets/images/paper.png");
    background-size: 256px;
    background-repeat: repeat;
    font-family: 'Helvetica Round', sans-serif;
    background-color: #D6E8F2;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    cursor: url('assets/images/cursor.png'), auto;
}

.page-container {
    flex: 1;
}

marquee {
    font-size: 2rem;
    font-weight: bold;
    color: #E54A75;
    margin-top: 1rem;
}

.content {
    max-width: 800px;
    margin: 2rem auto;
    line-height: 1.5;
    text-align: justify;
    padding: 0 1rem;
    box-sizing: border-box;
}

.content h1 {
    font-size: 2.5rem;
    border-bottom: 5px solid rgb(41, 23, 23);
    padding-bottom: 0.5rem;
}

.content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
}

.footer {
    background-image: url("assets/images/leather.png");
    background-size: 128px;
    background-color: #6EC2F6;
    padding: 1rem;
    text-align: center;
    border-color: rgb(41, 23, 23);
    border-style: dashed;
    font-size: 0.9rem;
    color: white;
}

@keyframes tilt {
    0%, 100% {
        transform: rotate(-7.5deg);
    }
    50% {
        transform: rotate(7.5deg);
        transform: scale(1.5);
    }
}

@keyframes tilt_noscale {
    0%, 100% {
        transform: rotate(-15deg);
    }
    50% {
        transform: rotate(15deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 10px;
        align-items: center;
    }

    .navbar img {
        width: 60px;
        height: auto;
        margin-top: 5px;
    }

    .navbar a {
        font-size: 0.8rem; /* Reduce font size for mobile */
        padding: 0.3rem; /* Reduce padding for mobile */
        white-space: nowrap;
    }

    .content {
        margin: 1rem auto;
        padding: 0 1rem;
    }

    .content h1 {
        font-size: 2rem;
    }

    marquee {
        font-size: 1.5rem;
    }

    .content img {
        margin-left: auto;
        margin-right: auto;
    }
}

input {
    display: none;
}
.book {
    display: flex;
}

#cover {
    width: 345px;
    height: 540px;
    background-image: url("/assets/book/page_left.png");
    background-size: 100%;
    padding: 0 30px;
}
.flip-book {
    width: 405px;
    height: 540px;
    position: relative;
    perspective: 1500px;
}
.flip {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: left;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition: .5s;
    color: #000;
}
.front {
    position: absolute;
    width: 405px;
    height: 540px;
    top: 0;
    left: 0;
    background-image: url("/assets/book/page_right.png");
    background-size: 100%;
    box-sizing: border-box;
    padding: 0 30px;
    /* box-shadow: inset 20px 0 50px r; */
}

.back {
    position: absolute;
    width: 405px;
    height: 540px;
    top: 0;
    left: 0;
    background-image: url("/assets/book/page_left.png");
    background-size: 100%;
    box-sizing: border-box;
    padding: 0 30px;
    z-index: 99;
    transform: rotateY(180deg);
    backface-visibility: hidden;
}
.next-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    color: #000;
}

.back-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    cursor: pointer;
    color: #000000;
}

#p1 {
    z-index: 3;
}
#p2 {
    z-index: 2;
}
#p3 {
    z-index: 1;
}

#c1:checked ~ .flip-book #p1 {
    transform: rotateY(-180deg);
    z-index: 1;
}
#c2:checked ~ .flip-book #p2 {
    transform: rotateY(-180deg);
    z-index: 2;
}
#c3:checked ~ .flip-book #p3 {
    transform: rotateY(-180deg);
    z-index: 3;
}

.mobile_info{
    display: none;
    @media only screen and (max-width: 768px){
        display: block;
    }
}

.book-container {
    display: none;
    @media only screen and (min-width: 768px) {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    padding-top: 2rem;
    text-align: left;
    font-size: 10pt;
    }
}
.book-container h2{
    font-size: 18pt;
    text-align: center;
}

.spellbook {
    @media only screen and (min-width: 768px) {
    position: absolute;
    width: 940px; /* Maintain aspect ratio and limit max-width */
    height: auto; /* This will maintain the aspect ratio */
    max-height: 620px; /* Set a maximum height if needed */
    max-width: 940px;
    z-index: -1;
    }
}