html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}

.editor-wrapper {
    width: 95%;
    max-width: 800px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ========================
   Editable Area & Toolbar
======================== */

.editable {
    flex-grow: 1;
    min-height: 30vh;
    max-height: 70vh;
    overflow-y: auto;
    margin-top: 10px;
    padding: 15px;
    font-size: 16px;
    line-height: 1.6;
    border: 2px solid #b0b0b0;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    outline: none;
    background: linear-gradient(105deg, #aab2c6 0%, #99a0b4 100%);
    overscroll-behavior: contain;
}

.vocabulary-page .wrapper {
    min-height: 10vh;
}

.toolbar button#bold-btn,
.toolbar button#italic-btn,
.toolbar button#underline-btn {
    background: #e5e8ef;
    border: 2px solid #dde2f7;
    border-radius: 8px;
    color: #232451;
    font-size: 15px;
    font-weight: 700;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 2px;
    box-shadow: 0 0.5px 2px #bdd7e822;
    transition:
        background 0.09s,
        color 0.09s,
        border 0.09s;
    cursor: pointer;
    outline: none;
}

.toolbar button#bold-btn:active,
.toolbar button#italic-btn:active,
.toolbar button#underline-btn:active {
    background: #b7e3f9;
    color: #15315b;
    border: 2px solid #43e2ea;
}

/* ACTIVE styling always visible, higher priority than :active or :hover */
.toolbar button.active,
.toolbar button.active:active,
.toolbar button.active:hover,
.toolbar button.active:focus {
    background: #3cb2ef !important;
    color: #fff !important;
    border: 2.5px solid #0cf6fc !important;
    box-shadow: 0 0 10px 2px #2cf8fd90;
}

.toolbar button#bold-btn:hover:not(.active),
.toolbar button#italic-btn:hover:not(.active),
.toolbar button#underline-btn:hover:not(.active) {
    background: #d0dffd;
    color: #0c224b;
    border: 2px solid #8bd6f7;
}

.formatting-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.toolbar-wrapper {
    position: relative;
    padding-right: 100px; /* Space for PDF/Settings */
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    align-items: center;
}

/* ========================
   Load/Save Content Section
======================== */

#save-name,
#load-search {
    background: #c4c7d9;
    transition: background-color 0.44s cubic-bezier(0.64, 1.36, 0.38, 1.05);
}

.quick-menu-bar {
    width: 94%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    margin: 0px auto 30px auto;
    padding: 16px 22px 12px 22px;
    background: lightgray;
    border: 1.5px solid #d3d5e2;
    border-radius: 12px;
    box-shadow: 0 2px 8px 0 rgba(120, 120, 140, 0.06);
}

.menu-left,
.menu-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-label {
    color: #162d5c;
    font-weight: 700;
    margin-right: 5px;
    font-size: 16px;
}

.editable.empty:before,
.editable.empty::before {
    content: attr(data-placeholder);
    color: #313661;
    font-style: italic;
    pointer-events: none;
    display: inline;
    position: absolute;
    left: 15px; /* match .editable padding */
    top: 15px; /* match .editable padding */
    user-select: none;
}
.editable.empty {
    position: relative;
}
/* Input field for content name */
.menu-input {
    border: 1.2px solid #bcc4ec;
    background: #f6f8ff;
    border-radius: 5px;
    font-size: 15px;
    padding: 8px 12px;
    min-width: 140px;
    transition: border-color 0.2s;
}

.menu-input:focus {
    border-color: #4c70e2;
    border-width: 2.5px;
    outline: none;
    box-shadow: none;
}

.menu-load-content {
    position: relative;
    display: flex;
    align-items: center;
}

.menu-load-group {
    display: flex;
    align-items: stretch;
}

.menu-load-group .menu-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.menu-load-group .menu-arrow-btn {
    margin-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    height: 42px;
    min-height: 42px;
    min-width: 42px;
    width: 42px;
    max-height: 42px;
    max-width: 42px;
    border: 1.2px solid #bcc4ec;
    border-left: none;
    background: #e4e8f4;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(186, 194, 241, 0.07);
    padding: 0;
    transition:
        background 0.2s,
        border-radius 0.13s;
}
.menu-load-group .menu-arrow-btn:active {
    background: #7fa8ff !important;
}

/* Load (arrow) Button */
.menu-arrow-btn {
    border: none;
    background: #e4e8f4;
    color: #444;
    margin-left: 3px;
    font-size: 18px;
    padding: 5px 8px 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(186, 194, 241, 0.07);
    transition: background 0.2s;
}
.menu-arrow-btn:hover,
.square-save-btn:hover {
    background: #b7c5ff;
}
.menu-arrow-btn:active {
    background: #7fa8ff !important; /* much darker blue */
}

/* Save Button */
.square-save-btn {
    background: #e4e8f4;
    border: none;
    font-size: 20px;
    color: #345196;
    cursor: pointer;
    outline: none;
    box-shadow: 0 1px 5px 0 rgba(80, 90, 160, 0.06);
    display: flex;
    align-items: center;
    transition: background 0.18s;
}
.square-save-btn:active {
    background: #7fa8ff !important; /* much darker blue */
}
.save-icon {
    font-size: 20px;
    color: #5278d3;
}

