@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    box-sizing: border-box;
    print-color-adjust: exact;
}

body {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-optical-sizing: auto;
}

h1, p {
    margin: 0.5rem 0;
}

body > div {
    /* Question space */
    break-inside: avoid;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 1rem;
    margin-bottom: 2rem;
}
body > div > p {
    /* Question instruction */
    flex: 1 0 100%;
    font-weight: bolder;
}
body > div > div, body > div > h1 {
    flex: 1 0 max-content;
}
div .draft {
    /* Draft space */
    padding-bottom: 10rem;
}
table {
    border-collapse: collapse;
    width: 100%;
    text-align: center;
    padding: 0.5rem;
}
div code {
    display: block;
    width: 100%;
    max-width: 50vw;
    margin-top: 0.5rem;
    margin-right: 0;
    margin-left: auto;
    height: 4rem;
    border: 1px solid black;
    padding: 0.5rem;
    font-size: 0.7rem;
}

/* Style for each question type */
.measurement span {
    display: block;
    margin: 1rem;
    height: 1rem;
    border: 0.5rem solid black;
}

.area table {
    width: auto;
}
.area table td {
    border: 1px solid black;
    width: 1.5rem;
    height: 1.5rem;
}

.fraction table {
    width: auto;
}
.fraction td {
    border: 1px solid black;
    width: 1.5rem;
    height: 1.5rem;
}