/* LodeStar Base CSS (XSLT 1.0 friendly)
   Merged base + postprocess; 
   */

/* =========================
   Skeleton-inspired grid
   ========================= */
html {
    font-size: 62.5%;
    -webkit-text-size-adjust: auto;
}

.container {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.column,
.columns {
    margin-top: 5%;
    width: 100%;
    float: left;
    box-sizing: border-box;
}

@media (min-width: 400px) {
    .container {
        width: 85%;
    }
}

@media (min-width: 550px) {
    html {
        font-size: 65%;
        -webkit-text-size-adjust: auto;
    }

    .container {
        width: 80%;
    }

    .column,
    .columns {
        margin-left: 4%;
    }

    .column:first-child,
    .columns:first-child {
        margin-left: 0;
    }

    .one.column,
    .one.columns {
        width: 4.66666666667%;
    }

    .two.columns {
        width: 13.3333333333%;
    }

    .three.columns {
        width: 22%;
    }

    .four.columns {
        width: 30.6666666667%;
    }

    .five.columns {
        width: 39.3333333333%;
    }

    .six.columns {
        width: 48%;
    }

    .seven.columns {
        width: 56.6666666667%;
    }

    .eight.columns {
        width: 65.3333333333%;
    }

    .nine.columns {
        width: 74%;
    }

    .ten.columns {
        width: 82.6666666667%;
    }

    .eleven.columns {
        width: 91.3333333333%;
    }

    .twelve.columns {
        width: 100%;
        margin-left: 0;
    }

    .one-third.column {
        width: 30.6666666667%;
    }

    .two-thirds.column {
        width: 65.3333333333%;
    }

    .one-half.column {
        width: 48%;
    }

    .offset-by-one.column,
    .offset-by-one.columns {
        margin-left: 8.66666666667%;
    }

    .offset-by-two.column,
    .offset-by-two.columns {
        margin-left: 17.3333333333%;
    }

    .offset-by-three.column,
    .offset-by-three.columns {
        margin-left: 26%;
    }

    .offset-by-four.column,
    .offset-by-four.columns {
        margin-left: 34.6666666667%;
    }

    .offset-by-five.column,
    .offset-by-five.columns {
        margin-left: 43.3333333333%;
    }

    .offset-by-six.column,
    .offset-by-six.columns {
        margin-left: 52%;
    }

    .offset-by-seven.column,
    .offset-by-seven.columns {
        margin-left: 60.6666666667%;
    }

    .offset-by-eight.column,
    .offset-by-eight.columns {
        margin-left: 69.3333333333%;
    }

    .offset-by-nine.column,
    .offset-by-nine.columns {
        margin-left: 78%;
    }

    .offset-by-ten.column,
    .offset-by-ten.columns {
        margin-left: 86.6666666667%;
    }

    .offset-by-eleven.column,
    .offset-by-eleven.columns {
        margin-left: 95.3333333333%;
    }

    .offset-by-one-third.column,
    .offset-by-one-third.columns {
        margin-left: 34.6666666667%;
    }

    .offset-by-two-thirds.column,
    .offset-by-two-thirds.columns {
        margin-left: 69.3333333333%;
    }

    .offset-by-one-half.column,
    .offset-by-one-half.columns {
        margin-left: 52%;
    }
}

/* =========================
   Base typography body
   ========================= */
body:not(svg text) {
    font-size: 1.5em;
    line-height: 1.6;
    font-weight: 400;
    font-family: Arial, sans-serif;
    background-color: #000000;
    /* overflow-y: hidden !important;*/
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 2rem;
    font-weight: 300;
}

h1 {
    font-size: 4.0rem;
    line-height: 1.2;
    letter-spacing: -.1rem;
}

h2 {
    font-size: 3.6rem;
    line-height: 1.25;
    letter-spacing: -.1rem;
}

h3 {
    font-size: 3.0rem;
    line-height: 1.3;
    letter-spacing: -.1rem;
}

h4 {
    font-size: 2.4rem;
    line-height: 1.35;
    letter-spacing: -.08rem;
}

h5 {
    font-size: 1.8rem;
    line-height: 1.5;
    letter-spacing: -.05rem;
}

h6 {
    font-size: 1.5rem;
    line-height: 1.6;
    letter-spacing: 0;
}

@media (min-width: 550px) {
    h1 {
        font-size: 5.0rem;
    }

    h2 {
        font-size: 4.2rem;
    }

    h3 {
        font-size: 3.6rem;
    }

    h4 {
        font-size: 3.0rem;
    }

    h5 {
        font-size: 2.4rem;
    }

    h6 {
        font-size: 1.5rem;
    }
}

p {
    margin-top: 0;
}

h1 {
    font-weight: normal;
    margin: .5em 0 .5em;
    text-shadow: rgba(0, 0, 0, 0.44) 1px 1px 2px;
}

.hideOnRun {
    display: none;
}

#adaDiv {
    display: none;
}

