@font-face {
    font-family: 'Futura';
    src: url('/fonts/Futura.ttc') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'mono';
    src: url('/fonts/mono.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

canvas { display: block; }

body {
    margin: 0;
    background-color: #333;
    color: #fff;
    font-family: 'Futura', sans-serif;
    overflow: hidden;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#input-text {
    left:0;
    position: fixed;
    bottom: 20px;
    width: 30vw;
    margin-left: 35vw;
    margin-right: 35vw;
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    background-color: #1e1e1e;
    color: #fff;
    border: none;
    outline: none;
    z-index: 99999;
}

.response-notification {
    position: fixed;
    bottom: 100px;
    width: 50%;
    margin-left: 25%;
    margin-right: 25%;
    padding: 10px;
    font-size: 16px;
    background-color: #1e1e1edc;
    color: #fff;
    border: none;
    text-transform: uppercase;
}

#drawing-canvas {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
    bottom: 0;
    height: 100vh;
    width: 100vw;
}

.default-notification {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 10px;
    font-size: 12px;
    background-color: #1e1e1edc;
    color: #fff;
    border: none;
    text-transform: uppercase;
}

.formulating-notification {
    position: fixed;
    bottom: 170px;
    left: 23%;
    padding: 10px;
    font-size: 12px;
    background-color: #1e1e1edc;
    color: #fff;
    border: none;
    text-transform: uppercase;
}

.admin-request-notification {
    position: fixed;
    bottom: 150px;
    left: calc(23% + 100px);
    padding: 10px;
    font-size: 12px;
    background-color: #1e1e1edc;
    color: #fff;
    border: none;
    text-transform: uppercase;
}

.admin-history-notification {
    position: fixed;
    bottom: 190px;
    left: calc(35% + 100px);
    padding: 10px;
    font-size: 12px;
    background-color: #1e1e1edc;
    color: #fff;
    border: none;
    text-transform: uppercase;
}

.feature-mode-notification {
    position: fixed;
    padding: 10px;
    font-size: 12px;
    background-color: #1e1e1edc;
    color: #fff;
    border: none;
    text-transform: uppercase;
    top: 50px;
    left: 50px;
}

.core-system-notification {
    position: fixed;
    padding: 10px;
    font-size: 12px;
    background-color: #1e1e1edc;
    color: #fff;
    border: none;
    text-transform: uppercase;
    top: 100px;
    right: 80px;
    transform: scale(1.1);
}

/* glitch animation and style */

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    50% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(-2px, 2px);
    }
    100% {
        transform: translate(0);
    }
}

.camera-notification {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 10px;
    font-size: 12px;
    background-color: #1e1e1edc;
    color: #fff;
    border: none;
    text-transform: uppercase;
}


@keyframes dot1 {
    0%, 20% { opacity: 0; }
    30%, 100% { opacity: 1; }
}
@keyframes dot2 {
    0%, 30% { opacity: 0; }
    40%, 100% { opacity: 1; }
}
@keyframes dot3 {
    0%, 40% { opacity: 0; }
    50%, 100% { opacity: 1; }
}

.loading-dots span:nth-child(1) {
    animation: dot1 1.5s infinite;
}

.loading-dots span:nth-child(2) {
    animation: dot2 1.5s infinite;
}

.loading-dots span:nth-child(3) {
    animation: dot3 1.5s infinite;
}

/* if is not mobile or tablet */
@media (min-width: 768px) {
    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 5, 0.1),
        rgba(50, 50, 100, 0.2) 2px,
        rgba(0, 0, 10, 0.2) 3px,
        rgba(0, 0, 3, 0.1) 5px
        );
        pointer-events: none;
        z-index: 9999;
    }
}

.hstack {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hstack.compact {
    justify-content: flex-start;
}

.key-point {
    height: 2px;
    width: 2px;
    background-color: lightgray;
    position: absolute;
    z-index: 1000;
} 

.highlighter {
    position: absolute;
    z-index: 1000;
    border: 2px solid lightgray;
    border-radius: 3px;
    pointer-events: none;
}

#camera-fixed-context {
    pointer-events: none;
    z-index: 99999;
}

