@charset "utf-8";
@import url("https://fonts.googleapis.com/css?family=Roboto|Roboto+Mono");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;

    /* System Colors */

    --system-red: rgb(255, 56, 60);
    --system-orange: rgb(255, 141, 40);
    --system-yellow: rgb(255, 204, 0);
    --system-green: rgb(52, 199, 89);
    --system-mint: rgb(0, 200, 179);
    --system-teal: rgb(0, 195, 208);
    --system-cyan: rgb(0, 192, 232);
    --system-blue: rgb(0, 136, 255);
    --system-indigo: rgb(88, 86, 214);
    --system-purple: rgb(97, 85, 245);
    --system-pink: rgb(255, 45, 85);
    --system-brown: rgb(172, 127, 94);

    /* Colors */

    --background-color: white;
    --secondary-background-color: #eee;
    --button-background-color: rgb(249, 250, 255);
    --button-highlight-color: #ddd;
    --button-border-color: rgb(170, 170, 170);
    --text-color: black;
    --border-color: #ccc;
    --link-color: #007acc;
    --image-filter: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    /* System Colors */

    --system-red: rgb(255, 66, 69);
    --system-orange: rgb(255, 146, 48);
    --system-yellow: rgb(255, 214, 0);
    --system-green: rgb(48, 209, 88);
    --system-mint: rgb(0, 218, 195);
    --system-teal: rgb(0, 210, 224);
    --system-cyan: rgb(60, 211, 254);
    --system-blue: rgb(0, 145, 255);
    --system-indigo: rgb(107, 93, 255);
    --system-purple: rgb(219, 52, 242);
    --system-pink: rgb(255, 55, 95);
    --system-brown: rgb(183, 138, 102);

    /* Colors */

    --background-color: rgb(27, 27, 30);
    --secondary-background-color: rgb(30, 30, 30);
    --button-background-color: rgb(39, 40, 45);
    --button-highlight-color: rgb(50, 50, 50);
    --button-border-color: rgb(170, 170, 170);
    --text-color: rgb(175, 176, 177);
    --border-color: rgb(41, 41, 41);
    --link-color: #66aaff;
    --image-filter: brightness(0) saturate(100%) invert(80%) sepia(0%) saturate(360%) hue-rotate(71deg) brightness(97%) contrast(69%);
  }
}

html,
body {
  margin: 0px;
  padding: 0px;
  font-family: Roboto, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
}

.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}

header {
  display: flex;
  justify-content: space-between;
  padding: 1em 2em;
  background-color: var(--secondary-background-color);
  border-bottom: 1px solid var(--border-color);
}

header p {
  margin: 0.67em 0px;
}

main {
  display: none;
  padding: 1em 4em;
}

main.inputs {
  text-align: center;
}

footer {
  padding: 1em 2em;
  background-color: var(--secondary-background-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

h1 {
  font-size: inherit;
  font-weight: normal;
}

h1 a.logo {
  margin-right: 10px;
  padding-left: 20px;
  background: url("images/icon.svg") no-repeat left center;
  background-size: 20px;
  text-decoration: none;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  border-bottom: 1px solid;
}

a.github {
  margin-left: 10px;
  padding-left: 20px;
  background: url("https://upload.wikimedia.org/wikipedia/commons/9/91/Octicons-mark-github.svg") no-repeat left center;
  background-size: 20px;
  text-decoration: none;
  color: var(--text-color);
  filter: var(--image-filter);
}

label[for] {
  cursor: pointer;
}

button,
input[type="text"],
input[type="number"],
select {
  box-sizing: border-box;
  appearance: none;
  border: 1px solid var(--button-border-color);
  padding: 4px 10px;
  font-size: inherit;
  border-radius: 16px;
  background: var(--button-background-color);
  color: var(--text-color);
  outline: none;
}

button,
input[type="text"] {
  box-sizing: border-box;
  width: 50%;
}

button {
  cursor: pointer;
}

button:hover {
  background-color: var(--button-highlight-color);
}

input[type="checkbox"] {
  cursor: pointer;
  appearance: none;;
  position: relative;
  top: -1px;
}

input[type="checkbox"]:before {
  content: "circle";
  display: inline-block;
  position: relative;
  top: 5px;
  margin-right: -4px;
  font-size: 15pt;
  color: var(--text-color);
}

input[type="checkbox"]:checked::before {
  content: "check_circle";
}

#global-buttons {
  display: flex;
  justify-content: space-between;
}

#refresh {
  cursor: pointer;
}

@keyframes rotating {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#refresh.active {
  color: var(--system-red);
  animation: rotating 2s linear infinite;
}

#period-title {
  text-transform: capitalize;
}

#hits-box {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1em;
}

#hits-box .material-symbols-outlined {
  position: relative;
  top: 2px;
  font-size: inherit;
}

#column-chart,
#area-chart {
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 3;
}

x3d-canvas {
  width: 100%;
  height: 100%;
}

.heart {
  position: relative;
  top: 6px;
}

@media (width >= 900px) {
  main {
    padding: 1em 10em;
  }
}

@media (width >= 1250px) {
  main {
    padding: 1em 16em;
  }
}
