/*
 Polychromatic is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 Polychromatic is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with Polychromatic. If not, see <http://www.gnu.org/licenses/>.

 Copyright (C) 2015-2017 Luke Horwell <luke@ubuntu-mate.org>
               2015-2016 Terry Cain <terry@terrys-home.co.uk>
*/

/************************
   Colour Scheme
*************************/
@bg-colour: #323232;
@text-colour: #888;
@border-colour: #2D2D2D;    // #404040?
@disabled-colour: #484848;
@disabled-bg: #191919;
@footer-colour: #121212;
@active: #06FF00;
@active-dark: #0DA902;
@button-colour: #DED9CB;
@serious: #FF2222;

@spectrum1: #C500FF; // Purple
@spectrum2: #FF8900; // Orange
@spectrum3: #FBFF00; // Yellow
@spectrum4: #7CFF00; // Green
@spectrum5: #00FFD9; // Aqua
@spectrum6: #005AFF; // Blue
@spectrum7: #3D00FF; // Dark Blue

/************************
   Global
*************************/
/* Fonts */
@font-family: 'Play', 'Ubuntu', 'DejaVu Sans', 'Open Sans', sans-serif;

@font-face {
    font-family: Play;
    src: url('lib/Play-Regular.ttf');
}

html, body, input, button {
    font-family: @font-family;
}

/* Behave more like an application.
 * (Some elements may need selection activating manually) */
html, body {
    width: 100%;
    height: 100%;
    background: -webkit-linear-gradient(black, @bg-colour);
    -webkit-user-select: none;
    overflow: hidden;
    cursor: default;
}

img {
    -webkit-user-select: none;
    pointer-events: none;
}

h1, h2, h3, h4, h5 {
    font-family: @font-family;
    font-weight: lighter;
    color: lime;
    margin-top: 16px;
    margin-bottom: 16px;
}

p, a, button, table, td, tr, label, .alert {
    font-family: @font-family;
    color: @text-colour;
    font-size: small;
}

hr {
    border-color: @border-colour;
}

.btn.disabled {
    color: @disabled-colour;
    border-color: black;
}

button {
    -webkit-appearance: none;
    background-color: transparent;
    margin: 0;
    padding: 0;
    text-align: left;
    align-items: flex-start;
    display: block;

    > label {
      top: 2px;
      position: relative;
  }
}

.link:hover {
    cursor: pointer;
}

.alert {
    color: white;
    margin-bottom: 16px;
}

/************************
   Cursors
*************************/
.cursor-wait {
    cursor: wait;
}

.cursor-mode-set {
    cursor: url("../cursors/mode-set.gif"), crosshair;
}

.cursor-mode-picker {
    cursor: url("../cursors/mode-picker.gif"), copy;
}

.cursor-mode-clear {
    cursor: url("../cursors/mode-clear.gif"), not-allowed;
}

/************************
   Header
*************************/
.header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 42px;
    padding: 8px;
    background-image: url('../img/header/generic.jpg');
    background-repeat: no-repeat;
    background-position: left -2px;
    background-size: 100%;
    font-weight: bold;
    border-bottom: 2px solid @border-colour;

    &.is-dynamic {
        background-image: none;
        border-bottom: 0;
    }

    > #dynamic {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 74px;
        padding: 8px;
        background-size: 100%;
        background-position: left -2px;
        z-index: -10;
        transition: all 0.2s ease-in-out;

        &.overview {
            background-image: url('../img/header/generic.jpg');
        }

        &.keyboard {
            background-image: url('../img/header/keyboard.png');
        }

        &.mouse {
            background-image: url('../img/header/mouse.png');
        }

        &.mousemat {
            background-image: url('../img/header/mousemat.png');
        }

        &.keypad {
            background-image: url('../img/header/keypad.png');
        }

        &.headset {
            background-image: url('../img/header/headset.png');
        }

        &.generic {
            background-image: url('../img/header/generic.jpg');
        }
    }

    h3 {
        padding: 0px;
        margin: 0px;
        margin-top: 5px;
    }
}

.header-options {
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 16px;
    margin-right: 16px;
}

/************************
   Header - Spectrum
*************************/
#dynamic.spectrum,
img.spectrum {
    -webkit-animation-name: spectrum;
    -webkit-animation-duration: 10s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
}