/*SAVE LOAD POP UP*/
/* ========================
   Save/Load Button Tooltips
======================== */

/* Tooltip text hidden by default */
.menu-arrow-btn .tooltip-text,
.square-save-btn .tooltip-text {
    visibility: hidden;
    opacity: 0;
    min-width: 48px;
    background-color: #222;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px 10px;
    position: absolute;
    z-index: 30;
    left: 50%;
    top: -36px;
    transform: translateX(-50%);
    pointer-events: none;
    font-size: 14px;
    transition: opacity 0.16s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.13);
}

.toolbar-help-btn .tooltip-text {
    visibility: hidden;
    opacity: 0;
    min-width: 0;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 6px 10px;
    position: absolute;
    z-index: 10;
    left: 50%;
    top: -36px;
    transform: translateX(-50%);
    pointer-events: none;
    font-size: 14px;
    font-family: inherit;
    font-weight: normal;
    transition: opacity 0.2s ease-in-out;
    white-space: nowrap;
    box-shadow: none;
}
.toolbar-help-btn:hover .tooltip-text,
.toolbar-help-btn:focus .tooltip-text {
    visibility: visible;
    opacity: 1;
}
.toolbar-help-btn {
    position: relative;
}

/* Show on hover or focus (for accessibility) */
.menu-arrow-btn:hover .tooltip-text,
.menu-arrow-btn:focus .tooltip-text,
.square-save-btn:hover .tooltip-text,
.square-save-btn:focus .tooltip-text {
    visibility: visible;
    opacity: 1;
}
.menu-arrow-btn,
.square-save-btn {
    position: relative; /* so tooltip is positioned to button */
}

/* Dropdown for loading */
.load-dropdown {
    display: none;
    position: absolute;
    top: 36px;
    right: -20px;
    min-width: 270px;
    max-width: 270px;
    max-height: 220px;
    background: #fff;
    border: 1px solid #d3d5e2;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(80, 100, 180, 0.13);
    overflow-y: auto;
    z-index: 100;
}
.menu-load-content.open .load-dropdown {
    display: block;
    animation: popIn 0.16s cubic-bezier(0.8, 2, 0.4, 1.5);
}

/* Dropdown animation */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.96) translateY(-6px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Dropdown items */
.dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 15px;
    color: #23305a;
    border-bottom: 0.5px solid #e8e9f8;
    transition:
        background 0.13s,
        color 0.13s;
}
.dropdown-item:last-child {
    border-bottom: none;
}
.dropdown-item:hover,
.dropdown-item:focus {
    background: #e8ebfa;
    color: #233088;
}

/* Responsive: stack Load/Save bar on mobile */

@media (max-width: 600px) {
    .quick-menu-bar {
        width: 88% !important;
    }
}

@media (max-width: 350px) {
    .quick-menu-bar {
        width: 86% !important;
    }
}

@media (max-width: 700px) {
    .quick-menu-bar {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .menu-left,
    .menu-right {
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
    }
    .menu-load-content,
    .menu-save-content {
        justify-content: center !important;
        width: auto !important;
    }
    .menu-label {
        min-width: 48px !important;
        text-align: left !important;
        margin-right: 5px !important;
        margin-left: 0 !important;
        display: inline-block !important;
        padding: 0 !important;
        vertical-align: middle !important;
    }

    .load-dropdown {
        right: 0px;
    }
}

.menu-load-group,
.menu-save-content {
    width: 220px !important;
    max-width: 220px !important;
}

/* ========================
   PDF View + Download Buttons
======================== */

/* Wrapper for PDF buttons */
.pdf-buttons-wrapper {
    position: absolute;
    top: -12px;
    right: 10px;
    display: flex;
    align-items: center;
}
#settings-container {
    margin-right: -10px !important;
}

/* View Button (PDF icon with tooltip) */
.view-btn {
    position: relative;
    width: 60px;
    height: 60px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -20px; /* bring buttons closer */
}
.PDF-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Tooltip for view */
.view-btn::after {
    content: "View PDF";
    position: absolute;
    bottom: 85%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    z-index: 10;
}
.view-btn:hover::after {
    opacity: 1;
}

