/* =========================
   BASE
   ========================= */

* {
    box-sizing: border-box;
}

html {
    font-size: 18px;
}

body {
    margin: 0;
    padding: 0;

    background: #ffffff;
    color: #111111;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.6;
}


/* =========================
   APP
   ========================= */

#app {
    width: 100%;
    max-width: 700px;

    margin: 0 auto;

    padding:
        max(24px, env(safe-area-inset-top))
        20px
        max(40px, env(safe-area-inset-bottom))
        20px;
}


/* =========================
   SCREENS
   ========================= */

.screen {
    width: 100%;
}

.hidden {
    display: none;
}


/* =========================
   HEADINGS
   ========================= */

h1 {
    margin: 0 0 12px;

    font-size: 2rem;
    line-height: 1.25;
}

h2 {
    font-size: 1.5rem;
}

.intro,
.instruction {
    margin: 0 0 28px;

    color: #333333;
}


/* =========================
   NAVIGATION
   ========================= */

nav {
    display: flex;
    flex-direction: column;

    gap: 10px;
}


/*
    These are deliberately large.

    There are only 12 domain controls on
    the first screen and 5/6 controls on
    the level screen.
*/

button {
    width: 100%;

    min-height: 58px;

    padding: 14px 16px;

    border: 2px solid #222222;
    border-radius: 8px;

    background: #ffffff;
    color: #111111;

    font: inherit;
    font-weight: 600;

    text-align: left;

    cursor: pointer;
}

button:focus-visible {
    outline: 4px solid #005fcc;
    outline-offset: 3px;
}

button:active {
    background: #eeeeee;
}


/* =========================
   CRITERIA
   ========================= */

#criteria-content {
    font-size: 1.15rem;

    /*
        Deliberately no interactive elements
        inside the criteria.
    */
}

#criteria-content p {
    margin: 0 0 24px;
}

#criteria-content ul {
    margin-top: 0;
    padding-left: 1.4em;
}

#criteria-content li {
    margin-bottom: 18px;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 480px) {

    html {
        font-size: 17px;
    }

    #app {
        padding-left: 16px;
        padding-right: 16px;
    }

    h1 {
        font-size: 1.8rem;
    }

    button {
        min-height: 62px;
    }
}