.ada {
    float: left;
    margin-top: 5px;
    margin-left: 5px;
}

/* =========================
   Utility icons/buttons
   ========================= */
.mapButton,
.showLocationButton {
    float: left;
    margin-left: 20px;
    /* Layout */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;

    /* Rounded iOS-style shape */
    border-radius: 14px;

    /* Typography */
    font-size: 12px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.2px;

    /* Light text on dark button (matches your image) */
    color: #f1f1f1;

    /* Background: soft shiny-gradient like your attachment */
    background: linear-gradient(to bottom right,
            rgba(70, 70, 70, 0.85),
            rgba(30, 30, 30, 0.85));

    /* iOS-style gloss + subtle border */
    border: 1px solid rgba(255, 255, 255, 0.15);

    /* Neumorphic subtle shadow */
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);

    /* Interaction */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    transition: all 0.15s ease;
}

.mapButton:active,
.showLocationButton:active {
    transform: scale(0.96);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.4),
        inset 0 2px 2px rgba(255, 255, 255, 0.10);
}

.mapButton:hover,
.showLocationButton:hover {
    background: linear-gradient(to bottom right,
            rgba(90, 90, 90, 0.9),
            rgba(40, 40, 40, 0.9));
}

#mapDiv {
    position: fixed !important;
    top: 0px;
    /* pushed down so the hide button is visible */
    margin-top: 60px !important;
    left: 0;
    width: 100%;
    height: calc(90vh - 60px) !important;
    /* keeps map at ~80% of window height */
    min-height: 500px;
    z-index: 9999;
    background: #fff;
}


.print {
    float: left;
    padding-right: 5px;
    margin-top: 5px;
    margin-left: 2px;
}

.printImage:hover {
    background: url("images/icon-print-hover.png");
}

.closeButton {
    height: 30px;
    width: 30px;
    float: right;
    margin: 5px;
}

/* =========================
   Primary layout regions (centered TOC + content)
   ========================= */
.mainWrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    /* center group horizontally */
    align-items: flex-start;
    gap: 20px;
    /* gap between TOC and jetWrapper */
    padding: 10px;
}

/* Table of contents (splitpanelmenu) */
nav#menu.splitpanelmenu {
    position: relative;
    flex: 0 0 220px;
    /* fixed width */
    max-width: 220px;
    min-width: 220px;
    height: 100vh;
    margin: 0;
    padding: 12px !important;
    background-color: #000000;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.15) !important;
    z-index: 141;
    order: 1;
}

/* Main content wrapper */
.jetWrapper {
    flex: 1;
    max-width: 980px;
    position: relative;
    margin: 0;
    padding: 0;
    padding-bottom: 200px !important;
    height: 100vh;
    overflow: hidden !important;
    order: 2;
}



/* =========================
   finish main layout
   ========================= */



.header {
    position: absolute;
    top: 0;
    background-size: 100% 100%;
    background: transparent;
    height: 70px;
    width: 100% !important;
    border-color: #000000;
    border-style: solid;
    border-width: 0;
    z-index: 20;
    padding: 0;
    margin-bottom: 10px;
}

.banner {
    position: absolute;
    border-radius: 10px 10px 0 0;
    top: 0;
    background-size: 100% 100%;
    height: 70px;
    width: 100% !important;
    border-color: #000000;
    border-style: solid;
    border-width: 0;
    z-index: 19 !important;
    padding: 0 !important;
    margin-bottom: 10px !important;
    text-align: center;
    font-weight: bold;
    padding-top: 20px !important;
    pointer-events: none;
}

.viewer {
    top: 70px;
    border-radius: 0;
    border: 2px solid #e7e7e7;
    position: relative !important;
    margin-bottom: 20px !important;
    height: 70vh;
    font-size: 1em;
    background-color: #ffffff;
    /*overflow: hidden !important; advised to remove */
    width: 100% !important;
    padding: 0 !important;
}

.navigator {
    position: absolute;
    top: 3px;
    background-size: 100% 100%;
    height: 70px;
    width: 100% !important;
    border-color: #000000;
    border-style: solid;
    border-width: 0;
    z-index: 20 !important;
    padding: 10px !important;
    /* fixed invalid comma syntax */
}

.navigator .controls {
    float: right;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    margin-bottom: 10px;
    margin-right: 20px;
}

.navigator .controls a {
    font-size: 40px;
    opacity: .8;
    color: #000000;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    margin-top: 10px;
}

.navigator .controls a.enabled {
    opacity: 0.6;
    color: hsl(185, 85%, 70%);
    text-shadow: 0 0 2px hsla(185, 45%, 70%, 0.3);
}

.navigator .controls a.enabled:active {
    margin-top: 1px;
}

