body {
    font-family: Arial, sans-serif;
    margin: 0px;
}

.header {
    background-color: #f1f1f1;
    padding: 6px 10px;
    box-shadow: #2e2e2e63 1px 1px 2px;
    overflow: hidden;
}

.header a {
    float: left;
    color: black;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
}

button[value="confirm"] {
    background-color: #5bb883;
}

button[type="submit"] {
    color: white;
    border: none;
    padding: 8px;
    width: 100%;
    border-radius: 6px;
    margin-top: 8px;
}

button:hover {
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

button {
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    cursor: default;
}

dialog {
    border-width: 1px;
    border-color: gray;
    border-radius: 10px;
    box-shadow: 2px 2px 6px 0px rgba(0, 0, 0, 0.5);
}

.activated {
    background-color: gainsboro;
}

.header a:hover {
    background-color: #ddd;
}

.header a.logo {
    font-size: 22px;
    background-image: url('../img/eneverre-small.svg');
    background-size: contain;
    background-repeat: no-repeat;
    padding-left: 46px;
    background-size: 28px;
    background-position: 10px 50%;
}

.header-right {
    float: right;
}

.icon-button {
    margin-top: 2px;
}

#main-container {
    display: flex;
    margin: 6px;
}

#empty-container {
    width: 100%;
    align-content: center;
    text-align: center;
}

#empty-container img {
    opacity: 0.5;
}

#empty-message {
    font-size: 20px;
    margin-top: -54px;
}

.hide-container {
    display: none;
}

#cameras-container {
    padding: 10px
}

.camera-selector {
    width: 200px;
    background: #444;
    border: 1px solid #2e2e2e;
    border-radius: 10px;
    box-shadow: #2e2e2e63 3px 3px 4px;
    margin-bottom: 12px;
}

.camera-selector:hover {
    box-shadow: #2e2e2ec9 3px 3px 4px;
}

.video-thumbnail {
    width: 100%;
    background: gray;
    border-radius: 10px 10px 0px 0px;
}

.thumbnail-caption {
    padding: 2px;
    margin-left: 12px;
    color: white;
}

#live-video-container,
#playback-video-container {
    position: relative;
    padding: 10px;
    width: 100%;
    height: 100%;
}

#live-video,
#playback-video {
    width: 100%;
    height: 100%;
    background: black;
    border-radius: 15px;
}

.live-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

#timeline {
    width: 100%;
    height: 90px;
}

#ptz-overlay:hover .jst {
    visibility: visible;
}

.jst {
    width: 40vh;
    height: 40vh;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    visibility: hidden;
}

.jst a {
    position: absolute;
    left: 50%;
    top: 50%;
    cursor: pointer;
}

.jst a.s {
    transform-origin: 100% 100%;
    width: 5000px;
    height: 5000px;
    margin-top: -5000px;
    margin-left: -5000px;
    background-color: #88888833;
}

.jst a.s:hover {
    background-color: #ff880088;
}

.jst a.s:active {
    background-color: #ff8800ff;
}

.jst a.s:nth-child(1) {
    transform: rotate(67.5deg) skew(45deg);
}

.jst a.s:nth-child(2) {
    transform: rotate(112.5deg) skew(45deg);
}

.jst a.s:nth-child(3) {
    transform: rotate(157.5deg) skew(45deg);
}

.jst a.s:nth-child(4) {
    transform: rotate(202.5deg) skew(45deg);
}

.jst a.s:nth-child(5) {
    transform: rotate(247.5deg) skew(45deg);
}

.jst a.s:nth-child(6) {
    transform: rotate(292.5deg) skew(45deg);
}

.jst a.s:nth-child(7) {
    transform: rotate(-22.5deg) skew(45deg);
}

.jst a.s:nth-child(8) {
    transform: rotate(22.5deg) skew(45deg);
}

#ptz-home {
    clip-path: circle(30%);
    width: 60%;
    height: 60%;
    margin-left: -30%;
    margin-top: -30%;
    background: #808080;
}

#ptz-home:hover {
    background: #ff330088;
}

#ptz-home:active {
    background: #ff3300ff;
}

.loader {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid lightblue;
    border-right-color: orange;
    animation: l2 1s infinite linear;
    position: absolute;
    visibility: hidden;
}

@keyframes l2 {
    to {
        transform: rotate(1turn)
    }
}