body {
    display: flex;
    height: 100vh;
    overflow: hidden;
    --zoom-level: 0.4;
    --shadow-size: 20px;
    --pill-bg: #6A7EB8;
    --shadow-color: #000000;
    max-height: 100vh;
    margin: 0;
    padding: 0;
}

.leftpanel {
    width: 200px;
    flex-grow: 0;
    flex-shrink: 0;
    overflow-y: auto;
}

.rightpanel {
    flex-grow: 1;
    flex-basis: 0;
    overflow: auto;
    position: relative;
}

.insert {
    width: 2544px;
    height: 3296px;
    position: relative;
}

.pageclone {
    display: inline-block;
    zoom: 0.05;
    cursor: pointer;
}

.pageclone .cover {
    z-index: 2;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hidden {
    display: none;
}

 .cols {
    display: flex;
    gap: 20px;
    width: 100%;
}

.insert > div {
    padding: 0 20px 0 20px;
}


   .insert  > div.editable {
        padding: 0 70px 0 70px;
    }

.column {
    flex: 1;
    position: relative;
    padding: 0 50px 0 50px;
}

#pages {
  padding-top:30px;
}

.insert.booklet.background {
  background-image: url(../img/insert-card-600dpi.png);
  width: 1050px;
  height: 1500px;
}

.insert.background.booklet > div:first-child {
    padding-top: 120px;
    margin-bottom: 50px;
}

.insert.booklet .fullwidth,
.insert.card .fullwidth {
    padding-left: 50px;
    padding-right: 50px;
}

.insert.booklet .highlight .column-header,
.insert.card .highlight .column-header {
    font-size: 87px;
}

.insert.booklet .editable > p,
.insert.card .editable > p {
    margin-left: 25px;
    margin-right: 25px;
}

.insert.booklet .editable > p.column-header,
.insert.card .editable > p.column-header {
    margin-left: 0px;
    margin-right: 0px;
}

.insert.card.background {
  background-image: url(../img/insert-card-600dpi.png);
  width: 750px;
  height: 1075px;
}

.insert.background.card > div:first-child {
    padding-top: 70px;
    margin-bottom: 50px;
}


 .insert.background.card > div:first-child:not(button) {
        padding-top: 70px;
        margin-bottom: 50px;
    }

.insert.background > div:first-child {
    padding-top: 226px;
    margin-bottom: 120px;
}


 .insert.background > div:first-child:not(button) {
        padding-top: 200px;
        margin-bottom: 20px;
    }

.insert.background {
    background-image: url(../img/background.png);
    /* width: 2544px; */
    /* height: 3296px; */
    position: relative;
    /* top: 0; */
    /* left: 0px; */
    background-repeat: no-repeat;
    background-size: contain;
    /* display: block; */
}

.insert > div {
    position: relative;
}


 .background + .biglogo {
    padding: 226px 0 0 0;
    text-align: center;
    position: relative;
    width: 100%;
    margin-bottom: 120px;
}

.addnewpage {
    margin-top: 5px;
}

.page {
    zoom: var(--zoom-level);
}

.page, .pageclone {
    margin-top: 70px;
    margin-bottom: 120px;
}

.editable {
    --outline-color: grey;
    outline: 1px solid var(--outline-color);
    min-height: 50px;
    position: relative;
}

    .editable:hover,
    .reveal .editable,
    .mce-edit-focus {
        --outline-color: black;
        outline: 8px solid var(--outline-color);
    }

.insert .editable > p {
    margin-left: 50px;
    margin-right: 50px;
}

.nohover .addnew {
    display: none;
}

button.addnew {
    position: absolute;
    z-index: 10;
    left: 50%;
}

.no-close .ui-dialog-titlebar-close {
    display: none;
}

.shim {
    width:100%;
    height:100%;
    z-index:10000;
    position: absolute;
    top: 0;
    left: 0;
}

.nohover :hover,
.nohover .editable,
.nohover .mce-edit-focus {
    --outline-color: transparent !important;
}

.nohover button {
    display:none;
}

