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

window#waybar {
    background-color: #222;
    /* border-bottom: 3px solid rgba(100, 114, 125, 0.5);*/
    color: #dfdfdf;
    transition-property: background-color;
    transition-duration: .5s;
}

window#waybar.hidden {
    opacity: 0.2;
}

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

window#waybar.termite {
    background-color: #3F3F3F;
}

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

#workspaces button {
    padding: 0 13px;
    background-color: inherit;
    color: #fff;
    /* Use box-shadow instead of border so the text isn't offset */
    box-shadow: inset 0 -3px transparent;
    border-bottom: 3px solid #222;
}

/* 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 #ffffff;
}

#workspaces button.focused {
    background-color: #444;
    color: #fff;
    border-bottom: 3px solid #ffb52a;
}

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

#mode {
    background-color: #64727d;
    border-bottom: 3px solid #ffffff;
}

#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#mpd {
    padding: 0 5px;
    margin: 0 3px;
    color: #ffffff;
}

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

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

/* Décalage du centre de 30 caractères de large sur la gauche (caractère M) */
.modules-center {
    margin-left: -30em;
}

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

#clock {
    background-color: inherit;
    border-bottom: 3px solid #f4a70a;
}

#battery {
    background-color: inherit;
    border-bottom: 3px solid #ffb52a;
}

#battery.charging, #battery.plugged {
    color: #ffffff;
    background-color: #26A65B;
}

@keyframes blink {
    to {
        background-color: #ffffff;
        color: #000000;
    }
}

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

label:focus {
    background-color: #000000;
}

#cpu {
    background-color: inherit;
    border-bottom: 3px solid #f90000;
}

#memory {
    background-color: inherit;
    border-bottom: 3px solid #4bffdc;
}

#backlight {
    background-color: inherit;
    border-bottom: 3px solid #9f78e1;
}

#network {
    background-color: inherit;
    border-bottom: 3px solid #9f78e1;
}

#network.disconnected {
    background-color: inherit;
}

#pulseaudio {
    background-color: inherit;
    border-bottom: 3px solid #f4a70a;
}

#pulseaudio.muted {
    background-color: inherit;
    color: #666;
}

#custom-media {
    background-color: #66cc99;
    color: #2a5c45;
    min-width: 100px;
}

#custom-media.custom-spotify {
    background-color: #66cc99;
}

#custom-media.custom-vlc {
    background-color: #ffa000;
}

#custom-power {
    margin: 0 10px;
    color: red;
}

#temperature {
    background-color: inherit;
    border-bottom: 3px solid #f50a4d;
}

#temperature.critical {
    background-color: #eb4d4b;
}

#tray {
    background-color: inherit;
}
