html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

body {
  background: linear-gradient(to bottom, #001100, #003300);
  display: flex;
  flex-direction: column;
}

header {
  position:fixed;
  top:0;
  left:0;
  right:0;
  background:rgba(255,255,255,0);
  backdrop-filter: blur(6px);
  z-index:100;
}

.header-content {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  align-items:center;
  padding:16px 32px;
  width: 100vw;
}

.brand {
  font-weight:800;
  font-size:24px;
  color:#ffffff;
  line-height:1;
}
.slogen {
  color:#ffffff;
  font-weight:300;
  font-size:16px;
}
.brand-slo {
  display:flex;
  justify-content: left;
  align-items:  baseline;
  gap:8px;
}

nav {
  display:flex;
  gap:24px;
}
nav a {
  text-decoration:none;
  color:#ffffff;
  font-weight:600;
  font-size:16px;
}
nav a.small {font-weight:400; font-size:14px; color:#ffffff;}

.lang {
  display: flex;
  gap: 8px;
  justify-content: right;
  align-items: center;
  margin-right: 80px;
}
.lang a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.lang a.active {
  text-decoration: underline;
}

main {
  flex:1;
  padding-top:80px; /* space for header */
}

.hero-text {
  color:#fff;
  text-shadow:0 2px 8px rgba(0,0,0,0.6);
  font-size:28px;
  font-weight:600;
  max-width:700px;
  text-align:center;
}

.slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.slide.active {
  opacity: 1;
}

/* firmware */
.ProgramEditor {
  display: grid;
}

.Edit {
  display: grid;
  place-items:center;
}

.controller {
  width: 300px;
  height: 400px;
  background-color: #6d6d6d;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  place-items: center;
  padding: 1%;
}

.slider {
  display: flex;
  width: 30px;
  height: 380px;
  background-color: #4a4a4a;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.slider.selected {
  background-color: #6a6a6a;
}

.dot {
  width: 20px;
  height: 20px;
  background-color: #d9d9d9;
  border-radius: 10px;
}

.MidiProgramEditor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(100vh - 100px);
  padding: 20px;
  gap: 20px;
}

.controller {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  place-self: center;
}

.Edit {
  background: rgba(0, 255, 0, 0.1);
  padding: 0;
  height: 100%;
  overflow-y: auto;
  display: Grid;
  grid-template-rows: auto auto auto;
  width:100%;
}

.Edit h3 {
  margin: 20px 20px 40px 20px;
  color: #fff;
  font-size: 32px;
}

.Edit ul {
  list-style: none;
  padding: 0;
}

.Edit li {
  margin: 10px 0;
}

.edit-item {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  width:80%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.edit-item:last-child {
  margin-bottom: 20px;
}

.edit-item label {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 24px;
}

.edit-item select {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 4px;
  background: #fff;
  font-size: 24px;
}

.edit-item input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  background: transparent;
}

.edit-item input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.edit-item input[type="range"]::-webkit-slider-track {
  width: 100%;
  height: 8px;
  background: #ccc;
  border-radius: 4px;
}

.Edit button {
  width: auto;
  padding: 8px 16px;
  background: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  margin-left: 20px;
}

.Edit button:hover {
  background: #f0f0f0;
}

@media (max-width:880px){
  nav {gap:12px;}
  .brand {font-size:20px;}
  .role {font-size:14px;}
  .hero-text {font-size:20px;}
  .MidiProgramEditor {
    flex-direction: column;
  }
}