static/css/styles.css (398 lines of code) (raw):

/* Header styling */ #header { display: flex; align-items: center; justify-content: center; margin-bottom: 40px; } .logo { height: 50px; /* Adjust size as needed */ margin-right: 10px; } .header-text { font-size: 24px; font-family: 'Roboto', sans-serif; font-weight: 500; color: #fff; } /* Container for avatar and overlay */ #avatarContainer { position: relative; width: 960px; /* Keep the original avatar size */ margin: 0 auto; } /* Ensure it's visually aligned near the avatar */ #avatarContainer .record-card { position: absolute; top: 420px; left: 50%; transform: translateX(-50%); /* Center horizontally */ z-index: 10; /* Ensure it's on top of other elements */ background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */ border: 0px solid #fff; border-radius: 8px; padding: 10px; height: 150px; width: 250px; text-align: center; } /* The avatar remains as defined by .avatar-box */ .avatar-box { width: 960px; height: 540px; background: #000; margin: 0 auto; } /* Chat history overlay styling */ #chatHistory { position: absolute; top: 0px; /* Adjust vertical position as desired */ right: 0px; /* Adjust horizontal position as desired */ width: 360px; height: 410px; font-size: medium; border: none; background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */ overflow-y: auto; padding: 10px; box-sizing: border-box; color: #fff; /* Initially hidden - overridden by inline JS on DOMContentLoaded */ display: none; } /* Hide the startSession button */ /* #startSession { display: none; } */ body { background-color: #000; color: #fff; } .hidden { display: none; } .highlight { background-color: #eee; font-size: 1.2em; margin: 0 0 30px 0; padding: 0.2em 1.5em; } .warning { color: red; font-weight: 400; } @media screen and (min-width: 1000px) { /* hack! to detect non-touch devices */ div#links a { line-height: 0.8em; } } audio { max-width: 100%; } body { font-family: 'Roboto', sans-serif; font-weight: 300; margin: 0; padding: 1em; word-break: break-word; } button { background-color: #d84a38; border: none; border-radius: 2px; color: white; font-family: 'Roboto', sans-serif; font-size: 0.8em; margin: 10px 0 1em 0; padding: 0.5em 0.7em 0.6em 0.7em; } button:active { background-color: #cf402f; } button:hover { background-color: #cf402f; } button[disabled] { color: #ccc; } button[disabled]:hover { background-color: #d84a38; } canvas { background-color: #ccc; max-width: 100%; width: 100%; } code { font-family: 'Roboto', sans-serif; font-weight: 400; } div#container { margin: 0 auto 0 auto; max-width: 60em; padding: 1em 1.5em 1.3em 1.5em; } div#links { padding: 0.5em 0 0 0; } h1 { border-bottom: 1px solid #ccc; font-family: 'Roboto', sans-serif; font-weight: 500; margin: 0 0 0.8em 0; padding: 0 0 0.2em 0; } h2 { color: #444; font-weight: 500; } h3 { border-top: 1px solid #eee; color: #666; font-weight: 500; margin: 10px 0 10px 0; white-space: nowrap; } li { margin: 0 0 0.4em 0; } html { /* avoid annoying page width change when moving from the home page */ overflow-y: scroll; } img { border: none; max-width: 100%; } input[type=radio] { position: relative; top: -1px; } p { color: #444; font-weight: 300; } p#data { border-top: 1px dotted #666; font-family: Courier New, monospace; line-height: 1.3em; max-height: 1000px; overflow-y: auto; padding: 1em 0 0 0; } p.borderBelow { border-bottom: 1px solid #aaa; padding: 0 0 20px 0; } section p:last-of-type { margin: 0; } section { border-bottom: 1px solid #eee; margin: 0 0 30px 0; padding: 0 0 20px 0; } section:last-of-type { border-bottom: none; padding: 0 0 1em 0; } select { margin: 0 1em 1em 0; position: relative; top: -1px; } h1 span { white-space: nowrap; } a { color: #1D6EEE; font-weight: 300; text-decoration: none; } h1 a { font-weight: 300; margin: 0 10px 0 0; white-space: nowrap; } a:hover { color: #3d85c6; text-decoration: underline; } a#viewSource { display: block; margin: 1.3em 0 0 0; border-top: 1px solid #999; padding: 1em 0 0 0; } div#errorMsg p { color: #F00; } div#links a { display: block; line-height: 1.3em; margin: 0 0 1.5em 0; } div.outputSelector { margin: -1.3em 0 2em 0; } p.description { margin: 0 0 0.5em 0; } strong { font-weight: 500; } textarea { font-family: 'Roboto', sans-serif; } video { background: #222; margin: 0 0 20px 0; --width: 100%; width: var(--width); height: calc(var(--width) * 0.75); } ul { margin: 0 0 0.5em 0; } @media screen and (max-width: 650px) { .highlight { font-size: 1em; margin: 0 0 20px 0; padding: 0.2em 1em; } h1 { font-size: 24px; } } @media screen and (max-width: 550px) { button:active { background-color: darkRed; } h1 { font-size: 22px; } } @media screen and (max-width: 450px) { h1 { font-size: 20px; } } textarea { width: 800px; min-height: 60px; margin-bottom: 10px; } #webrtc textarea { width: 800px; min-height: 100px; resize: none; } #knownIssues { color: red; } /* The switch - the box around the slider */ .switch { position: relative; display: inline-block; width: 48px; height: 26px; } /* Hide default HTML checkbox */ .switch input { opacity: 0; width: 0; height: 0; } /* The slider */ .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; -webkit-transition: .4s; transition: .4s; } .slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 3px; background-color: white; -webkit-transition: .4s; transition: .4s; } input:checked + .slider { background-color: #d84a38; } input:focus + .slider { box-shadow: 0 0 1px #d84a38; } input:checked + .slider:before { -webkit-transform: translateX(20px); -ms-transform: translateX(20px); transform: translateX(20px); } /* Rounded sliders */ .slider.round { border-radius: 34px; } .slider.round:before { border-radius: 50%; } .switchLabel { display: inline-block; vertical-align: middle; position: relative; margin-top: 5px; } .button-container { display: flex; gap: 10px; justify-content: center; align-items: center; margin-bottom: 10px; } .round-button { border: none; border-radius: 50%; width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; font-size: 16px; cursor: pointer; } #instructions { display: block; text-align: center; margin-top: 8px; } fluent-card.record-card { background-color: #000; color: #fff; padding: 20px; border-radius: 8px; border: 1px solid #000; } button { background-color: #0078D4; /* Microsoft Blue */ border: none; border-radius: 2px; color: white; font-family: 'Roboto', sans-serif; font-size: 0.8em; margin: 10px 0 1em 0; padding: 0.5em 0.7em 0.6em 0.7em; } button:active { background-color: #005A9E; /* Darker shade for active state */ } button:hover { background-color: #005A9E; /* Darker shade for hover state */ } button[disabled] { color: #ccc; } button[disabled]:hover { background-color: #0078D4; } /* Layout for video and chat history */ #videoChatContainer { display: flex; width: 960px; margin: 0 auto; gap: 20px; /* space between video and chat history */ } #remoteVideo { flex: 1; /* additional styling as needed */ }