body {
    font-family: system-ui;
    margin: 0px;
    background-color: #333;
    color: #eee;
}

* {
  box-sizing: border-box;
}

h1 { font-size: 30px; margin: 0px 0px 10px 0px; }
h2 { font-size: 16px; margin: 0px 0px 10px 0px; }
p {
    font-size: 16px;
    line-height: 1.6em;
    margin: 0px 0px 15px 0px;
}

a {
    color: #fff;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    padding: 10px 20px;
    background-color: #333;
    z-index: 9999;
}

.logo {
    width: auto;
    height: 40px;
}

.grid-container {
    margin-top: 60px;
    padding: 0px 15px;
}

.cam {
  float: left;
  width: 16.66666666666667%;
  padding: 5px;
  display: grid;
}

.cam-info {
    background-color: #444;
    padding: 5px 8px 8px 8px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.cam-info h2 {
    font-size: 14px;
}

.user-info {
    padding: 20px 10px;
    width: 100%;
}

.user-info-inner {
    padding: 20px;
    background-color: #444;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
}

.user-info-mobile {
    padding: 10px 10px 0px 10px;
    position: fixed;
    bottom: 50px;
    width: 100%;
}

.user-info-mobile-inner {
    margin: 3px 0px;
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
    
    -webkit-box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.5);
    box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.5);
    
    /* background-image: linear-gradient(to top, #333333, #373737, #3b3b3b, #404040, #444444); */
}


/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

.iframe-desktop {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background-color: #333;
    background: url(/img/loading.png);
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
}

.iframe-mobile {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background-color: #333;
    background: url(/img/loading.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.menu {
    /*
    width: 250px;
    padding: 10px 0px;
    height: auto;
    background-color:#fff;
    display: none;
    position: fixed;
    right: 0;
    top: 60px;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
    */

    width: 300px;
    height: 100%;
    padding: 60px 20px 20px 20px;
    background-color: #444;
    display: none;
    position: fixed;
    right: 0;
    top: 0px;
    z-index: -3;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
}

.btn-menu {
    background: none;
    border: none;
    color: #fff;
    padding-right: 20px;
}

.btn-tip {
    background: #b85e0f;
    color: #fff;
    border: 0px solid #333;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 600;
    /* text-shadow: 1px 1px 3px black; */
    -webkit-box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.5);
    box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.5);
}

.btn-tag {
    background-color: #333;
    font-size: 0.8em;
    color: #fff;
    padding: 5px 7px;
    border: 0px solid #666;
    border-radius: 3px;
    line-height: 12px;
    cursor: pointer;
}

.btn-tags {
    background-color: #444;
    font-size: 14px;
    color: #fff;
    padding: 8px 10px;
    margin: 5px 3px;
    border: 1px solid #666;
    border-radius: 5px;
    line-height: 1em;
    cursor: pointer;
}

.btn-tags:hover {
    background-color: #666;
}

.menu a {
    /*
    display: block;
    font-weight: 700;
    width: 100%;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    */

    display: block;
    font-weight: 700;
    width: 100%;
    padding: 15px 0px;
    border-bottom: 1px solid #666;
    text-decoration: none;
    color: #fff;
}

