@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 div#baseline {
    text-align: center;

    p {
        font-size: 1.3em;
    }
}

main#welcome div#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 div#contact {
    text-align: center;

    p {
        font-size: 1.3em;
    }
}

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

    section {
        flex-grow: 1;
    }
}

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

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

    footer {
        display: none;
    }

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

    /* header ul li:not(.burger) {
        display: none;
    }

    header li.burger {
        display: block;
    }

    header li.burger:active {
        header li {
            display: block;
        }

    } */

}

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;
}

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

.stabilo {
    /** background-color: yellow; */
}

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;
}