/**
 * @name Sleex
 * @description A dark, rounded discord theme. Material You colors generated by Matugen. Based on "Midnight"
 * @author Ardox
 * @version 1.6.2
*/
@import url("https://refact0r.github.io/midnight-discord/build/midnight.css");
body {
  /* font, change to '' for default discord font */
  --font: "rubik";
  /* sizes */
  --gap: 12px; /* spacing between panels */
  --divider-thickness: 4px; /* thickness of unread messages divider and highlighted message borders */
  --border-thickness: 1px; /* thickness of borders around main panels. DOES NOT AFFECT OTHER BORDERS */
  /* animation/transition options */
  --animations: on; /* turn off to disable all midnight animations/transitions */
  --list-item-transition: 0.2s ease; /* transition for list items */
  --dms-icon-svg-transition: 0.4s ease; /* transition for the dms icon */
  /* top bar options */
  --top-bar-height: var(
      --gap
  ); /* height of the titlebar/top bar (discord default is 36px, 24px recommended if moving/hiding top bar buttons) */
  --top-bar-button-position: hide; /* off: default position, hide: hide inbox/support buttons completely, serverlist: move inbox button to server list, titlebar: move inbox button to titlebar (will hide title) */
  --top-bar-title-position: hide; /* off: default centered position, hide: hide title completely, left: left align title (like old discord) */
  --subtle-top-bar-title: off; /* off: default, on: hide the icon and use subtle text color (like old discord) */
  /* window controls */
  --custom-window-controls: on; /* turn off to use discord default window controls */
  --window-control-size: 14px; /* size of custom window controls */
  /* dms button icon options */
  --custom-dms-icon: custom; /* off: use default discord icon, hide: remove icon entirely, custom: use custom icon */
  --dms-icon-svg-url: url("https://raw.githubusercontent.com/AxOS-project/axos-branding/refs/heads/main/AxOS/axos-symbolic.svg"); /* icon svg url. MUST BE A SVG. */
  --dms-icon-svg-size: 90%; /* size of the svg (css mask-size) */
  --dms-icon-color-before: var(--icon-secondary); /* normal icon color */
  --dms-icon-color-after: var(--white); /* icon color when button is hovered/selected */
  /* dms button background options */
  --custom-dms-background: off; /* off to disable, image to use a background image (must set url variable below), color to use a custom color/gradient */
  --dms-background-image-url: url(""); /* url of the background image */
  --dms-background-image-size: cover; /* size of the background image (css background-size) */
  --dms-background-color: linear-gradient(
      70deg,
      var(--blue-2),
      var(--purple-2),
      var(--red-2)
  ); /* fixed color/gradient (css background) */
  /* background image options */
  --background-image: off; /* turn on to use a background image */
  --background-image-url: url("{{image}}"); /* url of the background image */
  /* transparency/blur options */
  /* NOTE: TO USE TRANSPARENCY/BLUR, YOU MUST HAVE TRANSPARENT BG COLORS. FOR EXAMPLE: --bg-4: hsla(220, 15%, 10%, 0.7); */
  --transparency-tweaks: off; /* turn on to remove some elements for better transparency */
  --remove-bg-layer: off; /* turn on to remove the base --bg-3 layer for use with window transparency (WILL OVERRIDE BACKGROUND IMAGE) */
  --panel-blur: off; /* turn on to blur the background of panels */
  --blur-amount: 12px; /* amount of blur */
  --bg-floating: {{colors.surface_container.default.hex}}; /* you can set this to a more opaque color if floating panels look too transparent */
  /* chatbar options */
  --custom-chatbar: aligned; /* off: default chatbar, aligned: chatbar aligned with the user panel, separated: chatbar separated from chat */
  --chatbar-height: 47px; /* height of the chatbar (52px by default, 47px recommended for aligned, 56px recommended for separated) */
  --chatbar-padding: 8px; /* padding of the chatbar. only applies in aligned mode. */
  /* other options */
  --small-user-panel: off; /* turn on to make the user panel smaller like in old discord */
}

