.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    flex-direction: column;
    padding-top: 20px;
    width: fit-content;
    margin: 0 auto;
    background-color: transparent;
}

/* ! CSS CODE FOR THE SECTION BOOK */
.container .book {
    margin-bottom: 1em;
    height: auto;
    width: 80vw;
    /* border: 1px solid var(--main-container-color); */
    background-color: var(--main-container-color);
    box-shadow: 0 2px 3px 3px var(--black-color);
    border-radius: 5px;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    position: relative;
}

.book .bgc-img {
    background-image: url(../img/books/berserk.jpg);
    background-size: cover;
    background-position: top;
    opacity: 0.5;
    filter: blur(3px);
    height: 150px;
    width: 100%;
}

.book .cover {
    position: absolute;
    top: 50px;
    left: 15px;
    display: flex;
    flex-direction: row;
    height: fit-content;
    width: fit-content;
}

.book .cover img {
    height: 130px;
    width: 80px;
}

.book .cover .title {
    margin-left: 10px;
    margin-right: 10px;
    height: 75px;
    /* wrapping the text to the next line */
    white-space: wrap;
    overflow: hidden;
}

.book .cover .title h1 {
    text-align: start;
    color: #fff;
    font-size: 20px;
    width: 190px;
    height: 60px;
}

.book .cover .title h2 {
    text-align: start;
    color: var(--main-font-color);
    bottom: 0;
    font-size: 10px;
    font-weight: normal;
    width: 190px;
    height: 15px;
    overflow: hidden;
}

