html {
    font-family: 'Cambo', serif;
    font-size: 18px;
    text-align: center;
    background-color: #0c2538;
    color: #ffffff;
}

h1 {
    font-size: 1.75em;
    margin: 1em auto .5em auto;
    color: #ede059;
}

h2 {
    font-size: .75em;
    margin: 1em auto 2em auto;
    display: none;
}

h3 {
    color: #eeee99;
    margin: auto auto .3em auto;
}

a {
    color: #bccc9e;
}

aside {
    max-width: 800px;
    margin: 1em auto;
    line-height: 1.75em;
}

aside p {
    text-align: left;
    margin: 0 auto .5em auto;
}

.write-ins {
    display: none;
    margin: 0 auto 2em auto;
    max-width: 600px;
    width: 100%;
}

.write-in::after {
    content: "";
    padding-right: 4em;
    margin-left: .5em;
    border-bottom: 1px solid black;
    margin-right: 1em;
}

.write-in.long::after {
    padding-right: 12em;
}

form {
	margin: 1em auto 4em auto;
	border: 2px solid #638270;
    max-width: 800px;
    font-size: .9em;
    background-color: #2b434f;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.form-line {
    margin: .5em auto;
}

form .controls {
    max-width: 70%;
    padding: 1em 15% 1em 0;
}

form button {
    font-size: 2em;
}

.problems {
    text-align: center;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, 5em);
    grid-auto-rows: minmax(5em, auto);
    align-items: start;
    justify-items: center;
    max-width: 800px;
    counter-reset: count;
    grid-row-gap: 3em;
    grid-column-gap: 4em;
}

.problem {
    font-family: 'Inconsolata', monospace;
    display: grid;
    grid-template-columns: fit-content(1em) fit-content(1em) fit-content(10em);
    /*grid-auto-rows: minmax(1em, auto);*/
    grid-template-rows: minmax(1em, auto);
    counter-increment: count;
    padding-top: 1em;
}

/* counter */
.problem::before {
    content: counters(count, "------");
    grid-row: 1;
    grid-column: 1;
    position: relative;
    left: -1em;
    top: -1em;
    border: 1px solid #bcc98e;
    border-radius: 50%;
    padding: 5px;
    width: 1em;
    height: 1em;
    text-align: center;
    font-size: .75em;
    color: #bcc98e;
}

.problem span {
    display: block;
    justify-self: start;
}

.problem .number {
    grid-column: 3;
    justify-self: end;
    padding-left: .5em;
}

.problem .operator {
    grid-column: 2;
    grid-row: 2;
    justify-self: middle;
}

.problem .equals {
    height: 0;
    border-bottom: solid 1px #ffffff;
    overflow: hidden;
    grid-column: 2 / span 2;
    grid-row: 3;
    justify-self: auto;
    align-self: start;
}

.problem .answer {
    grid-column-end: -1;
    grid-column-start: 1;
    justify-self: end;
}

.hide_answers .answer {
    display:none;
}

@media print {
    @page {
        margin: 0;
    }
    body {
        color: #000000;
        background-color: ffffff;
        margin: 0;
    }
    h1 {
        color: #000000;
    }
    h2 {
        display: block;
    }
    form, aside {
        display: none;
    }
    .write-ins {
        display: flex;
    }
    .problem .equals {
        border-bottom: solid 1px #000000;
    }
    .problem::before {
        border: 1px solid #918f8f;
        color: #918f8f;
    }
}