Double Slit (Rashkovskiy, Monte Carlo)
by Chantal Roth
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Double-Slit Monte Carlo Simulation (Semi-Classical)</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
<style>
/* Overall page styling - Dark Theme */
body {
background: #1a1a2e; /* Deep dark blue/purple bg */
font-family: 'Roboto', sans-serif;
color: #e0e0e0; /* Light gray text */
margin: 20px;
}
h1 {
text-align: center;
color: #00d4ff; /* Bright cyan header */
margin-bottom: 30px;
font-weight: 300;
letter-spacing: 1px;
}
/* Form/controls styling - Instrument Panel Look */
#controls {
margin-bottom: 30px;
padding: 25px;
background: #16213e; /* Darker panel background */
border: 1px solid #0f3460;
border-radius: 12px;
box-shadow: 0 4px 15px rgba(0,0,0,0.3);
max-width: 650px;
margin-left: auto;
margin-right: auto;
}
form p {
margin: 15px 0;
}
label {
display: block;
font-weight: 500;
margin-bottom: 8px;
color: #fff;
}
input[type="number"] {
padding: 10px;
background: #0f3460; /* Dark input background */
border: 1px solid #1a1a2e;
color: #00d4ff; /* Cyan text for numbers */
border-radius: 6px;
width: 100%;
max-width: 220px;
font-family: 'Roboto Mono', monospace; /* Monospace for numbers */
transition: border-color 0.3s, box-shadow 0.3s;
}
input[type="number"]:focus {
outline: none;
border-color: #00d4ff;
box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}
button {
background: #00d4ff; /* Bright Cyan button */
border: none;
border-radius: 6px;
color: #1a1a2e; /* Dark text on button */
padding: 12px 30px;
font-size: 1.1em;
font-weight:...