.settings-search-div-search { right: 20px; top: 25px; position: fixed; z-index: 9999; } .settings-icon-link-search { font-size: 25px; background-color: inherit; border: none; } .search-menu { position: fixed; height: 420px; width: 330px; right: 0; margin-top: 60px; z-index: 9999; margin-right: 20px; background-color: var(--html-bg); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); border: 1px solid var(--border); border-radius: 10px; top: 24px; /* Transition for fade in/out */ opacity: 0; pointer-events: none; transition: opacity 0.3s ease; } .search-menu h2 { color: var(--font-fg); display: flex; justify-content: center; font-size: 1.5rem; margin: 14px; } .search-menu button { margin-top: 10px; color: var(--font-fg); background-color: var(--button); font-size: 14px; border: 1px solid var(--border); border-radius: 4px; padding: 10px; width: 90%; transition: border 0.3s ease; } .search-menu button:hover { border: 1px solid var(--font-fg); cursor: pointer; } .settings-content { display: flex; flex-direction: column; align-items: center; } /* Initially hidden state */ .settings-menu-hidden { opacity: 0; pointer-events: none; } /* Visible state triggers fade in */ .settings-menu-visible { opacity: 1; pointer-events: auto; } .theme-settings { margin-top: 10px; width: 90%; border: 1px solid var(--snip-border); background: var(--snip-background); color: var(--font-fg); border-radius: 4px; height: 100%; } .theme-settings p { margin: 0px; padding-top: 5px; margin-left: 3%; } .lang { margin-top: 10px; border: 1px solid var(--button); border-radius: 4px; padding: 6px; font-size: 15px; color: var(--font-fg); width: 90%; background: var(--button); transition: border 0.3s ease; } .lang:hover { border: 1px solid var(--font-fg); cursor: pointer; } .view-image-search { border: 1px solid var(--snip-border); margin: 0; height: 100%; width: 100%; object-fit: cover; object-position: center; vertical-align: bottom; border-radius: 4px; transition: border 0.3s ease; } .view-image-search:hover { border: 1px solid var(--font-fg); cursor: pointer; } .themes-settings-menu { display: flex; justify-content: center; gap: 5px; margin: 5px; } /* On screens 450px or less, make the menu cover the whole page */ @media (max-width: 450px) { .search-menu { width: 100%; height: 100%; right: 0; margin-top: 50; margin-right: 0; border-radius: 0; } }