/* color options */
:root {
  --colors: on; /* turn off to use discord default colors */
  /* text colors */
  --text-0: {{colors.on_primary.default.hex}}; /* text on colored elements */
  --text-1: {{colors.on_surface.default.hex}}; /* bright text on colored elements */
  --text-2: {{colors.on_surface.default.hex}}; /* headings and important text */
  --text-3: {{colors.on_surface_variant.default.hex}}; /* normal text */
  --text-4: {{colors.outline.default.hex}}; /* icon buttons and channels */
  --text-5: {{colors.outline_variant.default.hex}}; /* muted channels/chats and timestamps */
  /* background and dark colors */
  --bg-1: {{colors.surface_container_high.default.hex}}; /* dark buttons when clicked */
  --bg-2: {{colors.surface_container.default.hex}}; /* dark buttons */
  --bg-3: {{colors.background.default.hex}}; /* spacing, secondary elements */
  --bg-4: {{colors.surface.default.hex}}; /* main background color */
  --hover: {{colors.on_surface.default.rgba | set_alpha: 0.08}}; /* channels and buttons when hovered */
  --active: {{colors.on_surface.default.rgba | set_alpha: 0.12}}; /* channels and buttons when clicked or selected */
  --active-2: {{colors.on_surface.default.rgba | set_alpha: 0.16}}; /* extra state for transparent buttons */
  --message-hover: {{colors.on_surface.default.rgba | set_alpha: 0.08}}; /* messages when hovered */
  /* accent colors */
  --accent-1: {{colors.primary.default.hex}}; /* links and other accent text */
  --accent-2: {{colors.primary.default.hex}}; /* small accent elements */
  --accent-3: {{colors.primary_container.default.hex}}; /* accent buttons */
  --accent-4: {{colors.primary_container.default.hex}}; /* accent buttons when hovered */
  --accent-5: {{colors.primary_container.default.hex}}; /* accent buttons when clicked */
  --accent-new: {{colors.error.default.hex}}; /* stuff that's normally red like mute/deafen buttons */
  --mention: linear-gradient(
      to right,
      {{colors.primary.default.rgba | set_alpha: 0.1}} 40%,
      transparent
  ); /* background of messages that mention you */
  --mention-hover: linear-gradient(
      to right,
      {{colors.primary.default.rgba | set_alpha: 0.05}} 40%,
      transparent
  ); /* background of messages that mention you when hovered */
  --reply: linear-gradient(
      to right,
      {{colors.on_surface_variant.default.rgba | set_alpha: 0.1}} 40%,
      transparent
  ); /* background of messages that reply to you */
  --reply-hover: linear-gradient(
      to right,
      {{colors.on_surface_variant.default.rgba | set_alpha: 0.05}} 40%,
      transparent
  ); /* background of messages that reply to you when hovered */
  /* status indicator colors */
  --online: {{colors.tertiary.default.hex}};
  --dnd: {{colors.error.default.hex}};
  --idle: {{colors.secondary.default.hex}};
  --streaming: {{colors.tertiary.default.hex}};
  --offline: {{colors.outline.default.hex}};
  /* border colors */
  --border-light: transparent; /* light border color */
  --border: {{colors.outline_variant.default.rgba | set_alpha: 0.2}}; /* normal border color */
  --button-border: transparent; /* neutral border color of buttons */
  /* base colors */
  --red-1: {{colors.error.default.hex}};
  --red-2: {{colors.error_container.default.hex}};
  --red-3: {{colors.on_error_container.default.hex}};
  --red-4: {{colors.on_error_container.default.hex}};
  --red-5: {{colors.on_error_container.default.hex}};
  --green-1: {{colors.tertiary.default.hex}};
  --green-2: {{colors.tertiary_container.default.hex}};
  --green-3: {{colors.on_tertiary_container.default.hex}};
  --green-4: {{colors.on_tertiary_container.default.hex}};
  --green-5: {{colors.on_tertiary_container.default.hex}};
  --blue-1: {{colors.primary.default.hex}};
  --blue-2: {{colors.primary_container.default.hex}};
  --blue-3: {{colors.on_primary_container.default.hex}};
  --blue-4: {{colors.on_primary_container.default.hex}};
  --blue-5: {{colors.on_primary_container.default.hex}};
  --yellow-1: {{colors.secondary.default.hex}};
  --yellow-2: {{colors.secondary_container.default.hex}};
  --yellow-3: {{colors.on_secondary_container.default.hex}};
  --yellow-4: {{colors.on_secondary_container.default.hex}};
  --yellow-5: {{colors.on_secondary_container.default.hex}};
  --purple-1: {{colors.tertiary.default.hex}};
  --purple-2: {{colors.tertiary_container.default.hex}};
  --purple-3: {{colors.on_tertiary_container.default.hex}};
  --purple-4: {{colors.on_tertiary_container.default.hex}};
  --purple-5: {{colors.on_tertiary_container.default.hex}};
}
