@use 'mixins' as *; html > body > aside.control-dock > .info-page { width: min(calc(100vw - 1rem), 560px); max-height: min(58vh, 520px); max-height: min(58dvh, 520px); margin: 0 auto 10px; overflow-x: hidden; overflow-y: auto; border: 1px solid rgb(255 255 255 / 78%); border-radius: 8px; background: linear-gradient(180deg, rgb(255 255 255 / 97%), rgb(243 247 239 / 96%)), rgb(255 255 255); color: rgb(24 30 27); box-shadow: 0 20px 54px rgb(0 0 0 / 38%), 0 2px 12px rgb(0 0 0 / 22%); backdrop-filter: blur(12px); scrollbar-width: thin; scrollbar-color: var(--main-color) transparent; transition: max-height var(--transition-time-long), opacity var(--transition-time-long), transform var(--transition-time-long), margin-bottom var(--transition-time-long); &::-webkit-scrollbar-track, &::-webkit-scrollbar { background-color: transparent; width: 6px; } &::-webkit-scrollbar-thumb { background-color: var(--main-color); border-radius: 8px; } &:focus-visible { outline: 2px solid white; outline-offset: 3px; } > section { display: flex; flex-direction: column; gap: 0.85rem; padding: var(--normal-margin); h1 { margin-bottom: 0; color: rgb(16 24 20); font-size: 2rem; line-height: 1.1; } p { max-width: 54ch; margin-bottom: 0; color: rgb(42 48 45); font-size: 1.1rem; line-height: 1.65; hyphens: auto; } a { color: rgb(0 84 120); font-weight: 400; &:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; } } } &.hidden { max-height: 0; margin-bottom: 0; border-color: transparent; opacity: 0; pointer-events: none; box-shadow: none; transform: translateY(8px); visibility: hidden; } @include on-small-screen { max-height: min(54vh, 500px); max-height: min(54dvh, 500px); > section { padding: var(--small-margin); } } }