Spherical Harmonics (l, m)
by Chantal Roth
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>3D Spherical Harmonics</title>
<style>
body { margin: 0; overflow: hidden; background-color: #050505; color: white; font-family: sans-serif; }
#info {
position: absolute;
top: 10px;
width: 100%;
text-align: center;
pointer-events: none;
z-index: 1;
text-shadow: 0 0 5px #000;
}
#equation {
font-family: "Times New Roman", serif;
font-style: italic;
font-size: 1.1rem;
margin-top: 6px;
color: #FE9F6D;
}
#infoBtn {
position: absolute;
top: 12px;
right: 12px;
width: 34px;
height: 34px;
border-radius: 17px;
border: 1px solid rgba(255,255,255,0.25);
background: rgba(0,0,0,0.35);
color: white;
font-size: 18px;
line-height: 34px;
text-align: center;
cursor: pointer;
z-index: 5;
pointer-events: auto;
user-select: none;
}
#infoBtn:hover { background: rgba(0,0,0,0.55); }
#modalBackdrop {
display: none;
position: absolute;
inset: 0;
background: rgba(0,0,0,0.72);
z-index: 10;
pointer-events: auto;
}
#modalPanel {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: min(900px, calc(100% - 40px));
max-height: calc(100% - 40px);
overflow: auto;
border: 1px solid rgba(255,255,255,0.15);
border-radius: 10px;
background: rgba(10,10,10,0.92);
padding: 18px 18px 14px 18px;
box-shadow: 0 20px 60px rgba(0,0,0,0.55);
}
#modalTitle {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 10px;
font-size: 18px;
font-weight: 700;
}
#closeBtn {
border: 1px solid rgba(255,255,255,0.2);
...