html {
    background-color: #E2A571;
    margin: 0;
    background-image: url("../../assets/progress-log/web-bg-1.webp");
    background-repeat: repeat-x;
    font-family: "AnimeAce";
}

body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
}

main {
    height: 85%;
    width: 95%;
    background-color: #C9925B;

    border: solid 0.15em black;

    margin: 2em;
    display: flex;

    justify-content: space-around;
    align-items: center;
}

.border {
    border: solid 0.2em black;
}

.book-page-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 67%;
    height: 87%;
}

.book-page {
    height: 100%;
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    background-color: #FFFFFF;

    overflow-y: auto;
}

.book-page-inner {
    padding: 10%;
}

.img-border {
    padding-top: 0%;
}

#book-cover-page-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10%;
}

#vanier-inner-title {
    font-size: 3rem;
    letter-spacing: 5%;
    text-align: center;
    width: 100%;
}

#red-I-letter {
    color: #990000;
}

hr {
    color: #664A24;
    border-color: #664A24;
    background-color: #664A24;
    height: 0.05rem;
    width: 100%;
}

#moduel-title {
    font-size: 2rem;
    color: black;
    text-align: right;
    width: 100%;
}

#cover-image-container {
    width: 100%;
    height: 100%; 
}

#book-cover-image {
    max-width: 100%; 
    height: auto; 
    border: solid #990000 0.2rem;
}

.book-page-title {
    border: 0.1rem solid black;
    padding: 0.1rem;
    text-align: center;
}

.book-page-subtitle {
    text-decoration: underline;
    text-align: center;
}

.book-page-paragraph {
    text-align: center;
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
}

.book-page-img-container {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    height: 100%;
    margin-bottom: 5px;
}

.book-page-img-container img {
    max-width: 100%; 
    max-height: 100%;
    object-fit: contain;
    margin-top: 5px;
    margin-bottom: 5px;
    border: solid #990000 0.2rem;
}

.book-page-cover {
    background-color: #F6EA8B;
    width: 50%;
    height: 100%;
}

#page-left {
    box-shadow: inset -5px 0 10px 1px rgba(0, 0, 0, 0.25);
}

#page-right {
    box-shadow: inset 5px 0 10px  1px rgba(0, 0, 0, 0.25);
}

#manga-reminder-right {
    box-shadow: inset 5px 0 10px 1px rgba(0, 0, 0, 0.25);
}

.manga-struct {
    color: white;
    background-color: black;
    box-shadow: inset -5px 0 10px 1px rgba(255, 255, 255, 0.25);
}

.side-nav {
    height: 100%;
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.arrow-img {
    max-width: 100%;
    height: auto;
}

.arrow-img:hover {
    scale: 105%;
    cursor: pointer;
}


.arrow-right-img {
    transform: scaleX(-1);
}

.candle-img {
    scale: 90%;
    max-width: 100%;
    padding-top: 5%;
    height: auto;
    transition: filter 0.25s ease
}

/* More colours layers */
.candle-img:hover {
    filter: drop-shadow(0 0 30px rgba(254, 142, 38));
    filter: drop-shadow(inset 0 0 30px rgba(248, 207, 75));
    filter: drop-shadow(0 0 20px rgba(255, 170, 60, 0.85));
    filter: drop-shadow(0 0 40px rgba(255, 120, 20, 0.7));
    
    transition: filter 0.5s ease, transform 1s ease;
    
    scale: 101%;
}

.candle-img.flicker {
    filter: drop-shadow(0 0 30px rgba(254, 142, 38));
    filter: drop-shadow(inset 0 0 30px rgba(248, 207, 75));

    filter: drop-shadow(0 0 20px rgba(255, 170, 60, 0.85));
    filter: drop-shadow(0 0 40px rgba(255, 120, 20, 0.7));

    transition: filter 0.5s ease, transform 1s ease;
    transform: scale(1.01);
}

.candle-img-container {
    position: absolute;
    top: 0;
}

.mobileArrowNav {
    display: none;
}

.top-nav {
    position: fixed;
    width: 20%;
    object-fit: contain;
    top: 1%;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    padding: 1%;
    border-radius: 5%;

    background: rgba(0, 0, 0, 0.3); /* try not too distrating */

    z-index: 9999; 
}

.nav-link {
    padding: 2%;
    padding-left: 5%;
    padding-right: 5%;

    cursor: pointer;
    text-decoration: none;
    color: white;
    font-weight: 500;

    font-size: larger;

    transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-link:hover {
    transform: scale(1.1);
}

.book-page-paragraph {
    text-align: left;
}
#page-number-left {
    text-align: left;
}

#page-number-right {
    text-align: left;
}

/* I feel like around this width you lose the book feel */
@media (max-width: 900px) {

    body {
        overflow: hidden;
    }

    main {   
        height: 90%;
        width: 97%;
        display: flex;
        flex-direction: column;
        padding: 0.5rem;
    }

    .top-nav {
        width: 40%;
        padding: 1%;
        border-radius: 5%;
    }

    .nav-link {
        padding: 5%;
        padding-left: 10%;
        padding-right: 10%;
    }
    
    .book-page-inner {
        padding: 5%;
    }   

    .book-page-container {
        width: 100%;
        overflow: hidden;
        padding: 0.2rem; /* force the border with the same width */
    }

    .book-page-cover {
        overflow: hidden;
    }

    #cover-image-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-height: 70vh; 
        box-sizing: border-box;
    }

    #book-cover-image {
        max-width: 90%;
        max-height: 100%; /* image fits container height */
    }
    
    .candle-img-container {
        display: none;
    }

    .side-nav {
        display: none;
    }

    .book-page-img-container {
        height: auto;
    }

    .book-page-img-container img {
        max-width: 100%;
        height: auto; 
        max-height: 80vh; 
    }

    
    .mobileArrowNav {
        display: flex !important;
    } 

    .arrow-img {
        padding-left: 2.5px;
        padding-right: 2.5px;
        touch-action: manipulation; /* little trick to prevent the double tap zoom */
    }

    
}

@media (max-width: 500px) {

    main {   
        width: 100%;
        margin: 0;
        padding: 0.5rem;
        box-sizing: border-box;
    }

    .book-page-container {
        width: 99%;
    }
    
}