.top-right-btn {
    appearance: auto;
    white-space: nowrap;
    /* Prevent the button from shifting if the page resizes */
    pointer-events: auto;
    margin: 0px 0 0 -58px;
}



/*
@font-face {
    font-family: 'Exo2Mod';
    src: url(../fonts/Exo2Mod-Bold.ttf);
    font-weight: bold;
}
    */


@font-face {
    font-family: 'Exo2Mod';
    src: url(../fonts/Exo2-VariableFont_wght.ttf);
}

@font-face {
    font-family: 'Exo2Mod';
    src: url(../fonts/Exo2-Italic-VariableFont_wght.ttf);
    font-style: italic;
}

@font-face {
    font-family: 'KomikaTight';
    src: url(../fonts/KOMTXTT.ttf);
}


@font-face {
    font-family: 'KomikaTight';
    src: url(../fonts/KOMTXTT.ttf);
}

@font-face {
    font-family: 'ChampionsIcons';
    src: url(../fonts/ChampionsIcons2.ttf);
}

@font-face {
    font-family: 'AvenirNextLTPro-Demi';
    src: url(../fonts/AvenirNextLTPro-Demi.otf);
}


@font-face {
    font-family: 'AvenirNextLTPro-Demi';
    src: url('../fonts/Avenir Next LT Pro Demi Italic.otf');
    font-style: italic;
}

@font-face {
    font-family: 'AvenirNextLTPro-Regular';
    src: url(../fonts/AvenirNextLTPro-Regular.otf);
}

@font-face {
    font-family: 'AvenirNextLTPro-Regular';
    src: url(../fonts/AvenirNextLTPro-It.otf);
    font-style: italic;
}


@font-face {
    font-family: 'AvenirBook';
    src: url(../fonts/Avenir-Book.woff);
}



@font-face {
    font-family: 'AvenirBlack';
    src: url(../fonts/Avenir-Black.ttf);
}

@font-face {
    font-family: 'AvenirHeavy';
    src: url(../fonts/Avenir-Heavy.ttf);
}



@font-face {
    font-family: 'KomikaTitle';
    src: url(../fonts/KomikaTitle.ttf);
}


.traits {
    font-family: "KomikaTitle", "Komika Title";
    /*  font-size: 90%;*/
    text-transform:capitalize;
}

.flavor {
    font-family: KomikaTight;
    font-size: 41.7px;
    font-style: italic;
    letter-spacing: .001em;
    line-height: 115%;
}

.rules.header {
    font-family: AvenirHeavy;
    font-size: 33.3333333333px;
    letter-spacing: .01em;
    margin-bottom: 0;
}

table .column-header {
    /* line-height: normal;*/
}

.rules {
    font-family: AvenirBook;
    font-size: 33.3333333333px;
    line-height: 1.2em;
    letter-spacing: -.01em;
    font-weight: 400;
}

 table {
    table-layout: fixed;
    width: 100%;
}

 table td {
    vertical-align: top;
}

 .rules p {
    margin-bottom: 0;
    padding-bottom: 1em;
}

.rules br {
    display: block;
    margin-bottom: 18.75px;
    content: '';
    font-size: 1px;
}

.rules strong, .rules b {
    font-family: AvenirBlack;
    letter-spacing: 1.1px;
}

