/* Shared interaction styles for links, buttons and image controls. */
a.btn,
a.btn2,
a.btnse,
a.friendbtn {
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

button:not(:disabled) { cursor: pointer; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

a.btn::before, a.btnse::before, a.friendbtn::before {
    pointer-events: none;
}

.theme-preview {
    display: inline-block;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    vertical-align: middle;
}

.theme-preview .FLthemeImg {
    display: block;
    box-sizing: border-box;
    max-width: calc(100% - 20px);
    height: auto;
}

.theme-preview:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.grid, .gridpro, .gridin, .gridmu, .gridmore {
    box-sizing: border-box;
    max-width: calc(100% - 16px);
}

.grid > *, .gridpro > *, .gridin > *, .gridmu > *, .gridmore > * {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

body > .navbar:has(.navdiv ul) {
    position: sticky;
    height: auto;
}