.book .main {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* ? ASIDE */
.book .main .aside {
    color: white;
    margin-top: 50px;
    width: 95px;
    margin-left: 8px;
    margin-right: 10px;
    display: flex;
    flex-direction: column;
}

.book .main .aside .status {
    padding: 2px;
    margin-top: 10px;
    /* border: 1px solid var(--main-container-color); */
    box-shadow: 0 1px 0 2px var(--black-color);
    border-radius: 5px;
    display: flex;
    justify-content: space-around;
    gap: 5px;
    cursor: default;
}

.book .main .aside .status h3 {
    font-size: 10px;
}

.book .main .aside .status p {
    font-size: 10px;
    font-weight: normal;
    color: var(--second-font-color);
}

/* ? TYPE */

.book .main .aside .type {
    padding: 2px;
    margin-top: 10px;
    /* border: 1px solid var(--main-container-color); */
    box-shadow: 0 1px 0 2px var(--black-color);
    cursor: default;
    border-radius: 5px;
    display: flex;
    justify-content: space-around;
    gap: 5px;
}

.book .main .aside .type h3 {
    font-size: 10px;
}

.book .main .aside .type p {
    font-size: 10px;
    color: var(--second-font-color);
}

/* ? GENRE */

.book .main .aside .genre {
    padding: 2px;
    margin-top: 10px;
    /* border: 1px solid var(--main-container-color); */
    box-shadow: 0 1px 0 2px var(--black-color);
    cursor: default;
    border-radius: 5px;
    display: flex;
    justify-content: space-around;
    gap: 5px;
}

.book .main .aside .genre h3 {
    font-size: 10px;
}

.book .main .aside .genre p {
    font-size: 10px;
    color: var(--second-font-color);
}

/* ? AUTHOR */
.book .main .aside .author {
    padding: 2px;
    margin-top: 10px;
    /* border: 1px solid var(--main-container-color); */
    box-shadow: 0 1px 0 2px var(--black-color);
    cursor: default;
    border-radius: 5px;
    display: flex;
    justify-content: space-around;
    gap: 5px;
}

.book .main .aside .author h3 {
    font-size: 10px;
}

.book .main .aside .author p {
    font-size: 10px;
    color: var(--second-font-color);
}


/* ? STAR ⭐ */
.main .aside .star-rating {
    padding: 2px;
    display: flex;
    justify-content: center;
    color: white;
    /* border: 1px solid var(--main-container-color); */
    box-shadow: 0 1px 0 2px var(--black-color);
    cursor: default;
    border-radius: 5px;
    width: 95px;
    height: 20px;
}

.main .aside .star-rating .material-symbols-outlined {
    text-align: center;
    color: yellow;
    font-size: 15px;
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24,
}

/* ? SYNOPSIS */
.book .main .synopsis {
    margin-left: 10px;
    margin-right: 10px;
    width: 195px;
    margin-top: 10px;
}

.book .main .synopsis h2 {
    font-weight: normal;
    text-align: start;
    color: var(--main-font-color);
    font-size: 13px;
}

.book .main .synopsis p {
    padding-left: 10px;
    padding-right: 10px;
    text-align: start;
    color: var(--second-font-color);
    font-size: 10px;
    font-weight: normal;
    overflow: hidden;
}

/*! CODE FOR INVERTING */
.container .chapter .header h5 {}


/* !CSS CODE for the section CHAPTER */
.container .chapter {
    height: 200px;
    width: 80vw;
    display: flex;
    flex-direction: column;
    /* border: 1px solid var(--main-container-color); */
    background-color: var(--main-container-color);
    box-shadow: 0 2px 3px 3px var(--black-color);
    border-radius: 5px;
}

/* ? HEADER OF CHAPTER */

.container .chapter .header {
    padding: 5px 5px 5px 5px;
    gap: 1em;
    display: flex;
    height: 25px;
    width: 100%;
    border-bottom: 3px solid var(--black-color);
    margin-bottom: 5px;
}

.container .chapter .header h3 {
    font-size: 12px;
    color: var(--main-font-color);
    font-weight: bold;
    text-align: center;
}

.container .chapter .header h2 {
    font-style: italic;
    font-size: 10px;
    color: var(--main-font-color);
    font-weight: normal;
    text-align: center;
    /* ? add ellipsis when overflow */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ? CHAPTERS */
.container .article {
    font-family: var(--second-font-family);
    display: flex;
    flex-direction: column;
    gap: 1em;
    overflow-y: scroll;
    overflow-x: hidden;
    align-items: center;
    padding-bottom: 10px;
}
/*? SORT BUTTON */
.container .chapter .header button {
    margin-left: auto;
    margin-right: 20px;
    background-color: transparent;
    color: white;
}

.container .chapter .header button i {
    font-size: 20px;
}

.container .chapter .header button:hover {
    transform: scale(1.1);
    color: var(--idk-color);
}

.container .chapter .header button:hover::after {
    content: 'Sort';
    position: absolute;
    top: 0;
    color: white;
    font-size: 10px;
    margin: 10px;
}

.container .article .chapter {
    border-radius: 5px;
    padding: 5px;
    margin-top: 5px;
    width: 90%;
}

.container .article .chapter a {
    padding-left: 10px;
    text-decoration: none;
}

.container .article .chapter a h3 {
    font-size: 10px;
}

.container .article .chapter:hover {
    /* background-color: var(--hover-color); */
    box-shadow: 0 1px 0 2px var(--idk-color);
    border-radius: 5px;
}

.container .article .chapter a h3:hover {
    color: var(--idk-color);
}

@media only screen and (min-width: 600px) {

    .book .bgc-img {
        height: 200px;
    }

    .book .cover img {
        height: 180px;
        width: 120px;
    }

    .book .cover .title {
        height: 100px;
    }

    .book .cover .title h1 {
        font-size: 1.5rem;
        width: 100%;
        height: 70px;
    }

    .book .cover .title h2 {
        font-size: 1rem;
        width: 100%;
        height: 30px;
    }

    .book .main {
        justify-content: space-around;
    }

    .book .main .aside {
        width: 30%;
    }

    .book .main .aside .status h3,
    .book .main .aside .type h3,
    .book .main .aside .genre h3,
    .book .main .aside .author h3 {
        font-size: 1rem;
    }

    .book .main .aside .status p,
    .book .main .aside .type p,
    .book .main .aside .genre p,
    .book .main .aside .author p {
        font-size: 1em;
    }

    .book .main .synopsis {
        width: 70%;
    }

    .book .main .synopsis h2 {
        font-size: 1rem;
    }

    .book .main .synopsis p {
        font-size: 1rem;
    }

    .main .aside .star-rating {
        width: 133px;
    }

    /*! MEDIA QUERY CHAPTERS */
    .container .chapter {
        height: 30vh;
    }
    .container .chapter .header {
        height: 35px;
    }

    .container .chapter .header h3 {
        font-size: 15px;
    }

    .container .chapter .header h2 {
        font-size: 12px;
    }

    .container .article .chapter h3 {
        font-size: 15px;
    }
}

@media only screen and (min-width: 1024px){

    /*? book head container where image is */
    .container .book .bgc-img {
        height: 300px;
    }

    .book .main  {
        height: 300px;
    }

    .container .book .cover {
        left: 100px;
    }

    .container .book .cover img {
        height: 250px;
        width: 200px;
    }

    /*? code where synopsis is */

    .container .book .main .aside {
        width: 200px;
    }

    .container .book .main .aside .status,
    .container .book .main .aside .type,
    .container .book .main .aside .genre,
    .container .book .main .aside .author
     {
        width: 100%;
    }

    .container .book .main .aside .star-rating {
        width: 100%;
    }

    .container .book .main .synopsis {
        width: 500px;
    }
}