.navigator .controls .left,
.navigator .controls .left:hover,
.navigator .controls .left[disabled],
.navigator .controls .right,
.navigator .controls .right:hover,
.navigator .controls .right[disabled] {
    z-index: 50;
    border-style: none;
    width: 30px;
    height: 30px;
    float: right;
    margin-top: 0;
    padding-right: 10px;
    padding-left: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    border: 0 solid white;
    border-radius: 10px;
}

.navigator .controls .left {
    margin-right: 5px;
    padding-top: 0;
    background-image: url('../../layout/arrowLeft.png');
}

.navigator .controls .left:hover {
    background-image: url('../../layout/arrowLeft_down.png');
}

.navigator .controls .left[disabled] {
    background-image: url('../../layout/arrowLeft_gray.png');
}

.navigator .controls .right {
    margin-right: 10px;
    padding-top: 10px;
    background-image: url('../../layout/arrowRight.png');
}

.navigator .controls .right:hover {
    background-image: url('../../layout/arrowRight_down.png');
}

.navigator .controls .right[disabled] {
    background-image: url('../../layout/arrowRight_gray.png');
}

.navigator .feedback {
    float: right;
    margin-top: 7px;
    margin-right: 10px;
}

.pagination {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 10px !important;
    margin: auto !important;
    width: 30% !important;

}

/* =========================
   Navigation & Menus
   ========================= */

.mainWrapper nav,
.mainWrapper nav#menu,
.mainWrapper nav#menux,
.mainWrapper nav#menu.splitpanelmenu {
    position: relative !important;
    padding: 12px !important;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.15) !important;
    height: 93vh !important;
    max-height: 100vh !important;
}

.mainWrapper nav li a,
.mainWrapper nav#menu li a,
.mainWrapper nav#menux li a {
    display: block !important;
    padding: 10px 16px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
}

.mainWrapper nav li a:hover,
.mainWrapper nav#menu li a:hover,
.mainWrapper nav#menux li a:hover {
    background-color: #e3f2fd !important;
    color: black !important;
}


/* =========================
   Pages / content areas
   ========================= */
.page,
.ReportPage,
.mPage,
.ShortAnswerPage,
.LongAnswerPage,
.organizerPage,
.flashcard {
    position: relative;
    background-color: #ffffff;
    padding: 5% !important;
    height: auto;
    width: 100% !important;
    overflow-x: hidden !important;
}

.WidgetPage,
.mQuestionPage,
.JournalPage {
    padding: 1% 5% 5% 5% !important;
    height: 70vh;
    width: 100% !important;
    overflow-x: hidden !important;
}

/* Postprocess intent now baked into base */
.ShortAnswerPage .text {
    position: relative !important;
    top: 100px !important;
    width: 100% !important;
    margin: 10px !important;
    left: 10% !important;
}

.ShortAnswerPage .inputbox {
    position: relative !important;
    top: 160px !important;
    width: 80% !important;
    margin: 10px !important;
    left: 10% !important;
    margin-bottom: 200px !important;
}

.ShortAnswerPage {
    padding-bottom: 200px !important;
}

.VideoPage .content {
    position: relative !important;
    padding-bottom: 56.25% !important;
    padding-top: 30px;
    height: 0;
    overflow: hidden !important;
    width: 90% !important;
    margin-left: auto;
}

.VideoPage iframe {
    position: absolute !important;
    top: 0 !important;
    width: 90% !important;
    height: 90% !important;
    left: 0 !important;
}

#kaltura_div {
    position: relative !important;
    padding-bottom: 56.25% !important;
    padding-top: 30px;
    height: 0;
    overflow: hidden !important;
    width: 90% !important;
    left: 1% !important;
}

#kaltura_player {
    position: absolute !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
}

.content {
    position: relative;
    padding: 2px;
    width: 98%;
    height: auto;
    max-height: none;
}

.Crossword.content {
    width: 100%;
    padding: 0;
}

.content > .component {
    background-color: #0000FF;
    position: absolute;
    width: 100% !important;
}

/* =========================
   Overlay / popup / tooltip
   ========================= */
.overlay {
    background-color: #ffffff;
    border-style: outset;
    border-width: 10px;
    padding: 10px;
    height: 480px;
    width: 880px;
    position: absolute;
    top: 100px;
    left: 0;
    font-size: 1em;
    box-shadow: 3px 3px 4px #000;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 60;
}

.overlayContent {
    background-color: #ffffff;
    height: 480px;
    width: 880px;
}

.popup {
    background-color: #000000;
    color: #FFFFFF;
    border-bottom: 20px solid #000000;
    border-top: 20px solid #000000;
    padding: 10px;
    width: 80%;
    position: absolute;
    top: 10%;
    left: 10%;
    font-size: 1em;
    overflow-x: hidden;
    overflow-y: scroll;
    z-index: 50;
    max-width: 960px;
    padding-bottom: 100px;
    border: 2px solid black;
}

