@import "normalize.css";
@import "sakura-vader.css";
@import "highlight.css";

hr {
    width: 100%;
}

body {
    box-sizing: border-box;
    width: 100%;
    height: 100vh;
    max-width: 100%;
    max-height: 100vh;

    display: flex;
    flex-direction: row;

    #content {
        box-sizing: border-box;
        flex-grow: 1;
        height: 100%;
        overflow: auto;
        border: 1px solid #40363a;
        border-right: unset;
        display: flex;
        flex-direction: column;

        #filename {
            padding-left: 1rem;
        }

        pre {
            box-sizing: border-box;
            margin: 0;
            flex-grow: 1;
            overflow: auto;
            max-width: 100%;
            max-height: 100%;
        }

        #mediabox {
            flex-grow: 1;
            display: flex;
            justify-content: center;
        }
    }

    #sidebar {
        box-sizing: border-box;
        box-sizing: border-box;
        flex-shrink: 0;
        padding: 1rem;
        width: 30rem;
        height: 100%;
        border: 1px solid #40363a;
        display: flex;
        flex-direction: column;

        h3 {
            margin-top: 0;
            text-align: center;
        }

        form {
            align-self: center;
        }

    }
}

audio {
    max-width: 40rem;
    min-width: 0;
    flex-grow: 1;
    align-self: center;
}

img,
video {
    object-fit: scale-down;
}

dialog {
    background-color: #120c0e;
    color: #d9d8dc;
    border-color: #eb99a1;

    form {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}