/* groups list - start */

#groups ul li,
#alarms ul li {
    width: 100%;
    height: 120px;
    /* background-image: url(../img/default_room_bg.png); */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50%;
    border-bottom: 2px solid #2886c7;
    box-shadow: 0px 0px 20px 3px rgba(0,0,0,0.7) inset;
    cursor:pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#alarms ul li {
    border-bottom-color: #A60800;
    cursor: default;
}

#groups ul li .action_holder,
#alarms ul li .action_holder {
    width: 100%;
    height: 100%;
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* #groups ul li .image_holder h2,
#alarms ul li .image_holder h2 {
    width: 33.33%;
    min-height: 30px;
    max-height: 50%;
    background: rgba(39, 46, 48, 0.8);
    font-size: 18px;
    color: #fff;
    position: relative;
    margin: auto;
    overflow: hidden;
} */

/* #groups ul li .image_holder h2 span,
#alarms ul li .image_holder h2 span {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    margin-top: 5px;
} */
#groups ul li .image_holder,
#alarms ul li .image_holder {
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
}

#groups ul li .image_holder h2,
#alarms ul li .image_holder h2 {
    width: 33.333333%;
    height: 100%;
    background: rgba(39, 46, 48, 0.8);
    font-size: 17px;
    color: #fff;
    position: relative;
    margin: auto;
    overflow: hidden;
    justify-content: center;
    align-items: flex-end;
    display: flex;
}
#groups ul li .image_holder h2 span,
#alarms ul li .image_holder h2 span {
    max-height: 100%;
    text-align: center;
    overflow: hidden;
}

#groups ul li div.group_control,
#alarms ul li div.alarm_control_onoff {
    position: absolute;
    width: 20%;
    height: 100%;
    right: 0;
    top: 0%;
    bottom: 0%;
    background-color: #252D2E;
    z-index:2;
}

#groups ul li div.group_control div.group_on,
#groups ul li div.group_control div.group_off,
#alarms ul li div.alarm_control_onoff div.group_on,
#alarms ul li div.alarm_control_onoff div.group_off {
    width: 100%;
    height: 50%;
    background-color: #252D2E;
}

#groups ul li div.group_control div.text,
#alarms ul li div.alarm_control_onoff div.text {
    text-align: center;
    color: #ECECEC;
    text-transform: capitalize;
    font-size: 12px;
    padding-top: 5px;
}

#alarms ul li div.alarm_control_onoff div {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

#groups ul li div.group_control div div.icon,
#alarms ul li div.alarm_control_onoff div div.icon {
    background-image: url(../img/redpower_off.png);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: contain;
    width: 100%;
    height: 62px;
}

#alarms ul li div.alarm_control_onoff div div.icon {
    width: 60px;
    height: 60px;
}

/* #alarms ul li div.alarm_control_onoff div div.icon {
    background-size: 80%;
} */

#groups ul li div.group_control div.group_on div.icon {
    background-image: url(../img/greenpower_off.png);
    background-size: contain;
    cursor: pointer;
}

#alarms ul li div.alarm_control_onoff div.alarm_off div.icon {
    background-image: url(../img/shield_button_off.png);
    background-size: contain;
    cursor: pointer;
}

#alarms ul li div.alarm_control_onoff div.alarm_on div.icon {
    background-image: url(../img/shield_button_on.png);
    background-size: contain;
    cursor: pointer;
}

#groups ul li div.group_control div.group_on div.icon:active,
#alarms ul li div.alarm_control_onoff div.group_on div.icon:active {
    background-image: url(../img/greenpower_on.png);
    background-size: contain;
    cursor: pointer;
}

#groups ul li div.group_control div.group_off div.icon:active,
#alarms ul li div.alarm_control_onoff div.group_off div.icon:active {
    background-image: url(../img/redpower_on.png);
    background-size: contain;
    cursor: pointer;
}

#groups ul li div.group_control_roller div.group_up div.icon {
    background-image: url(../img/2xbig_up_off_icon.png);
    background-size: contain;
    cursor: pointer;
}

#groups ul li div.group_control_roller div.group_down div.icon{
    background-image: url(../img/2xbig_down_off_icon.png);
    background-size: contain;
    cursor: pointer;
}

#groups ul li div.group_control_roller div.group_up div.icon:active {
    background-image: url(../img/2xbig_up_on_icon.png);
    background-size: contain;
    cursor: pointer;
}

#groups ul li div.group_control_roller div.group_down div.icon:active {
    background-image: url(../img/2xbig_down_on_icon.png);
    background-size: contain;
    cursor: pointer;
}

#groups ul li .dev_status_holder {
    position: relative;
    min-height: 28px;
    max-width: 80%;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    align-self: flex-start;
    flex-wrap: wrap-reverse;
}

#groups ul li .dev_status_holder div {
    width: 28px; 
    height: 28px;
    margin-left: 2px;
    background-size: 22px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-color: rgba(39, 46, 48, 0.8);
    margin-top: 1px;
    transition: background-image 0.5s ease;
}

#groups .dev_status_holder div.offline_control::after {
    position: absolute;
    margin-right: 25px;
    content: "\274c"; /* use the hex value here... */
    font-size: 24px; 
    color: #BA0000;
    line-height: 28px;
    text-align: center;
    width: 28px;
    height: 28px;
    opacity: 0.7;
    transition: font-size 0.5s ease;
}
#groups div.group_relay_status{
    background-image: url(../img/relay_icon_off.png);
}
#groups div.group_relay_status.device_on_true{
    background-image: url(../img/relay_icon_on.png);
}
#groups div.group_light_status{
    background-image: url(../img/lamp_icon_off.png);
}
#groups div.group_light_status.device_on_true{
    background-image: url(../img/lamp_icon_on.png);
}
#groups div.group_roller_status{
    background-image: url(../img/curtain_150x150.svg);
}
#groups div.group_roller_status.device_on_true{
    background-image: url(../img/curtain_open_150x150.svg);
}

#groups ul li .group_control_onoff,
#groups ul li.group_item_roller .group_control_roller {
    display: block;
}
#groups ul li.group_item_roller .group_control_onoff,
#groups ul li .group_control_roller
{
    display: none;
}

/* groups list - end */