body {
    color: #222;
    font-family: sans-serif;
    line-height: 1.3;
    font-size: 16px;
    background-color: #ddd;
}


.panel {
    background-color: #f8f8f8;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, .5);
    margin: 1em;
}

@media only screen and (min-width: 850px) {
    .flex-container {
        display: flex; 
        flex-direction: row;
        align-items: flex-start;
    }

    .ingredient-panel {
        flex-shrink: 0;
    }
}


.panel h2 {
    background-color: #9F509F;
    border-top: 0.25em solid #BD75BF;
    padding: 0.15em 0em 0.2em 1em;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, .5);

    color: #FFF;
}

.panel-body {
    padding: 1em;
}

h1 {
    font-family: sans-serif;
    font-size: 40px;
    font-weight: 200;
    color: #333;
    margin-top: 0;
    margin-bottom: 0;
}

h2 {
    font-family: sans-serif;
    font-size: 35px;
    font-weight: 200;
    color: #333;
    margin-top: 0;
    margin-bottom: 0;
}

ol, ul {
    margin-top: 0;
}

.ingredient-list {
    list-style: none;
    padding-left: 0;
}

.ingredient-list > li {
    margin-bottom: 9px;
}

.instruction-list {
    padding-left: 1.5em;
    list-style: none;
    counter-reset: instruction-counter;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.instruction-list > li {
    counter-increment: instruction-counter;
    margin-bottom: 9px;
    display: flex;
}

.instruction-list > li .ingredient-list {
    padding-left: 1em;
}

.instruction-list > li::before {
    content: counter(instruction-counter);
    font-weight: bold;
    margin-right: 1rem;
    line-height: 1;
    font-size: 36px;
    font-weight: 200;
}

.ingredient-checkbox {
    -webkit-appearance: none;
    background-color: #fafafa;
    border: 1px solid #cacece;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05);
    padding: 12px;
    margin:0;
    margin-bottom: -7px;
    border-radius: 3px;
    display: inline-block;
    position: relative;
}

.ingredient-checkbox:active, .ingredient-checkbox:checked:active {
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px 1px 3px rgba(0,0,0,0.1);
}

.ingredient-checkbox:checked {
    background-color: #f3eaff;
    border: 1px solid #7830d1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05), inset 15px 10px -12px rgba(255,255,255,0.1);
    color: #99a1a7;
}

.ingredient-checkbox:checked:after {
    content: '\2713';
    font-size: 32px;
    position: absolute;
    top: -18px;
    left: 3px;
    color: #6a28ba;
}

input[type="checkbox"]:checked + label {
    color: #888;
}