@-webkit-keyframes spectrum {
    0% {
        background-color: @spectrum1;
    }
    14% {
        background-color: @spectrum2;
    }
    28% {
        background-color: @spectrum3;
    }
    42% {
        background-color: @spectrum4;
    }
    56% {
        background-color: @spectrum5;
    }
    70% {
        background-color: @spectrum6;
    }
    84% {
        background-color: @spectrum7;
    }
    100% {
        background-color: @spectrum1;
    }
}

span.spectrum {
    -webkit-animation-name: spectrum-text;
    -webkit-animation-duration: 10s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
}

@-webkit-keyframes spectrum-text {
    0% {
        color: @spectrum1;
    }
    14% {
        color: @spectrum2;
    }
    28% {
        color: @spectrum3;
    }
    42% {
        color: @spectrum4;
    }
    56% {
        color: @spectrum5;
    }
    70% {
        color: @spectrum6;
    }
    84% {
        color: @spectrum7;
    }
    100% {
        color: @spectrum1;
    }
}

/************************
   Header - Wave
*************************/
.header.wave {
    background-image: url('../img/header/wave.jpg') !important;
    background-repeat: repeat-x;
    -webkit-animation-name: wave;
    -webkit-animation-duration: 1.5s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    z-index: -1;
}

@-webkit-keyframes wave {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

span.wave,
img.wave {
    -webkit-animation-duration: 2s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
}

span.wave {
    -webkit-animation-name: spectrum-text;
}

img.wave {
    -webkit-animation-name: spectrum;
}

/************************
   Content
*************************/
.content {
    position: fixed;
    width: auto;
    padding: 4px;
    top: 64px;
    bottom: 50px;
    left: 16px;
    right: 16px;
    overflow-y: scroll;

    p {
        padding: 0px;
        margin: 0px;
    }

    td, tr {
        color: @text-colour;
    }

    td {
        padding-left: 16px;
    }

    a {
        color: lime;
        font-style: underline;
    }

    &.with-tabs {
        margin-top: 28px;
    }
}

.center {
    text-align: center;
}

.left {
    float: left;
    width: 49%;
}

.content {
    .center {
        text-align: center;
    }
}

.right {
    float: right;
    width: 49%;
}

.small-text {
    font-size: 12px;
}

.mode-text {
    color: @active;
    font-weight: bold;
}

input[type="checkbox"],
input[type="radio"] {
    vertical-align: middle;
    position: relative;
    bottom: 1px;
}

input[type="radio"] {
    bottom: 3px;
}

/************************
   Footer
*************************/
.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 32px;
    padding: 8px;
    background-color: @footer-colour;

    p {
        margin: 0;
        padding: 0;
        margin-top: 8px;
        font-size: 13px;
    }

    .left {
        float: left;
        width: auto;
        margin-left: 8px;
        padding: 0;
        margin: 0;
    }

    .right {
        float: right;
        text-align: right;
        width: auto;
        padding: 0;
        margin: 0;
        margin-right: 20px;
    }
}

#error {
    color: red;

    .warning {
        color: yellow;
    }
}


/************************
   Page Dialogues
*************************/
#overlay {
    position: fixed;
    top: 0; bottom: 0;
    left: 0; right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.blur {
    -webkit-filter: blur(2px);
}

.dialog {
    position: fixed;
    margin: auto;
    top: 0; bottom: 0;
    left: 0; right: 0;
    background-color: black;
    border: 2px solid green;
    padding: 12px;
    box-shadow: -1px -1px 16px 16px rgba(0, 0, 0, 0.5);
    z-index: 10;

    &.blur {
        opacity: 0.8;
        -webkit-filter: blur(2px);
    }

    h3 {
        margin-top: 8px;
    }
}


.dialog-buttons {
    float: right;
    text-align: right;
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 97%;
}

/* Dialog Sizes */
#dialog-new {
    width: 50%;
    height: 44%;
}

#dialog-rename {
    width: 50%;
    height: 44%;
}

#dialog-del {
    width: 40%;
    height: 20%;
}

#dialog-applauncher {
    width: 72%;
    height: 70%;
    z-index: 11;
}

#dialog-help {
    width: 60%;
    height: 37%;
}

#dialog-changelog {
    width: 60%;
    height: 70%;
}

/* Dialog Animations */
.dialog.in {
    -webkit-animation-name: dialog-in;
    -webkit-animation-duration: 0.25s;
    -webkit-animation-timing-function: ease-in-out;
}

