* {
    user-select: none;
    cursor: default;
}

html {
    margin: 0;
    padding: 0;
    min-height: 400px;
    max-height: 700px;
    overflow: hidden;
    width: 350px;
}

html.light { background-color: #F9F9F9; }
html.dark { background-color: #263238;  } 

body {
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    width: 350px;
    margin: 0;
    height: 500px;
    overflow: hidden;
    padding: 0;
}

body.light { background-color: #F9F9F9; color: #333; }
body.dark { background-color: #263238; color: #EEE;  } 

header {
    padding: 10px 10px;
    z-index: 30;
    position:fixed;
    width: 350px;
    top:0;
}

.light header { background-color: #F9F9F9; }
.dark header { background-color: #263238; } 

header h1 {
    margin-left:auto;
    margin-right:auto; 
    display:block;
    font-size: 18px;
    font-weight: 700;
    margin-top:4px;
    padding-right:20px;
    text-align:center;
}

header nav {
    position: absolute;
    left:16px;
    top:16px;
}

header i {
    opacity: 0.5;
    transition: opacity 150ms ease-in-out;
}

.light header i { color: #000; }
.dark header i { color: #FFF; } 

header i:hover {
    opacity: 1.0;
}

h1, h2, h3 {
    margin: 0;
    margin-top: 10px;
    font-weight: 600;
    font-size: 16px;
}

h3 {
    margin-bottom:-5px;
}

h2 {
    font-size: 18px;
}

p {
    margin: 8px 0;
    opacity: 0.8;
    font-size: 14px;
    font-weight: 400;
}

.inline-button {
    padding: 5px 15px;
    margin-bottom: 5px;
    display: block;
    text-decoration: none;
    position: relative;
    transition: all 150ms ease-in;
}

.light .inline-button { color: #000; background-color: #E9E9E9; }
.dark .inline-button { color: #FFF; background-color: #37474F; } 

.inline-button p {
    display: inline-block;
    left: 0;
    width: 270px;
    font-weight: 600;
    font-size: 15px;
    opacity: 1;
}

.inline-button .description  {
    margin: 0;
    position: absolute;
    font-weight: 400;
    font-size: 12px;
    left: 36px;
    top: 35px;
}

.inline-button i {
    float: right;
    margin-top: 12px;
    margin-right: 6px;
}

.inline-button:hover {
    cursor:default;
}

.light .inline-button:hover { background-color: #DADADA; }
.dark .inline-button:hover { background-color: #455A64; } 

.light .inline-button:active { background-color: #D1D1D1; }
.dark .inline-button:active { background-color: #546E7A; } 

.status-icon {
    display:inline-block;
    width: 10px;
	height: 10px;
    border-radius: 50px;
    margin-right:10px;
}

.Unknown {
    background-color: #BDBDBD;
}

.Offline {
    background-color: #ef5350;
}

.Online {
    background-color: #66BB6A;
}

#section-settings,
#section-remote,
#section-main,
#section-about,
#section-activities {
   margin-top:50px;
}

/* initial state */
#section-settings,
#section-about,
#section-remote,
#section-activities,
#section-login-completed {
    display: none;
    overflow-y: hidden;
}

#remote-status,
#activity-status {
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
}

#devices-holder,
#activities-holder {
    overflow-y: auto;
    height:454px;
}

#devices-holder::-webkit-scrollbar,
#activities-holder::-webkit-scrollbar {
    width: 5px;
}
   
#devices-holder::-webkit-scrollbar-thumb,
#activities-holder::-webkit-scrollbar-thumb {
    background: #607D8B; 
}

#devices-holder::-webkit-scrollbar-track,
#activities-holder::-webkit-scrollbar-track {
    background: #263238; 
}

.activity-card {
    background: #37474F;
    display:block;
    color: #FFF;
    text-decoration: none;
    
    margin-bottom:5px;
}

/* Fun hack to darken image background */
.activity-card > .ac-container > .ac-container  {
    background-color: rgba(55,71,79,0.80);
    margin:-15px;
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    padding:15px;
}

.activity-card:hover > .ac-container > .ac-container  {
    background-color: rgba(69,90,100,0.60);
}

hr {
    border: 0;
    height:1px;
    margin:15px 10px;
}

.light hr { background-image: linear-gradient(to right, rgba(0, 0, 0, 0), #AAAAAA, rgba(0, 0, 0, 0)); }
.dark hr { background-image: linear-gradient(to right, rgba(0, 0, 0, 0), #455A64, rgba(0, 0, 0, 0)); } 

section > .wrapper {
    padding:0px 15px;
}

section > .wrapper p {
    opacity: 1.0;
    font-size:14px;
    margin-bottom:5px;
}

section > .wrapper ul {
    margin:0;
    padding:0;
    margin-left:20px;
    font-size:14px;
}

section > .wrapper li {
    margin-bottom:5px;
}

section > .wrapper a {
    cursor:pointer;
}

.light section > .wrapper a { color: #000; }
.dark section > .wrapper a { color: #FFF; } 


/* Style input button */
input[type="number"] {
    margin-top:5px;
    padding:5px;  
    border:0;
    width:150px;
}

select {
    padding:5px; 
    margin-top:5px;
    border:0;
    width:160px;
}