.menu a:hover {
    background-image: linear-gradient(to right, #333333, #373737, #3b3b3b, #404040, #444444);
}

.submenu {
    padding-right: 0px;
    color: #ddd !important;
}

.submenu-icon {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(27deg) brightness(101%) contrast(102%);
    width: 14px;
    height: 14px;
    margin: 0px 0px 0px 5px;
    opacity: 0.5;
}

.menu span {
    display: block;
    font-weight: 700;
    width: 100%;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.menu a:last-child {
    border: 0px;
}

.icon-menu {
    display: inline-block;
    width: auto;
    height: 30px;
    margin-top: 5px;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(27deg) brightness(101%) contrast(102%);
}

.icon-align {
    display: inline-block;
    width: auto;
    height: 20px;
    margin: 5px 0 0 5px;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(27deg) brightness(101%) contrast(102%);
}

.icon-eye {
    display: inline-block;
    width: auto;
    height: 10px;
    margin: 0px 3px 0px 0px;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(27deg) brightness(101%) contrast(102%);
}

.icon-user {
    display: inline-block;
    width: auto;
    height: 11px;
    margin: 0px 3px 0px 0px;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(27deg) brightness(101%) contrast(102%);
}

.size-16-9 {
    margin: 0 auto;
    z-index: -1;
}

.size-4-3 {
    margin: 0 auto;
    width: 133%;
    position: fixed;
    margin-left: -17%;
    z-index: -1;
}

.size-1-1 {
    margin: 0 auto;
    width: 178%;
    position: fixed;
    margin-left: -39%;
    z-index: -1;
}

.size-3-4 {
    margin: 0 auto;
    width: 237%;
    position: fixed;
    margin-left: -69%;
    z-index: -1;
}

.btn-16-9 {
    float: right;
    width: 48px;
    height: 26px;
    border: 1px solid #666;
    background-color: #252525;
    border-radius: 5px;
    margin: 12px 10px 0 0;
    font-size: 11px;
    padding: 4px 12px;
    color: #ccc;
}

.btn-4-3 {
    float: right;
    width: 38px;
    height: 28px;
    border: 1px solid #666;
    background-color: #252525;
    border-radius: 5px;
    margin: 11px 10px 0 0;
    font-size: 11px;
    padding: 5px 11px;
    color: #ccc;
}

.btn-1-1 {
    float: right;
    width: 32px;
    height: 32px;
    border: 1px solid #666;
    background-color: #252525;
    border-radius: 5px;
    margin: 9px 10px 0 0;
    font-size: 11px;
    padding: 7px 8px;
    color: #ccc;
}

.btn-3-4 {
    float: right;
    width: 28px;
    height: 38px;
    border: 1px solid #666;
    background-color: #252525;
    border-radius: 5px;
    margin: 6px 10px 0 0;
    font-size: 11px;
    padding: 10px 6px;
    color: #ccc;
}

.btn-cam-left {
    float: left;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    margin: 10px 10px 0 10px;
}

.btn-cam-center {
    float: left;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    margin: 10px 10px 0 0;
}

.btn-cam-right {
    float: left;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    margin: 10px 10px 0 0;
}

.size-16-9.cam-left, .size-4-3.cam-left, .size-1-1.cam-left, .size-3-4.cam-left {
    margin-left: 0 !important;
    transition: margin-left 500ms;
}

.size-16-9.cam-center { margin-left: 0% !important; transition: margin-left 500ms; }
.size-4-3.cam-center { margin-left: -17% !important; transition: margin-left 500ms; }
.size-1-1.cam-center { margin-left: -39% !important; transition: margin-left 500ms; }
.size-3-4.cam-center { margin-left: -69% !important; transition: margin-left 500ms; }

.size-16-9.cam-right { margin-left: 0% !important; transition: margin-left 500ms; }
.size-4-3.cam-right { margin-left: -33% !important; transition: margin-left 500ms; }
.size-1-1.cam-right { margin-left: -78% !important; transition: margin-left 500ms; }
.size-3-4.cam-right { margin-left: -137% !important; transition: margin-left 500ms; }

.btn-active-screen {
    background-color: #666;
    color: #eee;
}

.btn-active-align {
    background-color: #666;
    color: #eee;
}

@media (max-width: 1440px) {
    .cam {
        float: left;
        width: 20%;
        padding: 5px;
    }
}

@media (max-width: 922px) {
    .cam {
        float: left;
        width: 25%;
        padding: 5px;
    }
}

@media (max-width: 768px) {
    header {
        height: 50px;
        padding: 10px 15px;
    }

    .logo {
        width: auto;
        height: 30px;
    }

    .btn-menu {
        padding-right: 15px;
    }

    .icon-menu {
        width: auto;
        height: 24px;
        margin-top: 2px;
    }

    .grid-container {
        margin-top: 50px;
        padding: 0px 0px;
    }

    .cam {
        float: left;
        width: 33.33333333333333%;
        padding: 5px;
    }
}

@media (max-width: 544px) {
    .cam {
        float: left;
        width: 50%;
        padding: 5px;
    }
}