@-webkit-keyframes dialog-in {
    0% {
        opacity: 0;
        -webkit-transform: scale3d(0.8, 0.8, 0.8);
    }
    100% {
        opacity: 1;
    }
}

.dialog.out {
    -webkit-animation-name: dialog-out;
    -webkit-animation-duration: 0.25s;
    -webkit-animation-timing-function: ease-in-out;
}

@-webkit-keyframes dialog-out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        -webkit-transform: scale3d(0.8, 0.8, 0.8);
    }
}

/* Dialog Multiple Fields */
.dialog > table {
    width: 100%;

    > tbody > tr {
        > th {
            text-align: left;
        }

        > td {
            text-align: right;
        }
    }
}

/* Dialog Elements */
.preview-area {
    width: 95%;
    height: 28px;
    margin: 4px;
    padding: 4px;
    background-color: rgba(128,128,128,0.4);

    > p {
        margin-top: 6px;
        margin-left: 4px;
        float: left;
        font-size: 14px;
        color: lime;
    }

    > img {
        float: left;
        padding: 2px;
        margin-left: 4px;
        width: 24px;
        height: 24px;
    }
}

/************************
   Elements
*************************/
.btn {
    width: auto;
    height: 30px;
    background-color: @bg-colour;
    color: @button-colour;
    display: inline-block;
    padding: 4px 16px;
    font-size: 14px;
    line-height: 20px;
    vertical-align: middle;
    text-decoration: none;
    text-align: center;
    border: 2px solid @border-colour;
    -webkit-user-select: none;
    -webkit-appearance: none;

    &:hover {
        color: @active-dark;
    }

    &:active {
        background-color: @active;
        color: black;
    }

    &.disabled {
        background-color: @disabled-bg;
        color: @disabled-colour;
        pointer-events: none;
    }

    &.btn-serious {
        color: @serious;

        &:hover {
            color: lighten(@serious, 10%);
        }

        &:active {
            color: white;
            background-color: @serious;
        }

        &:focus {
            border-color: darken(#800000, 10%);
        }
    }

    &.active {
        background-color: green;
    }
}

.colour-preview {
    display: inline-block;
    width: 150px;
    height: 24px;
}

.colour-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    cursor: pointer;
    border: 1px @text-colour solid;
    margin: 2px;
}

.color-more-btn {
    display: inline-block;
    background-color: black;
    background: url('../img/ui/more-options.svg') no-repeat center 100%;
    width: 30px;
    height: 24px;
}

/* Switch Sliders */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    border: 2px solid transparent;

    > input[type=checkbox] {
        display: none;
    }
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: gray;
    -webkit-transition: .4s;

    &:before {
        position: absolute;
        content: "";
        width: 12px;
        height: 12px;
        left: 4px;
        bottom: 2px;
        background-color: lightgray;
        -webkit-transition: .4s;
    }
}

input:checked + .slider {
    background-color: green;
}

input:focus + .slider {
    box-shadow: 0 0 1px @active;
}

input:checked + .slider:before {
    -webkit-transform: translateX(18px);
    background-color: lime;
}

/* Drop-down controls */
select {
    height: 28px;
    width: auto;
    padding: 4px;
    background-color: @bg-colour;
    border: 2px solid @border-colour;
    color: lightgray;
    -webkit-appearance: none;
    background-image: url('../img/ui/dropdown.png');
    background-position: right;
    background-repeat: no-repeat;
    color: @text-colour;
    font-size: small;
}

/* Keyboard navigation - focused elements */
input,
a,
button,
div,
select {
  border: 2px solid transparent;
}

input:focus,
a:focus,
button:focus,
div:focus,
select:focus {
  border: 2px solid green !important;
}

/************************
   Keyboard
*************************/
#keyboard-container {
    width: 850px;
    height: 326px;

    /** Stops text selection and text cursor */
    -webkit-user-select: none;
    cursor: default;
}

/************************
   Profile Editor
*************************/
#profile-icon {
    width: 24px;
    height: 24px;
    float: left;
    margin-right: 8px;
}

/************************
   Control Overrides
*************************/
/* Scroll Bar */
::-webkit-scrollbar {
  width: 18px;
  height: 18px;
  z-index: 100;
}

::-webkit-scrollbar-thumb {
  height: 6px;
  border: 4px solid rgba(0, 0, 0, 0);
  background-clip: padding-box;
  -webkit-border-radius: 7px;
  background-color: rgba(255, 255, 255, 0.5);
  -webkit-box-shadow: inset -1px -1px 0px rgba(0, 0, 0, 0.05), inset 1px 1px 0px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
  z-index: 100;
}

