Doppler Effect (Moving Source/Detector)
by Chantal Roth
HTML
<!DOCTYPE html>
<html>
<head>
<style>
:root {
--bg: #0f172a;
--panel: #1e293b;
--text: #e2e8f0;
--accent: #38bdf8; /* Cyan */
--highlight: #facc15; /* Gold */
--observer: #a855f7; /* Purple */
--blue-shift: #60a5fa;
--red-shift: #f472b6;
}
body {
font-family: 'Segoe UI', system-ui, sans-serif;
background: var(--bg);
color: var(--text);
margin: 0;
display: flex;
justify-content: center;
height: 100vh;
overflow: hidden;
}
.container {
display: grid;
grid-template-columns: 1fr 480px;
gap: 20px;
width: 95%;
max-width: 1500px;
height: 95vh;
margin-top: 2vh;
}
/* Left Panel */
.left-panel {
display: flex;
flex-direction: column;
gap: 15px;
min-width: 0;
}
/* Right Panel Layout */
.right-panel {
background: var(--panel);
border-radius: 8px;
border: 1px solid #334155;
display: flex;
flex-direction: column;
overflow: hidden;
box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
/* Tabs Navigation */
.tab-nav {
display: flex;
background: #0f172a;
border-bottom: 1px solid #334155;
flex-shrink: 0;
}
.tab-btn {
flex: 1;
background: transparent;
border: none;
color: #94a3b8;
padding: 15px;
cursor: pointer;
font-weight: 600;
border-bottom: 3px solid transparent;
transition: all 0.2s;
}
.tab-btn:hover { color: var(--text); background: #1e293b; }
.tab-btn.active {
color: var(--accent);
border-bottom-color: var(--accent);
background: var(--panel);
}
/* Scrollable Content Area */
.content-area {
flex-grow: 1;
overflow-y: auto;
position: relative;
}
.tab-content {
padding: 25px;
...