.column-header::before {
    border-radius: 5em;
    background-color: var(--pill-bg, #6A7EB8);
    /* margin-top: 36px; */
    margin-left: -35px;
    /* grid-area: overlap; */
    /* order: 2; */
    content: '';
    z-index: -1;
    position: absolute;
    left: 0;
    right: 0;
    top: 0.4em;
    bottom: .1em;
}

/* Single line: Pill sticks to bottom of text */
.column-header.is-single::before {
    bottom: 0.1em;
}

/* Multi line: Pill pulls up away from the bottom */
.column-header.is-wrapped::before {
    bottom: 0.4em;
}

.highlight .column-header::before {
    width: calc(100% - 20px);
}

p {
    margin: 0 0 20px 0;
}

 p.section.header {
    margin-bottom: 0;
}

.column-header {
    font-family: 'Exo2Mod';
    font-size: 96px;
    letter-spacing: .095em;
    color: white;
    paint-order: stroke fill;
    text-transform: uppercase;
    padding-left: 22px;
    width: 100%;
    /* display: grid; */
    /* grid-template-areas: "overlap"; */ /* grid-template-areas: "overlap"; */
    z-index: 0;
    position: relative;
    display: inline-block;
    font-weight: 800;
    -webkit-text-stroke: .2em #354b70;
    font-style: italic;
    margin: 0;
}

.highlight {
    background-color: pink;
    box-shadow: var(--shadow-size) var(--shadow-size) var(--shadow-color);
    margin-bottom: 50px;
    padding-left: 10px;
    border: none;
}

 .highlight > :not(:first-child):not(button) {
    padding-left: 20px;
    padding-bottom: 10px;
}

.highlight .column-header {
    font-size: 55px;
    margin-bottom: 10px;
    margin-top: 5px;
}

     .highlight .column-header::before {

        margin-left: -35px;
    }

 .section.header {
    font-family: 'Exo2Mod';
    font-size: 60px;
    letter-spacing: 9px;
    color: black;
    paint-order: stroke fill;
    text-transform: uppercase;
    font-weight: 750;
}

.img-wrapper {
    display: inline-block;
    position: relative;
    border: 2px solid transparent;
    transition: border 0.2s;
    min-width: 50px;
    min-height: 50px;
}

    .img-wrapper:hover {
        border-color: #007bff;
    }

        .img-wrapper:hover:not(.deleted) .controls {
            display: block;
        }

.controls {
    display: none;
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 100;
}

/* The Target Placeholder */
.upload-placeholder {
    position: absolute; /* Outside document flow */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.1);
    border: 2px dashed #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    color: #007bff;
    font-weight: bold;
}

.img-wrapper.deleted {
    position: absolute;
    width: 200px;
    height: 100px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
}


code {
    font-family: "ChampionsIcons","Champions Icons" !important;
}

#zoomcontrol {
    position: fixed;
    bottom: 0;
    left: 200px;
    flex-grow: 0;
    flex-basis: 0;
    z-index: 2;
    background: white;
    padding: 3px;
}

#my-custom-toolbar-holder {
    position: fixed;
    top: 0px;
    left: 200px;
    /* translate: 0 100%; */
    z-index: 1;
}

.campaign.background.right,
.campaign:not(.left):not(.right):nth-child(even) {
    background-image: url(../img/campaign-right.png);
}

.campaign.background.left,
.campaign:not(.left):not(.right):nth-child(odd) {
    background-image: url(../img/campaign-left.png);
}
.campaign.background {
    background-image: url(../img/campaign-left.png);
    width: 2260px;
    height: 2260px;
    position: relative;
    /* top: 0; */
    /* left: 0px; */
    background-repeat: no-repeat;
    background-size: contain;
    /* display: block; */
}

.campaign .fullwidth {
    padding: 120px 0;
}

.campaign .fullwidth > * {
    padding-left: 120px;
    padding-right: 120px;
}

.campaign table:has(tr > td:nth-child(2)):not(:has(tr > td:nth-child(3))) td {
    padding: 0 30px 0 0;
}


#pagecopies {
    padding-left:10px;
}
#pagecopies ul {
    counter-reset: item-counter; 
}

#pagecopies li {
    counter-increment: item-counter;
    margin-bottom: 20px;
    display: flex;
}

#pagecopies li::marker {
    content: none;
}

#pagecopies li::before {
    content: counter(item-counter);
    font-weight: bold;
    margin-right: 5px;
    display: inline-block;
}

.campaign {
    counter-increment: my-page-counter;
}

.campaign .fullwidth::after {
    content: attr(data-page-number);
    position: absolute;
    bottom: 68px;
    color: white;
    font-size: 47px;
    display: block;
    text-align: center;
    font-family: 'Exo2Mod';
    font-weight: 700;
    font-style: italic;
}

    .campaign.left .fullwidth::after,
    .campaign:not(.left):not(.right):nth-child(odd) .fullwidth::after {
        left: 90px;
    }


    .campaign.right .fullwidth::after,
    .campaign:not(.left):not(.right):nth-child(even) .fullwidth::after {
        right: 90px;
    }

