@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: local('Material Icons'),
        local('MaterialIcons-Regular'),
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;  /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;

    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;

    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;

    /* Support for IE. */
    font-feature-settings: 'liga';
}

body, html {height:100%;}

body {
    background-color: #1b1b1b;
    color: white;
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
}

.container {
    background-color: #292929;
    height: 100%;
    overflow-y: hidden;
}


@media only screen and (min-width: 600px) {
    .container {
        min-width: 375px;
        max-width: 414px;
        position: fixed;
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        border: 1px solid black;
        border-radius: 25px;
        box-shadow: 0px 0px 5px 5px rgb(0 0 0 / 25%);
        height: 80%;
    }
}

@media only screen and (max-width: 600px) {
    body {
        background-color: #292929;
    }
}

.pwa-promotion {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: white;
    color: black;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.pwa-promotion .promo-text {
    padding-bottom: 5px;
}

.install-btn {
    height: 49px;
    width: 49px;
}

.top-header {
    display: flex;
    flex-wrap: nowrap;
    font-size: 36px;
    margin-top: 22px;
    margin-left: 22px;
    color: white;
    font-size: 36px;
}
    .top-title {
        width: 70%;
    }

    .top-title-right {
        width: 30%;
    }

    .top-action {
        width: 30%;
    }

    .mode-btn {
        height: 40px;
        width: 40px;
        font-size: 14px;
        border-radius:50%;
        background: #404040;
        box-shadow: 0px 0px 4px 4px rgba(0, 0, 0, 0.25);
        color: white;
        border-color: #404040;
        border-style: none;
        cursor: pointer;
        float: right;
        margin-right: 10px;
        padding: 1px;
    }

    .mode-btn > span {
        margin: 4px;
    }

.spinner {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100vw;
    height: 100vh;
    background-color: rgba(192, 192, 192, 0.5);
    background-image: url("../img/loading.svg");
    background-size: 50px;
    background-repeat: no-repeat;
    background-position: center;
}

.main {
    width: 100%;
    flex-wrap: wrap;
    display: flex;
}

.my-preset {
    width: 100%;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.w-10 {
    width: 100%;
}

.w-3 {
    width: 27%;
}

.w-7 {
    width: 73%;
}

.w-label {
    margin-top: 12px;
    /* padding-left: 20px; */
}

.w-label > span{
    padding-left: 20px;
}

.spc-1 {
    width: 100%;
    min-height: 10px;
}

.mt-23 {
    margin-top: 23px;
}

.mb-47 {
    margin-bottom: 23px;
}

.mb-25 {
    margin-bottom: 25px;
}

.ml-23 {
    padding-left: 22px;
}

button {
    cursor: pointer;
}

button:focus {
    box-shadow: 0px 0px 4px 4px rgba(255, 196, 0, 0.25);
    color: #F27405;
}

button:focus {
    box-shadow: 0px 0px 4px 4px rgba(255, 196, 0, 0.25);
    color: #F27405;
}

button:focus  ~ span {
    color: #F27405;
}


button:hover { 
    color: #F27405;
}

button:hover ~ span { 
    color: #F27405;
    font-weight: bold; 
}

button:disabled,
button[disabled] {
    border: 1px solid #999999;
    color: #666666 !important;
    cursor: not-allowed;
}

button:disabled,
button[disabled] ~ span { 
    color: #666666 !important;
}


    .preset-button {
        width: 69px;
        height: 69px;
        border-radius: 5px;
        background-color: #404040;
        border: 0px;
        background: #404040;
        box-shadow: 0px 0px 4px 4px rgba(0, 0, 0, 0.25);
        color: white;
        /* margin-left: 13px;
        margin-right: 13px; */
        margin-top: 5px;
        padding: 2px;
        font-size: 15px;
    }

    .preset {
        margin-bottom: 20px;
    }

    .preset-value {
        font-size: 22px;
        height: 39px;
        width: 59px;
        padding: 0px;
        margin: 0px;
        border-width: 0px;
        background-color: transparent;
        text-align: center;
        color: white;
    }

    .small-button {
        width: 45px;
        height: 45px;
        border-radius: 5px;
        background-color: #404040;
        border: 0px;
        background: #404040;
        box-shadow: 0px 0px 4px 4px rgba(0, 0, 0, 0.25);
        color: white;
        margin: 4px;
        padding: 1px;
    }

.colorpicker {
    width: 85%;
    height: 30px;
    background-color:#404040;
    color: white;
    border-radius: 5px;
}

.custom-input {
    width: 85%;
    height: 30px;
    background-color:#404040;
    color: white;
    border-radius: 5px;
}

.select-custom {
    width: 88%;
    height: 35px;
    background-color:#404040;
    color: white;
    border-radius: 2px;
}

.text-right {
    align-items: flex-end;
}

.mini-icon {
    font-size: 14px;
}

.footer {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
    background-color: yellow;
}

.mr-28 {
    margin-right: 38px;
}


.device-area {
    position: absolute;
    left: 23px;
    margin-top: 27px;
}

.device-label {
    color: #F27405;
}


.device-info {
    display: flex;
    flex-wrap: nowrap;
    margin-top: 5px;
    border-bottom: solid 1px black;
    padding: 7px;
}
    .device-led-count {
        width: 25%;
    }
        .icon-led-count{
            font-size: 12px;
            margin-left: 16px;
        }

    .device-name {
        width: 50%;
        text-align: center;
        justify-content: center;
    }

    .device-action {
        width: 25%;
    }

        .action-btn {
            border: transparent;
            color: white;
            margin-right: 10px;
            border-radius: 15px;
            font-size: 11px;
            float: right;
            width: 60px;
            height: 25px;
        }

        .action-btn-connected {
            background-color: green;
        }

        .action-btn-disconnected {
            background-color: orange;
        }

.device-info .battery_level {
    font-size: 15px;
}

.hidden {
    display: none;
}