.popupContent {
    overflow: auto;
}

.tooltip {
    background-color: #FFFFEE;
    border-style: outset;
    border-width: 10px;
    padding: 10px;
    height: 50px;
    width: 200px;
    position: absolute;
    top: 100px;
    left: 100px;
    font-size: 1em;
    overflow: hidden;
    z-index: 20;
}

.tooltipContent {
    overflow: auto;
}

/* =========================
   Dashboard / meters (legacy)
   ========================= */
.dashboardx {
    position: absolute !important;
    border-style: none;
    height: 100px;
    width: 175px !important;
    overflow: visible;
    z-index: 20;
    top: 500px !important;
    margin-left: auto;
    margin-right: auto;
    background: none;
    left: 580px !important;
}

.dbMeterDiv {
    border-style: none;
    height: 75px;
    width: 150px;
    overflow: visible;
    z-index: 25;
    visibility: hidden;
}

.dbMeterDivContent {
    position: absolute;
    pointer-events: none;
    top: 0 !important;
    left: 0 !important;
}

.dbMeterNeedleDiv {
    position: absolute;
    border-style: none;
    overflow: hidden;
    z-index: 21;
    top: 0 !important;
    left: 0 !important;
}

.dbMeterNeedleDivContent {
    top: 0 !important;
    left: 0 !important;
}

.meterDiv {
    position: absolute;
    border-style: none;
    height: 75px;
    width: 150px;
    overflow: visible;
    z-index: 40;
}

.meterDivContent {
    overflow: auto;
    position: absolute;
}

.meterNeedleDiv {
    border-style: none;
    overflow: hidden;
    z-index: 41;
}

.meterNeedleDivContent {
    position: absolute;
}

/* =========================
   Q/A and input helpers
   ========================= */
.questionBlock {
    padding: 0;
    top: -200px;
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
}

.inputbox {
    position: absolute;
    left: 0;
    top: 0;
    text-align: left;
}

.image {
    border-color: #48525c;
    border-style: solid;
}

.ImagePage .image {
    display: block !important;
    margin-right: auto !important;
    margin-left: auto !important;
    height: 75%;
    width: 75%;
    border-color: #48525c;
    border-style: solid;
}

.MenuPage .imageparent,
.flashcard .imageparent,
.interviewImage,
.menuImage {
    position: absolute;
}