/* Download Button (PDF) */
.download-btn {
    position: relative;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.download-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Tooltip for download */
.download-btn::after {
    content: "Download PDF";
    position: absolute;
    bottom: 120%; /* Match height with view-btn */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    z-index: 10;
}
.download-btn:hover::after {
    opacity: 1;
}

/* ========================
   Circular Icon Buttons
======================== */

.icon-btn {
    width: 35px;
    height: 35px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.icon-btn img {
    width: 200%;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

/* Hover state for icon buttons */
.icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Tooltip for icon buttons */
.icon-btn::after {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    z-index: 10;
}

.icon-btn:hover::after {
    opacity: 1;
}

/* ========================
   Dropdown Tooltip Styling
======================== */

/* Tooltip container */
.dropdown-tooltip {
    position: relative;
    display: inline-block;
}

/* Remove select margin */
.dropdown-tooltip select {
    margin: 0;
}

/* Tooltip for dropdowns */
.dropdown-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    z-index: 10;
}

.dropdown-tooltip:hover::after {
    opacity: 1;
}

/* ========================
   Mobile Styling
======================== */

@media (max-width: 850px) {
    #vocab-list {
        width: 100% !important;
        margin-left: 0 !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        max-width: 100vw !important;
        padding-right: 0 !important;
    }
}
@media (max-width: 850px) {
    .vocab-word-box,
    .vocab-def-box,
    .vocab-hint-box,
    .vocab-mnemonic-box {
        width: 96.5% !important;
    }
}

/* Responsive: stack vertically and fill width on mobile screens */
@media (max-width: 850px) {
    .vocab-row-box {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 95% !important;
        min-width: 0 !important;
        padding-top: 25px !important;
    }
    .vocab-box-num {
        padding-bottom: 10px;
    }
    .vocab-col-stack.left-col,
    .vocab-col-stack.right-col {
        display: contents !important;
    }
    .vocab-word-box {
        order: 1 !important;
    }
    .vocab-def-box {
        order: 2 !important;
    }
    .vocab-hint-box {
        order: 3 !important;
    }
    .vocab-mnemonic-box {
        order: 4 !important;
    }
    .vocab-img-col,
    .vocab-image-box {
        width: 98% !important;
        min-width: 0 !important;
        max-width: 98% !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: -2px !important;
    }

    .vocab-col-stack.left-col,
    .vocab-col-stack.right-col {
        display: contents !important;
    }

    .vocab-word-box {
        order: 1 !important;
    }
    .vocab-def-box {
        order: 2 !important;
    }
    .vocab-hint-box {
        order: 3 !important;
    }
    .vocab-mnemonic-box {
        order: 4 !important;
    }
    .vocab-img-col {
        order: 5 !important;
    }
}

@media (max-width: 600px) {
    .toolbar select {
        font-size: 1rem;
        padding: 0px;
        height: auto;
        min-width: auto;
    }
    .dropdown-tooltip {
        margin-right: 0px;
        width: 10vw;
    }
}
@media (max-width: 600px) {
    .toolbar {
        width: 100% !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
    }
    .dropdown-tooltip[data-tooltip="Font"] select,
    .dropdown-tooltip[data-tooltip="Background"] select {
        min-width: 108px !important;
        width: 33vw !important;
        max-width: 47vw !important;
        margin-bottom: 7px !important;
    }
    .toolbar .dropdown-tooltip {
        min-width: 0 !important;
        max-width: none !important;
        flex: none !important;
    }
    .dropdown-tooltip {
        width: auto !important;
        min-width: 0 !important;
    }
    .toolbar .icon-btn,
    .toolbar button,
    .toolbar select {
        margin-bottom: 7px !important;
    }
    .toolbar > * {
        flex-shrink: 0 !important;
    }
    .toolbar-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        justify-content: space-between !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding-right: 0 !important;
        gap: 0 !important;
        overflow-x: hidden !important;
    }
    .toolbar {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        margin-right: 0 !important;
        width: auto !important;
        max-width: none !important;
        gap: 0 !important;
    }
    .pdf-buttons-wrapper {
        position: static !important;
        max-width: 60px !important;
        min-width: 0 !important;
        margin-left: 4px !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
        gap: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }
    #settings-container {
        margin-right: 0 !important;
    }
    .view-btn {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
        padding: 0 !important;
    }
    .PDF-icon {
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: 100% !important;
        max-height: 100% !important;
    }
    .pdf-buttons-wrapper {
        margin-left: auto !important;
        margin-right: 35px !important;
    }

    #settings-dropdown.settings-dropdown-nice {
        position: fixed !important;
        left: 50% !important;
        top: 60px !important;
        transform: translateX(-50%) !important;
        width: 97vw !important;
        max-width: 370px !important;
        min-width: 180px !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        border-radius: 16px !important;
        z-index: 99999 !important;
    }
}

@media (max-width: 450px) {
    .vocab-control-btns {
        flex-wrap: wrap !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .vocab-control-btns button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 1.05em !important;
        margin: 0 !important;
    }
    .vocab-box-wrapper {
        overflow: visible !important;
    }
}

