body {
    background: #877e87;
    --size: 1.6;
}

.sidebar {
    background: #2d272e;
    position: fixed;
    top: 0;
    height: 100vh;
    width: 15%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(0,0,0,65%);
}

.sidebar nav.panel-menu {
    width: 100%;
}


.sidebar nav.panel-menu ol {list-style: none;margin: 0;padding: 0;width: 100%;}

.sidebar nav.panel-menu ol li {margin: 2vh 0;width: 100%;}

.sidebar nav.panel-menu ol li a {background: #3c373c;border-right: 0 solid #3c373c;padding: 1vh 1vw;display: inline-block;font-size: 1.5rem;text-decoration: none;color: white;border-radius: .5vh;width: calc(100% - 2vw);box-sizing: content-box;transition: 300ms;}

.sidebar nav.panel-menu ol li a:hover {
    border-right: 2vw solid #3c373c;
}

.page-settings > div > div {
    border: 1px solid gray;
    padding: 5px;
    border-radius: 1vh;
    margin-bottom: 1vh;
    overflow: auto;
}

.content-list {
    max-height: 20vh;
    overflow: auto;
}
.content-list label {width: 100%;border-bottom: 1px dashed gray;padding: 3px 0;display: flex;align-items: center;transition: 300ms;cursor: pointer;}

.content-list label:last-child {
    border: none;
}

.content-list label:hover {
    background: #ececec;
}

.content-list label:has(input:checked) {
    opacity: .5;
}

.site-container {
    margin-left: 15%;
    padding: 2vh 5vw;
    width: 85% !important;!i;!;
}

.upload-photo {
    width: 10.5cm;
    height: 14.85cm;
    position: relative;
    border-radius: 2vh;
    overflow: hidden;
    cursor: pointer;
}

span.change-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #00000066;
    text-align: center;
    color: white;
    padding: 2vh 0;
    font-size: 3vh;
}

span.svgspan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    place-content: center;
    background: rgba(0,0,0,60%);
    opacity: 0;
    transition: 300ms;
}

.upload-photo img {
    width: 100%;
    height: 100%;
}

.upload-photo input {
    display: none;
}

span.svgspan:hover {
    opacity: 1;
}

.page-settings .left-settings, .page-settings .right-settings {
    position: absolute;
    top: 0;
    width: 15vw;
    background: #cfcfcf;
    font-size: 12px;
    padding: 3px 5px;
    border-radius: 3px;
}

.page-settings .left-settings {
    right: calc(100% + 1vw);
}

.page-settings .right-settings {
    left: calc(100% + 1vw);
}

.pdf-creator .buttons {
    position: fixed;
    right: 3vh;
    top: 3vh;
    background: white;
    border: 2px dashed gray;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    padding: 2vh;
    border-radius: 1vh;
    z-index: 10000;
}

.content {
    width: calc(25vw * var(--size));
}

.content-page {
    margin-bottom: 5vh;
    box-shadow: 1px 1px 10px rgba(0,0,0,25%);
    aspect-ratio: 10.5/14.85;
    height: auto;
    width: calc(25vw * var(--size));
    position: relative;
    padding: calc(1vw * var(--size));
    background: white;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: cover !important;
}

.content-page.cover-page {
    padding: 0 !important;
    overflow: hidden;
}

.content-page.cover-page img {
    width: 100%;
    height: 100%;
}

.content-page .page-heading {
    max-height: 5%;
    height: 5%;
    margin-bottom: 5%;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    border-bottom: calc(.1vw * var(--size)) solid black;
}

.content-page .page-heading span, .content-page .page-heading h4 {
    font-size: calc(1vw * var(--size));
}

.content-page .text {
    max-height: 85%;
    overflow: hidden;
}

.content-page .text h2.content-heading {
    font-size: calc(1vw * var(--size));
    margin-bottom: calc(.1vw * var(--size));
    line-height: unset;
    font-weight: bold;
    font-family: fantasy;
    text-align: center;
}

.content-page .text img {
    width: 100%;
    height: auto;
}

.content-page .text, .content-page .text p {
    margin-bottom: calc(.7vw * var(--size));
}

.content-page .text, .content-page .text p, .content-page .text span , .content-page .text a{
    font-size: calc(.65vw * var(--size)) !important;
} 

.content-page .text .table {
    margin-bottom: calc(.5vw  * var(--size)) !important;
}

.content-page .text .table>:not(caption)>*>* {
    padding: calc(.3vw  * var(--size)) calc(.3vw  * var(--size));
    border-bottom: unset;
}

.content-page .page-number {
    margin-top: 2%;
    height: 3%;
    position: absolute;
    bottom: calc(1vw * var(--size));
    right: calc(1vw * var(--size));
}

.content-page .page-number span {
    font-size: calc(1vw * var(--size));
    text-decoration: underline;
}

