* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
  font-family: "Roboto",
                sans-serif;
}

html {
  filter: hue-rotate(-20deg); /* invert(0.9) */
}

body {
  display: flex;
  width: 100vw;
  height: 100vh;
  background-color: #f9f0ff;
  align-items: center;
  justify-content: center;
  border: 2px solid #a000ff80;
  box-shadow: inset 0 0 0 12px #eed1ff;
  overflow: hidden;
}

#content {
  display: flex;
  flex-flow: column nowrap;
  flex-shrink: 0;
  flex-grow: 1;
  justify-content: flex-start;
  align-items: center;
  max-width: min(1000px, 80%);
  height: 100%;
  padding: 16vh 0;
}

#title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #6d4c83;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

#stats {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

#stats p {
  font-size: 20px;
  font-weight: 700;
  color: #9475a7;
  white-space: nowrap;
}

#stats span {
  text-align: center;
  display: inline-block;
  width: 60px;
  color: #bc4cffE0;
  box-shadow: 0 0 0 4px #eed1ff;
  border: 1px solid #dda3ff;
  background-color: #fff;
  border-radius: 18px;
  margin-bottom: 12px;
  margin-right: 8px;
  transition: box-shadow 0.25s;
}

#stats p:hover span,
.button-filter.active:hover {
  box-shadow: 0 0 0 4px #dda3ffD0;
  transition: 0.35s;
}

.subtitle {
  font-weight: 500;
  color: #9475a7;
  text-align: center;
  margin-top: 6px;
  margin-bottom: 5vh;
}

#main {
  display: flex;
  position: relative;
  width: 100%;
  height: 200px;
}

button {
  cursor: pointer;
}

.button-move {
  z-index: 1;
  position: absolute;
  user-select: none;
  top: calc(50% - 30px);
  width: 30px;
  height: 60px;
  color: #bc4cff;
  border: 1px solid #dda3ff;
  border-radius: 10px;
  background-color: #ffffffC0;
  box-shadow: 0 2px 4px #eed1ff;
  font-size: 20px;
  transition: transform 0.2s;
}

#move-left {
  left: -10px;
}

#move-left:hover {
  transform: translateX(-4px);
  background-color: #fff;
  transition: 0.2s;
}

#move-right {
  display: none;
  right: -10px;
}

#move-right:hover {
  transform: translateX(4px);
  background-color: #fff;
  transition: 0.2s;
}

#graph-large {
  position: relative;
  flex-grow: 1;
}

#loading {
  z-index: 2;
  position: absolute;
  left: calc(50% - 40px);
  top: calc(50% - 8px);
  font-weight: 500;
  font-size: 18px;
  color: #dac9e4;
}

#canvas-main,
#canvas-battery,
.canvas-small,
#privacy-window {
  border: 1px solid #bc4cff;
  border-radius: 18px;
  background-color: #fff;
  box-shadow: 0 0 0 6px #eed1ff;
}

#canvas-main {
  width: 100%;
  height: 100%;
  transition: box-shadow 0.25s;
}

#canvas-battery {
  width: 80px;
  height: 100%;
  margin-left: 24px;
  transition: box-shadow 0.25s;
}

#canvas-main:hover,
#canvas-battery:hover {
  box-shadow: 0 0 0 6px #dda3ffD0;
  transition: 0.35s;
}

#filter {
  display: flex;
  width: 100%;
  flex-shrink: 1;
  flex-flow: row wrap-reverse;
  justify-content: space-between;
  align-items: center;
}

#filter div {
  display: flex;
  margin-bottom: 16px;
}

#status {
  font-weight: 500;
  color: #b294c2;
}

#status-percent {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-shrink: 0;
  width: 80px;
  margin-left: 24px;
}

#status-percent .button-filter {
  margin: 0;
  margin-bottom: 16px;
  padding: 0;
  width: 100%;
}

@media screen and (max-width: 450px) {
  #status-percent { display: none }
  #canvas-battery { display: none }
}

.button-filter {
  min-width: 36px;
  min-height: 36px;
  max-height: 36px;
  margin: 0 6px;
  padding: 0 16px;
  color: #b294c2;
  border: 1px solid #eed1ff;
  border-radius: 18px;
  background-color: #FFF;
  font-size: 15px;
  font-weight: 500;
  transition: 0.15s;
  text-align: center;
  line-height: 36px;
}

.button-filter:hover {
  background-color: #f9f0ff;
  border: 1px solid #dda3ff;
  transition: 0.15s;
}

.button-filter:active,
.button-filter.active {
  color: #9475a7;
  border: 1px solid #dda3ff;
  box-shadow: 0 0 0 4px #eed1ff;
}

.sub {
  display: flex;
  width: 100%;
  margin-top: 32px;
  align-items: center;
}

.canvas-small {
  width: 100%;
  height: 80px;
  min-width: 0;
}

.small-date {
  display: inline-block;
  text-align: center;
  width: 80px;
  margin-left: 24px;
  flex-shrink: 0;
  flex-grow: 1;
  font-size: 16px;
  /* font-weight: 300; */
  color: #dac9e4;
}

#privacy {
  position: absolute;
  bottom: 16px;
  font-size: 15px;
  color: #dac9e4;
  text-decoration: underline;
  cursor: help;
}

#privacy-window {
  display: none;
  position: absolute;
  bottom: 42px;
  font-weight: 500;
  color: #dda3ff;
  font-size: 15px;
  text-align: center;
  padding: 12px;
  background: #fff;
}

.left {
  padding-right: 12px;
  margin-right               : 0;
  border-top-right-radius    : 0;
  border-bottom-right-radius : 0;
}

.center {
  margin        : 0;
  border-left   : none;
  border-radius : 0;
}

.right {
  padding-left: 12px;
  margin-left               : 0;
  border-left               : none;
  border-top-left-radius    : 0;
  border-bottom-left-radius : 0;
}