@media (max-width: 600px) {
    .vocab-row-box {
        transform: scale(0.92);
        transform-origin: top left;
        margin-bottom: 0px !important;
        width: 100% !important;
        max-width: 99vw !important;
        gap: 0px !important;
        font-size: 20px;
    }
    .vocab-word-box,
    .vocab-def-box,
    .vocab-hint-box,
    .vocab-mnemonic-box {
        min-height: 54px !important;
        max-height: 54px !important;
        padding: 9px 8px !important;
        font-size: 11px !important;
    }
    .vocab-img-col,
    .vocab-image-box {
        height: 30vw !important;
        max-height: 30vw !important;
        min-height: 0 !important;
    }
    .vocab-img-plus {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 1.7em !important;
        height: 1.7em !important;
        font-size: 2.5em !important;
        line-height: 1em !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .vocab-image-box {
        position: relative !important;
    }
    .vocab-box-wrapper {
        overscroll-behavior: none !important;
    }
    .editable {
        max-height: none !important;
        overflow-y: visible !important;
        overscroll-behavior: auto !important;
    }
}

/* ========================
   Vocabulary Word/Def Box
======================== */

.vocab-box-wrapper {
    width: 95%;
    max-width: 800px;
    margin: 24px auto 0 auto;
    padding: 12px 16px;
    border: 2px solid #b0b0b0;
    border-radius: 8px;
    background: lightgray;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    max-height: 640px; /* adjust as needed for your design */
    overflow: hidden; /* hides any controls that overflow the wrapper */
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
}

#vocab-list {
    overflow-y: auto;
    flex: 1 1 auto;
    max-height: 560px;
    width: 102.1%;
    min-width: 0;
    margin-left: 0;
    box-sizing: border-box;
    margin-left: -3px;
}

.vocab-row-box:hover {
    box-shadow:
        0 8px 26px 0 rgba(70, 80, 140, 0.13),
        0 3px 8px 0 #54548829;
    border-width: 1.5px;
    border-color: #00ffff;
}

/* Word/def input area */

/* Flex proportions for desktop */
.vocab-def-box {
    flex: 2 1 70%;
    min-width: 120px;
    max-width: none;
}

/* Placeholders for empty contenteditable */
.vocab-word-box:empty:before,
.vocab-hint-box:empty:before,
.vocab-def-box:empty:before,
.vocab-mnemonic-box:empty:before {
    content: attr(placeholder);
    color: #b6b6b6;
    font-style: italic;
    pointer-events: none;
}

/* ========================
   Extra Vocab Box Controls
======================== */

/* Control buttons under boxes */
.vocab-control-btns {
    display: flex;
    justify-content: center; /* Center the buttons horizontally */
    align-items: center;
    margin-bottom: 14px;
    gap: 14px;
}

.vocab-control-btns button {
    border-radius: 6px;
    border: 1px solid #b0b0b0;
    background: #efefef;
    font-size: 15px;
    padding: 7px 18px;
    cursor: pointer;
    color: #333;
    transition: background 0.16s;
}

.vocab-control-btns button:hover {
    background: #e0e0e0;
}

/**/

.vocab-col-stack {
    display: flex;
    flex-direction: column;
    gap: 0px;
    justify-content: stretch;
}
/* Lock column widths: adjust px for your needs */
.vocab-col-stack.left-col {
    flex: none;
    width: 240px !important;
}

.vocab-col-stack.right-col {
    flex: none;
    width: 320px;
}

.vocab-word-box:focus,
.vocab-hint-box:focus {
    border-color: #999aca;
    background: #fff;
}
.vocab-def-box:focus,
.vocab-mnemonic-box:focus {
    border-color: #999aca;
    background: #fff;
}

.vocab-col-stack:first-child {
    flex-basis: 33%;
    min-width: 80px;
    max-width: 230px;
}
.vocab-col-stack:last-child {
    flex-basis: 67%;
    min-width: 120px;
}

