* {
  --graph0: #f0c1cf;
  --graph1: #b2e4dc;
  --graph2: #fff576;
  --graph3: #dfcdfa;
}

body {
  width: 95%;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1.2rem;
  font-family: sans-serif;
}

h1 {
  text-align: center
}

.main-container {
    margin: 0 auto;
    max-width: 70ch;
}

.svg-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

svg {
  width: 50%;
}

.selectors-and-metrics {
  display: flex;
  gap: 3rem;
  align-items: start;
  flex-wrap: wrap; /* Stacks on small screens */
}

.selectors {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.selectors label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Need this for scrolling */
.schedule-container {
  overflow-x: auto;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 80px;
  grid-auto-rows: 40px;
  gap: 1px;
  background: #efe9dd;
  padding: 1px;
  padding-right: 50px;
  min-width: fit-content;
}

.time-label {
  grid-row: 1;
  text-align: center;
  /* background: #efe9dd; */
  padding: 7px;
  transform: translateX(+50%);
}

.tick {
  width: 2px;
  height: 10px;
  background: #333;
  grid-row: 1;
  justify-self: end;
  align-self: end;
}

.cpu-label {
  grid-column: 1;
  text-align: right;
  background: #c9b9b0;
  padding: 5px 10px;
}

.task {
  /* background: #f0c1cf; */
  color: black;
  outline: 1px solid black;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hover information */
.task:hover {
  opacity: 0.8;
  border: 1px solid black;
}

.metrics {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.5rem 1rem;
  width: fit-content;
}
.metrics dt { font-weight: bold; }
.metrics dt::after { content: ":"; }
