html, body {
  margin: 0;
  padding: 22px;
  background-color: #333333;

  font-family: "Varela Round", Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 10px;
  /* text-transform: uppercase; */
}

canvas {
  display: block;
}

/* Timeline panel - fixed at top */
#timeline-canvas {
  position: fixed;
  top: 0;
  left: 22px; /* Match body padding to align with events panel */
  z-index: 5;
  width: 1500px; /* Match the events panel width */
  box-sizing: border-box; /* Include border in width calculation */
  margin: 0; /* Remove any default margins */
  padding: 0; /* Remove any default padding */
  transform: translateX(0); /* Ensure no transform offsets */
}

/* Event panel - positioned below timeline */
#events-canvas {
  position: relative;
  top: -20px; /* Reduced space for timeline */
  left: 0; /* Ensure no additional left offset */
  z-index: 1;
  width: 1500px; /* Match the timeline panel width */
  height: 100vh; /* Full viewport height */
  box-sizing: border-box; /* Include border in width calculation */
  margin: 0; /* Remove any default margins */
  padding: 0; /* Remove any default padding */
}



/* Left Control Panel */
.left-control-panel {
  position: fixed;
  top:  17px;
  left: 20px;
  z-index: 10;
  width: auto;
  height: auto;
  border: 0px dotted red;
}

/* Panel container */
.control-panel {
  /*position: fixed;
  top: 10px;*/
  z-index: 10;
}

.panels-label {
  display: inline-block;
  font-weight: bold;
  font-family: "Varela Round", Arial, sans-serif;
  text-align: center;
  font-size: 11px;
  margin-top:  18px;
  margin-bottom: 8px;
  border: 1px solid #bac2baff;
  color: #bac2baff;
  padding: 2px 4px;
  border-radius: 4px;
}

/* Shared style for all select elements */
.control-select {
  color: #333333;
  background-color: #ffffff;
  padding: 4px 8px;
  border: 1px solid #333;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Varela Round", Arial, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
}

/* Shared style for all labels */
.control-panel label {
  color: #ffffff;
  margin-right: 4px;
  font-family: "Varela Round", Arial, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
}

/* --------------------- */
/* Formatting of TOOLS panel */
.panel-labels {
  z-index: 10;
}

.sorting-label {
  display: inline-block;
}

.title,
.tools-label {
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  font-family: "Varela Round", Arial, sans-serif;
  text-align: left;
  padding-left: 4px;
  margin-bottom: 8px;
}

.elements-label {

}

.shape-section-label {
}

.element-controls-container {
  display: flex;
  gap: 8px;
  z-index: 10;
  margin-bottom: 15px;
  margin-left: 4px;
}

.element-control-btn {
  background-color: #555555;
  color: #bac2baff;
  border: none;
  padding: 2px 4px;
  font-size: 10px;
  font-family: 'Varela Round', sans-serif;
  cursor: pointer;
  border-radius: 3px;
  transition: background-color 0.2s;
}



.element-control-btn:active {
  background-color: #444444;
}

/* --------------------- */
/* Formatting the ELEMENTS buttons */
.element-toggles-container {
  display: grid;
  grid-template-columns: 1fr 3fr;
  grid-template-rows: repeat(7, auto);
  gap: 4px 8px;
  z-index: 10;
  background: none;
  padding-left: 7px;
  width: auto;
}

.element-toggle-row {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
  cursor: pointer;
  user-select: none;
}

.element-circle {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  margin-right: 4px;
  display: inline-block;
  transition: filter 0.2s, opacity 0.2s;
  box-sizing: border-box;
}

.element-circle.off {
  filter: grayscale(80%) brightness(70%);
  opacity: 0.7;
}

.element-label {
  color: #bac2baff;
  font-family: "Varela Round", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 400;
  margin-right: 1px;
}


/* --------------------- */
/* Formatting the SHAPE MODE options */
.shape-controls-container {
  z-index: 10;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: left;
  margin-left: 4px;
}

