h1.bg-page-title
{
    border-radius: 2px;
}

h2.section-subheading
{
    font-size: 1em;
}

.section-subheading h2, .section-subheading h3, .section-subheading a 
{
    color: var(--color-secondary);
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
    line-height: 35px;
    font-size: 1.4em;
    text-align: center!important;
    font-weight: 400;
    margin-bottom: 10px;
    margin-top: 0;
    display: block;
    border-radius: 2px;

    transition: all 0.1s ease-in-out;
}

.bg-table-of-contents-section .table-of-content-data
{
    display: flex;
    justify-content: center;
}

.bg-table-of-contents-section .table-of-content-data a:hover h2{
    color: var(--color-primary);
    background-color: var(--color-secondary);
}

.bg-table-of-contents-section .table-of-content-data .top-data
{
    margin: 20px 0;
}

.bg-table-of-contents-section .table-of-content-data .top-data a
{
    line-height: 45px;
    text-decoration: underline;
}

.bg-table-of-contents-section .table-of-content-data .chapter-data a
{
    line-height: 40px;
}


.bg-table-of-contents-section .table-of-content-data .top-data .section-subheading h2
{
    line-height: 40px;
    text-decoration: underline;
}

.bg-table-of-contents-section .table-of-content-data>div
{
    width: 100%;
}


.bg-table-of-contents-section .table-of-content-data a:hover
{
    text-decoration: underline;
    color: var(--color-primary);
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.bg-table-of-contents-section .table-of-content-data .chapter-data
{
    width: 100%;

    display: flex;
    justify-content: stretch;
    flex-direction: column;
}

.bg-table-of-contents-section .table-of-content-data .chapter-data a
{
    text-decoration: none;
}

.bg-table-of-contents-section .table-of-content-data .chapter-data .chapter-data-column>div
{
    width: 100%;
    padding-bottom: 0.5em;
}

.bg-table-of-contents-section .table-of-content-data .chapter-data .section-subheading
{
    position: relative;
}

.bg-table-of-contents-section .table-of-content-data .chapter-data .section-subheading .hover-text
{
    position: absolute;
    height: 100%;
    color: var(--color-primary);
    right: 1em;
    text-decoration: underline;
    display: none;
    font-size: 0.9em;
    pointer-events: none;
}

.bg-table-of-contents-section .table-of-content-data .chapter-data .section-subheading:hover .hover-text
{
    display: block;
    color: var(--color-primary);
    top: 10px;
}

.bg-table-of-contents-section .table-of-content-data .chapter-data .chapter-title
{
    font-size: 1em;
    background-color: #ffd7a4;
    border-radius: 2px!important;
    margin-bottom: 20px;
    padding: 0.3em;
    text-align: center;

    margin-top: 0;
}

@media only screen and (max-width: 720px)
{
    .bg-table-of-contents-section .table-of-content-data .chapter-data .section-subheading .hover-text
    {
        display: block;
        top: 13px;
        font-size: 0.9em;
        color: var(--color-secondary);
        text-decoration: none;
    }

    .bg-table-of-contents-section .table-of-content-data .chapter-data .section-subheading:hover .hover-text
    {
        top: 13px;
    }

    h1.bg-page-title
    {
        font-size: 1.1em !important;
    }
    .bg-table-of-contents-section
    {
        font-size: 0.8em
    }
}