.vocab-word-box,
.vocab-hint-box,
.vocab-def-box,
.vocab-mnemonic-box {
    flex-basis: 50%;
    min-height: 75px; /* taller for 2 lines, plenty of space */
    max-height: 75px;
    padding: 12px 16px;
    border: 1.5px solid #4a4a65;
    border-radius: 8px;
    background: linear-gradient(135deg, #39394f 0%, #545478 100%);
    font-size: 16px;
    color: #e7eafd;
    line-height: 1.5;
    outline: none;
    transition:
        border-color 0.2s,
        background 0.18s;
    overflow-x: auto;
    overflow-y: auto;
    box-sizing: border-box;
    box-shadow: 0 1.5px 5px 0 #34345a29;
}
.vocab-col-stack.left-col .vocab-word-box,
.vocab-col-stack.left-col .vocab-hint-box,
.vocab-col-stack.right-col .vocab-def-box,
.vocab-col-stack.right-col .vocab-mnemonic-box {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}
.vocab-word-box:focus,
.vocab-hint-box:focus,
.vocab-def-box:focus,
.vocab-mnemonic-box:focus {
    border-color: #7a80cd;
    background: linear-gradient(135deg, #494973 0%, #7c7caf 100%);
    color: #fff;
}

/* Def/Mnemonic get slightly less width to fit image */
.vocab-col-stack.shorter-col {
    flex-basis: 55%;
    min-width: 90px;
}

/* Image column styling */
.vocab-img-col {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-basis: 160px;
    min-width: 160px;
    max-width: 160px;
    margin-left: -55px;
}
.vocab-image-box {
    position: relative;
    width: 158px;
    height: 158px;
    flex: none;
    background: linear-gradient(135deg, #35364d 60%, #434360 100%);
    border: 1.5px solid #4d5167;
    border-radius: 13px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    cursor: pointer;
    transition: box-shadow 0.18s;
    bottom: 3.5px;
}

.vocab-img-preview {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 13px;
    box-shadow: 0 2px 10px 0 #20204459;
    display: block;
    z-index: 1;
}
.vocab-image-box {
    position: relative;
    overflow: hidden;
}
.vocab-img-preview:not(.has-img):after {
    content: "+";
    color: #9494b8;
    font-size: 4em;
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 120px;
    opacity: 0.45;
}
.vocab-img-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(60, 60, 90, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 23px;
    height: 23px;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    outline: none;
    transition: background 0.14s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-top: 3px; /* <---- ADJUST THIS ONLY */
}
.vocab-img-remove-btn:hover {
    background: #f14545;
    color: #fff;
}

.vocab-img-plus {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    /* line-height: 130px;   <-- REMOVE or comment out old value */
    line-height: 150px; /* ADJUST upwards for lower vertical centering */
    font-size: 3.2em;
    color: #b1b4ce;
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
    font-family: "Segoe UI", "Arial", sans-serif;
}

.vocab-image-box:hover .vocab-img-plus {
    opacity: 0.95;
    color: #f8faff;
    text-shadow:
        0 0 10px #fff9,
        0 0 24px #6edcff33;
    transition:
        color 0.18s,
        opacity 0.15s,
        text-shadow 0.19s;
}
.vocab-image-box {
    transition:
        box-shadow 0.18s,
        border-color 0.18s,
        background 0.18s;
}
.vocab-image-box:hover {
    box-shadow:
        0 0 3px 0 #b1b7d233,
        0 1px 3px 0 #a9badc22;
    border-color: #636b91;
    background: linear-gradient(135deg, #3a3e5a 0%, #626a8e 100%);
}

.vocab-row-box {
    position: relative;
    display: grid;
    grid-template-columns: min-content 1fr 1.75fr 140px;
    gap: 8px;
    align-items: stretch;
    width: 753px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #26263c 0%, #43436e 100%);
    border: 1.5px solid #3e4260;
    border-radius: 15px;
    padding: 18px 0px 10px 10px;
    box-shadow:
        0 4px 18px 0 rgba(55, 60, 95, 0.07),
        0 1.5px 4px 0 #40405d1a;
    transition: box-shadow 0.23s;
}

.vocab-box-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 22px;
    color: #5d5d77;
    pointer-events: none;
    background: none;
    z-index: 2;
    width: max-content;
    min-width: 0;
    max-width: 999px; /* large on purpose, won't matter with no overflow */
    display: flex;
    align-items: center;
    justify-content: center;
}
.vocab-col-stack.left-col {
    width: auto;
    max-width: 220px;
    min-width: 120px;
    flex: 1 1 0%;
}

/* Fix for menu-input field shrinking and wrapping inside .quick-menu-bar */

.menu-left,
.menu-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Make menu-input always fit & not overflow */
.menu-input {
    min-width: 0;
    width: 100%;
    max-width: 220px;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .quick-menu-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .menu-right {
        width: 100%;
        min-width: 0;
        flex: 1 1 0%;
        margin-left: 0;
        justify-content: flex-start;
    }
    .menu-input {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

/*Audio button*/

/* Audio button in toolbar */
.toolbar .audio-btn {
    font-size: 16px !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #eef3fe;
    box-shadow: 0 1px 4px #617abb12;
    transition:
        background 0.13s,
        box-shadow 0.13s,
        filter 0.13s;
    line-height: 1;
    text-align: center;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 2px;
    vertical-align: middle;
}
.toolbar .audio-btn:hover {
    background: #d0e4ff;
    box-shadow:
        0 2px 10px #73bafd33,
        0 0 10px 3px #73e1fa55;
    filter: drop-shadow(0 0 5px #7ca0fd44);
}
.toolbar .audio-btn.audio-playing {
    background: #badaff;
    box-shadow:
        0 0 0 2px #6ea0ff,
        0 0 8px 1px #86e8fa66;
    filter: drop-shadow(0 0 3px #79aaffcc);
}

#audio-speed-select {
    min-width: 62px;
    font-size: 15px;
}

/*Four extra audio buttons*/

.small-audio-btn {
    font-size: 13px !important;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: transparent !important;
    box-shadow: 0 1px 4px #617abb12;
    transition:
        background 0.13s,
        box-shadow 0.13s,
        filter 0.13s;
    line-height: 1;
    text-align: center;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 4px;
    vertical-align: middle;
}
.small-audio-btn:hover {
    background: #d0e4ff;
    box-shadow:
        0 2px 10px #73bafd33,
        0 0 10px 3px #73e1fa55;
    filter: drop-shadow(0 0 5px #7ca0fd44);
}
.small-audio-btn.audio-playing {
    background: #badaff;
    box-shadow:
        0 0 0 2px #6ea0ff,
        0 0 8px 1px #86e8fa66;
    filter: drop-shadow(0 0 3px #79aaffcc);
}

.toolbar .audio-btn,
.small-audio-btn {
    font-size: 18px;
    padding: 2px 6px;
    line-height: 1;
    border-radius: 50%;
    background: #eef3fe;
    border: none;
    transition:
        background 0.13s,
        box-shadow 0.13s,
        filter 0.13s;
    box-shadow: 0 1px 4px #617abb12;
    margin-right: 2px;
    vertical-align: middle;
}
.toolbar .audio-btn:hover,
.small-audio-btn:hover {
    background: #d0e4ff;
    box-shadow:
        0 2px 10px #73bafd33,
        0 0 10px 3px #73e1fa55;
    filter: drop-shadow(0 0 5px #7ca0fd44);
}
.toolbar .audio-btn.audio-playing,
.small-audio-btn.audio-playing {
    background: #badaff;
    box-shadow:
        0 0 0 2px #6ea0ff,
        0 0 8px 1px #86e8fa66;
    filter: drop-shadow(0 0 3px #79aaffcc);
}

.vocab-word-box,
.vocab-hint-box,
.vocab-def-box,
.vocab-mnemonic-box {
    position: relative;
}

.vocab-col-stack .small-audio-btn {
    position: absolute;
    top: 3px;
    left: 3px;
    margin-left: 0;
    z-index: 2;
}

.vocab-col-stack {
    position: relative;
}

.vocab-box-audio-wrap {
    position: relative;
    margin-bottom: 8px;
}
.vocab-box-audio-wrap .small-audio-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
}
.vocab-word-box,
.vocab-hint-box,
.vocab-def-box,
.vocab-mnemonic-box {
    padding-right: 38px !important;
}

#speech-voice-select {
    max-width: 120px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.vocab-star-btn {
    font-size: 28px;
    color: #c7c7c7;
    background: none;
    border: none;
    cursor: pointer;
    transition:
        color 0.2s,
        text-shadow 0.2s;
    line-height: 1;
    padding: 0;
    /* NO GLOW by default */
    text-shadow: none;
    margin-top: -5px !important;
    margin-left: -2px;
}

.vocab-star-btn.starred {
    color: #ffd700;
    text-shadow:
        0 0 8px #ffe066,
        0 0 20px #fffbbb;
}

.toolbar select {
    background: #f6f6f6;
    border: 2px solid #dde2f7;
    border-radius: 8px;
    color: #232451;
    font-size: 14px;
    padding: 6px 30px 6px 12px;
    outline: none;
    transition:
        border 0.13s,
        background 0.13s,
        color 0.13s;
    box-shadow: 0 1px 4px #bdd7e820;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 76px;
    height: 34px;
    margin: 0 1.5px;
    cursor: pointer;
    font-family: inherit;
}

.toolbar select:focus,
.toolbar select:hover {
    background: #ececec;
    border-color: #bcbecf;
    color: #193953;
}

.toolbar select {
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg width='18' height='14' xmlns='http://www.w3.org/2000/svg'><path d='M2 4l7 7 7-7' stroke='%23406ad1' stroke-width='2.4' fill='none' fill-rule='evenodd'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px 14px;
    padding-right: 32px;
}

.settings-btn {
    background: none;
    border: none;
    padding: 0 5px;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: background 0.17s;
    box-shadow: none;
}
.settings-btn:hover {
    background: #f0f2fa;
}
.settings-btn img {
    width: 28px;
    height: 28px;
    filter: invert(0.85);
}
#settings-tooltip {
    display: none;
    position: absolute;
}
#settings-container:hover #settings-tooltip,
#settings-container:focus-within #settings-tooltip {
    display: block !important;
}
#settings-dropdown.settings-dropdown-nice {
    padding: 10px 0px 8px 0px;
    min-width: 220px;
    background: linear-gradient(135deg, #535965 0%, #9298a3 54%, #383b41 100%);
    border-radius: 12px;
    box-shadow:
        0 3px 18px #2b2b2b36,
        0 1px 5px #7a8ea533;
    font-size: 1.13em;
    border: 1px solid #e1e5eb;
    display: none;
    right: 0;
    position: absolute !important;
    left: 50%;
    top: 42px;
    transform: translateX(-50%);
    z-index: 1111;
}
@media (max-width: 1000px) {
    #settings-dropdown.settings-dropdown-nice {
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        top: 58px !important;
        margin: 0 !important;
        transform: translateX(-50%) !important;
        min-width: 0 !important;
        max-width: 600px !important;
        width: 98vw !important;
        border-radius: 16px !important;
        z-index: 9999 !important;
    }
}

#settings-dropdown.show {
    display: block;
    animation: dropdownIn 0.22s cubic-bezier(0.19, 1.22, 0.35, 1);
}
.settings-title {
    background: linear-gradient(97deg, #b3bbca 30%, #8d98ad 100%);
    font-size: 1.08em;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 6px 0 10px 0;
    color: #4a5566;
    text-align: center;
    border-radius: 18px 18px 14px 14px;
    border-bottom: none;
    margin: 0 16px 0 16px;
}

#settings-dropdown.settings-dropdown-nice .settings-title + * {
    margin-top: 8px !important;
    border-top: 1px solid #d2dae5 !important;
}

#settings-dropdown.settings-dropdown-nice label {
    width: 100%;
    text-align: center;
    display: block;
    margin: 7px 0 2px 0;
}
#settings-dropdown.settings-dropdown-nice select {
    background: #f6f6f6;
    border: 2px solid #dde2f7;
    border-radius: 8px;
    color: #232451;
    font-size: 15px;
    min-width: 160px;
    max-width: 220px;
    width: 180px;
    padding: 7px 28px 7px 12px;
    outline: none;
    transition:
        background 0.15s,
        color 0.13s,
        border 0.13s;
    box-shadow: 0 1px 4px #bdd7e825;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    margin: 0 auto 0 auto;
    display: block;
    text-align: center;
}

#settings-dropdown.settings-dropdown-nice select:focus,
#settings-dropdown.settings-dropdown-nice select:hover {
    background: #ececec;
    border-color: #bcbecf;
    color: #193953;
}

#settings-dropdown.settings-dropdown-nice select {
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg width='14' height='12' xmlns='http://www.w3.org/2000/svg'><path d='M2 4l5 5 5-5' stroke='%23555f81' stroke-width='2.1' fill='none' fill-rule='evenodd'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 13px 13px;
}

.toolbar .audio-btn:hover {
    outline: 2.2px solid #49a9fe;
    outline-offset: 1.5px;
}
.toolbar .audio-btn {
    border: 2px solid #405081;
}
.vocab-control-btns button:hover {
    border: 1px solid #33c0fe;
}
#editor-count {
    color: #000000 !important;
}