.shape-option-label {
  color: #bac2baff;
  font-family: "Varela Round", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: 400;
}

.shape-option {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  cursor: pointer;
  user-select: none;
}

/* --------------------- */
/* Formatting the SORTING options */
.sorting-controls-container {
  z-index: 10;
  align-items: left;
  padding-left: 4px;
}

.sorting-label {
  font-size: 11px;
  color: #bac2baff;
  font-family: "Varela Round", Arial, sans-serif;
  text-align: center;
  margin-bottom: 8px;
  margin-top:   18px;
  margin-left:   0px;
  position: relative; /* Add this to enable positioning */

  border: 1px solid #bac2baff;
  padding: 2px 4px;
  border-radius: 4px;
}

.sort-option {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  cursor: pointer;
  user-select: none;
}

.radio-button {
  width: 12px;
  height: 8px;
  border: 2px solid #bac2baff;
  border-radius: 6px;
  margin-right: 8px;
  display: inline-block;
  transition: background-color 0.2s;
}

.radio-button.selected {
  background-color: #bac2baff;
}

.shape-radio-button {
  width: 12px;
  height: 8px;
  border: 2px solid #bac2baff;
  border-radius: 6px;
  margin-right: 8px;
  display: inline-block;
  transition: background-color 0.2s;
}

.shape-radio-button.selected {
  background-color: #bac2baff;
}

.instrument-controls-container {
  z-index: 10;
  background: none;
  align-items: left;
  margin-left: 8px;
}

.instrument-option {
  vertical-align: top;
  display: block;
  align-items: center;
  margin-bottom: 8px;
}

.instrument-label {
  color: #bac2baff;
  font-family: "Varela Round", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: 400;
  vertical-align: top;
  display: inline-block;
  margin:  0 0 0 0;
  padding: 1px 0 0 0;
}

.instrument-checkbox {
  width: 11px;
  height: 11px;
  border: 2px solid #bac2baff;
  border-radius: 4px;
  margin-right:  4px;
  display: inline-block;
  transition: background-color 0.2s;
  cursor: pointer;
}

.instrument-checkbox.selected {
  background-color: #bac2baff;
}

.instrument-section-label {
  font-size: 11px;
  color: #bac2baff;
  font-family: "Varela Round", Arial, sans-serif;
  /* text-align: center; */
  display: inline-block;
  margin-top: 20px;
  margin-bottom: 8px;
  border: 1px solid #bac2baff;
  padding: 2px 4px;
  border-radius: 4px;
}

.sort-label {
  color: #bac2baff;
  font-family: "Varela Round", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: 400;
}

