/* Catppuccin Mocha override theme */

:root {
  --ctp-rosewater: #f5e0dc;
  --ctp-flamingo: #f2cdcd;
  --ctp-pink: #f5c2e7;
  --ctp-mauve: #cba6f7;
  --ctp-red: #f38ba8;
  --ctp-maroon: #eba0ac;
  --ctp-peach: #fab387;
  --ctp-yellow: #f9e2af;
  --ctp-green: #a6e3a1;
  --ctp-teal: #94e2d5;
  --ctp-sky: #89dceb;
  --ctp-sapphire: #74c7ec;
  --ctp-blue: #89b4fa;
  --ctp-lavender: #b4befe;

  --ctp-text: #cdd6f4;
  --ctp-subtext1: #bac2de;
  --ctp-subtext0: #a6adc8;
  --ctp-overlay2: #9399b2;
  --ctp-overlay1: #7f849c;
  --ctp-overlay0: #6c7086;
  --ctp-surface2: #585b70;
  --ctp-surface1: #45475a;
  --ctp-surface0: #313244;
  --ctp-base: #1e1e2e;
  --ctp-mantle: #181825;
  --ctp-crust: #11111b;
}

/* Main page colours */

html,
body {
  background: var(--ctp-base) !important;
  color: var(--ctp-text) !important;
}

/* General text */

p,
li,
td,
th,
label,
blockquote {
  color: var(--ctp-text);
}

small,
figcaption,
.subtitle,
.description {
  color: var(--ctp-subtext0);
}

/* Headings */

h1 {
  color: var(--ctp-rosewater) !important;
  text-shadow:
   none

h2 {
  color: var(--ctp-pink) !important;
}

h3,
h4,
h5,
h6 {
  color: var(--ctp-lavender) !important;
}

/* Links */

a {
  color: var(--ctp-sky) !important;
}

a:visited {
  color: var(--ctp-lavender) !important;
}

a:hover,
a:focus {
  color: var(--ctp-pink) !important;
  text-shadow: 0 0 8px rgba(245, 194, 231, 0.55);
}

/* Common layout boxes */

main,
section,
article,
aside,
header,
footer,
nav,
.container,
.wrapper,
.box,
.card,
.content,
.sidebar,
.window,
.panel {
  background-color: var(--ctp-mantle);
  color: var(--ctp-text);
  border-color: var(--ctp-surface1);
}

/* Make boxes feel like Catppuccin panels */

main,
section,
article,
aside,
.container,
.wrapper,
.box,
.card,
.content,
.sidebar,
.window,
.panel {
  border: 1px solid var(--ctp-surface1);
  box-shadow:
    0 0 16px rgba(137, 180, 250, 0.12),
    0 0 32px rgba(203, 166, 247, 0.08);
}

/* Navigation */

nav {
  background-color: var(--ctp-crust);
  border-color: var(--ctp-surface1);
}

nav a {
  color: var(--ctp-blue) !important;
}

nav a:hover,
nav a:focus {
  color: var(--ctp-mauve) !important;
}

/* Buttons and form elements */

button,
input,
textarea,
select,
.button {
  background-color: var(--ctp-surface0);
  color: var(--ctp-text);
  border: 1px solid var(--ctp-surface2);
}

button:hover,
.button:hover,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--ctp-mauve);
  box-shadow: 0 0 8px rgba(203, 166, 247, 0.35);
}

/* Tables */

table {
  background-color: var(--ctp-mantle);
  color: var(--ctp-text);
  border-color: var(--ctp-surface1);
}

th {
  background-color: var(--ctp-surface0);
  color: var(--ctp-mauve);
}

td {
  border-color: var(--ctp-surface1);
}

/* Horizontal rules */

hr {
  border: none;
  border-top: 1px solid var(--ctp-surface1);
}

/* Text selection */

::selection {
  background: var(--ctp-mauve);
  color: var(--ctp-crust);
}