.ImagePage .imageparent {
    margin-top: 20px !important;
    display: block !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.caption {
    position: relative;
}

.text {
    position: relative;
    width: 90% !important;
    height: auto !important;
    padding: 5px;
}

.textBlock {
    position: absolute;
    padding: 5px;
    overflow-x: hidden;
    overflow-y: auto;
}

.longAnswer {
    position: static !important;
    /* merged from postprocess */
    width: 90% !important;
    padding: 5px;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: left;
    background-color: #fefefe;
    border-color: #48525c;
    border-style: solid;
    word-wrap: break-word;
    vertical-align: top;
    left: 5px !important;
    margin: 20px 0 20px 20px !important;
    /* merged from postprocess */
}

.LongAnswerPage .textBlock {
    position: static !important;
    /* merged from postprocess */
    width: 90% !important;
    /* merged from postprocess */
    height: auto !important;
    /* merged from postprocess */
    box-sizing: border-box;
    /* merged from postprocess */
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: left;
    word-wrap: break-word;
    vertical-align: top;
}

.instructions {
    background-color: transparent;
}

.instructionsContent {
    background-color: transparent;
    font-family: sans-serif;
    font-size: 20px;
    border-style: none;
}

.categoryTitle {
    border-style: none;
    background-color: transparent;
    position: absolute;
    font-size: 20px;
    font-weight: bold;
}

.dragTarget {
    position: absolute;
    background-color: #cccccc;
    border-color: #48525c;
    border-style: dotted;
    overflow: hidden;
}

.anchorTile {
    position: absolute;
    background-color: #ebebeb;
    border-color: #48525c;
    border-style: solid;
    border-width: 1px;
    overflow: hidden;
}

.dragTile {
    position: absolute;
    background-color: #ebebeb;
    border-color: #48525c;
    border-style: solid;
    border-width: 1px;
    box-shadow: 3px 3px 4px #000;
    overflow: hidden;
    z-index: 1;
}

.tileLabel {
    padding: 3px;
    background-color: transparent;
    left: 0;
    top: 0;
    border-style: none;
    pointer-events: none;
    word-wrap: break-word;
    font-family: sans-serif;
    font-size: 12px;
}

.dragHandle {
    background-color: #e7e7e7;
    margin-right: 10px;
    position: absolute;
}

.checkButton {
    position: relative;
    border: 1px solid white;
    color: white;
    text-shadow: 2px 2px #000000;
    background-color: black;
    margin-top: 20px;
    margin-left: 110px;
    margin-right: 20px;
    height: 25px;
    width: 75px;
    background-size: contain;
    border-radius: 10px;
    bottom: 20px !important;
}

.checkButton[disabled] {
    border: 1px solid white;
    background: none;
}

.interviewerDistractor {
    cursor: pointer;
}

.interviewerStem {
    font-weight: bold;
    font-size: 16px;
    /* merged change */
    height: auto !important;
    min-height: 100px;
    margin-bottom: 75px !important;
    margin-top: 20px !important;
    position: relative !important;
    width: 50% !important;
    left: auto !important;
    /* merged change to avoid forced left 0 */
    margin-left: 30% !important;
    /* align with interviewerDistractor text */
}

.InterviewPage .interviewerStem {
    width: 70% !important;
}

.InterviewPage .content .componentX {
    width: 0 !important;
    height: 0 !important;
}

.report {
    font-size: 30px;
}

input,
select,
textarea {
    -webkit-user-select: text;
}

.qitem {
    margin-top: 20px;
    margin-bottom: 20px;
}

.distractorContainer {
    clear: both;
    width: 100%;
}

.distractorHost {
    background-color: #000000;
    color: #000000;
    padding: 10px;
    overflow: hidden;
}

.distractorHost:hover {
    opacity: .8 !important;
    outline: 1px solid black !important;
    outline-style: solid;
}

/* strengthened hover merged once */
.distractor {
    display: inline;
    vertical-align: top;
    height: 30px;
    overflow: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.distractor.text {
    position: static;
    padding-top: 0;
}

.stem {
    clear: both;
}

.distractorcheckbutton {
    position: relative;
    top: 0;
    float: left;
    display: block;
    margin-right: 20px;
    margin-left: 20px;
}

.staticDistractor {
    position: static;
    padding: 5px;
    margin-bottom: 40px !important;
}

.progressBar {
    position: absolute;
    visibility: hidden;
    left: 0;
    height: 2px;
    width: 30%;
    bottom: -8px;
}

.reportParagraph {
    padding: 20px;
}

/* Crossword helpers */
#crosswordDiv {
    float: left;
    width: 500px;
    height: 400px;
}

.hintsDiv {
    float: left;
    border: 1px solid gray;
    width: 220px;
    height: 150px;
    margin: 5px;
    padding: 5px;
    overflow-y: hidden;
    overflow-x: hidden;
}

.hintsSelect {
    font-size: 11px;
    border: none;
    width: 220px;
    height: 150px;
    margin: 1px;
}

.directionDiv {
    float: left;
    font-size: 50px;
    border: none;
    width: 60px;
    height: 60px;
    margin: 10px;
}

#crosswordDiv .puzzleInput {
    box-sizing: border-box;
    width: 100% !important;
    height: 100% !important;

    /* Padding inside the square */
    padding: 4px !important;

    /* Make the letter visually centered */
    text-align: center;
    font-size: 18px;
    line-height: 1.1;
    border: none;
}

/* =========================
   Menus / TOC
   ========================= */
.TOC select {
    position: relative !important;
    background: white !important;
    max-width: 30% !important;
    text-overflow: ellipsis;
    min-width: 100px;
    padding: 5px !important;
    padding-right: 10px;
    font-size: 14px !important;
    color: #000000 !important;
    height: 40px !important;
    top: 1px;
    left: 100px;
    margin-left: 10px;
    margin-right: 10px;
}

.TOC option {
    background-color: #efefef;
    font-family: sans-serif;
    font-size: 14px;
    color: #000000;
}

@media (max-width: 600px) {
    .TOC {
        display: none !important;
    }
}

nav#menux {
    top: 90px;
    background-color: #000000;
    width: 280px;
    height: 600px;
    left: 0;
    border-right: thick double #070707;
    margin-right: 50px;
    border-radius: 5px;
    z-index: 141 !important;
}

nav#menu {
    background-color: #000000;
    position: absolute !important;
    top: 40px;
    left: 20px !important;
    width: 200px;
    min-width: 200px;
    height: 100%;
    max-height: 600px;
    left: 0 !important;
    z-index: 141 !important;
    padding-right: 10px !important;
    border-right: 10px #000000 solid;
}

nav#menu.splitpanelmenu {
    background-color: #000000;
    position: relative !important;
    top: 50px;
    left: 10% !important;
    width: 100%;
    min-width: 200px;
    max-width: 15%;
    height: auto !important;
    left: 0 !important;
    z-index: 141 !important;
    padding-right: 10px !important;
    border-right: 10px #000000 solid;
    order: 1;
    flex-grow: 1;
}

.menu {
    float: left;
    padding-right: 10px;
    margin-top: 5px;
}

