@import url("./theme-definitions.css");
@import url("./theme.css");
@import url("./button.css");
/* @import url('./button.css'); */

:root {
  line-height: 1.5;
  font-weight: 400;

  /* color-scheme: light dark; */
  color: rgba(255, 255, 255, 0.87);
  background-color: var(--bg);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  font-weight: 500;
  color: var(--a);
  text-decoration: inherit;
}

a:hover {
  color: var(--line);
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

#app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}

.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}

.logo.vanilla:hover {
  filter: drop-shadow(0 0 2em #f7df1eaa);
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}

/* global utility classes */
.wide-0 {
  /* TODO: fix resize by aslo using padding */
  width: 0px;
}

.wide-10 {
  width: 10%;
}

.wide-20 {
  width: 20%;
}

.wide-30 {
  width: 30%;
}

.wide-40 {
  width: 40%;
}

.wide-50 {
  width: 50%;
}

.wide-60 {
  width: 60%;
}

.wide-70 {
  width: 70%;
}

.wide-80 {
  width: 80%;
}

.wide-90 {
  width: 90%;
}

.wide-100 {
  width: 100%;
}

.wide,
.wide-100 {
  width: 100%;
}

.flex {
  display: flex;
}

.row {
  flex-direction: row;
  height: 100px;
}

.col {
  flex-direction: column;
  height: 100%;
}

.pad-10 {
  padding: 10px;
}

.margin-auto {
  margin: auto;
}

.border {
  border: 1px solid;
  border-color: var(--border);
}

/* end utility classes */

.playground {
  min-height: 500px;
}

.no-select {
  cursor: default;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
  background-color: transparent;
}

.no-select:focus {
  outline: none;
}

.visibility-hidden {
  visibility: hidden;
}

.hidden {
  display: none !important;
}

.n-window-container {
  display: flex;
  flex-direction: column;
}

.n-svg-target {
  flex-direction: column;
  display: flex;
  vertical-align: middle;
  align-items: center;
  /* clearance for default piano */
  margin-bottom: 50px;
}

.n-svg-target svg {
  user-select: none;
}

.n-measure-rect {
  cursor: pointer;
}

/* highlight the current measure within transport */
.n-measure-playing .n-measure-rect {
  stroke: var(--staff);
  stroke-width: 30px;
  /* stroke-dasharray: 2,2; */
  /* stroke-linejoin: round; */
}

.looped {
  outline-color: rgb(0, 217, 0);
  outline-style: dashed;
  outline-width: 10px;
}

.n-menu-semicolon {
  background: url("/static/menu-semicolon.svg") no-repeat;
  width: 100px;
  height: 100px;
  position: fixed;
  bottom: 0;
  right: 0;
  cursor: pointer;
  opacity: 0.3;
}

.n-menu-semicolon:hover {
  opacity: 1;
}

.transport-align {
  display: flex;
  max-width: 1189px;
  margin: auto;
  justify-content: space-between;
}

.transport-title {
  text-align: center;
  margin-top: 5px;
}

.transport-title a {
  font-weight: 500;
}

.n-transport-container {
  padding: 10px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  cursor: pointer;
  z-index: 2;
  border-bottom: 1px dashed var(--line);
  background: var(--bg);
  display: flex;
}

.n-page-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.playback-controls {
  display: flex;
  gap: 20px;
  /* padding: 20px; */
}

#playMIDI svg path,
#stopMIDI rect,
#pauseMIDI rect {
  fill: var(--line);
  stroke: black;
}

.playback-meta {
  display: block;
  padding-top: 76px;
  text-align: right;
}

button {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

button:hover {
  outline: 2px solid var(--line);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 4px;
}

.icon {
  width: 100%;
  height: 100%;
}

.center {
  text-align: center;
}

#settings_container {
  height: 500px;
  display: flex;
  margin-bottom: 50px;
  justify-content: center;

}

#settings {
  border: 1px dashed var(--line);
  height: 500px;
  width: 300px;
  display: block;
  border-radius: 20px;
}
.themes {
  text-align: center;
}
