@charset "UTF-8";

/* Base */
html {
  color: hsl(0, 0%, 90%);
  font-family: sans-serif;
  font-size: 20px;
}

body {
  margin: 0;
  background-color: hsl(0, 0%, 30%);
}


/* Header */
header {
  margin: 0;
  padding: 0.2em 0.5em;
  white-space: nowrap;
  overflow-x: hidden;

  background-color: hsl(0, 0%, 20%);
  border-bottom: solid 2px #000;
  font-size: 4rem;

  display: flex;
  align-items: center;
}
#head-icon {
  display: block;
  height: 1.4em;
  margin-right: 0.3em;
}


/* Controller */
#dmx-lanes-scroller {
  margin: 0;
  padding: 3rem 2rem;
  overflow-x: scroll;
}

#dmx-lanes-container {
  width: fit-content;
  overflow-x: hidden;
  border: solid 1px #000;
  border-radius: 1rem;
}


/* User labels import/export buttons */
#labels-control-field {
  font-size: 1.5em;
  margin: 2rem;
  padding: 0;
}

#button-labels-import, #button-labels-export {
  position: relative;
  cursor: pointer;
  display: inline-block;
  opacity: 1;
  transition: opacity linear 0.2s;

  border: 2px solid #fff;
  border-radius: 0.2em;
  background-color: hsl(0, 0%, 20%);
  outline: none;

  font: inherit;
  font-size: inherit;
  color: #fff;
  margin: 0 0 0 0.5em;
  padding: 0.2em 0.5em 0.2em calc(0.5em + 1.2em + 0.4em);
  box-sizing: content-box;

  background-position: 0.5em;
  background-repeat: no-repeat;
  background-size: 1.2em;
}
#button-labels-import:hover, #button-labels-export:hover {
  opacity: 0.5;
}
#button-labels-import {
  background-image: url(./icons/import.svg);
}
#button-labels-export {
  background-image: url(./icons/export.svg);
}

#button-labels-import-input {
  position: absolute;
  cursor: pointer;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}


/* Error view */
#error-view {
  color: hsl(0, 100%, 70%);
  text-align: center;
  font-size: 2rem;

  margin: 0;
  position: fixed;
  width: 100vw;
  left: 0;
  bottom: 20vh;
}
#error-view:empty {
  display: none;
}