::-webkit-scrollbar-corner {
  background-color: transparent;
  z-index: 100;
}

/* Input Ranges */
input[type='range'] {
    -webkit-appearance: none;
    background: @bg-colour;
}

input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: lime;
    height: 12px;
    width: 12px;
    border-radius: 4px;
}

/* Checkbox and radio buttons */
input[type='radio'],
input[type='checkbox'] {
    -webkit-appearance: none;
    margin: 0.5em;
    width: 16px;
    height: 16px;
    background-color: grey;
}

input[type='radio'] {
    border-radius: 100%;
}

label {
    margin-right: 1em;
}

input[type='radio']:hover,
input[type='checkbox']:hover {
    opacity: 0.8;
}

input[type='radio']:checked {
    background-color: lime !important;
    background-image: url('../img/ui/radio.svg');
    background-size: 16px;
    background-position: center;
}

input[type='checkbox']:checked {
    background-color: lime !important;
    background-image: url('../img/ui/checkbox.svg');
    background-size: 16px;
    background-position: center;
}

input.disabled {
    background-color: @disabled-colour !important;
    pointer-events: none;
}

label.disabled {
    color: @disabled-colour !important;
    pointer-events: none;
}

/************************
   Dropdown Menus
*************************/
.dropdown-btn {
    background-color: black;
    color: white;
    padding: 2px;
    border: 2px solid @border-colour;
    cursor: pointer;
    min-width: 200px;
    background-image: url("../img/ui/dropdown.png");
    background-position: right;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;

    &:hover,
    &:focus {
        color: green;
    }

    &:focus {
        background-image: url("../img/ui/dropdown-hover.png");
    }
}

.dropdown-btn > img,
.dropdown-content button img,
.dropdown-content button div {
    vertical-align: middle;
    padding-right: 2px;
    width: 24px;
    height: 24px;
}

.dropdown-content button .colour-item {
    vertical-align: middle;
    margin-right: 4px;
    width: 16px;
    height: 16px;
    display: inline-block;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: darken(@bg-colour, 10%);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;

    button {
        color: white;
        width: 100%;
        padding: 6px 4px;
        text-decoration: none;
        display: block;

        &:hover {
            background-color: lighten(@bg-colour, 10%);
        }
    }
}


/************************
   Lighting Effect Options
*************************/
#fx-image {
    width: 35em;
    height: auto;
    left: 0;
    right: 0;
    bottom: 5em;
    position: fixed;
    margin: auto;
    filter: grayscale(1);
    opacity: 0.25;
    z-index: -10;
}

.fx-overlay {
    position: absolute;
    border: 1px solid green;
    background-color: rgba(0, 0, 0, 0.75);
    width: 220px;
    height: auto;
    padding: 1em;

    h4 {
        margin: 0 0 0.5em 0;
    }
}


/* Brightness Overlay */
#fx-brightness {
    bottom: 1em;
    left: 0;

    img {
        width: 1.5em;
        height: auto;
        vertical-align: bottom;
    }

    input[type="range"] {
        width: 9.6em;
    }

    span {
        float: right;
        color: lime;
        font-size: 0.9em;
        margin: 0.05em 0;
    }
}

/* DPI Overlay */
#fx-dpi {
    bottom: 1em;
    left: 17em;
    width: 16em;

    img {
        width: 1.5em;
        height: auto;
        vertical-align: bottom;
    }
}

#fx-dpi span,
#fx-poll-rate {
    span {
        float: right;
        color: lime;
        font-size: 0.9em;
        margin: 0.05em 0;
        width: 3em;
        text-align: right;
    }

    input[type="range"] {
        width: 9.6em;
    }
}

#dpi-value,
#poll-rate-value {
    float: right;
    color: lime;
    font-size: 0.9em;
    margin: 0.05em 0;
    width: 3em;
    text-align: right;
}

/* Poll Rate Overlay */
#fx-poll-rate {
    bottom: 1em;
    left: 36em;
    width: 13em;
}
/* Lighting Overlay */
#fx-lighting {
    top: 1.5em;
    left: 0;
    width: 26em;
}


/************************
   Profile List
*************************/
#app-profiles {
    height: 230px;
    width: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    border: 0;
    background-color: rgba(34, 34, 34, 0.5);
}

