body.wardrobe-v2 { margin: 0; padding: 0; height: 100vh; overflow: hidden; font-family: sans-serif; } .wardrobe-container { display: flex; height: 100vh; background: #000; @media (max-width: 800px) { flex-direction: column; } } .outfit-preview-section { flex: 1; display: flex; align-items: center; justify-content: center; background: #000; position: relative; min-height: 400px; outfit-viewer { width: 600px; height: 600px; max-width: min(100%, 100cqh); max-height: min(100%, 100cqw); aspect-ratio: 1; container-type: size; } .no-preview-message { color: white; text-align: center; padding: 2rem; font-size: 1.2rem; } /* Species/color picker floats over the preview at the bottom */ species-color-picker { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; padding: 1.5rem; pointer-events: none; /* Allow clicks through when hidden */ /* Start hidden, reveal on hover or focus */ opacity: 0; transition: opacity 0.2s; form { pointer-events: auto; /* Re-enable clicks on the form itself */ } select { padding: 0.5rem 2rem 0.5rem 0.75rem; font-size: 1rem; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 0.375rem; background: rgba(0, 0, 0, 0.7); color: white; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-position: right 0.5rem center; background-repeat: no-repeat; background-size: 1.5em 1.5em; &:hover { background-color: rgba(0, 0, 0, 0.8); border-color: rgba(255, 255, 255, 0.5); } &:focus { outline: none; border-color: rgba(255, 255, 255, 0.8); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1); } option { background: #2D3748; color: white; } } /* Submit button: progressive enhancement pattern */ /* If JS is disabled, the button is always visible */ /* If JS is enabled but slow to load, fade in after 0.75s */ /* Once the web component loads, hide the button completely */ input[type="submit"] { padding: 0.5rem 1rem; font-size: 1rem; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 0.375rem; background: rgba(0, 0, 0, 0.7); color: white; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); &:hover { background-color: rgba(0, 0, 0, 0.8); border-color: rgba(255, 255, 255, 0.5); } &:focus { outline: none; border-color: rgba(255, 255, 255, 0.8); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1); } } /* If JS is enabled, hide the submit button initially with a delay */ @media (scripting: enabled) { input[type="submit"] { position: absolute; margin-left: 0.5em; opacity: 0; animation: fade-in 0.25s forwards; animation-delay: 0.75s; } } /* Once auto-loading is ready, hide the submit button completely */ &:state(auto-loading) { input[type="submit"] { display: none; } } } /* Show picker on hover (real hover only, not simulated touch hover) */ @media (hover: hover) { &:hover species-color-picker { opacity: 1; } } /* Show picker when it has focus */ &:has(species-color-picker:focus-within) species-color-picker { opacity: 1; } } .outfit-controls-section { width: 400px; background: #fff; padding: 2rem; overflow-y: auto; box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3); @media (max-width: 800px) { width: 100%; max-height: 40vh; } h1 { margin-top: 0; font-size: 1.75rem; color: #448844; } h2 { font-size: 1.25rem; color: #448844; margin-top: 2rem; } } .current-selection { padding: 1rem; background: #f0f0f0; border-radius: 4px; margin: 1rem 0; p { margin: 0; color: #666; } strong { color: #000; } } .worn-items { margin-top: 2rem; ul { list-style: none; padding: 0; margin: 0.5rem 0; } li { padding: 0.5rem; background: #f9f9f9; margin-bottom: 0.5rem; border-radius: 4px; color: #333; } } @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }