@import "https://fonts.googleapis.com/css2?family=Inter:wght@500;700&display=swap";
@import "./normalize.css";

:root {
    --base: #1e1e2e;
    --text: #cdd6f4;
    --text-muted: #7f849c;
    --pink: #f5c2e7;
}

@media (prefers-color-scheme: light) {
    :root {
        --base: #eff1f5;
        --text: #4c4f69;
        --text-muted: #8c8fa1;
        --pink: #ea76cb;
    }
}

html {
    font-size: 62.5%;
    font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans,
        sans-serif;
}

@media (max-width: 684px) {
    body {
        font-size: 1.53rem;
    }
}

@media (max-width: 382px) {
    body {
        font-size: 1.35rem;
    }
}

body {
    background: var(--base);
    color: var(--text);

    font-size: 1.8rem;
    line-height: 1.618;

    /*max-width: 38em;*/
    margin: auto;
    padding: 13px;
}

h1,
h2,
h3 {
    line-height: 1.1;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-word;
}

button {
    display: inline-block;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    background-color: var(--pink);
    color: var(--base);
    border-radius: 1px;
    border: 1px solid var(--pink);
    cursor: pointer;
    box-sizing: border-box;
}

button[disabled] {
    opacity: 0.5;
    cursor: default;
}

footer {
    margin-top: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-muted);
}

footer a {
    color: var(--text-muted);
    text-decoration: underline;
}

#previewCanvas,
#preview img {
    width: 100%;
    image-rendering: pixelated;
    position: absolute;
    user-select: none;
}

#preview {
    width: 100%;
    max-width: 512px;
    height: 512px;

    position: relative;
}

#selections > div {
    overflow-y: scroll;
    max-height: 20vh;
}

.form-control {
    display: grid;
    grid-template-columns: 1em auto;
    gap: 0.5em;
}

.form-control + span {
    color: var(--text-muted);
    margin-top: -0.5em;
}

.radio-group {
    display: flex;
    gap: 0.5em;
    margin-top: -0.5em;

    white-space: nowrap;
}

.container {
    display: flex;

    flex-direction: column;
    align-items: center;

    gap: 1em;

    margin: 2em;
    flex: 1;
}

@media (min-width: 768px) {

    #main-container {
        margin: 0 5em;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    #header1 {
        margin: 0 2.5em;
    }

    .container {
        flex: 1;
    }
}