@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

@font-face {
    font-family: 'Material Symbols Rounded';
    font-style: normal;
    src: url("https://adthoughtsglobal.github.io/assets/MaterialSymbolsRounded.woff2") format('woff2');
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--dull-bg);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--high-bg);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #ffffffab transparent;
}

.symb {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

html {
    height: 100%;
    width: 100%;
}

body {
    height: 100%;
    width: 100%;
    margin: 0;
    background-color: #111113;
    color: white;
    display: flex;
    flex-direction: column;
    font-size: 1em;
    font-family: "IBM Plex Sans", sans-serif;
}

:root {
    --dull-bg: #111113;
    --main-bg: #18191b;
    --high-bg: #33363b;
    --box-crisp: 1px solid #393b41;
}

.main {
    display: flex;
    height: 100%;
    flex-direction: column;
    gap: .5em;

    &>canvas {
        flex: 1;
        height: 0;
        object-fit: contain;
    }

    &>.bottom_part {
        padding: 1em;
        background-color: var(--main-bg);
        display: flex;
        flex-direction: row;
        gap: .5em;
        align-items: flex-start;
        height: 4em;

        &>.controlbtns {
            display: flex;
            gap: 1px;
            border: var(--box-crisp);
            overflow: hidden;
            border-radius: 1em;

            &>.btn {
                background-color: var(--high-bg);
                padding: .5em;
                cursor: pointer;

                &:hover {
                    filter: brightness(140%);
                }
            }
        }

        &>div#timeline {
            flex: 1;
            overflow: visible;
            overflow-x: scroll;
            display: flex;
            flex-direction: row;
            align-items: stretch;
            gap: .5em;
            padding: .5em;
            padding-top: 0;

            &>.clip {
                min-width: 100px;
                min-height: 2.5em;
                background: #924492;
                position: relative;
                display: flex;
                flex-direction: row;
                gap: .5em;
                justify-content: space-between;
                align-items: center;
                padding: 0 .5em;
                border-radius: 1em;

                &>.symb {
                    text-decoration: none;
                    color: white;

                    &.ic {
                        flex: 1;
                    }

                    &.clbtn {
                        display: flex;
                        background: #0000007a;
                        padding: 2px;
                        font-size: 20px;
                        align-items: center;
                        border-radius: .7em;
                        justify-content: center;
                        border: 0;
                    }
                }

            }
        }
    }
}

dialog {
    padding: 4em;
    border: none;
    background: rgb(0, 0, 0);
    height: calc(100% - 8em);
    width: calc(100% - 8em);

    & video {
        border-radius: 1em;
    }

    & button {
        padding: 0.5em;
        background-color: var(--main-bg);
        display: flex;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
    }
}