* {
    border: none;
    border-radius: 0;
    /* `otf-font-awesome` is required to be installed for icons */
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    min-height: 0;
}

window#waybar {
    background-color: #2f343f;
    color: #d8dee8;
    transition-property: background-color;
    transition-duration: .5s;
}

window#waybar.hidden {
    opacity: 0.2;
}

/*
window#waybar.empty {
    background-color: transparent;
}
window#waybar.solo {
    background-color: #d8dee8;
}
*/

window#waybar.termite {
    background-color: #2f343f;
}

window#waybar.chromium {
    background-color: #2f343f;
    border: none;
}

#workspaces button {
    padding: 0 5px;
    background-color: transparent;
    color: #d8dee8;
    /* Use box-shadow instead of border so the text isn't offset */
    box-shadow: inset 0 -3px transparent;
}

/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
#workspaces button:hover {
    background: rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 -3px #d8dee8;
}

#workspaces button.focused {
    background-color: #2f343f;
    box-shadow: inset 0 -3px #d8dee8;
}

#workspaces button.urgent {
    background-color: #2f343f;
}

#mode {
    background-color: #2f343f;
    border-bottom: 3px solid #d8dee8;
}

#mpris,
#custom-screenshot,
#custom-wf_recorder,
#custom-weather,
#custom-exit,
#custom-notification,
#clock,
#battery,
#cpu,
#memory,
#temperature,
#backlight,
#network,
#pulseaudio,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#mpd {
    padding: 0 10px;
    margin: 0 4px;
    color: #d8dee8;
}

#window,
#workspaces {
    margin: 0 4px;
}

/* If workspaces is the leftmost module, omit left margin */
.modules-left > widget:first-child > #workspaces {
    margin-left: 0;
}

/* If workspaces is the rightmost module, omit right margin */
.modules-right > widget:last-child > #workspaces {
    margin-right: 0;
}

#clock {
    background-color: #2f343f;
}

#battery {
    background-color: #2f343f;
    color: #d8dee8;
}

#battery.charging {
    color: #36af90;
    background-color: #2f343f;
}

@keyframes blink {
    to {
        background-color: #2f343f;
        color: #e7db75;
    }
}

#battery.critical:not(.charging) {
    background-color: #2f343f;
    color: #ef6b7b;
    animation-name: blink;
    animation-duration: 0.5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

label:focus {
    background-color: #48483e;
}

#cpu {
    background-color: #2f343f;
    color: #d8dee8;
}

#memory {
    background-color: #2f343f;
}

#backlight {
    background-color: #2f343f;
}

#network {
    background-color: #2f343f;
}

#network.disconnected {
    color: #ef6b7b;
    background-color: #2f343f;
}

#pulseaudio {
    background-color: #2f343f;
    color: #d8dee8;
}

#pulseaudio.muted {
    color: #ef6b7b;
    background-color: #2f343f;
}

#custom-media {
    background-color: #2f343f;
    color: #d8dee8;
    min-width: 100px;
}

#custom-media.custom-spotify {
    background-color: #2f343f;
    color: #36af90;
}

#custom-media.custom-vlc {
    background-color: #2f343f;
    color: #fe9720;
}

#temperature {
    background-color: #2f343f;
    color: #d8dee8;
}

#temperature.critical {
    background-color: #2f343f;
    color: #ef6b7b;
}

#tray {
    background-color: #2f343f;
    color: #d8dee8;
}

#idle_inhibitor {
    background-color: #2f343f;
    color: #d8dee8;
}

#idle_inhibitor.activated {
    background-color: #2f343f;
    color: #36af90;
}

#mpd {
    background-color: #2f343f;
    color: #d8dee8;
}

#mpd.disconnected {
    background-color: #2f343f;
    color: #ef6b7b;
}

#mpd.stopped {
    background-color: #2f343f;
    color: #fe9720;
}

#mpd.paused {
    background-color: #2f343f;
    color: #e7db75;
}

#language {
    background: #2f343f;
    color: #d8dee8;
    padding: 0 5px;
    margin: 0 5px;
    min-width: 16px;
}

#taskbar button {
    background: #2f343f;
    color: #d8dee8;
}

#taskbar button.active {
    background: #5294E2;
    color: #2f343f;
}