.editable:focus,
.editable.focus {
    box-shadow:
        0 0 0 1px #7fc1fa99,
        0 2px 10px rgba(0, 60, 255, 0.08);
    border-color: #5ba2e4;
}

#toggle-count-visibility {
    min-width: 160px;
    border-radius: 6px;
    border: 1px solid #b0b0b0;
    background: #efefef;
    font-size: 15px;
    padding: 7px 18px;
    cursor: pointer;
    color: #333;
    transition:
        background 0.16s,
        color 0.13s,
        border 0.13s;
    margin: 6px auto 0 auto;
    display: block;
}
#toggle-count-visibility:hover {
    background: #e0e0e0;
    border: 1px solid #33c0fe;
}

#settings-dropdown.settings-dropdown-nice button,
#settings-dropdown.settings-dropdown-nice select,
#settings-dropdown.settings-dropdown-nice [role="button"] {
    cursor: pointer;
}
#settings-dropdown.settings-dropdown-nice label {
    cursor: default;
}

#settings-dropdown .settings-row > span {
    font-weight: normal !important;
    font-size: 15px !important;
    font-family: inherit !important;
    color: inherit !important;
    margin-bottom: 3px;
}

.toolbar-help-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.toolbar-help-btn {
    font-size: 19px;
    background: #cfd2e0;
    border: 2px solid #405081; /* exact border as .toolbar .audio-btn */
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: #223;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.13s,
        color 0.13s,
        border 0.13s;
}
.toolbar-help-btn:hover,
.toolbar-help-btn.active {
    background: #8cb2ef;
    color: #fff;
    border: 1px solid #46a3fa;
    box-shadow: 0 0 0 2px #73c7fe55;
}
.toolbar-help-popup {
    display: none;
    position: absolute;
    left: 0;
    top: 38px;
    min-width: 420px;
    max-width: 420px;
    background: #232844;
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 2px 10px #3334;
    padding: 12px 17px;
    z-index: 2022;
    pointer-events: auto;
    border: 2px solid #405081; /* relevant, matches audio/help btn */
}
.toolbar-help-popup.active {
    display: block;
}