li.subtopic.mm-selected a {
    border-left: 1px solid #FFFFFF;
    margin-left: 20px;
}

li.subtopic.mm-selected > a {
    background: rgba(0, 0, 0, 0.5);
    margin-left: 10px;
    border: none;
}

li.subtopic a {
    text-overflow: ellipsis;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    line-height: 10px;
    display: block;
    padding: 10px 10px 10px 20px;
    margin-left: 10px;
    margin-bottom: 10px;
}

#nav_2 {
    background-color: #000000;
    width: 160px;
    height: 485px;
    top: 90px;
    float: left;
    padding: 0 !important;
    border-radius: 20px;
    margin: 10px;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

#menu_2 {
    margin: 0 !important;
    padding-left: 10px !important;
}

#menu_2 li {
    margin: 20px 5px 5px 5px;
    text-indent: 0;
    line-height: 1.2;
    list-style-type: none;
    overflow: hidden;
    text-overflow: ellipsis;
}

#nav_2 li.mm-selected > span {
    border-bottom: medium none;
    background: none;
    text-decoration: underline;
}

#nav_2 ul li a {
    border-bottom: medium none;
    display: inline !important;
}

#menu_2.ui-menu {
    padding: 3px;
}

.categoryDiv {
    padding-left: 20px;
    border: 1px #070707;
    border-radius: 5px;
    background-color: rgba(177, 216, 245, 1);
}

.tileDiv {
    padding-left: 20px;
    border: thick double #070707;
    border-radius: 5px;
    background: linear-gradient(135deg, rgba(225, 255, 255, 1) 0%, rgba(225, 255, 255, 1) 7%, rgba(225, 255, 255, 1) 12%, rgba(253, 255, 255, 1) 12%, rgba(230, 248, 253, 1) 30%, rgba(200, 238, 251, 1) 54%, rgba(190, 228, 248, 1) 75%, rgba(177, 216, 245, 1) 100%);
}

.tileDiv:hover {
    cursor: pointer;
}

.ui-tabs {
    display: block;
    background-color: transparent !important;
    border: none;
    padding: 5px 10px 0 10px;
    height: 50px;
    width: 880px;
    position: relative;
    font-size: 1em;
    overflow: hidden;
}

#tabs {
    position: relative !important;
    top: 70px;
    width: 100% !important;
    height: auto !important;
    border: 1px black solid;
    background-color: transparent;
    z-index: 50;
    margin-left: auto;
    margin-right: auto;
}

#tabs li {
    margin-top: 10px !important;
}

ul#resources {
    border: none;
    background-color: transparent;
}

.ui-tabs-anchor {
    background-color: #000000 !important;
    color: white !important;
}

/* override, so that no change in themes affects the readability of the resource buttons */

/* Remove theme background on the LI wrapper */
ul#resources li {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 4px !important;
    /* small spacing between buttons */
}

/* Button itself */
ul#resources li a.ui-tabs-anchor {
    display: inline-block;
    font-weight: 600;
    text-decoration: none !important;

    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;

    /* Neutral interior + good contrast on any background */
    background: #f2f2f2 !important;
    color: #111 !important;
    border: 2px solid rgba(0, 0, 0, 0.45);

    /* Prevent theme tabs appearance */
    box-shadow: none !important;
}

/* Hover */
ul#resources li a.ui-tabs-anchor:hover {
    background: #e4e4e4 !important;
    border-color: rgba(0, 0, 0, 0.6);
}

/* Active/selected */
ul#resources li.ui-state-active a.ui-tabs-anchor {
    background: #d6d6d6 !important;
    border-color: rgba(0, 0, 0, 0.75);
}

.colorboxDiv {
    margin: 20px;
    padding: 20px;
    box-shadow: 10px 7px 5px #000000;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background-color: white;
}

.colorboxDiv .component {
    height: 0 !important;
}

.colorboxDiv .text {
    width: 98% !important;
    background-color: white !important;
}

#cboxLoadedContent {
    overflow: hidden !important;
    overflow-y: auto !important;
}

#cboxClose {
    margin-right: 10px !important;
    width: 30px !important;
    height: 30px !important;
    background: url(images/icon-close.png) no-repeat !important;
}

#cboxClose:hover {
    background: url(images/icon-close.png) no-repeat;
}

.ui-widget-content {
    border: none !important;
    background-color: transparent !important;
}

.organizerContent .divRow {
    background-color: #ffffff !important;
}

p {
    word-wrap: break-word !important;
    overflow: visible;
    margin-top: 10px;
}

.text,
.textBlock {
    width: 95% !important;
    left: 0 !important;
}

.dialog1,
.dialog2 {
    font-size: .8em !important;
    width: 45% !important;
    padding-bottom: 0 !important;
}

