HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<!-- Page: https://fossheim.io -->
<!-- Patreon: https://patreon.com/fossheim -->
<!-- Buy Me A Coffee: https://buymeacoffee.com/fossheim -->
<!-- Inspired by the Muson toy synth -->
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="muson" aria-label="Muson Synth Illustration">
<div class="top-bar">
<div class="speaker-bar"><div class="speakers"></div></div>
<div class="muson-frame"><div class="rainbow"></div></div>
</div>
<div class="range-container" aria-hidden="true">
<div class="range-plate">
<div class="left">
<ul class="ranges">
<li>1–4</li>
<li>1–6</li>
<li>1–8</li>
<li>1–10</li>
</ul>
<p>Range</p>
<div class="slider-wrapper">
<div class="slider"></div>
</div>
</div>
<div class="center">
<p>Volume</p>
<ul>
<li>Lo</li>
<li>Med</li>
<li>High</li>
</ul>
<div class="switch-wrapper">
<div class="switch-button"></div>
</div>
</div>
<div class="right">
<p>Mode</p>
<ul>
<li>Off</li>
<li>Organ</li>
<li>Organ <br />& Synth</li>
</ul>
<div class="slider-wrapper">
<div class="slider"></div>
</div>
</div>
</div>
</div>
<div class="button-container">
<div class="button">
<div class="center"></div>
</div>
<div class="button">
<div class="center"></div>
</div>
<div class="button">
<div class="center"></div>
</div>
<div class="button">
<div class="center"></div>
</div>
<div class="button">
<div class="center"></div>
</div>
<div class="button">
<div class="center"></div>
</div>
<div class="button">
<div class="center"></div>
</div>
<div class="button">
<div class="center"></div>
</div>
<div class="button">
<div class="center"></div>
</div>
<div class="button">
<div class="center"></div>
</div>
</div>
<div class="letter-container" aria-hidden="true">
<div>
<p>C</p>
</div>
<div>
<p>D</p>
</div>
<div>
<p>E</p>
</div>
<div>
<p>F</p>
</div>
<div>
<p>G</p>
</div>
<div>
<p>A</p>
</div>
<div>
<p>B</p>
</div>
<div>
<p>C</p>
</div>
<div>
<p>D</p>
</div>
<div>
<p>E</p>
</div>
</div>
<div class="key-container">
<div style="z-index: 12;"></div>
<div style="z-index: 11;"></div>
<div style="z-index: 10;"></div>
<div style="z-index: 9;"></div>
<div style="z-index: 8;"></div>
<div style="z-index: 7;"></div>
<div style="z-index: 6;"></div>
<div style="z-index: 5;"></div>
<div style="z-index: 4;"></div>
<div style="z-index: 3;"></div>
</div>
<div class="speed-container" aria-hidden="true">
<p>Fast</p>
<div class="speed-slider"></div>
<div class="speed-button-container">
<div class="speed-button"></div>
</div>
<p>Slow</p>
</div>
<div class="vol-container" aria-hidden="true">
<p>High</p>
<div class="vol-slider"></div>
<div class="vol-button-container">
<div class="vol-button"></div>
</div>
<p>Low</p>
</div>
</div>
</body>
</html>
/*
Page: https://fossheim.io
Patreon: https://patreon.com/fossheim
Buy Me A Coffee: https://buymeacoffee.com/fossheim
Inspired by the Muson toy synth.
*/
:root {
--letter-1: #2E1F23;
--letter-2: #1A1A24;
--button-1: #171310;
--button-2: #18171F;
--button-3: #353541;
--button-4: #302E33;
--center-1: #0F1622;
--center-2: #171D33;
--center-3: #222632;
--center-4: #313842;
--center-5: #1C1F30;
--center-6: #3D3A4D;
}
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
background-color: #CFD6F0;
background-image: linear-gradient(45deg, #CFD6F0, #F0F2FE);
min-height: 100vh;
}
.muson {
display: block;
position: absolute;
top: 120px;
top: calc(50vh - 300px);
left: 0;
right: 0;
margin: 0 auto;
width: 790px;
height: 610px;
border-radius: 6px;
background-color: #FFD9D0;
background-image: linear-gradient(
135deg,
#EFC4BB,
#F6D0C7,
#FDE0DA
);
box-shadow: 2px 0 1.5px -1.5px #7C5558 inset,
3.5px 0 2.5px -2.5px #AE857F inset,
4.5px 0 2.5px -2.5px #D8B5AF inset,
5.5px 0 2.5px -2.5px #DBBBB0 inset,
6.5px 0 2.5px -2.5px #DFBDB1 inset,
-3px 0 2px -2px #F9EAE5 inset,
-3.5px 0 2px -2px #FFF0ED inset,
-4.5px 0 2px -2px #FDDFD4 inset,
-5.5px 0 2px -2px #FEE1DB inset,
0 2px 2px -2px #EBCDCF inset,
0 4px 2px -2px #EEC8C7 inset,
0 5px 2px -2px #F4CFC7 inset,
0 -2px 1.5px -1.5px #E8D4DD inset,
0 -4.5px 1.5px -1.5px #F4CFC7 inset,
0 -5px 1.5px -1.5px #FFFDFB inset,
-30px -30px 10px rgba(114, 86, 98, 0.05),
-25px -25px 10px rgba(114, 86, 98, 0.1),
-20px -20px 10px rgba(114, 86, 98, 0.075),
-10px -10px 10px rgba(114, 86, 98, 0.1),
-5px -5px 10px rgba(114, 86, 98, 0.125),
-50px -90px 30px rgba(114, 86, 98, 0.15),
-45px -80px 30px rgba(114, 86, 98, 0.125),
-40px -70px 30px rgba(114, 86, 98, 0.1),
-35px -60px 30px rgba(114, 86, 98, 0.075),
-45px -50px 30px rgba(114, 86, 98, 0.05),
-2px 0 5px rgba(137, 124, 142, 0.5),
0 0 10px rgba(137, 124, 142, 0.1),
0 0 20px rgba(137, 124, 142, 0.05),
0 0 50px rgba(255, 245, 250, 0.5);
}
.top-bar {
display: block;
width: 805px;
height: 220px;
margin-left: -8px;
border-radius: 6px 6px 2px 2px;
background-image: linear-gradient(#FAD2CA, #F9D1C7);
box-shadow: 2px 0 1.5px -1.5px #7C5558 inset,
3.5px 0 2.5px -2.5px #AE857F inset,
4.5px 0 2.5px -2.5px #D8B5AF inset,
5.5px 0 2.5px -2.5px #DBBBB0 inset,
6.5px 0 2.5px -2.5px #DFBDB1 inset,
-3px 0 2px -2px #F9EAE5 inset,
-3.5px 0 2px -2px #FFF0ED inset,
-4.5px 0 2px -2px #FDDFD4 inset,
-5.5px 0 2px -2px #FEE1DB inset,
0 2px 2px -2px #EBCDCF inset,
0 4px 2px -2px #EEC8C7 inset,
0 5px 2px -2px #F4CFC7 inset,
0 -2px 1.5px -1.5px #F9D1C7 inset,
0 -4.5px 1.5px -1.5px #F9D1C7 inset,
0 -5px 1.5px -1.5px #FFEAE4 inset,
2px 12px 1.5px -6px #F9D1C7,
1px 11px 1.5px -6px #F9D1C7,
1px 10px 1.5px -6px #F9D1C7,
1px 9px 1.5px -5px #F9D1C7,
1px 8px 1.5px -5px #F9D1C7,
1px 7px 1.5px -5px #F9D1C7,
1px 6px 1.5px -5px #F9D1C7,
3px 5px 1.5px -2px #F9D1C7,
2px 4px 1.5px -2px #F9D1C7,
1px 3px 1.5px -2px #F9D1C7,
3px 13px 1px -6px #F9D1C7,
3px 12px 4px -6px rgba(126, 80, 67, 0.25),
-2px 25px 30px -3px rgba(126, 80, 67, 0.025),
-2px 35px 35px -3px rgba(126, 80, 67, 0.075);
position: relative;
}
.muson-frame {
display: block;
width: 310px;
height: 165px;
background-color: transparent;
position: absolute;
top: 25px;
right: 65px;
border-radius: 1px;
box-shadow: 1px -1px 1px #DEB3AC inset,
-2px 0 1px -1px #FFDBD3 inset,
0 -1.5px 1px #FFDFD3 inset,
0 70.25px 1px -70px #B58475;
}
.muson-frame:before {
content: "";
display: block;
width: 320px;
height: 25px;
border-radius: 0 0 2px 2px;
background-color: transparent;
position: absolute;
top: -25px;
left: -10px;
box-shadow: -0.5px 1.25px 0.75px -0.25px #D4A89D,
0.5px 0 0.75px -0.25px #F3C9BD,
0 -1px 0.5px -0.5px rgba(243, 204, 197, 1),
0 -1px 1px #F7CBC0 inset,
0 0 3px 4px #FCD1CA inset;
}
.muson-frame:after {
content: "";
display: block;
width: 45px;
height: 39px;
border-radius: 0.5px;
background-image: radial-gradient(rgba(255, 222, 213, 0.25), rgba(255, 222, 213, 0) 60%),
repeating-linear-gradient(#F8D2C5 0 24%, #FDD9C9 25% 49%, #F6D1BF 50% 74%, #FDD4C0 75% 100%);
background-size: 100% 100%, 4px 4px;
position: absolute;
bottom: 0;
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
opacity: 0.95;
box-shadow: 0 -1.5px 1px -0.5px #DEB3AC inset,
0 -2px 1px -0.5px #FFDFD3 inset,
-1px 0 1px #FFDED5 inset,
1px 0 1px -0.5px #FFDED5,
1px 0 1px #FBD5CA inset,
-1px 0 1px -0.5px #FBD5CA,
0 1.75px 1px -1px #B58475;
}
.rainbow {
display: block;
width: 290px;
height: 120px;
position: absolute;
top: 7px;
left: 8px;
background-color: #fff;
background-image: linear-gradient(#1E202F 0 12%,
#495AC2 12.5% 24.5%,
#1250C7 25% 37%,
#039CEC 37.5% 49.5%,
#DFC63F 50% 62%,
#FED13F 62.5% 74.5%,
#FC672F 75% 87%,
#FD3A48 87.5% 100%
);
border-radius: 1px;
box-shadow: 0 -2px 2px -2px rgba(255, 220, 211, 1) inset,
0px 0 1.25px 1px #FEDDD6 inset,
0 0 1px 1.5px rgba(82, 58, 56, 0.5) inset,
0 0 2.5px 3px rgba(82, 58, 56, 0.2) inset,
0 0 4px 5px rgba(82, 58, 56, 0.1) inset,
-1px 0 1px #DDDAE3,
0 0 5px 3px #F6DACF;
}
.speaker-bar {
display: block;
width: 365px;
height: 219px;
background-color: transparent;
border-radius: 6px 6px 2px 2px;
position: absolute;
top: 1px;
left: 2px;
box-shadow: 0 -10px 2px -2px #F9D1C7 inset,
0 0 1px #F9D1C7,
-10px 0 3px -3px #FFE0D3 inset,
5px 0 3px -3px #FFE0D3,
7px 0 2px -5px rgba(166, 122, 111, 0.15),
21px 0 3px -20px rgba(95, 64, 56, 0.15),
-9px -5px 5px rgba(254, 210, 201, 0.5) inset;
}
.speakers {
display: block;
width: 175px;
height: 180px;
border-radius: 100px;
position: absolute;
left: 0;
right: 0;
margin: 0 auto;
top: 15px;
background-image: linear-gradient(90deg, transparent, #E8C2B6 20% 80%, transparent),
linear-gradient(transparent 0 12.5%,
#EECEC1 12.5% 25%,
#67473C 37.5% 50%,
#4A251F 50% 62.5%,
transparent 82% 100%
), linear-gradient(
#EEC4B4,
#E8C6BC
);
background-size: 6px 100%, 9px 9px, 100% 100%;
background-repeat: no-repeat, repeat, repeat;
background-position: center center, top left, top left;
box-shadow: 0 0 2px 0.5px #F9D1C7,
-1.75px -1.75px 1.5px -1px #F9D1C7,
-2px -2px 5px -2px #F9D1C7,
-5px -25px 20px -5px rgba(83, 23, 0, 0.05) inset,
-5px -15px 15px -5px rgba(83, 23, 0, 0.05) inset,
-10px -35px 30px -10px rgba(83, 23, 0, 0.025) inset,
5px 25px 20px -5px rgba(255, 243, 238, 0.1) inset,
5px 15px 15px -5px rgba(255, 243, 238, 0.05) inset,
10px 35px 30px -10px rgba(255, 243, 238, 0.025) inset,
0 0 2px 0.5px #FEDCD3 inset,
-2px -2px 5px -1px rgba(245, 203, 191, 0.5) inset,
0 14px 1px 25.5px #F6D0C7 inset,
0 14px 1px 26.5px #EFC1B2 inset,
0 14px 1px 30px #F0C3B0 inset;
}
.key-container {
display: grid;
width: 435px;
height: 100px;
grid-template-columns: repeat(10, 1fr);
column-gap: 3px;
position: absolute;
bottom: 35px;
left: 177px;
border-radius: 1px;
background-color: #821510;
box-shadow: -10px -10px 10px -5px rgba(58, 12, 2, 0.2),
-2px 0 1px #BCA7A6 inset,
1px 1px 1px 1px #E8D1C9,
2px 2px 2px 1px #FFE3D5,
3px 3px 4px 1px #FDE0D2,
-1px -1px 1px 0 #8E675F;
}
.key-container > div {
background-color: #fff;
background-image: linear-gradient(90deg,
#E7EDF9,
#F0F4FD
);
border-radius: 5px;
position: relative;
top: -3px;
left: -2px;
height: 100%;
height: calc(100% + 2px);
box-shadow: -5px 0 4px -2px #EDECFA inset,
-8px 0 6px -6px #EBEFF8 inset,
3px 0 1px -1px #E9D4CF inset,
6px 0 5px -5px #E1E8FA inset,
0 0 0.25px 0.25px #E9D4CF,
-0.75px -0.75px 1px -0.5px #E9D4CF,
0 1px 1px #BEA19B,
-7px -7px 5px -0.5px rgba(150, 90, 64, 0.5),
-7px -3px 7px rgba(201, 149, 135, 0.55),
-10px -10px 15px rgba(201, 149, 135, 0.25);
}
.letter-container {
display: grid;
width: 450px;
height: 66px;
background-color: transparent;
grid-template-columns: repeat(10, 1fr);
column-gap: 1px;
position: absolute;
bottom: 145px;
left: 170px;
border-radius: 3px;
box-shadow: -0.5px -0.5px 0.75px #B98A7A,
-2px -2px 2px #E0B9A8,
0.5px 0.5px 1px -0.25px #E1B8A6 inset,
1px 1px 1px 0.5px #E9BCA9 inset,
4px 4px 4px rgba(251, 228, 222, 0.25) inset;
padding: 5px;
}
.letter-container > div {
background-color: #19161D;
background-image: linear-gradient(
var(--letter-1) 20%,
var(--letter-2) 30% 50%,
#2C2934 50%,
#1C1B29,
#342127
);
border-radius: 1px;
box-shadow: 0 0.5px 0.5px #A6857E inset,
0 1px 2px rgba(67, 38, 40, 0.25) inset,
0.5px 0 0.25px rgba(105, 90, 95, 0.5),
0 -1px 0.5px #4D3326 inset,
0 -15px 5px -5px #2A1A1A inset,
0 1px 1px #D6B6A7,
0 5px 3px #F0D0C1,
0 12px 5px rgba(26, 26, 36, 0.1) inset;
position: relative;
}
.letter-container > div:nth-child(2) {
--letter-1: #D55622;
--letter-2: #E05F0B;
}
.letter-container > div:nth-child(3) {
--letter-1: #FE3339;
--letter-2: #FE3336;
}
.letter-container > div:nth-child(4) {
--letter-1: #F84524;
--letter-2: #FA5229;
}
.letter-container > div:nth-child(5) {
--letter-1: #F78336;
--letter-2: #FA9634;
}
.letter-container > div:nth-child(6) {
--letter-1: #FDC32A;
--letter-2: #FCDA47;
}
.letter-container > div:nth-child(7) {
--letter-1: #DEBF27;
--letter-2: #D8D03D;
}
.letter-container > div:nth-child(8) {
--letter-1: #03A7DA;
--letter-2: #0BB3FA;
}
.letter-container > div:nth-child(9) {
--letter-1: #2D50B4;
--letter-2: #3362CA;
}
.letter-container > div:nth-child(10) {
--letter-1: #734897;
--letter-2: #6D56BE;
}
.letter-container > div > p {
position: absolute;
bottom: 6px;
left: 0;
right: 0;
margin: 0 auto;
text-align: center;
font-size: 13px;
color: #E6DFEF;
font-family: sans-serif;
text-shadow: 0.15px 0 0.5px #E6DFEF,
-0.15px 0 0.5px #E6DFEF,
1px 0 1px #33292A,
-2px 0 2px #1A1420;
}
.button-container {
display: grid;
grid-template-columns: repeat(10, 1fr);
column-gap: 1px;
width: 450px;
height: 65px;
border-radius: 2px;
position: absolute;
left: 170px;
bottom: 220px;
background-color: transparent;
box-shadow: 0 0 2px #DDABA0 inset,
0 0 1px #DDABA0,
0 -1px 2px #F1CBC2,
0 -1.5px 2px #FDE4DD,
0 1px 2px #E9CDBF,
0 1.5px 2px #FADACF,
0 1.5px 1.5px -0.5px #D69C8E inset,
0 10px 10px -5px #E0B2A2 inset,
0 -10px 5px -5px rgba(178, 83, 65, 1) inset;
}
.button-container .button {
border-radius: 3px;
background-image: linear-gradient(
var(--button-1),
var(--button-2),
var(--button-3),
var(--button-4)
);
box-shadow: 0 0 0.25px var(--button-3),
-0.5px -0.75px 1px rgba(241, 249, 255, 0.15) inset,
-0.75px -1.5px 1.5px rgba(44, 6, 13, 0.05) inset,
0 -0.5px 0.75px 0.25px var(--button-1),
0 0.5px 0.75px 0.25px var(--button-4),
0 -0.75px 2px -0.75px var(--button-1),
0 0.75px 2px -0.75px var(--button-4),
-0.5px -2px 3px 0.75px rgba(44, 6, 13, 0.9),
-15px -20px 20px 2px rgba(150, 90, 64, 0.35),
-7px -7px 5px -0.5px rgba(150, 90, 64, 0.5),
-7px -3px 7px rgba(201, 149, 135, 0.55),
-10px -10px 15px rgba(201, 149, 135, 0.25);
position: relative;
bottom: -3px;
left: -1.5px;
z-index: 11;
height: 100%;
height: calc(100% - 3px);
}
.button-container .button:nth-child(2) {
--button-1: #884B36;
--button-2: #8A4631;
--button-3: #BD6E48;
--button-4: #C2724D;
--center-1: #AC5B3D;
--center-2: #AE5E43;
--center-3: #BD6E48;
--center-4: #AA624A;
--center-5: #AE5E3D;
--center-6: #C77E5B;
z-index: 10;
}
.button-container .button:nth-child(3) {
--button-1: #C1353E;
--button-2: #C22B3A;
--button-3: #E42D49;
--button-4: #E32C3E;
--center-1: #D5132B;
--center-2: #DD1F3B;
--center-3: #E42849;
--center-4: #E33E50;
--center-5: #D51A39;
--center-6: #F44661;
z-index: 9;
}
.button-container .button:nth-child(4) {
--button-1: #CC3929;
--button-2: #D73825;
--button-3: #FD5332;
--button-4: #F2501F;
--center-1: #F83D1E;
--center-2: #FD4022;
--center-3: #FC4D2E;
--center-4: #FF5A3D;
--center-5: #F0361F;
--center-6: #FF6959;
z-index: 8;
}
.button-container .button:nth-child(5) {
--button-1: #F2AC26;
--button-2: #F0AC19;
--button-3: #F0B31C;
--button-4: #ECAF19;
--center-1: #E8A321;
--center-2: #F0AD14;
--center-3: #F3B61D;
--center-4: #F1A943;
--center-5: #EBAA09;
--center-6: #FBC131;
z-index: 7;
}
.button-container .button:nth-child(6) {
--button-1: #FCB829;
--button-2: #F7CF31;
--button-3: #FFDB3C;
--button-4: #FBDB4C;
--center-1: #FFD531;
--center-2: #F6DC41;
--center-3: #FFDA3B;
--center-4: #FFE470;
--center-5: #FFD038;
--center-6: #FFE160;
z-index: 6;
}
.button-container .button:nth-child(7) {
--button-1: #B5D496;
--button-2: #A1D890;
--button-3: #B5F4A7;
--button-4: #B3EAA4;
--center-1: #BDE899;
--center-2: #B8ED9F;
--center-3: #C6F6AA;
--center-4: #B7E6B8;
--center-5: #C6F6AC;
--center-6: #D9FEBB;
z-index: 5;
}
.button-container .button:nth-child(8) {
--button-1: #3F88B5;
--button-2: #3494C7;
--button-3: #0FCEFB;
--button-4: #15CAF7;
--center-1: #26B7F0;
--center-2: #05BEFF;
--center-3: #04C6FB;
--center-4: #23D7FF;
--center-5: #08C2F5;
--center-6: #22D9FF;
z-index: 4;
}
.button-container .button:nth-child(9) {
--button-1: #4058A2;
--button-2: #3C5FB9;
--button-3: #0D7BF4;
--button-4: #2680F8;
--center-1: #1864DC;
--center-2: #0071F1;
--center-3: #1A7DE5;
--center-4: #346DD4;
--center-5: #016EE3;
--center-6: #5298F0;
z-index: 3;
}
.button-container .button:nth-child(10) {
--button-1: #3D306E;
--button-2: #503C79;
--button-3: #6A5ABD;
--button-4: #6A5ABD;
--center-1: #5141A3;
--center-2: #5647AE;
--center-3: #6052B3;
--center-4: #6758AB;
--center-5: #574DAE;
--center-6: #7B6BCE;
z-index: 2;
}
.button-container .button .center {
display: block;
width: 100%;
height: 35px;
width: calc(100% + 2px);
border-radius: 2px;
position: absolute;
top: 15px;
left: -1px;
background-image: linear-gradient(
var(--center-1),
var(--center-2),
var(--center-3)
);
box-shadow: 0 0 0.5px var(--center-3),
-3px -20px 14px 3px rgba(20, 7, 14, 0.15),
3px 20px 14px -3px rgba(241, 249, 255, 0.025),
-3px -17px 14px -3px rgba(241, 249, 255, 0.025),
0 -20px 10px -10px rgba(44, 6, 13, 0.05) inset,
0 -0px 10px -10px rgba(44, 6, 13, 0.05) inset,
0 30px 20px -10px rgba(241, 249, 255, 0.05) inset,
0 -0.25px 0.75px 0.25px var(--center-1),
0 0.5px 0.75px 0.25px var(--center-3),
0 -0.75px 2px -0.75px var(--center-1),
0 0.75px 2px -0.75px var(--center-3),
0 1px 1.75px -0.75px var(--center-4) inset,
0 -3px 4px -3px var(--center-5) inset,
0 3px 3px -3px var(--center-6),
0 -4px 7px -4px var(--center-1),
0 4px 7px -4px var(--center-6);
}
.button-container .button .center:nth-child(1) { z-index: 22; }
.button-container .button .center:nth-child(2) { z-index: 21; }
.button-container .button .center:nth-child(3) { z-index: 20; }
.button-container .button .center:nth-child(4) { z-index: 19; }
.button-container .button .center:nth-child(5) { z-index: 18; }
.button-container .button .center:nth-child(6) { z-index: 17; }
.button-container .button .center:nth-child(7) { z-index: 16; }
.button-container .button .center:nth-child(8) { z-index: 15; }
.button-container .button .center:nth-child(9) { z-index: 14; }
.button-container .button .center:nth-child(10) { z-index: 13; }
.range-container {
display: block;
width: 490px;
height: 92px;
background-color: transparent;
position: absolute;
left: 150px;
bottom: 290px;
border-radius: 0 0 6px 6px;
box-shadow: -1px 1px 3px -1px #945A42,
0.5px -1px 1px #945A42 inset,
-4px 2px 7px -2.25px #BD8974,
1px -1px 1px -1px #BD8974 inset,
1px -1px 1.5px -1px #CF9981 inset,
-0.5px -0.5px 0.5px #FFEDE0 inset,
-1.5px -1.5px 2px -1px #FFE8DB inset,
-4px -1.5px 4px -2px #FEDACA inset,
2px 1px 2px -1px #FEDACA,
0 0 10px #FBDAD1,
-10px 10px 25px rgba(60, 3, 0, 0.015);
}
.range-plate {
display: block;
width: 455px;
height: 65px;
position: absolute;
left: 17px;
top: 11px;
border-radius: 1.5px;
background-color: #BBC9E6;
background-image: linear-gradient(rgba(134, 141, 169, 0.1) 0 25%, transparent 25% 50%, rgba(143, 150, 178, 0.1) 50% 75%, transparent 75%),
linear-gradient(90deg, rgba(159, 167, 188, 0.05), rgba(119, 130, 160, 0.1), rgba(159, 167, 188, 0.05)),
radial-gradient(rgba(167, 172, 202, 0.65), transparent 60%),
radial-gradient(#7B84A3, #929CB7, #BBC9E6);
background-size: 100% 4px,
20% 100%,
200px 200px,
200% 300%;
background-repeat: repeat,
repeat,
no-repeat,
no-repeat;
background-position: center center,
center center,
center center,
100% 50%;
box-shadow: 0 0 1px 0.25px #F6D0C7 inset,
0 -0.5px 0.75px 0.5px #8D6E6C inset,
0 0.75px 0.5px 0.25px #E7C9C7,
0 0.5px 2.5px 1.5px #F6D5CE,
0 0 10px rgba(100, 98, 120, 0.25) inset;
}
.ranges {
list-style-type: none;
font-family: sans-serif;
font-weight: 600;
color: #1F233E;
font-size: 8px;
position: absolute;
top: 6px;
text-shadow: 0 0 0.2px #1F233E,
0 0 1px #BCBCD0;
}
.ranges li {
margin-bottom: 6px;
}
.left .ranges {
left: 27px;
}
.left .ranges li:first-child {
margin-left: 10px;
}
.left .ranges li:last-child {
margin-left: 6px;
}
.left .slider-wrapper {
width: 50px;
height: 50px;
background-color: #606B89;
position: absolute;
left: 50.25px;
top: 9.25px;
border-radius: 50px;
background-image: linear-gradient(20deg, #484653, #606B89, #8792AE);
box-shadow: -0.5px 0.5px 0.5px #606B89,
0 0 1px 0.15px #606B89 inset,
0 0 1px 0.25px #606B89,
0 0 4px 1px #7886A1,
0 15px 10px -2px rgba(51, 46, 52, 0.25),
-30px -30px 50px 20px rgba(62, 21, 8, 0.1),
-12px -25px 17px 4px rgba(62, 21, 8, 0.22),
-30px -45px 25px 4px rgba(62, 21, 8, 0.125),
-45px -50px 35px 8px rgba(62, 21, 8, 0.125),
-5px -15px 10px -2px rgba(202, 206, 217, 0.25),
0 0 20px 3px rgba(202, 206, 217, 0.75);
}
.left .slider {
display: block;
width: 50px;
height: 50px;
background-color: black;
border-radius: 100px;
position: absolute;
left: -3.25px;
top: -3.25px;
background-image: linear-gradient(90deg, rgba(17, 18, 23, 0.5), transparent),
radial-gradient(#1A2332, #1C1F2D 66%, transparent 69%),
linear-gradient(90deg, rgba(17, 18, 23, 0.75), transparent),
linear-gradient(rgba(24, 31, 49, 0.9), transparent),
linear-gradient(45deg, transparent 30%, #7C899C, transparent 70%),
linear-gradient(-45deg, transparent 30%, #7C899C, transparent 70%),
radial-gradient(#1A2332, #1C1F2D, #10172A);
box-shadow: 0 0 1px 0.75px #10172A,
0 0 2px 0.75px rgba(67, 68, 88, 0.5);
}
.left p {
text-transform: uppercase;
font-family: sans-serif;
font-weight: 600;
font-size: 6.5px;
color: #1F233E;
letter-spacing: 0.75px;
position: absolute;
left: 107px;
top: 29px;
text-shadow: 0 0 0.2px #1F233E,
0 0 1px #959AB2;
}
.center p, .center ul li {
text-transform: uppercase;
font-family: sans-serif;
font-weight: 600;
font-size: 6px;
color: #1F233E;
letter-spacing: 0.5px;
text-shadow: 0 0 0.2px #1F233E,
0 0 1px #959AB2;
list-style-type: none;
}
.center p {
text-align: center;
position: absolute;
top: 6px;
left: 0;
right: 0;
margin: 0 auto;
}
.center ul {
position: absolute;
bottom: 6px;
left: 200px;
}
.center ul li {
display: inline-block;
margin-right: 6px;
}
.switch-wrapper {
display: block;
width: 35px;
height: 17px;
background-color: #0B090E;
border-radius: 35px;
position: absolute;
left: 210px;
top: 22px;
background-image: linear-gradient(rgba(30, 31, 57, 0), rgba(30, 31, 57, 0.5), rgba(30, 31, 57, 0)),
linear-gradient(#09080E, #0A090F);
box-shadow: 0 0.5px 0.5px #353245 inset,
0 -0.25px 0.5px #4F515E inset,
0 -0.75px 0.75px #30354B inset,
0 1px 1px -0.25px #55515F inset,
0 1.25px 1px -0.5px #28252E inset,
0 0 5px 1px #1E1F39 inset,
0 0 0.5px 0.25px #353245,
0 0 1px #B4B9CC,
0 0.15px 2.5px -0.5px #9FA5BE,
0 10px 10px -3px rgba(208, 209, 227, 0.5),
0 20px 20px rgba(208, 209, 227, 0.35);
}
.switch-button {
display: block;
width: 15px;
height: 15px;
border-radius: 15px;
background-color: #140E1C;
position: absolute;
top: 0.35px;
left: 0.45px;
background-image: radial-gradient(rgba(208, 209, 227, 0.5), rgba(208, 209, 227, 0) 40%),
linear-gradient(90deg, #140E1C, #2D2C3C);
background-repeat: no-repeat,
no-repeat;
background-size: 120% 140%,
100% 100%;
background-position: 3px 3px,
top left;
box-shadow: 0 0 0.5px 0.75px #9A9CA9 inset,
0 0 0.15px #9A9CA9,
0 0 0.5px 0.25px #1B1B25,
0 0 1px #1E1E26,
0 5px 10px -2px rgba(51, 46, 52, 0.25),
-5px -10px 10px 2px rgba(62, 21, 8, 0.15),
-10px -17px 20px 5px rgba(62, 21, 8, 0.1),
-20px -23px 25px 6px rgba(62, 21, 8, 0.15),
-30px -35px 30px 10px rgba(62, 21, 8, 0.1);
}
.right .slider-wrapper {
width: 50px;
height: 50px;
background-color: #606B89;
position: absolute;
right: 50.25px;
top: 9.25px;
border-radius: 50px;
background-image: linear-gradient(20deg, #3C3642, #4B485B, #535166);
box-shadow: -0.5px 0.5px 0.5px #606B89,
0 0 1px 0.15px #606B89 inset,
0 0 1px 0.25px #606B89,
0 0 4px 1px #7886A1,
0 15px 10px -2px rgba(51, 46, 52, 0.25),
-30px -30px 50px 20px rgba(62, 21, 8, 0.1),
-12px -25px 17px 4px rgba(62, 21, 8, 0.15),
-30px -45px 25px 4px rgba(62, 21, 8, 0.075),
-45px -50px 35px 8px rgba(62, 21, 8, 0.075),
-5px -15px 10px -2px rgba(202, 206, 217, 0.25),
0 0 20px 3px rgba(202, 206, 217, 0.75);
}
.right .slider {
display: block;
width: 50px;
height: 50px;
background-color: black;
border-radius: 100px;
position: absolute;
left: 3.5px;
top: -3.5px;
background-image: radial-gradient(#1F273A, rgba(22, 26, 38, 1) 66%, transparent 69%),
linear-gradient(90deg, rgba(22, 26, 38, 0.75), transparent),
linear-gradient(rgba(24, 31, 49, 0.9), transparent),
linear-gradient(45deg, transparent 30%, #7C899C, transparent 70%),
linear-gradient(-45deg, transparent 30%, #7C899C, transparent 70%),
radial-gradient(#1F273A, #212C42, #171D2D);
box-shadow: 0 0 1px 0.75px rgba(22, 26, 38, 1),
0 0 2px 0.75px rgba(67, 68, 88, 0.5);
}
.right ul, .right p {
text-transform: uppercase;
font-family: sans-serif;
font-weight: 600;
color: #1F233E;
font-size: 6.5px;
letter-spacing: 0.5px;
text-shadow: 0 0 0.2px #1F233E,
0 0 1px #BCBCD0;
}
.right ul {
list-style-type: none;
position: absolute;
left: 415px;
top: 9px;
}
.right ul li {
margin-bottom: 9px;
}
.right ul li:first-child {
margin-left: -7px;
}
.right ul li:last-child {
margin-left: -5px;
}
.right p {
position: absolute;
top: 30px;
left: 325px;
}
.speed-container {
display: block;
width: 40px;
height: 150px;
background-color: #656581;
border-radius: 1px;
position: absolute;
left: 60px;
top: 360px;
background-image: linear-gradient(rgba(134, 141, 169, 0.1) 0 25%, transparent 25% 50%, rgba(143, 150, 178, 0.1) 50% 75%, transparent 75%),
linear-gradient(90deg, rgba(159, 167, 188, 0.05), rgba(119, 130, 160, 0.1), rgba(159, 167, 188, 0.05)),
radial-gradient(rgba(167, 172, 202, 0.65), transparent 60%),
radial-gradient(#7B84A3, #929CB7, #BBC9E6);
background-size: 100% 4px,
20% 100%,
200px 200px,
200% 300%;
background-repeat: repeat,
repeat,
no-repeat,
no-repeat;
background-position: center center,
center center,
center center,
100% 50%;
box-shadow: 0 0 1px #E1C3B8 inset,
0 0 1px 0.5px #DFC6C1,
0 0 2px 1px #E2C1BA,
0.5px 0 0.5px 0.5px #929CB7 inset,
-0.5px 0 0.5px 0.5px #929CB7 inset;
}
.speed-container p {
text-transform: uppercase;
font-family: sans-serif;
font-weight: 600;
color: #1F233E;
font-size: 7px;
letter-spacing: 0.5px;
text-shadow: 0 0 0.2px #1F233E,
0 0 1px #929CB7;
}
.speed-container p:first-child {
position: absolute;
top: 5px;
left: 10px;
}
.speed-container p:last-child {
position: absolute;
bottom: 3px;
left: 9px;
}
.speed-slider {
display: block;
width: 5px;
height: 100px;
border-radius: 6px;
background-color: #120D14;
position: absolute;
top: 25px;
left: 17px;
background-image: linear-gradient(#120D14, #1B0B15, #1D1419);
box-shadow: -0.75px 0 1px #9391A5 inset,
0.75px 0 1px #A79DA8 inset,
-0.5px 0 1px -0.15px rgba(213, 212, 219, 0.1),
0 0 3px #9FA7AA;
}
.speed-button-container {
display: block;
width: 20px;
height: 20px;
border-radius: 30px;
background-color: #fff;
position: absolute;
top: 35px;
left: 8px;
background-image: linear-gradient(70deg, #63687E 80%, #9A9BBA);
box-shadow: 0 0 1px #63687E,
0 0 0.5px #63687E,
0 0 4px 0.5px #63687E;
}
.speed-button {
display: block;
width: 20px;
height: 20px;
border-radius: 30px;
background-color: #000;
position: absolute;
left: -3.5px;
top: -1px;
background-image: radial-gradient(#353B51, #1E2736, #262739);
box-shadow: 0 0 0.5px 0.25px #262739,
0 0 4px rgba(19, 18, 32, 0.5),
8px 10px 10px rgba(51, 46, 52, 0.25),
-30px -30px 30px 30px rgba(62, 21, 8, 0.1),
-7px -10px 15px 3px rgba(62, 21, 8, 0.15),
-15px -25px 20px 3px rgba(62, 21, 8, 0.1),
-25px -50px 30px 3px rgba(62, 21, 8, 0.075),
-5px -15px 10px -2px rgba(202, 206, 217, 0.15),
0 0 20px 3px rgba(202, 206, 217, 0.75);
}
.vol-container {
display: block;
width: 40px;
height: 150px;
background-color: #656581;
border-radius: 1px;
position: absolute;
right: 60px;
top: 360px;
background-image: linear-gradient(rgba(134, 141, 169, 0.1) 0 25%, transparent 25% 50%, rgba(143, 150, 178, 0.1) 50% 75%, transparent 75%),
linear-gradient(90deg, rgba(159, 167, 188, 0.05), rgba(119, 130, 160, 0.1), rgba(159, 167, 188, 0.05)),
radial-gradient(rgba(167, 172, 202, 0.65), transparent 60%),
radial-gradient(#7B84A3, #929CB7, #BBC9E6);
background-size: 100% 4px,
20% 100%,
200px 200px,
200% 300%;
background-repeat: repeat,
repeat,
no-repeat,
no-repeat;
background-position: center center,
center center,
center center,
100% 50%;
box-shadow: 0 0 1px #E1C3B8 inset,
0 0 1px 0.5px #DFC6C1,
0 0 2px 1px #E2C1BA,
0.5px 0 0.5px 0.5px #929CB7 inset,
-0.5px 0 0.5px 0.5px #929CB7 inset;
}
.vol-container p {
text-transform: uppercase;
font-family: sans-serif;
font-weight: 600;
color: #1F233E;
font-size: 7px;
letter-spacing: 0.5px;
text-shadow: 0 0 0.2px #1F233E,
0 0 1px #929CB7;
}
.vol-container p:first-child {
position: absolute;
top: 5px;
left: 10px;
}
.vol-container p:last-child {
position: absolute;
bottom: 3px;
left: 10px;
}
.vol-slider {
display: block;
width: 5px;
height: 100px;
border-radius: 6px;
background-color: #120D14;
position: absolute;
top: 25px;
left: 17px;
background-image: linear-gradient(#120D14, #1B0B15, #1D1419);
box-shadow: -0.75px 0 1px #9391A5 inset,
0.75px 0 1px #A79DA8 inset,
-0.5px 0 1px -0.15px rgba(213, 212, 219, 0.1),
0 0 3px #9FA7AA;
}
.vol-button-container {
display: block;
width: 20px;
height: 20px;
border-radius: 30px;
background-color: #fff;
position: absolute;
top: 60px;
left: 12px;
background-image: linear-gradient(70deg, #63687E 80%, #9A9BBA);
box-shadow: 0 0 1px #63687E,
0 0 0.5px #63687E,
0 0 4px 0.5px #63687E;
}
.vol-button {
display: block;
width: 20px;
height: 20px;
border-radius: 30px;
background-color: #000;
position: absolute;
left: 3px;
top: 1px;
background-image: radial-gradient(#353B51, #1E2736, #262739);
box-shadow: 0 0 0.5px 0.25px #262739,
0 0 4px rgba(19, 18, 32, 0.5),
8px 10px 10px rgba(51, 46, 52, 0.25),
-30px -30px 30px 30px rgba(62, 21, 8, 0.1),
-7px -10px 15px 3px rgba(62, 21, 8, 0.15),
-15px -25px 20px 3px rgba(62, 21, 8, 0.1),
-25px -50px 30px 3px rgba(62, 21, 8, 0.075),
-5px -15px 10px -2px rgba(202, 206, 217, 0.15),
0 0 20px 3px rgba(202, 206, 217, 0.75);
}
@media screen and (max-height: 750px) {
.muson {
transform: scale(0.89);
}
}
@media screen and (max-width: 670px) {
.muson {
transform: scale(0.9);
}
}
Also see: Tab Triggers