/* typos */
@font-face {
    font-family: "Rusch";
    src: url(../src/fonts/Rusch-GoticoAntiqua100G.otf);
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: "Infini";
    src: url(../src/fonts/infini-romain.otf);
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: "Infini";
    src: url(../src/fonts/infini-gras.otf);
    font-style: normal;
    font-weight: bold;
}

@font-face {
    font-family: "Infini";
    src: url(../src/fonts/infini-italique.otf);
    font-style: italic;
    font-weight: normal;
}

@font-face {
    font-family: "Javanese";
    src: url(../src/fonts/Javanese\ text.ttf);
    font-style: normal;
    font-weight: normal;
}

/* reset */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* variables */
:root{
    --bg_clr : #FFFCF2;
    --main_clr : #132f4d; 
}

main{
    overflow-y: scroll !important;
}

/* Scrollbar */
main::-webkit-scrollbar {
    background-color: transparent;
    width: 13px;
}

/* background of the scrollbar except button or resizer */
main::-webkit-scrollbar-track {
    background-color: transparent;
}

/* scrollbar itself */
main::-webkit-scrollbar-thumb {
    background-color: var(--main_clr);
    border-radius: 10px;
    border: 4px solid var(--bg_clr);
}

/* set button(top and bottom of the scrollbar) */
main::-webkit-scrollbar-button {
    display: none;
}

/* Book */
.books-inside{
    margin: 0;
}

.books-inside .book-back{
    height: 100vh !important;
    position: fixed;
    border-top: 0;
    top: 0;
}

/* the-powers-we-unlocked */
#the-powers-we-unlocked .book-back {
    transform: none !important;
}

/* Content */
#novel-content{
    margin: 50px;
    width: 100vw;
    margin: 60px;
}

section{
    display: grid;
    grid-template-columns: 140px 60px 1fr;
}

#novel-content h1{
    font-size: 40px;
    margin: 0;  
    width: fit-content;
}

#chapter{
    position: fixed;
    grid-column: 1;
}

.numbers{    
    grid-column: 2;
}

.numbers h1{
    position: sticky;
    top: 60px;
}


.parts{
    display: block;
    width: 100%;
    max-width: 700px;
    margin-bottom: 100px;
    margin-top: 50px;
    grid-column: 3;
    justify-self: end;
}

.parts-grid{
    display: flex;
}

.text{
    height: fit-content;
    margin-top: 10px;
    margin-left: 16px;
}

.text p{
    font-size: 16px;
    line-height: 23px;
    margin-bottom: 23px;
}

/* Line mumbers */
.line-numbers {
    width: 30px; 
    margin-right: 10px;
}

.line-number {
    line-height: 23.2px;
    color: var(--main_clr);  
    font-size: 16px;
    font-family: Javanese;
    text-align: right;
    opacity: 0;
}

/* go-up arrow */
#sectionArrow{
    display: block;
    position: relative;
    height: 575px;
}
#go-up {
    position: relative;
    top: 75%;
    left: 50%;
    transform: translateY(-50%);

    width: 40px;
    height: 40px;
    box-shadow: -1.5px 1.5px 0 black; 
    transform: rotate(135deg); 

    z-index: 10;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 968px){
    main{
        overflow-x: hidden !important;
        flex-direction: row !important;
    }
}
@media (max-width: 722px){
    main{
        overflow-x: hidden !important;
        flex-direction: row !important;
    }
    section{
        display: block;
    }
    #chapter{
        position: relative;
        left: 14px;
    }
    .numbers{
        position: relative;
        left: 14px;
    }
}
@media (max-width: 430px){
    .text p{
        font-size: 14px;
        line-height: normal;
    }
    #novel-content{
        margin-right: 30px;
    }
}

/* title */
@media (max-width: 1358px){
    h1.the-twilight-of-unnamed{
        width: 414px !important;
    }
    h1.the-powers-we-unlocked{
        left: -20px;
    }
}
@media (max-width: 1280px){
    h1.the-powers-we-unlocked{
        width: 244px !important;
    }
}
@media (max-width: 1200px){
    h1.the-twilight-of-unnamed{
        width: 238px !important;
    }
    h1.shadows-of-darkhos-a-whisper-in-the-abyss{
        width: 214px !important;
    }
    h1.terrifying-grade{
        width: 214px !important;
    }
}
@media (max-width: 1165px){
    h1.the-twilight-of-unnamed{
        width: 200px !important;
    }
}
@media (max-width: 1145px){
    h1.the-snow-giant{
        width: 200px !important;
    }
}
@media (max-width: 1090px){
    h1.blade-of-fear{
        width: 200px !important;
    }
}
@media (max-width: 1040px){
    h1.the-powers-we-unlocked{
        left: -30px;
    }
}
@media (max-width: 722px){
    h1.the-twilight-of-unnamed, h1.shadows-of-darkhos-a-whisper-in-the-abyss, h1.the-powers-we-unlocked, h1.terrifying-grade, h1.blade-of-fear, h1.the-snow-giant{
        width: fit-content !important;
    }
    h1.the-powers-we-unlocked{
        left: 0;
    }
}

@media (max-width: 426px) and (min-height: 752px) {
    #the-twilight-of-unnamed .title {
        font-size: 20px;
        height: 420px;
    }
}
@media (max-width: 430px) and (min-height: 932px) {
    #the-twilight-of-unnamed .title {
        font-size: 20px;
        height: 420px;
    }
}