@font-face {
  font-family: Helvetica;
  font-style: normal;
  font-weight: 400;
  src: url(../css/helvthin.otf);
}

:root {
  --bg-deep: #07090d;
  --bg-mid: #0e131c;
  --bg-soft: #141a26;
  --key-grad-top: #1d2330;
  --key-grad-bottom: #11151e;
  --key-border: rgba(255, 255, 255, 0.08);
  --key-border-bottom: rgba(0, 0, 0, 0.55);
  --key-text: #d8e1ef;
  --key-text-muted: #97a3b8;
  --accent: #4cc9f0;
  --accent-2: #7c5cff;
  --accent-glow: rgba(76, 201, 240, 0.55);
  --active-color: #7c5cff;
  --active-glow: rgba(124, 92, 255, 0.45);
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--bg-deep);
  color: var(--key-text);
}
header {
  background:
    radial-gradient(1100px 600px at 50% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 50% 110%, rgba(76, 201, 240, 0.10), transparent 60%),
    linear-gradient(180deg, #0a0e16 0%, #07090d 100%);
  background-color: var(--bg-deep);
  height: 100%;
  overflow: auto;
}
.key {
  background: linear-gradient(180deg, var(--key-grad-top) 0%, var(--key-grad-bottom) 100%);
  border: 1px solid var(--key-border);
  border-radius: 7px;
  color: var(--key-text);
  display: inline-block;
  font-size: 16px;
  height: 52px;
  text-align: center;
  vertical-align: top;
  width: 52px;
  margin: 5px 1px;
  border-bottom: 2px solid var(--key-border-bottom);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.45);
  transition: background 120ms ease, color 120ms ease, box-shadow 160ms ease, border-color 160ms ease, transform 80ms ease;
}
.keyFunc {
  background: linear-gradient(180deg, var(--key-grad-top) 0%, var(--key-grad-bottom) 100%);
  border: 1px solid var(--key-border);
  border-radius: 6px;
  color: var(--key-text-muted);
  display: inline-block;
  font-size: 14px;
  height: 35px;
  text-align: center;
  vertical-align: top;
  width: 47px;
  margin: 5px 1px;
  border-bottom: 2px solid var(--key-border-bottom);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.45);
  transition: background 120ms ease, color 120ms ease, box-shadow 160ms ease, border-color 160ms ease, transform 80ms ease;
}
.keyboard-body {
  height: 750px;
  margin: 5px auto 0;
  width: 1264px;
  position: relative;
}
.header-gap {
  margin: 0 auto;
  text-align: center;
  padding: 16px 10px 10px 10px;
}
.header-gap > div {
  display: inline-block;
  padding-top: 30;
}
.keyboard-bg-blur {
  background:
    radial-gradient(circle at 30% 20%, rgba(124, 92, 255, 0.22), transparent 55%),
    radial-gradient(circle at 75% 85%, rgba(76, 201, 240, 0.18), transparent 55%),
    linear-gradient(135deg, #0d121d 0%, #0a0e17 100%);
  filter: blur(0);
  height: 100%;
  margin: 0;
  padding: 0;
  position: absolute;
  width: 100%;
  z-index: 1;
  border-radius: 16px;
}
.keyboard-bg-fade {
  background-color: rgba(7, 9, 13, 0.55);
  height: 100%;
  opacity: 1;
  position: absolute;
  width: 100%;
  z-index: 2;
  border-radius: 16px;
}
.content {
  height: 100%;
  position: absolute;
  width: 100%;
  z-index: 3;
}
.keyboard-header {
  background-color: rgba(10, 14, 22, 0.7);
  color: var(--accent);
  height: 50px;
  overflow: hidden;
  padding-top: 5px;
  width: 100%;
  border: 1px solid rgba(76, 201, 240, 0.22);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 24px rgba(76, 201, 240, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.keyOutput {
  border: 1px solid rgba(76, 201, 240, 0.45);
  background: linear-gradient(180deg, rgba(76, 201, 240, 0.08), rgba(76, 201, 240, 0.02));
  border-radius: 8px;
  color: var(--accent);
  display: inline-block;
  font-size: 14px;
  height: 30px;
  text-align: center;
  width: 120px;
  margin: 7px 0;
  font-family: inherit;
  letter-spacing: 0.3px;
}
.keyOutput > p {
  margin-top: 6px;
}
.areaGap {
  visibility: hidden;
}
.delKey {
  font-size: 15px;
  line-height: 0.9;
}
.delKey > p {
  margin-top: 14px;
}
.t16 {
  font-size: 16px;
}
.t16 > p {
  margin-top: 18px;
}
.key.delKey.minSize > p {
  font-size: 28px;
  margin-top: -2px;
}
.key.delKey.plusKey > p {
  font-size: 20px;
  line-height: 0.7;
}
.brackets {
  margin-left: 8px;
  margin-right: 8px;
}
.gapWidth {
  width: 2px;
}
.keyboard-section {
  padding: 0 22px;
}
.key.backSpace > p {
  margin: 10px;
  transform: translateY(-26px);
  text-align: center;
  margin-left: 60px;
}
.key.backSpace {
  font-size: 35px;
  width: 177px;
}
.key.tab {
  text-align: left;
  width: 87px;
}
.key.arithmeticKey > p {
  font-size: 20px;
  margin-top: 16px;
}
.key.arithmeticKey.backslash {
  width: 146px;
}
.key.plus {
  float: right;
  height: 116px;
}
.key.plus > p {
  margin-top: 45px;
}
.key.caps {
  font-size: 16px;
  width: 105px;
}
.key.caps > p {
  text-align: left;
  margin-left: 7px;
  margin-top: 17px;
}
.key.enter {
  width: 184px;
}
.key.enter > p {
  text-align: left;
  margin-left: 15px;
  font-size: 44px;
  transform: translateY(-79px);
}
.key.shiftLeft {
  width: 132px;
}
.key.shiftLeft > p,
.key.shiftRight > p {
  font-size: 16px;
  margin-top: 18px;
  text-align: left;
  margin-left: 7px;
}
.key.shiftRight {
  width: 157px;
}
.key.enterRight {
  float: right;
  height: 116px;
}
.key.enterRight > p {
  font-size: 16px;
  margin-top: 48px;
}
.key.ctrl1,
.key.ctrl2 {
  text-align: left;
  width: 92px;
}
.key.cont {
  width: 66px;
}
.key.cont > p {
  margin: 14px auto 0;
  text-align: center;
}
.key.arrowUp > p {
  font-size: 26px;
  margin-top: 9px;
  transform: rotate(-90deg);
}
.key.wndw > p {
  margin: 14px auto 0;
  text-align: center;
}
.key.wndw {
  width: 70px;
}
.key.alt {
  width: 70px;
}
.key.space {
  width: 325px;
}
.key.zero {
  width: 112px;
}
.key.lclick {
  border-radius: 86px 0 0 0;
  height: 106px;
  vertical-align: bottom;
  width: 96px;
}
.key.rclick {
  border-radius: 0 86px 0 0;
  height: 106px;
  vertical-align: bottom;
  width: 96px;
}
.key.cclick {
  border-radius: 10px;
  height: 59px;
  margin-top: 43px;
  vertical-align: top;
  width: 25px;
}
.key.scrollUp {
  border-radius: 0 0 0 0;
  height: 20px;
  vertical-align: top;
  width: 96px;
}
.key.scrollDown {
  border-radius: 0 0 0 0;
  height: 20px;
  vertical-align: top;
  width: 96px;
}
.key.divider {
  border-radius: 0;
  height: 0;
  margin-top: 0;
  vertical-align: top;
  width: 24px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.mouse-section {
  text-align: center;
  vertical-align: bottom;
}
.key.arrowLeft > p,
.key.arrowRight > p {
  font-size: 26px;
  margin: 11px 0;
  transform: rotate(180deg);
}
.key.arrowDown > p {
  font-size: 26px;
  margin: 14px 0 14px 5px;
  transform: rotate(90deg);
}
h1 {
  font-size: 18px;
  margin: 0;
  padding: 25px 0;
}
.key.press,
.keyFunc.press {
  background: linear-gradient(180deg, #5fd4f5 0%, #3ab2dc 100%);
  border-color: rgba(76, 201, 240, 0.9);
  color: #06121a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 0 1px rgba(76, 201, 240, 0.6),
    0 0 18px var(--accent-glow),
    0 0 32px rgba(76, 201, 240, 0.25);
  transform: translateY(1px);
}
.key.active,
.keyFunc.active {
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.18) 0%, rgba(124, 92, 255, 0.08) 100%);
  border-color: rgba(124, 92, 255, 0.55);
  color: #b9a8ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(124, 92, 255, 0.25),
    0 0 14px var(--active-glow);
}
.key.enter.active span,
.key.enter.press span {
  background-position: -24px -13px;
}
.sliding_text_info {
  background-color: rgba(2, 12, 20, 0.8);
  bottom: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  left: 0;
  padding: 10px;
  right: 0;
  z-index: 200;
  font-family: inherit;
}
.footer-text {
  background-color: var(--bg-deep);
  bottom: 0;
  color: #5a6275;
  font-size: 14px;
  font-weight: 500;
  left: 0px;
  padding: 16px;
  position: fixed;
  right: 0;
  text-align: center;
}
.sound-controls {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 0;
  padding: 8px 14px;
  max-width: 100%;
  background: linear-gradient(180deg, rgba(29, 35, 48, 0.75), rgba(17, 21, 30, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 18px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 13px;
  color: var(--key-text-muted);
}
.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.sound-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sound-toggle .slider {
  position: relative;
  width: 36px;
  height: 20px;
  background: #2a3142;
  border-radius: 999px;
  transition: background 160ms ease, box-shadow 160ms ease;
  flex-shrink: 0;
}
.sound-toggle .slider::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: #d8e1ef;
  border-radius: 50%;
  transition: transform 160ms ease, background 160ms ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.sound-toggle input:checked + .slider {
  background: linear-gradient(135deg, var(--accent), var(--active-color));
  box-shadow: 0 0 12px rgba(76, 201, 240, 0.45);
}
.sound-toggle input:checked + .slider::after {
  transform: translateX(16px);
  background: #ffffff;
}
.sound-toggle input:focus-visible + .slider {
  outline: 2px solid rgba(76, 201, 240, 0.6);
  outline-offset: 2px;
}
.sound-toggle .toggle-label {
  color: var(--key-text);
  letter-spacing: 0.2px;
}
.sound-select-wrap,
.volume-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.select-label {
  color: var(--key-text-muted);
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.sound-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(10, 14, 22, 0.7);
  color: var(--key-text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px 26px 4px 10px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.sound-select:hover {
  border-color: rgba(76, 201, 240, 0.45);
}
.sound-select:focus {
  outline: none;
  border-color: rgba(76, 201, 240, 0.7);
  box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.18);
}
.sound-select option {
  background: #0e131c;
  color: var(--key-text);
}
.volume-wrap input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--vol, 60%), #2a3142 var(--vol, 60%), #2a3142 100%);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.volume-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--accent);
  box-shadow: 0 0 8px rgba(76, 201, 240, 0.5);
  cursor: pointer;
}
.volume-wrap input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--accent);
  box-shadow: 0 0 8px rgba(76, 201, 240, 0.5);
  cursor: pointer;
}
.control-divider {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 2px;
}
.layout-segment {
  display: inline-flex;
  background: rgba(10, 14, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}
.layout-opt {
  background: transparent;
  border: none;
  color: var(--key-text-muted);
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.layout-opt:hover {
  color: var(--key-text);
}
.layout-opt[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--accent), var(--active-color));
  color: #06121a;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(76, 201, 240, 0.35);
}
.layout-opt:focus-visible {
  outline: 2px solid rgba(76, 201, 240, 0.6);
  outline-offset: 2px;
}
.lbl-mac { display: none; }
body.layout-mac .lbl-win { display: none; }
body.layout-mac .lbl-mac { display: inline; }
.reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 92, 255, 0.12);
  color: #cbbfff;
  border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: 999px;
  padding: 5px 12px 5px 11px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 80ms ease;
}
.reset-btn .fa {
  font-size: 12px;
  transition: transform 320ms ease;
}
.reset-btn:hover {
  background: rgba(124, 92, 255, 0.22);
  border-color: rgba(124, 92, 255, 0.6);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(124, 92, 255, 0.35);
}
.reset-btn:hover .fa {
  transform: rotate(-90deg);
}
.reset-btn:active {
  transform: translateY(1px);
}
.reset-btn:focus-visible {
  outline: 2px solid rgba(124, 92, 255, 0.6);
  outline-offset: 2px;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 255, 0.35);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 92, 255, 0.55);
}
