:root {
    --color-chapter: #af4d0d;
    --color-page: #206ea7;
}

.grid { /*✅*/
    display: grid;
    grid-column-gap: 24px;
    grid-row-gap: 24px;
}

.grid.third { /*✅*/
    grid-template-columns: 1fr 1fr 1fr;
}

.grid-card { /*✅*/
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-color: #ddd;
    margin-bottom: 24px;
    border-radius: 4px;
    overflow: hidden;
    min-width: 100px;
    color: #444;
    transition: border-color ease-in-out 120ms, box-shadow ease-in-out 120ms;
}

a {
    color: var(--color-primary);
    fill: currentColor;
    cursor: pointer;
    text-decoration: none;
    transition: filter ease-in-out 80ms;
    line-height: 1.6;
}

a:hover {
    text-decoration: underline;
}

.grid-card:hover .featured-image-container {
    opacity: 0.5;
}

.svg-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    position: relative;
    bottom: -0.105em;
    margin-inline-end: 6px;
    pointer-events: none;
    fill: currentColor;
}

.grid-card .grid-card-content, .grid-card .grid-card-footer {
    padding: 24px;
}

.grid-card .grid-card-content {
    flex: 1;
    border-top: 0;
    border-bottom-width: 2px;
}

.grid-card h2 {
    width: 100%;
    font-size: 1.5em;
    margin: 0 0 10px;
}

.grid-card:hover {
    color: #444;
    text-decoration: none;
    box-shadow: 0 1px 6px -1px rgba(0, 0, 0, 0.1);
}

.book-image-container .book-name-container {
    text-align: center;
}

.book-name-container p {
    text-align: center;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    width: 100%;
    font-size: 1.1em;
    margin: 10px 0px;
    font-weight: 400;
    position: relative;
    display: block;
    color: #222;
}

h2 {
    font-size: 40px;
}

.text-chapter, .text-chapter:hover {
    color: var(--color-chapter);
    fill: var(--color-chapter);
}

.icon {
    width: 4px;
    border-radius: 1px;
    justify-self: stretch;
    align-self: stretch;
    height: auto;
    margin-inline-end: 6px;
}

.chapter-name {
    margin-bottom: 0;
    font-size: 20px;
}

.page-counter {
    display: flex;
    cursor: pointer;
}

.has-children {
    border-left: 3px solid;
    border-color: var(--color-chapter);
}

.contents {
    padding-left: 10px;
    margin-bottom: 10px;
}

.page {
    border-left: 3px solid;
    border-color: var(--color-page);
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    margin-bottom: 10px;
}

.page > p {
    margin-bottom: 0;
}

.hide {
    display: none;
}

#wiki-page-content {
    padding-left: 20px;

    & details {
        border: 1px solid;
        border-color: #DDD;
        padding-left: 5px;
        margin-bottom: 5px;
        padding-top: 5px;
        padding-bottom: 5px;

        & summary {
            font-weight: bold;
        }

        & p {
            padding: 15px;
        }

    }

    & li {
        margin-left: 20px;
    }

    & li.task-list-item {
        list-style: none;
        margin-left: 5px;

        & input {
            margin-right: 5px;
        }

    }

}

#breadcrumbs {
    display: flex;
    margin-bottom: 15px;
}

.breadcrumb-link {
    padding: 5px;
    margin-right: 10px;
}

.breadcrumb-link:hover {    
    border: #77777745 1px solid;
    border-radius: 5px;
}

.breadcrumbs-separator {
    display: flex;
    align-items: center;
    padding: 2px;
    margin-right: 10px;
    justify-items: center;
}

.breadcrumbs-separator > .svg-icon {
    margin-inline-end: 6px;
}

@media(max-width: 900px) {

    .grid.third { /*✅*/
        grid-template-columns: 1fr;
    }

    .book-image-container > img {
        width: 100%;
    }

    img {
        width: 100%;
    }

    h5 {
        font-size: 1rem;
    }

    #breadcrumbs {
        display: grid;
        font-size: 0.8rem;
        grid-template-columns: 90% 10%;
    }

    .breadcrumb-link {
        margin-right: 0px;
        margin-bottom: 5px;
    }

    .breadcrumbs-separator {
        margin-right: 0px;
    }
}

