@import './color.css';
@import './nav.css';
@import './title.css';
@import './table.css';
@import './form.css';
@import './footer.css';

@font-face {
    font-family: 'Jost';
    src: url(/asset/font/Jost-Regular.woff2);
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Jost', Arial;
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    background-color: var(--color-body-bg);
    color: var(--color-text);
}

header {
    position: sticky;
    top: 0;
    /* 
    .burger {
        display: none;
    } */
}

main {
    flex-grow: 1;
    padding: 16px;
}

main#welcome {
    display: flex;
    flex-direction: column;
}

main#welcome div#logo {
    text-align: center;
    padding: 16px;

    img {
        width: 100%;
        max-width: 720px;
    }
}

main#welcome #baseline {
    text-align: center;

    h2 {
        font-weight: normal;
    }

    p {
        font-size: 1.3em;
    }

    a {
        color: black;
    }

    img {
        padding-left: 8px;
        padding-right: 8px;
        height: 16px
    }
}

main#welcome #tags {
    text-align: center;
    padding: 16px;
    padding-top: 32px;

    ul {
        text-align: center;
    }

    ul li {
        list-style: none;
        display: inline-block;
        margin-top: 4px;
        border: 1px solid black;
        padding: 4px;
        border-radius: 6px;
    }
}

main#welcome #contact {
    text-align: center;

    p {
        font-size: 1.3em;
    }

    a {
        color: black;
    }

    img {
        padding-right: 8px;
        height: 16px;
    }
}

.health.flex-container {
    display: flex;
    justify-content: stretch;
    gap: 16px;
    width: 100%;

    section {
        flex-grow: 1;
    }
}

.health>section {
    border: 1px solid var(--color-of-the-year);
    border-radius: 8px;
    padding: 16px;
}

.health>section>h2 {
    border-bottom: 1px dashed;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

main#log_stat {

    div {
        display: flex;
        justify-content: space-around;

        section {
            width: 100%;
        }

        div#basicLineChart {
            height: 240px
        }

        div#pieDonut {
            height: 240px
        }
    }
}

@media (max-width: 544px) {
    header {
        position: fixed;
        display: none;
    }

    footer {
        display: none;
    }

    .health.flex-container,
    footer ul {
        flex-direction: column;
    }
}

section {
    padding-bottom: 16px;
}

.action {

    ul {
        display: flex;
        column-gap: 16px;

        li {
            list-style: none;
            display: inline-block;

            a {
                display: block;

                padding: 8px;
                padding-top: 4px;
                padding-bottom: 4px;
                border-radius: 4px;

                text-decoration: none;
                font-weight: bold;
                font-size: 0.9rem;

                color: var(--color-link);

                border-style: solid;
                border-width: 1px;
                background-color: var(--color-body-bg);
                border-color: var(--color-link);
            }
        }

        li:hover a {
            border-style: solid;
            border-width: 1px;
            border-color: var(--color-bg-main);
            background-color: var(--color-bg-main);
            color: white;
        }
    }
}

.success {
    background-color: var(--color-success);
    color: white;
}

.failure {
    background-color: var(--color-failure);
    color: white;
}

.spacer-vert {
    padding-top: 16px;
}

main.error500 pre {
    overflow-x: scroll;
    padding: 16px;
    margin-top: 8px;
    border: 1px solid var(--color-msg-error-bg);
}

pre.log-raw {
    overflow-x: auto;
}

th.selected,
td.selected {
    background-color: var(--color-primary-opposite-40);
}