/*
 * The styles of fixed elements in index.html. They stayed in <style> block and attributes
 * style = "" of the page; index.html now contains only HTML.
 * Loading after the other pages of style, where <style> was.
 */

/* Hide the text from the side buttons, just leave the icons.
   Custom buttons (.custom- font-button,.custom- image-button) are excluded
   to allow ResourceIconsManager to apply Buttons.js styles */
.new-left-sidebar .menu-button:not(.custom-font-button):not(.custom-image-button) {
    font-size: 0 !important;
}
.new-left-sidebar .menu-button:not(.custom-font-button):not(.custom-image-button) i {
    font-size: 20px !important;
}
@media screen and (max-width: 768px) {
    .new-left-sidebar .menu-button:not(.custom-font-button):not(.custom-image-button) i {
        font-size: 22px !important;
    }
}

/* The button × in the corner of the menu View and Zoom (the hover is in style.css,.drop-close: hover) */
#view-options-dropdown > .dropdown-close,
#zoom-options-dropdown > .dropdown-close {
    position: absolute;
    top: 4px;
    right: 4px;
    background: white;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    z-index: 1010;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Simple page viewer starts hidden (hidden attribute); display.js removes
   The attribute when it shows. style.css gives it a display: flex, which otherwise
   would win in front of the default style of the hidden attribute. */
#single-page-viewer[hidden] {
    display: none;
}

/* Game dialogues: hidden until jQuery IU opens */
#dialog,
#dialog1 {
    display: none;
}

/* WCAG 2.4.1: "Skip to content" stays off screen until it receives keyboard focus. */
.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 100000;
    padding: 10px 16px;
    background: #ffffff;
    color: #1e3a8a;
    font: 600 16px/1.2 Arial, sans-serif;
    text-decoration: none;
    border: 2px solid #2563eb;
    border-radius: 6px;
    transform: translateY(-200%);
}
.skip-link:focus {
    transform: none;
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* The skip link focuses the whole page area: a ring around it would only frame the screen. */
#main-content:focus {
    outline: none;
}

/* Page template: pageflip-manager.js clones it and takes out the idol, so the clones are visible */
#page {
    display: none;
}