.app-profile-item {
    width: 97%;
    height: 28px;
    margin: 4px;
    padding-top: 2px;
    padding-bottom: 2px;
    border: 1px solid transparent;
    color: @text-colour;
    cursor: default;
    vertical-align: middle;
    font-size: 16px;

    &:hover {
        opacity: 0.8;
        background-color: @text-colour;
        color: white;
    }

    &.active {
        border: 1px solid lime;
        background-color: green;
        color: white;
    }

    > img {
        width: 22px;
        height: 22px;
        margin-left: 4px;
        margin-right: 6px;
        float: left;
    }

    > span {
        position: relative;
        top: 2px;
    }
}


/************************
   Applications List
*************************/
#app-launchers {
    height: 70%;
    width: 100%;
    overflow-x: none;
    overflow-y: scroll;
}

.app-launcher-item {
    position: relative;
    width: 220px;
    height: 30px;
    margin: 4px;
    padding: 2px;
    border: 1px solid transparent;
    color: @text-colour;
    font-size: 16px;
    cursor: default;
    vertical-align: middle;
    float: left;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    text-overflow: ellipsis;

    &:hover {
        opacity: 0.8;
        background-color: @text-colour;
        color: white;
    }

    &.active {
        border: 1px solid lime;
        background-color: green;
        color: white;
    }

    > img {
        width: 22px;
        height: 22px;
        margin-left: 4px;
        margin-right: 4px;
        float: left;
    }
}


/************************
   Tabs
*************************/
.tabs {
    position: fixed;
    top: 59px;
    left: -1%;
    right: -1%;
    width: 102%;
    height: 32px;
    background-color: rgba(18,18,18,0.8);
    border-bottom: 2px solid @bg-colour;
    margin-left: 4px;
    margin-right: 4px;
    overflow-y: none;
    white-space: nowrap;

    > button {
        display: inline-block;
        position: relative;
        top: 0px;
        height: 34px;
        padding: 4px;
        text-align: center;
        width: auto;
        padding: 0px;
        padding-right: 24px;
        vertical-align: bottom;
        border: 2px solid transparent !important;
        border-bottom: 2px solid @border-colour !important;
        color: white;
        -webkit-filter: grayscale(1);
        vertical-align: top;

        &:hover,
        &:focus {
            opacity: 0.8;
            border-bottom: 2px solid green !important;
        }

        &.active {
            color: lime;
            border-bottom: 2px solid lime !important;
            -webkit-filter: grayscale(0);
        }

        > img {
            float: left;
            top: 0px;
            left: 8px;
            height: 20px;
            width: 20px;
            position: relative;
        }

        > span {
            float: left;
            position: relative;
            top: 2px;
            left: 16px;
        }
    }
}

#refresh-list {
    float: right;
    margin-right: 16px;
}


/************************
   Loading Page
*************************/
.loading {
    position: fixed;
    top: 0; bottom: 0;
    left: 0; right: 0;
    margin: auto;
    -webkit-animation-name: spin;
    -webkit-animation-iteration-count: infinite;
    filter: blur(0.2em);
    width: 10em;
    height: auto;
}

#loading-1 {
    -webkit-animation-timing-function: cubic-bezier(0.54, 0.43, 0.43, 0.54);
    -webkit-animation-duration: 1.5s;
}

#loading-2 {
    -webkit-animation-timing-function: cubic-bezier(0.54, 0.43, 0.43, 0.54);
    -webkit-animation-duration: 2s;
}

#loading-3 {
    -webkit-animation-timing-function: cubic-bezier(0.54, 0.43, 0.43, 0.54);
    -webkit-animation-duration: 1.25s;
}

@-webkit-keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#status-text {
    position: fixed;
    bottom: 12em;
    left: 0; right: 0;
    margin: auto;
    color: @text-colour;
    text-align: center;
    width: 400px;
    height: 1.3em;
}

/************************
   Progress Bar
*************************/
.progress {
    position: fixed;
    background-color: @disabled-bg;
    bottom: 10em;
    left: 0; right: 0;
    margin: auto;
    text-align: center;
    width: 300px;
    height: 5px;
}

.progress-inner {
    position: relative;
    background-color: rgba(0,255,0,0.5);
    top: -2px;
    left: -2px;
    height: 4px;
    width: 0%;

    &.increasing {
        -webkit-animation: increasing 1s ease-in-out forwards;
    }
}

@keyframes increasing {
    from { width: 0%; }
    to { width: 100%; }
}