/* Element sorting container and columns */
.element-sorting-container {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.element-sorting-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.element-sort-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.element-radio-button {
  width: 12px;
  height: 8px;
  border: 2px solid #bac2baff;
  border-radius: 6px;
  margin-right: 8px;
  display: inline-block;
  transition: background-color 0.2s, border-color 0.2s;
}

.element-radio-button.selected {
  background-color: #bac2baff;
}

.element-sort-label {
  color: #bac2baff;
  font-family: "Varela Round", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: 400;
}


.info-panel-container {
  position: fixed;
  top: 0px;
  left: 1280px;
  z-index: 10;
  width: 340px;
  height: 100%;
  border: 0px dotted gray;
  color: white;
  font-size: 14px;
  font-family: "Exo", "Exo 2", "Varela Round", Arial, sans-serif;
  padding: 20px 20px 0 0;
  text-transform: uppercase;
  overflow-y: hidden;
  overflow-x: hidden;
}

.infocard-header {
  font-size: 14px;
  color: #c0c0c0;
  font-weight: 100;
  margin: 0 0 20px 0;
  vertical-align: top;
}

.infocard-close,
.infocard-nav-previous,
.infocard-nav-next {
  display: inline-block;
  margin: 0 6px 0 0;
  font-weight: 400;
  font-size: 12px;
  width:  15px;
  height: 15px;
  text-align: center;
  color: #202020;
  background-color: #909090;
  border-radius: 10px;
  cursor: pointer;
}

.infocard-close:hover,
.infocard-nav-previous:hover,
.infocard-nav-next:hover {
  background-color: #e0e0e0;
  color: #404040;
}

.infocard-nav-info-sequence {
  width: 200px;
  font-size: 12px;
  padding: 0px 0px 0px 10px;
}

.infocard-close {
  font-size: 10px;
  margin: 0 0 0 100px;
  float: right;
  text-transform: lowercase;
}


.info-panel-container h1,
.info-panel-container h2,
.info-panel-container h4,
.info-panel-container h3 {
  display: block;
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  font-family: 'Exo', 'Exo 2', 'Varela Round', Arial, sans-serif;
  line-height: normal;
  font-size: 0px;
  height: auto;
}

h3.infocard-instrument-type {
  font-size: 13px;
  padding: 0px 4px 0px 4px;
  border: 2px solid #e0e0e0;
  color: #f0f0f0;
  border-radius: 2px;
  display: inline-block;
  font-weight: 400;
  margin: 0 0 0 0;
}

h3.infocard-date-range {
  color: #f0f0f0;
  padding: 0 0 0 0;
  margin: 4px 0 0 0;
  font-size: 18px;
  display: block;
}

h1.infocard-event-name {
  font-size: 48px;
  font-style: normal;
  font-weight: 100;
  color: #c0c0c0;
  font-weight: 100;
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  display: inline-block;
  vertical-align: top;
  line-height: 100%;
}

h2.infocard-event-id {
  font-size: 14px;
  font-weight: 400;
  color: #a0a0a0;
  vertical-align: top;
  display: inline-block;
  padding-top: 0px;
}

h4.infocard-duration {
  font-size: 15px;
  color: #fafafa;
  text-transform: lowercase;
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  font-weigt: 300;
}

.infocard-duration-bar {
  margin:  4px 0 0 0;
  padding: 0 0 0 0;
  height: 10px;
  background: white;
  font-size: 1px;
}

.infocard-duration-bar-foot {
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  height: 2px;
  background: #606060;
  width: 300px;
  font-size: 1px;
}

.info-panel-container table {
  font-size: 9px;
}

.info-panel-container table th {
  font-size: 7px;
  text-align: left;
  border-spacing: 0 0;
  background: #e0e0e0;
  color: #202020;
  padding: 0 2px 0 2px;
}

.bar-chart-gallery {
  vertical-align: top;
  line-height: 120px;
}

.mini-bar-chart-header {
  font-size: 11px;
  font-weight: bold;
  text-transform: capitalize;
  color: #ffffff;
  display: block;
  border-radius: 2px;
  height: 12px;
  margin: 0 0 0 0;
  padding: 1px 3px 2px 3px;
  line-height: normal;
  position: relative;
  top:   -8px;
  left:   1px;
  width: 18px;
  text-align: left;
}

.mini-bar-chart-container {
  line-height: 0px;
  font-size: 0px;
  display: inline-block;
  margin: 32px 20px 0px 0;
  vertical-align: top;
  padding: 4px 0 4px 0;
}

.mini-bar-chart {
  line-height: 0px;
  font-size: 0px;
  display: inline-block;
  vertical-align: top;
  border-bottom: 1px solid black;
  width:  82px;
  height: 90px;
}

.mini-bar-chart .element-name {
  display: block;
  width: 0px;
  height: 0px;
  font-size: 50px;
  line-height: 80px;
  top: 22px;
  left: -2px;
  position: relative;
  text-transform: capitalize;
  background: red;
  color: rgba(255, 255, 255, 0.1);
}

.mini-bar {
  margin: 0 1px 0 0;
  display: inline-block;
  width: 4px;
  background: white;
  font-size: 1px;
  vertical-align: top;
  border-bottom: 1px solid white;
}

.mini-bar.empty {
  background: transparent;
  border-bottom: 1px solid #606060;
}