.dialog1 {
    width: 40% !important;
    height: auto !important;
    float: left;
    padding: 15px;
    margin: 1em 0 3em;
    border: 2px solid #5a8f00;
    color: #333;
    background: #fff;
    border-radius: 10px;
    margin-top: 30px;
}

.dialog2 {
    width: 40% !important;
    height: auto !important;
    float: right;
    padding: 15px;
    margin: 1em 0 3em;
    border: 2px solid #5a8f00;
    color: #333;
    background: #fff;
    border-radius: 10px;
    margin-top: 30px;
}

.character1 img,
.character2 img {
    clear: both;
    margin-top: 20px !important;
    width: 75% !important;
    height: auto !important;
    max-height: 200px;
}

.character1 img {
    float: right !important;
}

.character2 img {
    float: left !important;
}

.notesContent,
.notesButton {
    color: black;
}

.LS_JET_0004 {
    margin: auto;
}

/* Focus/drag feedback (from postprocess) */
.dndMenuItem:focus {
    background-color: #0000FF;
    color: #FFFFFF;
}

.ui-draggable.hover {
    background-color: #A7A7A7;
    color: white;
}

/* Photo slider tweaks (from postprocess) */
.ps-caption {
    font-size: 1em;
    background: rgba(72, 82, 92, 0.47) !important;
}

.PwgImageSliderWidget,
.pgwSlider {
    margin-left: auto;
    margin-right: auto;
    max-width: 550px !important;
}

.pgwSlider:after {
    clear: both;
    content: ".";
    margin-bottom: 50px;
}

/* Interview layout (from postprocess, already merged for stem) */
.interviewImage {
    background-color: rgba(255, 255, 255, 0);
    float: left;
    height: auto;
    margin: 20px;
    padding: 10px;
    position: static !important;
    width: 25%;
}

.interviewImage > .image {
    border: none;
    height: auto;
    width: 100%;
}

.interviewerDistractor.text {
    margin-bottom: 20px !important;
    margin-left: 30%;
    position: static !important;
    width: 60% !important;
}

.speechBubble {
    margin-left: 30%;
    margin-bottom: 100px;
    position: relative;
    background: #eeeeee;
    color: #000000;
    font-family: Arial;
    font-size: 1em;
    text-align: left;
    width: 250px;
    height: 120px;
    border-radius: 10px;
    padding: 20px;
}

.speechBubble:after {
    content: '';
    position: absolute;
    display: block;
    width: 0;
    z-index: 2;
    border-style: solid;
    border-color: transparent #eeeeee;
    border-width: 20px 20px 20px 0;
    top: 34%;
    left: -20px;
    margin-top: -20px;
}

.InterviewPage {
    border: 1px #c7c7c7 solid;
}

.dashboard {
    width: 100%;
}

.dbMeterDiv {
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative !important;
    top: 10px;
    transform: scale(.55);
    -webkit-transform: scale(.55);
}

.flashcard {
    padding: 20px !important;
}

.flashcard .inputbox {
    left: 10% !important;
    margin-top: 20px !important;
    position: static !important;
    top: 0 !important;
    width: 48% !important;
}

.flashcard .text {
    left: 10% !important;
    position: static !important;
    width: 48% !important;
}

.flashcard .imageparent {
    left: 60% !important;
    width: 35% !important;
}

.flashcard .imageparent img {
    height: auto !important;
    width: 100% !important;
}

.flashcard .image {
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .3);
    padding: 10px;
}

.popup {
    max-height: 500px !important;
    z-index: 150 !important;
}

.colorboxDiv {
    max-height: 80vh !important;
}

.overlay {
    box-shadow: 0 0 20px gray;
    height: auto;
    left: 25%;
    margin-left: auto !important;
    margin-right: auto !important;
    outline: 2px #a7a7a7 solid;
    padding: 20px !important;
    position: absolute !important;
    top: 20%;
    width: 50%;
    z-index: 100;
}

.overlay input {
    box-shadow: 0 0 5px green;
}

.overlayContent {
    width: 90% !important;
}

.overlay .text {
    width: 90% !important;
}

.popupContent p {
    margin: 20px;
}

body {
    background-size: 0;
}

body.doc-loaded {
    background-image: url("../../layout/background.jpg");
    background-repeat: no-repeat;
    background-size: 80% 100%;
    background-position: center;
}

/* Responsive Crossword */
.CrosswordPage .content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#crosswordDiv {
    height: 530px;
    width: 703px;
}

@media (max-width: 800px) {
    #crosswordDiv {
        transform: scale(0.8);
    }

    .interviewerStem {
        font-size: 12px;
    }

    .ImageAndTextCaption {
        font-size: 12px !important;
    }
}

@media (max-width: 600px) {
    #crosswordDiv {
        transform: scale(0.6);
    }

    .interviewerStem {
        font-size: 12px;
    }

    .ImageAndTextCaption {
        font-size: 12px !important;
    }
}