.face-label-1 {
    background: black;
    font-size: 12px;
    text-transform: uppercase;
    position: absolute;
    display: inline-block;
}

.image-outmeta {
    position: absolute;
    bottom: -80px;
    left: 0px;
    text-align: left;
    text-transform: uppercase;
    font-size: 8px;
}

.image-error-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: repeating-linear-gradient(
      0deg,
      rgba(5, 5, 5, 1),
      rgba(10, 10, 12, 1) 10px,
      rgba(0, 0, 3, 1) 5px
    );
}

.image-error {
    font-size: 24px;
    color: white;
    background: black;
    border: 1px solid gray;
    padding: 8px 16px;
    display: inline-block;
    margin: auto;
}

.image-meta {
    position: absolute;
    bottom: 40px;
    left: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: flex-start;
    z-index: 1000;
}

.image-meta-title {
    color: white;
    font-size: 16px;
    background: black;
    display: inline-block;
    text-transform: uppercase;
    padding: 5px 10px;
    margin: 0;
}

.image-meta-subtitle {
    color: black;
    background: white;
    font-size: 14px;
    display: inline-block;
    text-transform: uppercase;
    padding: 0 10px;
    margin: 0
}

.image-datetime {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: right;
    align-items: flex-end;
    z-index: 1000;
    right: 40px;
    top: 40px;
    font-size: 16px;
}
.image-date {
    background: white;
    color: black;
    display: inline-block;
    text-transform: uppercase;
    padding: 0px 10px;
    font-size: 14px;
    margin:0;
}
.image-timestamp {
    background: black;
    color: white;
    font-size: 16px;
    display: inline-block;
    text-transform: uppercase;
    padding: 5px 10px;
    margin:0;
}

.camera-player {
    transition: all 0.3s ease-in-out;
}

.camera-player video {
    transition: all 0.3s ease-in-out;
}

.image-player.loading, .camera-player.loading {
    max-width: 0;
    max-height: 0;
    opacity: 0;
}

.image-player, .camera-player {
    max-width: 50%;
    max-height: 50%;
    width: 50%;
    height: 50%;
    opacity: 1;
    position: relative;

    transition: padding 0.3s ease-in-out, all 0.3s ease-in-out;
    display: 'flex';
    justify-content: 'center';
    align-items: 'center';
    background: rgba(150, 150, 150, 0.2);
}

body[fullscreen=false] .image-player, body[fullscreen=false] .camera-player{
    padding: 10px;
}

body[fullscreen=true] .image-player, body[fullscreen=true] .camera-player {
    padding: 0px;
}

body[fullscreen=true] .image-content {
    width: calc(100%);
    height: calc(100%);
    padding: 0px;
    border: 0px solid transparent;
}

body[fullscreen=false] .image-content {
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.image-content.loading {
    max-height: 0px;
}

.image-content {
    object-fit: cover;
    object-position: center;
    pointer-events: auto;
    cursor: pointer;
    background: 'transparent';
    transition: padding 0.3s ease-in-out, border 0.3s ease-in-out, all 0.3s ease-in-out;
}
.image-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    background: transparent;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

body[fullscreen=true] .image-corner {
    opacity: 0 !important;
}

body[fullscreen=false] .image-corner {
    opacity: 1;
}

.image-corner.corner-1 {
    top: 0;
    left: 0;
    border-top: 1.5px solid rgba(255, 255, 255, 0.8);
    border-left: 1.5px solid rgba(255, 255, 255, 0.8);
}

.image-corner.corner-2 {
    top: 0;
    right: 0;
    border-top: 1.5px solid rgba(255, 255, 255, 0.8);
    border-right: 1.5px solid rgba(255, 255, 255, 0.8);
}

.image-corner.corner-3 {
    bottom: 0;
    left: 0;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.8);
    border-left: 1.5px solid rgba(255, 255, 255, 0.8);
}

.image-corner.corner-4 {
    bottom: 0;
    right: 0;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.8);
    border-right: 1.5px solid rgba(255, 255, 255, 0.8);
}

body[fullscreen=true] .camera-player video {
    width: 100% !important;
    height: 100% !important;
}

body[fullscreen=false] .camera-player video {
    width: calc(100% - 30px);
    height: calc(100% - 30px);
}

