* {
    /* `otf-font-awesome` is required to be installed for icons */
    font-family: Iosevka, Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
}

window#waybar {
    background-color: rgba(23, 28, 39, 0.8);
    border-bottom: 3px solid rgba(90, 104, 115, 0.5);
    color: #ffffff;
    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;
}

button {
    /* Use box-shadow instead of border so the text isn't offset */
    box-shadow: inset 0 -3px transparent;
    /* Avoid rounded borders under each button name */
    border: none;
    border-radius: 0;
}

/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
button:hover {
    background: inherit;
    box-shadow: inset 0 -3px #ffffff;
}

#workspaces button {
    padding: 0 5px;
    background-color: transparent;
    color: #ffffff;
}

#workspaces button.empty {
    color: #888888;
}

#workspaces button:hover {
    background: rgba(0, 0, 0, 0.2);
}

#workspaces button.active.hosting-monitor {
    background-color: rgba(0,0,0,0.32);
    box-shadow: inset 0 -3px #E96375;
    color: #E96375;

    color: #E96375;
    background: rgba(0, 0, 0, 0.2);
    animation: hover 0.8s 1;

    
}

#workspaces button.urgent {
    animation: blink-attention 2s infinite;
    
    animation-name: blink-attention;
    animation-duration: 1s;
    animation-timing-function: steps(64);
    animation-iteration-count: infinite;
    animation-direction: alternate; ;
}

#mode {
    box-shadow: inset 0 -3px #ffffff;
}

#idle_inhibitor.activated {
    /*background-color: #ecf0f1;
    color: #2d3436;*/
    background-color: transparent;
    animation: blink-warning 2s infinite;
    
    animation-name: blink-warning;
    animation-duration: 5.0s;
    animation-timing-function: steps(128);
    animation-iteration-count: infinite;
    animation-direction: alternate; 
}

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

@keyframes hover {
    0% {
        background: rgba(0, 0, 0, 0);
        color: #ffffff;
    }
    100% {
        background: rgba(0, 0, 0, 0.2);
        color: #E96375;
    }
}


#clock:hover,
#battery:hover,
#cpu:hover,
#memory:hover,
#disk:hover,
#temperature:hover,
#backlight:hover,
#network:hover,
#pulseaudio:hover,
#wireplumber:hover,
#custom-media:hover,
#mode:hover,
#idle_inhibitor:hover,
#scratchpad:hover,
#power-profiles-daemon:hover,
#mpd:hover {
    color: #E96375;
    background: rgba(0, 0, 0, 0.2);
    animation: hover 0.2s 1;
}

#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 {
}

#battery {
    color: #000000;
}

#battery.charging, #battery.plugged {
    color: #ffffff;
}

/* Using steps() instead of linear as a timing function to limit cpu usage */
#battery.warning:not(.charging) {
  animation: blink-warning 2s infinite;
  
  animation-name: blink-warning;
  animation-duration: 5.0s;
  animation-timing-function: steps(128);
  animation-iteration-count: infinite;
  animation-direction: alternate; 
}

#battery.critical:not(.charging) {
    background-color: transparent;
    animation: blink-danger 1s infinite;
    
    animation-name: blink-danger;
    animation-duration: 0.5s;
    animation-timing-function: steps(64);
    animation-iteration-count: infinite;
    animation-direction: alternate; 
}

#battery.plugged:not(.charging) { 
    background-color: transparent;
    /*
*   animation: blink-aight 1s infinite;
    
    animation-name: blink-aight;
    animation-duration: 35s;
    animation-timing-function: steps(128);
    animation-iteration-count: infinite;
    animation-direction: alternate; 
    */
}

#power-profiles-daemon {
    color: #ffffff;
    font-size: 17px;
    padding-right: 12px;
    padding-left: 7px;
    margin-left: 0;
    margin-right: 0;
}

#power-profiles-daemon.performance {
}

#power-profiles-daemon.balanced {
}

#power-profiles-daemon.power-saver {
}

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

#cpu {
    color: #000000;
}

#memory {
}

#disk {
}

#backlight {
}

#network {
}

#network.disconnected {
}

#pulseaudio {
    color: #000000;
}

#pulseaudio.muted {
    color: #2a5c45;
}

#wireplumber {
    color: #000000;
}

#wireplumber.muted {
}

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

#custom-media.custom-spotify {
}

#custom-media.custom-vlc {
}

#temperature.critical {
  animation: blink-warning 2s infinite;
  
  animation-name: blink-warning;
  animation-duration: 5.0s;
  animation-timing-function: steps(128);
  animation-iteration-count: infinite;
  animation-direction: alternate; 
}

#tray > .passive {
    -gtk-icon-effect: dim;
}

#tray > .needs-attention {
    -gtk-icon-effect: highlight;
    animation: blink-attention 2s infinite;
    
    animation-name: blink;
    animation-duration: 5.0s;
    animation-timing-function: steps(64);
    animation-iteration-count: infinite;
    animation-direction: alternate;  
}

@keyframes blink-attention {
    50% {
        background-color: #FFFF00;
        color: #2d3436; 
    }
    100% {
        background-color: transparent;
        color: #ffffff;
    }
}

@keyframes blink-warning {
    0% {
        background-color: transparent;
        color: #ffffff;
    }
    90% {
        background-color: transparent;
        color: #ffffff;
    }
    95% {
        background-color: #FFAA00;
        color: #2d3436; 
    }
    100% {
        background-color: transparent;
        color: #ffffff;
    }
}

@keyframes blink-danger {
    50% {
        background-color: #FF0000;
        color: #2d3436; 
    }
    100% {
        background-color: transparent;
        color: #ffffff;
    }
}

@keyframes blink-aight {
    0% {
        background-color: transparent;
        color: #ffffff;
    }
    95% {
        background-color: transparent;
        color: #ffffff;
    }
    100% {
        background-color: #00FF66;
        color: #2d3436; 
    }
}

#mpd {
}

#mpd.disconnected {
}

#mpd.stopped {
}

#mpd.p000000{
}

#keyboard-state {
    color: #000000;
    padding: 0 0px;
    margin: 0 5px;
    min-width: 16px;
}

#language {
    color: #ffffff;
    padding: 0 5px;
    min-width: 16px;
}

#keyboard-state > label {
    padding: 0 5px;
}

#keyboard-state > label.locked {
}

#scratchpad {
}

#scratchpad.empty {
}

#privacy {
    padding:0000}

#privacy-item {
    padding: 0 5px;
    color: white;
}

#privacy-item.screenshare {
}

#privacy-item.audio-in {
}

#privacy-item.audio-out {
}

#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#wireplumber,
#custom-media,
#mode,
#idle_inhibitor,
#scratchpad,
#mpd {
    padding: 0 10px;
    background-color: transparent;
    color: #ffffff;
}