@media (max-width: 400px) {
    #crosswordDiv {
        transform: scale(0.4);
    }

    .interviewerStem {
        font-size: 12px;
    }

    .ImageAndTextCaption {
        font-size: 12px !important;
    }
}

#hintFieldDiv {
    position: absolute;
    top: 80%;
    margin-top: 10px;
    width: 100%;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

.shortSimDistractor {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Wrapper around the native <audio> element */

.pageAudioPlayer {
    width: 300px;
    max-width: 300px;

    padding: 4px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);

    margin: 20px !important;
    margin-bottom: 40px !important;
    position: relative;
    top: 20px;
    z-index: 200;
}

/* Native audio control respects the wrapper width */
.pageAudioPlayer audio {
    display: block;
    width: 100%;
}

/* =========================
   hide background so it is not distorted
   ========================= */

@media (max-width: 1000px) {

    body {
        background-image: none !important;
    }
}



/* ============================================================
   Smartphone Readability — base.css ONLY (final version)
   ============================================================ */

@media (max-width: 680px) {

    /* ---------------------------------------------------------
       1. ROOT: body is the ONLY vertical scroll container.
          Prevent html from rubber-banding at top/bottom.
       --------------------------------------------------------- */
    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        height: 100%;
        overflow-x: hidden !important;
    }

    

    body:not(svg text) {
        font-size: 1.7em;
        line-height: 1.85;
        -webkit-text-size-adjust: 100%;
        overflow-x: hidden !important;
        overflow-y: auto !important;        /* body scrolls */
        -webkit-overflow-scrolling: touch;
    }

    /* ---------------------------------------------------------
       2. Layout wrapper collapses to one-column flow
       --------------------------------------------------------- */
    body .mainWrapper {
        display: block !important;
        width: 98vw !important;
        margin: 5px !important;
        padding: 0 !important;
        left: 0 !important;
    }

    /* ---------------------------------------------------------
       3. NAVIGATION: must not be its own scroll container
       --------------------------------------------------------- */
    .mainWrapper nav,
    .mainWrapper nav#menu,
    .mainWrapper nav#menux,
    .mainWrapper #nav_2,
    .mainWrapper nav#menu.splitpanelmenu {
        margin: 0 !important;
        padding: 0 !important;
        left: 0 !important;
        z-index: 300 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        box-shadow: none !important;
        position:fixed !important;
    }

    /* ---------------------------------------------------------
       4. Content wrapper (jetWrapper) — no scrolling
       --------------------------------------------------------- */
    .mainWrapper .jetWrapper {
        flex: none !important;
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        padding-bottom: 120px !important;
        height: auto !important;
        overflow: visible !important;
        left: 0 !important;
        margin-left: 0 !important;
    }

    /* ---------------------------------------------------------
       5. Viewer area — not scrollable on mobile
       --------------------------------------------------------- */
    .jetWrapper .viewer {
        top: 70px !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    /* ---------------------------------------------------------
       6. ALL PAGE TYPES — fill viewport, body handles scrolling
       --------------------------------------------------------- */
    .viewer .page,
    .viewer .ReportPage,
    .viewer .mPage,
    .viewer .ShortAnswerPage,
    .viewer .LongAnswerPage,
    .viewer .organizerPage,
    .viewer .flashcard,
    .viewer .WidgetPage,
    .viewer .mQuestionPage,
    .viewer .JournalPage {
        padding: 16px !important;
        height: auto !important;
        min-height: 100vh !important;       /* required */
        overflow-y: hidden !important;     /* kill nested scroll */
        overflow-x: hidden !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* ---------------------------------------------------------
       7. Inner content: must not clamp its height
       --------------------------------------------------------- */
    .content {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        width: 100% !important;
    }

    .text,
    .textBlock,
    .LongAnswerPage .textBlock,
    .longAnswer {
        width: 100% !important;
        font-size: 1em;
        overflow-y: visible !important;
    }

    .dialog1,
    .dialog2 {
        width: 100% !important;
        float: none;
        font-size: 1em !important;
    }

    /* ---------------------------------------------------------
       8. Audio cosmetic adjustment
       --------------------------------------------------------- */
    audio {
        width: 140px;
        height: 50px;
        border-radius: 8px;
        background: #f7f7f7;
        border: 1px solid #ccc;
        padding: 4px;
           box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }
    
    /* ---------------------------------------------------------
       9. Image adjustment
       --------------------------------------------------------- */
    
    /* Images: allow vertical swipe to mean “scroll”, not “drag” */
    body img,
    body .image,
    body .ImagePage .image,
    body .interviewImage {
        -webkit-user-drag: none;
        touch-action: pan-y;   /* prefer vertical scrolling gesture */
    }
    
}
