| * { | |
| box-sizing: border-box; | |
| padding: 0; | |
| margin: 0; | |
| font-family: sans-serif; | |
| } | |
| html, | |
| body { | |
| height: 100%; | |
| } | |
| body { | |
| padding: 16px 32px; | |
| } | |
| body, | |
| #container { | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| align-items: center; | |
| } | |
| #controls { | |
| display: flex; | |
| padding: 1rem; | |
| gap: 1rem; | |
| } | |
| #controls > div { | |
| text-align: center; | |
| } | |
| h1, | |
| h3 { | |
| text-align: center; | |
| } | |
| h3 { | |
| margin-top: 0.5rem; | |
| } | |
| #container { | |
| position: relative; | |
| width: 720px; | |
| height: 405px; | |
| max-width: 100%; | |
| max-height: 100%; | |
| border: 2px dashed #d1d5db; | |
| border-radius: 0.75rem; | |
| overflow: hidden; | |
| margin-top: 1rem; | |
| background-size: 100% 100%; | |
| background-position: center; | |
| background-repeat: no-repeat; | |
| } | |
| #status { | |
| min-height: 16px; | |
| margin: 8px 0; | |
| } | |
| video { | |
| width: 100%; | |
| height: 100%; | |
| } | |
| input[type="text"] { | |
| padding: 0.25rem 0.5rem; | |
| border: 1px solid #d1d5db; | |
| border-radius: 0.25rem; | |
| margin-top: 2px; | |
| } | |
| input[type="range"] { | |
| margin-top: 6px; | |
| } | |
| #overlay { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| background-color: rgba(255, 255, 255, 0.9); | |
| font-size: 1.25rem; | |
| border-radius: 2px; | |
| } | |
| #overlay:not(:empty) { | |
| padding: 0.5rem; | |
| } | |