html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #eee;
    font-family: system-ui, sans-serif;
    font-size: 16px;
    text-align: center;
    color: #222;
}

header {
    padding: 20px;
    background-color: #222;
    color: white;
}

h1 {
    margin: 0;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

h2 {
    margin: 0;
    font-weight: normal;
}

a {
    color: inherit;
    text-decoration: none;
}

main {
    margin: auto;
    max-width: 700px;
    padding: 20px;
}

#screen-editor {
    display: none;
}

.sheet {
    width: 100%;
    background-color: white;
}

.sheet .label {
    fill: transparent;
    stroke: #ccc;
}

.templates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.templates .template {
    cursor: pointer;
}

.templates .template .sheet {
    border: 1px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.templates .template:hover .sheet {
    border: 1px solid #f59;
}

.templates .template .sheet .label {
    stroke-width: 0.05;
}

.templates .template .count {
    margin: 0.25em 0 0.1em 0;
    font-weight: bold;
}

.editor .sheet {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.editor .sheet .label {
    stroke-width: 0.02;
}

.editor .sheet .label:hover,
.editor .sheet image + .editor .sheet .label {
    stroke: #f59;
}

.toolbar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

#generate {
    display: inline-block;
    border: 0;
    background-color: #f59;
    color: white;
    border-radius: 5px;
    padding: 0.5em 1em;
    font-size: 1.25em;
    cursor: pointer;
}

@media (min-width: 758px) {
    .toolbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}