:root {
  --lm-bg: #fff;
  --lm-bg-accent: #f9fafc;
  --lm-text: #1f2937;
  --lm-accent: #e5e7eb;
  --lm-secondary: #bec3cf;
  --lm-tertiary: #767681;
  --lm-quaternary: #5e5e6c;

  --dm-bg: #000000;
  --dm-bg-accent: #060606;
  --dm-text: #d2d2d2;
  --dm-accent: #111111;
  --dm-secondary: #3a3a3a;
  --dm-tertiary: #6d6d6d;
  --dm-quaternary: #9d9d9d;

  --bg: var(--lm-bg);
  --bg-accent: var(--lm-bg-accent);
  --text: var(--lm-text);
  --accent: var(--lm-accent);
  --secondary: var(--lm-secondary);
  --tertiary: var(--lm-tertiary);
  --quarternary: var(--lm-quaternary);

  --primary: #7f52fe;

  --header-font: "Lexend Giga", sans-serif;
  --body-font: "Inter", sans-serif;
}

body.dark {
  --bg: var(--dm-bg);
  --bg-accent: var(--dm-bg-accent);
  --text: var(--dm-text);
  --accent: var(--dm-accent);
  --secondary: var(--dm-secondary);
  --tertiary: var(--dm-tertiary);
  --quarternary: var(--dm-quaternary);
}

* {
  transition: background-color 0.1s, color 0.1s, border 0.1s;
}

@font-face {
  font-family: "Lexend Giga";
  font-weight: 100 900;
  font-stretch: normal;
  font-style: normal;
  src: url("/fonts/lexend-giga.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Inter";
  font-weight: 100 900;
  font-stretch: normal;
  font-style: normal;
  src: url("/fonts/inter.woff2") format("woff2-variations");
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--tertiary) rgba(0, 0, 0, 0);
  scrollbar-width: thin;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  font-family: var(--body-font);
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-size: 0.85rem;
  color: var(--text);
}

::selection {
  background-color: var(--text);
  color: var(--bg);
}

@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#app {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
}

#content {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  overflow: hidden;
  gap: 1rem;
  padding: 1rem;
  box-sizing: border-box;
}

.desktop #content {
  margin-top: 2rem;
}

#left-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 55rem;
  gap: 1rem;
  transition: margin-left 0.2s ease-in-out;
}

#control-panels {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 0 1rem 1rem 1rem;
  gap: 2rem;
  overflow-y: auto;
  background-color: var(--bg-accent);
  border: 1px solid var(--accent);
  box-sizing: border-box;
  border-radius: 0.5rem;
  scrollbar-width: none;
}

#right-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--accent);
  border-radius: 0.5rem;
  background-size: 1rem 1rem;
  background-image: linear-gradient(
      to right,
      var(--bg-accent) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, var(--bg-accent) 1px, transparent 1px);
  background-position: center center;
}

#folders {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.radio-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hidden {
  display: none;
}

#small-folders {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  justify-content: flex-start;
}

#hidden-folders {
  display: none;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  justify-content: flex-start;
}

button,
input[type="file"]::file-selector-button,
input[type="button"],
input[type="submit"] {
  cursor: pointer;
  user-select: none;
  border: none;
  border-radius: 0.5rem;
  background-color: var(--primary);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-family: var(--body-font);
  transition: background-color 0.1s, color 0.1s, border 0.1s;
}

input[type="text"],
input[type="number"] {
  border: 1px solid var(--secondary);
  border-radius: 0.5rem;
  background-color: var(--accent);
  color: var(--text);
  padding: 0.5rem 1rem;
  font-family: var(--body-font);
  transition: background-color 0.1s, color 0.1s, border 0.1s;
}

input[type="text"]:hover,
input[type="number"]:hover {
  border: 1px solid var(--primary);
}

input[type="text"]:focus,
input[type="number"]:focus {
  border: 1px solid var(--primary);
  outline: 2px solid var(--primary);
}

select {
  background-color: var(--accent);
  color: var(--text);
  font-family: var(--body-font);
  cursor: pointer;
  user-select: none;
}

.sun {
  display: none;
}

.dark .moon {
  display: none;
}

.dark .sun {
  display: block;
}

a,
a:visited {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:active {
  color: var(--quarternary);
}