/************************
   Error Page
*************************/
#error-page {
    text-align: center;
    line-height: 1.5em;
    -webkit-animation-name: error-page-entrance;
    -webkit-animation-duration: 0.4s;
    -webkit-animation-iteration-count: 1;
    -webkit-animation-timing-function: ease-out;

    > img {
        margin-top: 3em;
        width: auto;
        height: 150px;
    }

    > h2 {
        &.serious {
            color: red;
        }

        &.warning {
            color: yellow;
        }
    }

    > p {
        text-align: center;
        max-height: 200px;
        overflow-y: auto;

        > code {
            color: lime;
        }
    }

    a:hover {
        cursor: pointer;
    }
}

@-webkit-keyframes error-page-entrance {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/************************
   In-line Help Icons
*************************/
.macro-key {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 0;
    background-image: url('../img/ui/macro-keys.svg');
    background-repeat: none;
    background-position: center;
    -webkit-filter: grayscale(1);
    vertical-align: middle;
}

.game-mode {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 0;
    background-image: url('../img/ui/game-mode.svg');
    background-repeat: none;
    background-position: center;
    -webkit-filter: grayscale(1);
    vertical-align: middle;
}

/************************
   Overview Screens
*************************/
.device-card {
    position: relative;
    display: inline-block;
    width: 420px;
    height: 150px;
    margin: 12px;
    padding: 8px;
    background-color: black;
    box-shadow: 0px 0px 8px lime;
    border-radius: 8px;
    transition: 0.1s box-shadow ease-in-out;

    &:focus,
    &:hover {
        /*cursor: pointer;*/
        box-shadow: 0px 0px 16px lime;
    }

    > img {
        float: left;
        width: 130px;
        height: auto;
        padding: 6px;
        margin-right: 16px;
    }

    > p > img {
        position: relative;
        top: 6px;
        width: 22px;
        height: 22px;
    }

    .effect-status {
        float: left;
        top: 5px;
        position: relative;
        color: lime;
    }

    .brightness-status {
        float: right;
        top: 15px;
        position: relative;
    }
}

/************************
   Preferences - General
*************************/
/* Labels and Controls */
.pref-input {
    background: black;
    border: 1px solid grey;
    color: white;
    width: 400px;
    height: 24px;
    float: left;
    vertical-align: middle;

    &.path {
        font-family: "Ubuntu Mono", "Droid Sans Mono", "FreeMono", "Courier New", Courier, monospace;
    }
}

.pref-label {
    color: @active;
}

.pref-tray-preview {
    width: 22px;
    height: 22px;
    margin-left: 2px;
    margin-right: 4px;
}

/* About page specific */
.about-logo {
    float: left;
    margin: 1em;
    margin-left: 0;
    max-height: 50px;
    vertical-align: middle;
}

.about-text {
    float: left;
    margin: 0.6em 0;
    vertical-align: middle;
}

.about-update-status {
    color: lime;
    margin: 1em 0;
    font-size: small;

    &.deprecated {
        color: red;
    }
}

.about-label {
    clear: both;
    display: block;
    margin: 0.5em 0;

    code {
        color: lime;
    }
}

/************************
   Preferences - Colour Table
*************************/
#colour-table a {
    border: none;
}

.colour-table-item {
    width: 75%;
    margin: 0 1%;
    height: 24px;
    padding-top: 2px;
    padding-bottom: 2px;
    border: 1px solid transparent;
    color: @text-colour;
    cursor: default;
    vertical-align: middle;
    font-size: 16px;

    > .preview {
        float: left;
        width: 20px;
        height: 20px;
    }

    > .name {
        position: relative;
        top: 4px;
        left: 8px;
    }

    > .value {
        float: right;
        color: dimgray;
        position: relative;
        top: 8px;
    }

    &:hover {
        opacity: 0.8;
        background-color: @text-colour;

        > .name,
        > .value {
            color: white;
        }
    }

    &.active {
        border: 1px solid lime;
        background-color: green;
        color: white;

        > .name,
        > .value {
            color: white;
        }
    }
}

#colour-editor {
    position: fixed;
    top: 10em;
    right: 0em;
}

#colour-edit-preview {
    float: left;
}

/************************
   Preferences - Tray Icons
*************************/
.tray-uuid {
    width: 64px;
    height: 40px;

    > img {
        width: 24px;
        height: auto;

        &.selected {
            border: 2px solid lime;
        }
    }
}