.page ul {
    list-style: none;
    padding-left:0px;
}

.page ul li {
    padding: 10px 30px 10px 70px;
    position: relative;
}

.page ul li::before {
    /*background-image: url(../img/list-bullet.png);*/
    /* needs to be url encoded bc otherwise it fails when converting in html-to-image */
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAApCAYAAACcGcHqAAAACXBIWXMAAFxGAABcRgEUlENBAAACE0lEQVRYhdXZS4iNYRzH8c8clyQNYsOCLCgWFAsWlGxIIdcyo1wWprAiY2XhmkyZBUXuRQYrSnZuW5YsLS3OZGVjMXWip55TJznOOc9o/nO+u/c9PfV+O+/v+f//z9vTf/bVAOaI5yFGSxZOxWxcEc9GbMWvThdWMITX4tmCkyULK9m8D1/FcxmrSyQSP7ALP8UyHSOYVSKR+Iwj4lmG66USiWcYFs8h7C+VSJzGB/HcwpJSiRr24ptYevEE00okEt+xG2NiWYdzpRKJjzgunkFsKpVI3MU9sUzBI8wrlUgcwyexLMQD9JRKjOVCmHISybZmr3c7EvJOtS/vXJEMYWWpROJ9DlkkM/AUM0slEtfwXCzL83MUSyQO44tYBnIdK5ZIne7O3PlGcgeLSiXk2aOvZAr7j8zF41RHSiXkafCFWDZgx3gk1mO7WN7hZWW8f6U4RvMrXSuVuI3F4qihH9V0USJxFHvEcglv6heVgkIzPAlycL7xRqXDkj/yZ8mfYKr1HJRKXMUqcdRwoJ6DEonUBp8Qy8XGHHQqsQD3mw0kE8RbXGj2YyuJSq4H88VRzdtprVTiTKshPSoH7Uqsbee4JCoH7Uj05u205cFVVA7akbjZ7hFiVA5aSRzMBWVS5+BfEktxQxfkoJlE0QeOqBw0k0id4RpdkoO/SWzGKV2UAw2kT8CJFbnBiyIdAXWUg0Z+A4GiZKDao2xOAAAAAElFTkSuQmCC');
    background-repeat: no-repeat;
    /* background-position: 30px 21px; */
    background-size: 20px;
    content: '';
    position: absolute;
    left: 20px;
    top: 20px;
    height: 20px;
    width: 20px;
}

.expert {
    background-color: rgba(210, 205, 200, .9);
    background: url('../img/expert-noise.png') repeat;
}

.dialog-container {
    display: flex;
    gap: 20px;
    padding: 10px;
}

.picker-controls {
    flex: 0;
}

.picker-controls label {
    padding-left: 10px;
}

.control-group {
    margin-bottom: 15px;
    display: flex;
    /*justify-content: space-between;*/
    align-items: center;
}

.preview-section {
    flex: 1;
    text-align: center;
    border-left: 1px solid #ccc;
    padding-left: 20px;
}

#image-preview-container {

    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

#preview-img {
    max-width: 100%;
    max-height: 100%;
}

#paintbuttons {
    overflow: visible;
    position: absolute;
    top: -5000px;
    left: -5000px;
    width: auto;
    height: auto;
    /* Prevents this empty container from blocking clicks */
}

.paintbutton {
    position: fixed;
    top: anchor(top);
    left: anchor(right);
    translate: -80% -40%;
    font-size: 150%;
    background: none;
    border: none;
    cursor: pointer;
    filter: drop-shadow(2px 0 0 white) drop-shadow(-2px 0 0 white) drop-shadow(0 2px 0 white) drop-shadow(0 -2px 0 white);
}

#expertbutton {
    position: fixed;
    top: anchor(top);
    left: anchor(right);
    position-anchor: --expert-anchor;
    position-visibility: anchors-visible;
}


#pageclonebuttons {
    position: fixed;
    top: anchor(top);
    left: anchor(right);
    position-anchor: --pageclone-hover-anchor;
    position-visibility: anchors-visible;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}