html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background-color: #f8f9fb;
    min-height: 100%;
}

.invisibleHeader {
    display: none;
    font-size: 0px;
}
.menu {
    height: 30px;
    position: relative;
    z-index: 3;
}

.header {
    display: flex;
    border-bottom: 1px solid;
}

.footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75em;
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
}

.logo {
    display: block;
    height: 30px;
    margin-bottom: 10px;
}

.lessonNav {
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, 0%);
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

.problemLabel {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 0.6em;
    width: 100%;
}

.pageOp, .pageOpMain {
    height: 40px;
    width: 40px;
    border: none;
    border-radius: 50%;
    outline: none;
    background-color: white;
    padding: 12px;
    display: block;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.line-wrapper {
    position: relative;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.horizontal, .vertical {
    width: 100%;
    height: 2px;
    background-color: #f0932b;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.vertical {
    position: relative;
    bottom: 2px;
    transform: rotate(90deg);
}

.addPg .vertical, .addPg .horizontal {
    background-color: #0abde3;
}

.addPg.pageOp:hover,
.addPg.pageOpMain:hover {
    box-shadow: 0 0 0 3px #0abde3;
}

.removePg.pageOp:hover {
    box-shadow: 0 0 0 3px #f0932b;
}

.pageOp:active,
.pageOpMain:active {
    transform: translateY(5px);
}

.newProblem {
    margin-left: 2px;
}

.pAll {
    flex: 1;
    position: relative;
}

/*
    START: STYLING FOR 1 PROBLEM/PAGE
*/
/* .pq-1 {
    height: 850px;
    max-width: 744px;
}

.p0-0 {
    padding-top: 15px;
    padding-right: 25px;
} */
/*
    END: STYLING FOR 1 PROBLEMS/PAGE
*/

/*
    START: STYLING FOR 2 PROBLEMS/PAGE
*/
/* .pq-2 {
    width: 744px;
    height: 425px;
    padding-top: 15px;
    padding-right: 25px;
} */

.p1-1 {
    border-top: 1px solid #CCC;
}
/*
    END: STYLING FOR 2 PROBLEMS/PAGE
*/


/*
    START: STYLING FOR 3 PROBLEMS/PAGE
*/
/* .pq-3 {
    width: 744px;
    height: 283px;
    padding-right: 25px;
} */

.p1-2, .p2-2 {
    border-top: 1px solid #CCC;
}
/*
    END: STYLING FOR 3 PROBLEMS/PAGE
*/


/*
    START: STYLING FOR 4 PROBLEMS/PAGE
*/
/* .pq-4 {
    height: 425px;
    width: 372.5px;
    padding-top: 15px;
} */

.p0-3, .p2-3 {
    /* padding-right: 25px; */
    border-right: 1px solid #CCC;
}

/* .p1-3, .p3-3 {
    padding-left: 25px;
} */

.p2-3, .p3-3 {
    border-top: 1px solid #CCC;
}

/*
    END: STYLING FOR 4 PROBLEMS/PAGE
*/


/*
    START: STYLING FOR 6 PROBLEMS/PAGE
*/
/* .pq-6 {
    height: 283px;
    width: 372.5px;
} */

.p0-5, .p2-5, .p4-5 {
    /* padding-right: 25px; */
    border-right: 1px solid #CCC;
}

.p1-5, .p3-5, .p5-5 {
    /* padding-left: 25px; */
}

.p2-5, .p4-5 {
    border-right: 1px solid #CCC;
    border-top: 1px solid #CCC;
}

.p3-5, .p5-5 {
    border-top: 1px solid #CCC;
}
/*
    END: STYLING FOR 6 PROBLEMS/PAGE
*/


/*
    START: STYLING FOR 8 PROBLEMS/PAGE
*/
/* .pq-8 {
    height: 212px;
    width: 372.5px;
} */

.p0-7, .p2-7, .p4-7, .p6-7 {
    /* padding-right: 25px; */
    border-right: 1px solid #CCC;
}

/* .p1-7, .p3-7, .p5-7, .p7-7 {
    padding-left: 25px;
} */

.p2-7, .p4-7, .p6-7 {
    border-right: 1px solid #CCC;
    border-top: 1px solid #CCC;
}

.p3-7, .p5-7, .p7-7 {
    border-top: 1px solid #CCC;
}
/*
    END: STYLING FOR 8 PROBLEMS/PAGE
*/

.page {
    padding: 25px;
    width: 100%;
    max-width: 800px;
    margin: 0px auto;
    background-color: white;
    border:3px solid white;
    position: relative;
    height: 1000px;
}

.problemArea {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

@keyframes bounce {
    0% {transform: translateY(0); }
    100% { transform: translateY(-7px); }
}

/*
    START: STYLING FOR PRINT BUTTON
*/
.headerContainer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 10;
    background: #f8f9fb;
}

.swapAbove,
.swapBelow {
    margin-left: 8px;
    font-weight: bold;
}

.swapAbove:hover,
.swapBelow:hover {
    transform: scale(1.1);
}

.swapAbove:active,
.swapBelow:active {
    transform: translateY(2px);
}

/*
    END: STYLING FOR PRINT BUTTON
*/

@media print {
    /* @page {
        margin: 0 !important;
    } */

    html, body {
        height: 100%;
    }

    .page {
        border: none !important;
        box-shadow: none !important;
        border-radius: 0px;
        margin-top: 0px !important;
        padding: 0 !important;
        height: 100%;
        max-width: 100%;
        page-break-after: always;
    }

    .footer {
        bottom: 0;
    }

    /* .pAll {
        height: auto !important;
    } */

    .print, .menu, .pageOp, .swap, .answerMode, .outline-nav, .no-outline, .outline-nav-collapsed, .autoComplete_wrapper, #autoComplete, .save, .upload, .edit, #titleInput, .headerContainer, .headerSpace, #footerx,
    .no-print, #footer, .hidePrint, .navMainSpacer{
        display: none !important;
    }

    body {
        -webkit-print-color-adjust: exact;
        background-color: #fff;
    }
}