body {
    background-color: #EEEEEE;
    font-family: inter;
    color: #202427;
}

body .katex {
    font-family: Katex_SansSerif,sans-serif;
}

header {
    background-color: #333333;
    padding: 10px 10px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

footer {
    background-color: #858687;
    color: #CCCCCC;
    padding: 4px;
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    font-family: "Barlow";
}

/* common */
h1, h2, h3, h4 {
    font-family: "Barlow";
    margin: 0;
}

h1 {
    font-size: 24px;
}

h2 {
    font-size: 20px;
}

h3 {
    font-size: 18px;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: inherit; /* no underline */
}

button {
    border: 2px solid #067e72;
    background-color: #0AA899;
    color: #EEEEEE;
    padding: 10px 16px;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background-color: #0eb5a4;
}

button.secondary {
    border: 2px solid #0AA899;
    background-color: #EEEEEE;
    color: #0AA899;
}

button.secondary:hover {
    background-color: #F9F9F9;
}

button.barebone {
    border: none;
    background: transparent;
    margin: 0;
    padding: 0;
    line-height: 0;
    cursor: pointer;
    color: inherit;
}

button[disabled] {
    color: #999;
    border-color: #999;
    background: #CCC;
    cursor: default;
}

button[disabled]:hover {
    background-color: initial;
}


/* Icons */
svg.icon {
    color: inherit;
    width: 24px;
    height: 24px;
}

svg.icon.x18 {
    width: 18px;
    height: 18px;
}

svg.icon.x16 {
    width: 16px;
    height: 16px;
}


/* Logo */
.logo-link {
    display: inline-flex;
    align-items: center;
}

.logo-icon {
    height: 36px;
    margin-right: 10px;
}

.logo-text {
    height: 28px;
}

/* Header Search */
.header-search-input {
    background-color: #AAA;
    outline-offset: 0;
    border: none;
    font-size: 14px;
    padding: 8px;
    outline-color: #0AA899;
}

.header-search-input:focus-visible {
    outline-color: #0AA899;
    background-color: #CCC;
    outline-offset: 0;
    outline-style: solid;
    outline-width: 2px;
}

.header-search-input::placeholder {
    color: #202427;
}

.header-search-input::-webkit-search-cancel-button {
    display: none;
}

button.barebone.mobile-search-button {
    display: none;
}

ul#search-results-list {
    position: absolute;
    background: #EEE;
    margin: 3px 0px;
    width: 300px;
    right: 10px;
}

ul#search-results-list li.list-item {
    border: none;
    border-bottom: 1px solid #999;
    padding: 10px;
    margin: 0;
}

ul#search-results-list a {
    outline-offset: 10px;
    outline-color: #0AA899;
}

/* Main */
main {
    display: flex;
    justify-content: center;
}

article {
    max-width: 500px;
    width: 500px;
    margin-top: 24px;
}

aside {
    max-width: 300px;
    margin-top: 24px;
}

.label {
    font-weight: bold;
    color: #0AA899;
}

/* Article */
article {
    padding: 0 12px;
    margin-right: 12px;
}

.question-title {
    font-weight: normal;
}

.question-title .katex {
    font-size: 1em;
}

.question-options {
    margin-top: 10px;
}

.option-box {
    margin: 4px 0;
    padding: 4px 0;
    transition-property: background, color;
    transition-duration: 1s;
    transition-delay: 0;
}

.option-box.reveal {
    color: #067e72;
    background: rgba(10, 168, 153, 0.15);
}

div.primary-cta-box {
    display: flex;
    justify-content: space-between;
    padding: 40px 0 20px;
}

/* Solution */

h2.solution {
    margin-bottom: 20px;
    text-decoration: underline;
}

.solution-box {
    background-color: #eaeac2;
    padding: 12px;
}

.solution-text {
    font-family: radio canada;
    margin: 0;
    text-wrap: wrap;
}

.solution-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin: 10px 0;
    color: #555555;
    font-weight: bold;
}

.ask-helpful, .report-issue button {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ask-helpful button.barebone:first-child {
    margin-left: 4px;
}

/* Sidebar */
aside section {
    background-color: rgba(10, 168, 153, 0.15); /*RGBA - because opacity*/
    padding: 12px;
    margin-bottom: 20px;
}

aside h3 {
    padding: 6px 0;
    display: flex;
    align-items: center;
    color: #333;
}

aside h3:first-child {
    padding-top: 0;
}

aside h3 svg {
    padding-right: 6px;
}
aside div.info {
    padding-left: 24px;
    padding-bottom: 6px;
}

aside span.concept {
    font-size: 16px;
    font-weight: bold;
    color: #067e72;
}

aside li.concept-crumb {
    font-size: 12px;
    margin: 2px 0;
}

aside span.difficulty {
    font-weight: bold;
    color: #067e72;
}

aside span.difficulty.medium {
    color: #9e830c;
}

aside span.difficulty.hard {
    color: #9D3232;
}

aside span.exam {
    font-size: 14px;
    margin-left: 8px;
    font-family: 'Barlow';
    text-transform: uppercase;
}

aside span.exam:first-child {
    margin-left: 0;
}

/* Rich List */
.rich-list {
    margin-top: 6px;
}

.rich-list .list-item {
    border: 1px solid #999999;
    padding: 6px 10px;
    margin-top: 6px;
}

.rich-list a {
    display: flex;
    align-items: center;
}

.rich-list img.thumbnail {
    width: 42px;
    height: 42px;
    margin-right: 10px;
}

.rich-list .title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    margin-bottom: 4px;
}

.rich-list .subtitle {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    color: #067e72;
}

a.contact-us {
    border-bottom: 1px dotted;
}


/* Media Query for Mobile Devices */
@media (max-width: 500px) {

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-header-row-1 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .header-search {
        width: 100%;
        margin: 12px 0 4px;
    }

    .header-search-input {
        width: 100%;
    }

    button.barebone.mobile-search-button {
        display: inline-block;
        color: #CCCCCC;
    }

    body main {
        flex-direction: column;
    }

    body article {
        max-width: unset;
        width: unset;
        margin-right: auto;
    }

    body aside {
        max-width: unset;
        padding: 0 12px;
    }

    .solution-footer {
        font-size: 14px;
    }

    .desktop, .tablet {
        display: none;
    }
  }
