@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #000033 0%, #000000 100%);
    background-attachment: fixed;
    color: #FFF;
    font-family: "Noto Serif", serif;
}

.pageContent {
    max-width: 65ch;
    min-width: 0;
    width: 100%;
}

#maincontainer {
    width: fit-content;
    max-width: calc(100% - 2rem);
    box-sizing: border-box;

    margin: 4rem auto;
    padding: 2rem;

    background: #000;
    border: 8px solid #fff;
}

.header {
    display: grid;
    grid-template-columns: auto 1fr;
}

.logo {
    aspect-ratio: 1;
    height: 100%;
    background: linear-gradient(180deg,
            #0f9b0f 0%,
            #000 100%);
}

.header-content {
    padding-left: 1rem;
}

.header-content h1 {
    margin: 0;
}

.header-content p {
    max-width: 20rem;
}

.m-0 {
    margin: 0;
}

.mt-0 {
    margin-top: 0;
}

a:not(.defaultStyling) {
    color: #FFF !important;
}

.inline {
    display: grid;
    grid-template-columns: auto 1fr;
    min-width: 0;
}

.menu {
    text-align: right;
    border-left: #FFF 1px solid;
    margin-left: 2rem;
    padding-left: 2rem;
    min-width: 0;
}

@media (max-width: 640px) {
    #maincontainer {
        margin: 1rem auto;
        padding: 1rem;
        border-width: 4px;
    }

    .inline {
        grid-template-columns: 1fr;
    }

    .menu {
        text-align: left;
        border-left: none;
        border-top: #fff 1px solid;
        margin-left: 0;
        margin-top: 1.5rem;
        padding-left: 0;
        padding-top: 1rem;
    }

    .gimmick-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}

.gimmickform {
    padding: 1rem;
    border: #fff 1px solid;
    width: fit-content;
    height: fit-content;
}

.gimmickform.draw-form {
    width: 100%;
    box-sizing: border-box;
}

#paintgimmcanvas {
    touch-action: none;
    width: 100%;
}

#paintgimmcanvas canvas {
    width: 100%;
    height: auto;
    display: block;
    cursor: crosshair;
    background: #fff;
    touch-action: none;
}

.gimmick-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin: 0.5rem 0;
}

.gimmick-controls input[type="range"] {
    width: 6rem;
}