#insert-delim-btn,
#insert-ignore-open-btn,
#insert-ignore-close-btn {
    background: #e5e8ef;
    border: 2px solid #dde2f7;
    border-radius: 8px;
    color: #232451;
    font-size: 15px;
    font-weight: 700;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 2px;
    box-shadow: 0 0.5px 2px #bdd7e822;
    transition:
        background 0.09s,
        color 0.09s,
        border 0.09s;
    cursor: pointer;
}

#insert-delim-btn:hover,
#insert-ignore-open-btn:hover,
#insert-ignore-close-btn:hover {
    background: #d0dffd;
    color: #0c224b;
    border: 2px solid #8bd6f7;
}

/* Button color override by dropdown JS */
#insert-delim-btn,
#insert-ignore-open-btn,
#insert-ignore-close-btn {
    /* nothing: JS will set styles as for the other buttons */
}

.set-delete-x {
    display: inline-block;
    margin-left: 12px;
    color: #f14545;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    border-radius: 50%;
    transition: background 0.13s;
    padding: 1px 7px 1px 7px;
    vertical-align: middle;
}
.set-delete-x:hover {
    background: #ffe6e6;
}

.vocab-box-num-cell {
    position: relative;
    padding: 0px 6px; /* Add 12px (or adjust) of space on both sides */
    margin-bottom: 8px;
}
.vocab-move-up-btn,
.vocab-move-down-btn {
    width: 22px;
    height: 22px;
    font-size: 18px;
    margin: 36px 0 20px -30px; /* shift BOTH down */
    padding-left: 20px;
    color: #6070a9;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition:
        background 0.15s,
        color 0.15s;
    display: block;
    box-shadow: none;
    outline: none;
    position: relative;
    z-index: 10;
}

