﻿body {
}

a, button {
    cursor: pointer;
}

header {
    background-color: #086863;
    background-image: url(bg.svg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
footer {
    background-color: #021716;
    background-image: url(footer.svg);
    background-position: right top;
    background-repeat: no-repeat;
    background-size: contain;
}
main {
    background-color: #fcfcfc;
}
nav {
    height: 56px;
}
.main-container {
    padding-top: 56px;
}
#timeline-container {
    height: 110px;
    cursor: grab;
}
#timeline-container:active,
#timeline-container:has(.timeline-item:active) {
    cursor: grabbing;
}
#timeline {
    background-image: linear-gradient(0deg, transparent, rgba(255,255,255,0.9), rgba(255,255,255,0.8), transparent),
        linear-gradient(90deg,
            #2d3239 0px, transparent 1px,
            transparent 9px, #c6cbd2 10px, transparent 11px,
            transparent 19px, #c6cbd2 20px, transparent 21px,
            transparent 29px, #c6cbd2 30px, transparent 31px,
            transparent 39px, #c6cbd2 40px, transparent 41px,
            transparent 49px, #c6cbd2 50px, transparent 51px,
            transparent 59px, #c6cbd2 60px, transparent 61px,
            transparent 69px, #c6cbd2 70px, transparent 71px,
            transparent 79px, #c6cbd2 80px, transparent 81px,
            transparent 89px, #c6cbd2 90px, transparent 91px,
            transparent 99px, #2d3239 100px);
    background-repeat: repeat-x;
    background-position: left top;
    background-size: 100px 100%;
    width: 100000px;
}

#timeline-container,
textarea,
input[type=text],
input[type=time] {
    border-radius: var(--bs-border-radius) !important;  
    border-color: #bdbdbd !important;
    --bs-border-opacity: 1;
    border-width: var(--bs-border-width) !important;
    border-style: var(--bs-border-style) !important;
}

#timeline-container:focus,
textarea:focus,
input[type=text]:focus,
input[type=time]:focus {
    box-shadow: none !important;
    border-color: var(--bs-primary-hover-bg) !important;
}

video {
    border-top-right-radius: var(--bs-card-border-radius);
    border-top-left-radius: var(--bs-card-border-radius);
}

#editor {
    max-height: calc(100vh - 72px);
}


.form-label {
    box-sizing: border-box;
    position: relative;
    display: block;
    background-color: #fff;
    height: 10px;
    padding-left: 2px;
    padding-right: 2px;
    border-radius: 2px;
    line-height: 10px;
    font-size: 10px;
    width: fit-content;
    margin-bottom: -4px;
    margin-left: 6px;
    z-index: 5;
    color: rgba(0, 0, 0, 0.8);
}

.w-80px {
    width: 80px;
}

#detach-button-host {
    display: none !important;
}


.timeline-item {
    position: absolute;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background-color: var(--bs-dark) !important;
    color: var(--bs-dark-foreground) !important;
    text-align: left;
    padding: 2px 14px;
    border-radius: var(--bs-border-radius-sm) !important;
    font-size: var(--bs-action-font-size) !important;
    line-height: var(--bs-action-sm-line-height) !important;
    cursor: pointer;
    user-select: none;
    height: 25px;
    vertical-align: top;
}
    .timeline-item:before,
    .timeline-item:after {
        content: "⠿";
        position: absolute;
        font-family: monospace;
        color: var(--bs-dark-foreground);      
        font-size: var(--bs-action-font-size) !important;
        line-height: var(--bs-action-sm-line-height) !important;
        opacity: 0.5;
        bottom: 0px;
        cursor: ew-resize;
    }
    .timeline-item:before {
        left: 2px;
    }
    .timeline-item:after {
        right: 2px;
    }
    .timeline-item:active,
    .timeline-item:active:before,
    .timeline-item:active:after {
        cursor: grabbing;
    }

.timeline-thumb {
    position: absolute;
    display: inline-block;
    width: 64px;
    height: 64px;
    bottom: 2px;
    transform: translateX(-50%);
    user-select: none;
}