body {
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #ffffff;
    background-color: #1b1b1b;
    font-size: 12px;
    line-height: 2em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

.green { color: #fff; background-color: #7bcc00; }
.red { color: #fff; background-color: #e63535; }

h1 { font-size: 4rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2.5rem; }
h4 { font-size: 2rem; }
h5 { font-size: 1.5rem; }

a { color: inherit; }

button, .btn {
    cursor: pointer;
    color:#fff;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    padding: 7px 24px 5px;
    border-radius: 3rem;
    height: 3rem;
    min-width: 145px;
    background-color: #4b4b4b;
    -webkit-font-smoothing: antialiased;
    box-shadow: 0 1rem 1rem 0 rgba(0,0,0,.4);
    margin-top:1rem;
    margin-bottom: 1rem;
    border:0;
    transition: all .1s cubic-bezier(.165,.84,.44,1);
}

button:hover, .btn:hover {
    transform: scale(.95);
}

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
  font-size: 1.125rem;
}

#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
}

#background > * {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity .5s ease-in-out;
    opacity: 0;
    width: 100%;
    max-width: 60rem;
    background-color: transparent;
}

#background .blink {
    animation: fade 3000ms infinite;
}

@keyframes fade {
    from { opacity: 1.0; }
    50% { opacity: 0.6; }
    to { opacity: 1.0; }
}

strong {
    font-weight: 700;
}

i, em {
    font-style: italic;
}

.align-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.align-left {
    text-align: left;
}

.mt-xs { margin-top: .5rem; }
.mt-s { margin-top: 1rem; }
.mt-m { margin-top: 2rem; }
.mt-l { margin-top: 3rem; }
.mt-xl { margin-top: 4rem; }

.mb-xs { margin-bottom: .5rem; }
.mb-s { margin-bottom: 1rem; }
.mb-m { margin-bottom: 2rem; }
.mb-l { margin-bottom: 3rem; }
.mb-xl { margin-bottom: 4rem; }

.card {
    color: white;
    padding: 2rem;
    border-radius: 8px;
    background-color: #242424;
    box-shadow: 0 0 1rem 1rem rgba(0,0,0,.1);
}

.card + .card {
    margin-top: 2rem;
}

.svg {
    display: inline-block;
    width: 32px;
    height: 32px;
    transform: scale(.75);
    mask-size: contain;
    -webkit-mask-size: contain;
}

.svg.big {
    width: 32px;
    height: 32px;
    transform: scale(1.5);
}

.status-bar {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: -1rem;
    font-style: italic;
    color:#bbb;
    font-size: .8rem;
}

.status-bar:before {
    content: "";
    width: 1ch;
    height: 1ch;
    border-radius: 1ch;
    background-color: orange;
    margin-right: 1ch;
}

.status-bar.success:before { background-color: green; }
.status-bar.error:before { background-color: red; }

#selfsignedCertificate ol {
    margin: 1em 0;
    font-size: .9em;
}

#selfsignedCertificate ol li + li {
    margin-top: .5em;
}

#selfsignedCertificate ol li .bullet {
    font-family: monospace;
    display: inline-block;
    font-size: 1em;
    line-height: 2ch;
    height: 2ch;
    text-align: center;
    width: 2ch;
    border-radius: 50%;
    background-color: white;
    color: black;
    margin-right: .3ch;
}

#roomList ul li {
    box-shadow:
      0 0px 1px rgba(0, 0, 0, 0.025),
      0 0px 8px rgba(0, 0, 0, 0.05)
    ;
    border-radius: 8px;
    padding: 2rem 1rem;
    transition: all .5s ease-in-out;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
}

#roomList ul li + li {
    margin-top: 2rem;
}

#roomList ul li.on {
    color: #1b1b1b;
}

#roomList ul li.off {
    color:white;
    background-color: #1b1b1b;
}

#roomList ul li.off input, #roomList ul li.off .input {
    opacity: 1;
    transition: all .5s ease-in-out;
}

#roomList ul li.off input, #roomList ul li.off .input  {
    opacity: 0;
    pointer-events: none;
}

#roomList ul li .input.range {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
}

#roomList ul li .slider:before {
    content: attr(data-percent);
    position: absolute;
    padding: .5rem;
    background: white;
    color: #1b1b1b;
    border-radius: .25rem;
    top: 0;
    left: 50%;
    transform: translate(-50%, -110%);
    box-shadow: 0 1rem 1rem 0 rgba(0,0,0,.4);
    opacity: 0;
    pointer-events: none;
    transition: all .3s ease-in-out;
}

#roomList ul li .slider.moving:before {
    opacity: 1;
}

span.slider {
    display: inline-block;
    position: absolute;
    width: 2ch;
    height: 2ch;
    border-radius: 2ch;
    box-shadow: 0 0px 1px rgba(0, 0, 0, 0.025), 0 0px 8px rgba(0, 0, 0, 0.05);
    background: white;
    bottom:0;
    left:0;
    transform: translate(-50%, 50%);
    pointer-events: none;
}

#roomList ul li .input.range input[type=range] {
    position: absolute;
    width: calc(100% + 2ch);
    opacity: 0;
    bottom: 0px;
    left: -1ch;
    transform: translateY(50%);
    height:20px;
    margin: 0
}

#roomList ul li .input.color {
    position: relative;
    display: flex;
    margin-left: auto;
    cursor: pointer;
}

#roomList ul li .input.color span {
    pointer-events: none;
}

#roomList ul li .input.color input[type=color]{
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

#sharing label {
    font-size: 1rem;
    line-height: 1.5rem;
}

#sharing input {
    margin-top: 1rem;
    color:white;
    background-color: #1b1b1b;
    padding: 1rem;
    border-radius: .5rem;
    width: 100%;
    display: block;
    border: 0;
    position: relative;
}

#sharing input:focus {
    background: #ffb752;
    color: #1b1b1b;
    border: 0;
}