.vocab-move-up-btn:hover,
.vocab-move-down-btn:hover {
    background: #ddeaff;
    color: #1d3578;
}

@media (max-width: 850px) {
    .vocab-move-up-btn {
        margin: -13px auto 12px auto;
        padding-left: 1.5px;
        display: block;
    }
    .vocab-move-down-btn {
        margin: 8px auto 0 auto;
        padding-left: 1.5px;
        display: block;
    }
}

.menu-save-content {
    display: flex;
    align-items: stretch;
    position: relative;
    width: auto;
    min-width: 0;
    max-width: 245px;
}

.menu-right .menu-label {
    min-width: 48px;
}

.menu-save-content .menu-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.menu-save-content .square-save-btn {
    margin-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    height: 42px;
    min-height: 42px;
    min-width: 42px;
    width: 42px;
    max-height: 42px;
    max-width: 42px;
    border: 1.2px solid #bcc4ec;
    border-left: none;
    background: #e4e8f4;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 5px 0 rgba(80, 90, 160, 0.06);
    padding: 0;
    transition:
        background 0.18s,
        border-radius 0.13s;
}
.menu-save-content .square-save-btn:hover {
    background: #b7c5ff;
}
.menu-save-content .square-save-btn:active {
    background: #7fa8ff !important;
}

.menu-save-content .square-save-btn:active {
    background: #7fa8ff !important;
}
.menu-save-content .square-save-btn .save-icon {
    font-size: 20px;
}

.menu-load-group .menu-arrow-btn,
.menu-save-content .square-save-btn {
    background: #b0b3cf;
}
.menu-load-group .menu-arrow-btn:hover,
.menu-save-content .square-save-btn:hover {
    background: #8f99c2;
}
.menu-load-group .menu-arrow-btn:active,
.menu-save-content .square-save-btn:active {
    background: #6a75b0 !important;
}

/*Unstar all button*/

.settings-unstar-wrap {
    margin-top: 18px;
    padding-top: 13px;
    text-align: center;
    border-top: 1.5px solid #c5c9d6;
    width: 100%;
}
.settings-unstar-title {
    color: #000;
    font-size: 19px;
    font-weight: 400;
    margin: 7px 0 2px 0;
    text-align: center;
    display: block;
    font-family: inherit;
    letter-spacing: 0.01em;
}

#unstar-all-btn {
    min-width: 160px;
    max-width: 250px;
    border-radius: 6px;
    border: 1px solid #b0b0b0;
    background: #efefef;
    font-size: 15px;
    padding: 7px 18px;
    cursor: pointer;
    color: #333;
    transition:
        background 0.16s,
        color 0.13s,
        border 0.13s;
    margin: 6px auto 0 auto;
    display: block;
    font-weight: 500;
}
#unstar-all-btn:hover {
    background: #e0e0e0;
    border: 1px solid #33c0fe;
}

.settings-unstar-wrap {
    margin-top: 10px;
    padding-top: 0;
    text-align: center;
    border-top: none;
    width: 100%;
}

/*Unstar end*/

.toolbar-help-popup {
    max-height: 550px;
    overflow-y: auto;
}

.input-popup-tooltip {
    animation: popupFadeIn 0.16s cubic-bezier(0.6, 2, 0.3, 1.5);
}
@keyframes popupFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

@media (max-width: 800px) {
    #pdf-overlay-modal {
        align-items: flex-start !important;
        padding-top: 10vw !important;
        padding-bottom: 10vw !important;
        overflow-x: hidden !important;
    }
    #pdf-overlay-modal .pdf-page {
        width: 200vw !important;
        min-width: 0 !important;
        max-width: 200vw !important;
        margin: 10px auto 10px auto !important;
        padding-left: 1vw !important;
        padding-right: 1vw !important;
        box-sizing: border-box !important;
        transform: scale(0.47) !important;
        transform-origin: top center !important;
        overflow-x: auto !important;
    }
    #pdf-overlay-modal > div > div:first-child {
        width: 100vw !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0 !important;
        margin-bottom: 2vw !important;
    }
    #pdf-overlay-modal button,
    #pdf-overlay-modal .copy-btn {
        min-width: 100px !important;
        max-width: 100px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        width: auto !important;
        font-size: 12px !important;
        height: 28px !important;
        padding: 4px 10px !important;
    }
    #pdf-overlay-modal .download-btn {
        margin-left: 4vw !important;
        margin-top: 1vw !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
        font-size: 20px !important;
        padding: 0 !important;
    }

    #pdf-overlay-modal button[title="Close PDF view"] {
        margin-right: 4vw !important;
        margin-top: 1vw !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
        font-size: 20px !important;
        padding: 0 !important;
    }
}
#pdf-overlay-modal .copy-btn {
    margin-right: 0 !important;
}
