/**
 * @name midnight
 * @description A dark, rounded discord theme.
 * @author refact0r
 * @version 1.6.2
 * @invite nz87hXyvcy
 * @website https://github.com/refact0r/midnight-discord
 * @source https://github.com/refact0r/midnight-discord/blob/master/midnight.theme.css
*/

/* IMPORTANT: make sure to enable dark mode in discord settings for the theme to apply properly!!! */

@import url('https://refact0r.github.io/midnight-discord/build/midnight.css');

/* customize things here */
:root {
	/* font, change to 'gg sans' for default discord font*/
	--font: 'figtree';

	/* top left corner text */
	--corner-text: 'Midnight';

	/* color of status indicators and window controls */
	--online-indicator: #5de561;     /* Green */
	--dnd-indicator: #c4676c;        /* Red */
	--idle-indicator: #cfd05d;       /* Yellow */
	--streaming-indicator: #9c6cd3;    /* Purple */

	/* accent colors */
	--accent-1: #1ae1dc;            /* links */
	--accent-2: #9c6cd3;            /* general unread/mention elements */
	--accent-3: #1ae1dc;            /* accent buttons */
	--accent-4: #4b8f77;            /* accent buttons when hovered */
	--accent-5: #5de561;            /* accent buttons when clicked */
	--mention:  rgba(156, 108, 211, 0.1); 
	--mention-hover: rgba(156, 108, 211, 0.2);

	/* text colors */
	--text-0: #2a3b4d;               /* text on colored elements */
	--text-1: #9fa2a6;               /* primary white-ish text */
	--text-2: #ffffff;               /* headings */
	--text-3: #9fa2a6;               /* normal text */
	--text-4: #7e90a3;               /* icon buttons and channels */
	--text-5: #55799c;               /* muted channels/timestamps */

	/* background and dark colors */
	--bg-1: #4b6988;                 /* dark buttons when clicked */
	--bg-2: #3d566f;                 /* dark buttons */
	--bg-3: #4b6988;                 /* spacing, secondary elements */
	--bg-4: #2a3b4d;                 /* main background color */
	--hover: #4b6988;                /* channels and buttons when hovered */
	--active: #55799c;               /* channels and buttons when selected */
	--message-hover: rgba(61, 86, 111, 0.3);

	/* amount of spacing and padding */
	--spacing: 12px;

	/* animations */
	--list-item-transition: 0.2s ease;
	--unread-bar-transition: 0.2s ease;
	--moon-spin-transition: 0.4s ease;
	--icon-spin-transition: 1s ease;

	/* corner roundness (border-radius) */
	--roundness-xl: 22px;
	--roundness-l: 20px;
	--roundness-m: 16px;
	--roundness-s: 12px;
	--roundness-xs: 10px;
	--roundness-xxs: 8px;

	/* direct messages moon icon */
	--discord-icon: none;
	--moon-icon: block;
	--moon-icon-url: url('https://upload.wikimedia.org/wikipedia/commons/c/c4/Font_Awesome_5_solid_moon.svg');
	--moon-icon-size: auto;

	/* filter uncolorable elements to fit theme */
	--login-bg-filter: saturate(0.3) hue-rotate(-15deg) brightness(0.4);
	--green-to-accent-3-filter: none;
	--blurple-to-accent-3-filter: none;
}

/* Selected chat/friend text */
.selected_f5eb4b,
.selected_f6f816 .link_d8bfb3 {
  color: var(--text-0) !important;
  background: var(--accent-3) !important;
}

.selected_f6f816 .link_d8bfb3 * {
  color: var(--text-0) !important;
  fill: var(--text-0) !important;
}
