:root {
  --top-bar: 60px;
  --side-bar: 60px;
}

body {
  background: radial-gradient(#0A3871, #2D88E6);
  background-clip: border-box;
  font-size: large;
}

html,
body {
  box-sizing: content-box;
  scroll-behavior: unset;
  overflow: hidden;
  height: 100%;
  color: #CED8F7;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color-scheme: dark;
}

template {
  display: none;
}

.sidebar {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  margin-bottom: 20px;
  background: rgb(0, 0, 0, 0.1);
  gap: 5px;
  padding: 4px;
  transition: width 0.5s;
}

.sidebar.collapsed {
  width: var(--top-bar);
}

.sidebar>* {
  display: flex;
  flex-direction: row;
  height: var(--side-bar);
  width: 100%;
  background: rgba(0, 0, 0, 0.1);
  padding-top: 4px;
  padding-bottom: 4px;
  user-select: none;
  border-radius: 3px;
}

.sidebar a,
.sidebar a:active {
  text-decoration: none;
  color: inherit;
}

.sidebar>*:hover,
.sidebar>.active {
  background: rgba(0, 0, 0, 0.4);
}

.sidebar.expanded {
  font-size: large;
  width: 260px;
}

.sidebar .expander {
  overflow: hidden;
  height: fit-content;
  margin-top: auto;
  margin-bottom: auto;
  margin-left: 5px;
  text-align: left;
  font-size: 24px;
}

.sidebar .expander>span {
  display: inline;
  overflow-x: hidden;
  overflow-y: visible;
  text-wrap: nowrap;
  margin: auto;
}

.sidebar_img {
  min-width: calc(var(--side-bar) - 4px);
  width: calc(var(--side-bar) - 4px);
}

.ham_menu {
  background: rgb(0, 0, 0, 0.0);
  transition: rotate 0.7s, transform 0.2s;
  user-select: none;
}

.ham_menu:hover {
  transform: scale(1.1, 1.1);
}

.ham_menu.expanded {
  rotate: 450deg;
}

.sidebar_rot {
  animation: sidebar_rot 0.7s;
}

@keyframes sidebar_rot {
  0% {
    border-radius: 0%;
  }

  70% {
    border-radius: 40%;
  }

  100% {
    border-radius: 0%;
  }
}

.graph_box {
  box-sizing: content-box;
  gap: 5px;
  width: 100%;
  padding-bottom: 25px;
  --background-overlay: rgba(0, 0, 0, 0.7);
  overflow-y: scroll;
}

.graph_window {
  display: flex;
  box-sizing: content-box;
  width: 100%;
  transition: height 0.3s;
}

.graph_window>h1 {
  height: calc(var(--top-bar) - 20px);
  margin-bottom: 10px;
  margin-top: 10px;
}

.graph_window>.expander {
  height: calc(var(--top-bar) - 20px);
}

.graph_window.collapsed {
  box-sizing: border-box;
  flex-direction: row;
  gap: 5px;
  background: rgba(0, 0, 0, 0.2);
  height: var(--top-bar);
  overflow-y: visible;
  padding: 10px;
}

.graph_window.expanded {
  flex-direction: column;
  background: rgba(0, 0, 0, 0.3);
  height: 500px;
}

.graph_top {
  display: flex;
  flex-direction: row;
  gap: 5px;
  height: var(--top-bar);
  padding: 10px;
}

.graph_top .closer {
  height: calc(var(--top-bar) - 20px);
}

.graph_main {
  height: 600px;
  font-size: 15px;
  --max-width: 175px;
}

.graph_bottom {
  box-sizing: content-box;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: flex-start;
  flex-grow: 0;
  flex-shrink: 0;
  padding: 10px;
}

.stat_item {
  border: 1px solid hsl(0, 0%, 80%);
  border-radius: 3px;
  align-content: center;
  padding: 5px;
}

.graph_hook.loaded {
  height: 100%;
  width: 100%;
}

.time_button {
  background: rgba(0, 0, 0, 0.35);
  color: #CED8F7;
  border: 1px solid hsl(0, 0%, 80%);
  border-radius: 3px;
  flex-basis: 2;
  width: 15%;
}

.time_button.active {
  background: rgba(0, 0, 0, 0.7);
}

.link_button {
  display: block;
  margin-left: auto;
  margin-right: 0px;
  box-sizing: border-box;
  height: 100%;
  border: 1px solid hsl(0, 0%, 80%);
  border-radius: 3px;
  background: rgb(0, 0, 0, 0.35);
}

.link_button.active {
  background: rgba(0, 0, 0);
  filter: invert();
}

.date_picker {
  background: rgba(0, 0, 0, 0.35);
  color: #CED8F7;
  border: 1px solid hsl(0, 0%, 80%);
  border-radius: 3px;
  user-select: unset;
  height: 50%;
}

.dates {
  display: grid;
  grid-template-rows: 1fr 3fr;
  grid-template-columns: 1fr 1fr;
  gap: 0px;
  margin-top: auto;
  margin-bottom: auto;
  align-items: center;
  padding: 5px;
}

.dates>* {
  margin: 0;
}

.main_box>.header {
  background: rgba(0, 0, 0, 0.2);
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr 2fr 1fr 2fr;
  align-items: center;
  justify-content: space-around;
  text-align: center;
  gap: 5px;
}

.main_box>.header>* {
  margin: 0;
}

.graph_title {
  overflow-y: visible;
  font-size: 36px;
  font-weight: 700;
  text-wrap: nowrap;
  flex-basis: 3;
}

#machine_name {
  height: var(--top-bar);
  font-size: 36px;
  color: #CED8F7;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  align-self: center;
  text-align: center;
  background: none;
  border: none;
}

#download_button {
  margin: auto 5px;
  width: 60px;
  transition: 0.3s;
  fill: rgba(0, 0, 0, 0.5);
}

#download_button:hover {
  transform: scale(1.1);
  fill: rgba(0, 0, 0, 0.8);
}

.main_box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  margin-left: 10px;
  margin-right: 10px;
  overflow-y: auto;
  overflow-x: hidden;
}

.login_box {
  flex-direction: column;
  margin: auto;
  margin-top: 100px;
  width: 500px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #CED8F7;
  border: 1px solid hsl(0, 0%, 80%);
  border-radius: 3px;
  padding: 10px;
}

.login_box input {
  color: black;
}

.login_box input {
  display: block;
  height: 50px;
  border: none;
  border-radius: 10px;
  font-size: 30px;
  background: white;
}

.login_box>div {
  width: 90%;
}

.login_box>div>* {
  width: 100%;
}