@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');
@import 'three-dots';

:root {
  --main-text-color: #414141;
  --main-color: #ccc;
  --light-body-bgcolor: #fcfcfc;
  --dark-body-bgcolor: #232323;
  --secondary-text-color: #f5f5f5;
}

a {
  color: var(--main-text-color) !important;
  text-decoration: none;
  transition: 0.3s;
  &:hover {
    color: #606060 !important;
  }
}

body {
  color: var(--main-text-color);
  background-color: var(--light-body-bgcolor);
  transition: 0.3s;
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
}

.theme-dark {
  color: var(--secondary-text-color);
  background-color: var(--dark-body-bgcolor);
  a {
    color: var(--secondary-text-color) !important;
  }
}

header {
  h1 {
    font-size: 4.5vmax;
  }
  nav {
    ul {
      li {
        cursor: pointer;
      }
    }
  }
}
aside {
  > div {
    width: 20px;
    height: 100px;
    position: relative;
  }
  #aside-left {
    left: 10%;
    position: fixed;
    &::after {
      content: '';
      width: 3px;
      height: 140px;
      background-color: #ccc;
      position: absolute;
      top: 100%;
    }
  }
  #aside-right {
    position: fixed;
    right: 10%;
    &::after {
      top: 100%;
      content: '';
      width: 3px;
      height: 100px;
      background-color: #ccc;
      position: absolute;
    }
  }
  i {
    font-size: 1.8rem;
    margin: 10px 0;
    cursor: pointer;
    transition: color 0.3s ease;
    &:hover {
      color: #606060;
    }
  }
}
main {
  #graph-wrapper {
    // background-color: red;
    #battery-chart {
      width: 100% !important;
      height: auto !important;
    }
  }
  #battery-wrapper {
    #battery {
      width: 250px;
      height: 100px;
      border: 8px solid #ccc;
      padding: 7px;
      border-radius: 1.5rem;
      position: relative;
      &::after {
        content: '';
        position: absolute;
        width: 30px;
        height: 15px;
        background-color: #ccc;
        border-radius: 10rem 10rem 0 0;
        transform: rotate(90deg);
        right: -38px;
        top: 36px;
      }
      #battery-level {
        width: 0;
        height: 100%;
        border-radius: 0.8rem;
        background-color: #ccc;
      }
      #battery-thunder {
        width: 150px;
        top: -35px;
        left: 47px;
      }
    }
    #battery-percentage {
      font-size: 5vmax;
    }
  }
}

.dot-elastic,
.dot-elastic::after,
.dot-elastic::before {
  width: 5px;
  height: 5px;
  background-color: #ccc;
}
.dot-elastic::after {
  left: -8px;
}
