/* Default: Light mode */
:root {
  --bg: #fafafa;
  --sidebar-bg: #f1f3f4;
  --text: #1a1a1a;
  --text-secondary: #555;
  --accent: #3a7afe;
}

/* Dark mode */
[data-theme="dark"] {
  --bg: #121212;
  --sidebar-bg: #1a1d1f;
  --text: #e6e6e6;
  --text-secondary: #a1a1a1;
  --accent: #4a8bff;
}

/* Use variables */
body, .content {
  background: var(--bg);
  color: var(--text);
}
.sidebar {
    background: var(--sidebar-bg);
}
a {
  color: var(--accent);
}

/* Font */
html, body {
    font-family: 'Open Sans';
}

code {
    font-family: 'Jetbrains Mono';
}

.secondary {
    color: var(--text-secondary);
}

/* Layout */
* {
    box-sizing: border-box; /* This ensures padding/border are included in the element's total width/height */
}

html, body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
}

.main {
    display: flex;
    width: 100vw;
    height: 100vh;
}

.sidebar {
    flex: 30;
    height: 100vh;
    padding: 5vw 2vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 85;
    height: 100vh;
    padding: 5vw 5vh;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
}

.nav-links {
    padding-top: 2vh;
}

/** Util */
.flex-1 {
    flex: 1;
}

