html,
body {
    margin: 0;
}

body {
    font-family: 'Open Sans', Verdana, sans-serif;
    background-color: white;
}

header
{
	padding: 10px;
	background-color: #455460;
    display: flex;
    align-items: center;
}

header #titleicon {
    background-color: #fc721e;
    width: 30px;
    height: 30px;
    border-radius: 3px;
    margin-right: 10px;
}

.interactive {
    background-color: #e6e7e8;
    padding: 20px;
}

.container {
    border-radius: 10px;
    background-color: white;
    margin-bottom: 20px;
}

/* key, income ---------------------------- */
#key, #income, .income, #baseVars {
    background-color: white;
    border-radius: 0 0 10px 10px;
    padding: 10px;
    font-size: .8em;
    text-align: left;
}

.income {
    padding: 0;
}

#key {
    padding-bottom: 0;
}

#keyButtons {
    display: flex;
    align-items: center;
    margin-left: 0;
    flex-wrap: wrap;
}

#key p,
#baseVars p {
    margin-top: 0;
    font-size: 14.4px;
}
#income {
    display: flex;
}

.income .visible {
    flex-direction: column;
    min-width: 220px;
}

#key h2,
#baseVars h2 {
    margin-right: 10px;
    color: black;
}

#key .icon,
.income .icon,
#income .icon {
    border-radius: 2px;
    width: 20px;
    height: 20px;
    margin-right: 3px;
    display: block;
    float: left;
}

.icon.years {
    text-align: center;
    font-weight: bold;
    background: #138496;
    line-height: .8em;
    padding-top: 3px;
    height: 27px;
}

.icon.years em {
    clear: left;
    display: block;
    font-size: 9px;
    white-space: nowrap;
    color: #fff;
    font-weight: normal;
    font-style: normal;
}

.income .icon,
#income .icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.income span,
#income span {
    font-size: 1.2em;
    display: inline-block;
    margin-left: 5px;
    background-color: #ddd;
    height: 15px;
}

#income span img,
.income span img {
    display: inline-block;
}

#income strong,
.income strong {
    font-size: 1.2em;
    font-weight: normal;
}

#income h2 {
    color: black;
}

.income h2 {
    color: black;
    font-size: 1.4em;
}

#key button.small {
    padding: 0px 10px 0px 0;
    overflow: hidden;
    display: flex;
    border: none;
    background-color: white;
    height: 27px;
    align-items: center;
    border: 1px solid #5a8b3e;
    color: #2f4c1c;
    margin-bottom: 10px;
}

#copycode {
    margin-right: 5px;
    border-radius: 0 0 10px 0;
    font-size: 1em;
    padding: 10px 10px 25px 10px;
    font-weight: bold;
}

button.small.blue.copyExp {
    margin: -20px -20px 5px 0;
    border-radius: 0 0 0 10px;
    float: right;
    padding-left: 7px;
    padding: 10px 10px 25px 10px;
    font-size: 1em;
    font-weight: bold;
}

#key button.small.selected,
#key button.small.selected:focus,
#key button.small.selected:hover {
    background-color: #5a8b3e;
    color: white;
}

#key button.small.brown {
    border-color: #896140;
    color: #543925;
}

#key button.small.brown.selected,
#key button.small.brown.selected:focus {
    background-color: #896140;
    color: white;
}

#key button.small:hover,
#key button.small:focus {
    background-color: #d7eaca
}

#key button.small.brown:hover,
#key button.small.brown:focus {
    background-color: #e5d0c1
}

#key button.small strong {
    font-size: 1.2em;
    padding-top: 3px;
    font-weight: normal;
}

#key button.small .icon {
    border-radius: 0;
    display: block;
    height: 25px;
    width: 25px;
}

#income div,
.income .visible div {
    margin-left: 15px;
    text-align: left;
    display: flex;
    align-items: center;
    line-height: 1.2em;;
}

.income .visible div {
    margin-left: 0;
    margin-bottom: 10px;
}

/* recreate experiment -------------- */
#codeWrapper {
    text-align: left;
    padding: 20px;
    background-color: #2f3a42;
}

#codeHolder {
    border-radius: 20px;
    background-color: white;
}

#loadExperiment,
#currentExperiment {
    padding: 20px;
}

#codeWrapper p {
    margin-top: 0;
}

#loadExperiment #setupCodeWrap {
    display: flex;
}

#loadExperiment #setupCode {
    flex: 1 1 auto;
}

#loadExperiment #setupCodeBtn {
    margin-left: 10px;
    flex: 0 0 auto;
    margin-right: 0;
}

#currentExperiment {
    border-radius: 0 0 10px 10px;
}

#code {
    background-color: #efefef;
    border-radius: 10px;
    padding: 10px;
    font-size: 5px;
    line-height: 1em;
    overflow-wrap: anywhere;
    font-family: monospace;
}

.codeplaceholder {
    font-size: 14px;
    font-family: 'Open Sans', Verdana, sans-serif;
    padding-top: 10px;
    height: 20px;
    display: block;
    text-align: center;
}

#setupWarning {
    padding: 10px;
    margin-top: 5px;
    border-radius: 10px;
    background-color: #ec7f74;
}

/* rules ---------------------------- */
#rules {
	background-color: #455460;
    padding: 20px;
    color: white;
}

#rules h3 {
    font-size: 1.2em;
    margin-bottom: 1em;
    color: white;
}

#rules p {
    font-size: .8em;
}

#rules div {
    display: flex;
    align-items: center;
    max-width: 920px;
    margin-bottom: 30px;
}

#rules div.indent {
    margin-left: 43px;
    margin-top: -15px;
    align-items: flex-start;
}

#rules div p {
    margin-top: 0;
    margin-bottom: 0;
}

#rules div.indent p {
    margin: 0;
}

#rules div div.orangutan {
    display: block;
    text-align: center;
    margin-bottom: 0;
    margin-right: 10px;
}

#rules div div.orangutan .icon {
    margin-right: 0;
}

#rules div div.orangutan span {
    display: block;
    font-size: 9px;
    white-space: nowrap;
    color: #c8d4db;
}

#rulesBtn {
    float: right;
    height: 25px;
    margin-right: 0;
    padding-top: 20px;
    display: inline-block;
    background-color: #e05f10;
}

#backToTop {
    float: none;
    height: 25px;
    margin-right: 0;
    padding-top: 20px;
    display: inline-block;
}

.icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}


.indent .icon {
    width: 20px;
    height: 20px;
}

.collabshow .indent {
    align-items: center;
}

#rules strong {
    color: #fa8b48;
}


input[type=number].icon.input  {
    height: 20px;
    font-size: 11px;
    width: 31px;
    padding: 0 1px 2px 3px;
    margin-right: 10px;
    background: white;
    color: black;
    border-radius: 2px;
    border: none;
}

input[type=number].icon.input::-webkit-inner-spin-button {
    opacity: 1;
    height: 20px;
}

input[type=checkbox].icon.input {
    background-color: #2b76f6;
    opacity: 1;
    display: block;
    color: white;
    margin: 0 10px 0 0;
    width: 2em;
    height: 2em;
    border: 1px solid white;
}

.icon.border {
    border-radius: 2px;
    border: 1px solid white;
}

.icon.float_none {
    float: none;
    margin: 0;
    vertical-align: text-bottom;
    width: 1.3em;
    height: 1.3em;
}

footer {
    padding: 20px;
    color: white;
    background-color: black;
    font-size: .8em;
}

/* --------------------------------------------- */
/* --------------------------------------------- */
/* SPACING ------------------------------------- */

.padding_20 {
    padding: 20px;
}

.margin_top_30 {
    margin-top: 30px;
}

.margin_top_20 {
    margin-top: 20px;
}

.padding_bottom_0 {
    padding-bottom: 0;
}

.margin_bottom_0 {
    margin-bottom: 0;
}

.margin_bottom_20 {
    margin-bottom: 20px;
}

.margin_top_0 {
    margin-top: 0;
}

.margin_left_10 {
    margin-left: 10px;
}

.flex {
    display: flex;
}

/* --------------------------------------------- */
/* --------------------------------------------- */
/* TEXT ---------------------------------------- */

h1
{
	font-weight: 700;
	text-align: left;
	color: #fff;;
	font-size: 1.5em;
    margin: 0;
}

h2
{
	font-family: "Khula", "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #138496;
	font-weight: bold;
	font-size: 1.3em;
    margin: 0;
}

h2 em {
    font-weight: normal;
    font-style: normal;
}

h3
{
	font-family: "Khula", "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: black;
	font-weight: bold;
	font-size: 1.1em;
    margin: 0;
}

h4 {
    font-weight: bold;
    font-size: .8em;
    margin: -5px 0 20px 0;
}

a,
a:link,
a:visited {
    color: #138496;
}

a:hover,
a:active {
    color: #138496;
    cursor: pointer;
}

p,
li,
td,
label,
input {
    line-height: 1.3em;
    font-size: .9em;
    font-family: 'Open Sans', Verdana, sans-serif;
}

.hidden {
    display: none!important;
}

.visible {
    display: block;
}

li.visible {
    display: list-item;
}

ol li {
    line-height: 1.8em;
}

.userReproduce {
    text-transform: uppercase;
}

.flex.visible {
    display: flex;
}

.inline_block {
    display: inline-block;
}

.circle {
    width: 10px;
    height: 10px;
    border-width: 1px;
    border-style: solid;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
}

label {
    font-size: .8em;
}

/* .variable {
    border-radius: 10px;
    padding: 10px;
    background-color: #e6e7e8;
    display: flex;
    align-items: center;
} */

.variableWrap {
    display: flex;
    align-items: center;
}

.variable {
    border-radius: 5px;
    padding: 5px;
    background-color: #e6e7e8;
    display: flex;
    align-items: center;
}

.variable:first-of-type {
    margin-right: 10px;
}

.variable label {
    flex: 1 1 auto;
    margin-left: 5px;
}

.variable div {
    flex: 0 0 auto;
    text-align: center;
}

.variable div input[type=number] {
    padding: 5px 0 5px 0;
    width: 50px;
    text-align: center;
}

.variable div input[type=number]::-webkit-inner-spin-button {
    opacity: 1;
    height: 36px;
}

.variable input[type="checkbox"] {
    width: 1.95em;
    height: 1.95em;
    margin: 0;
    display: inline-block;
}

/* --------------------------------------------- */
/* --------------------------------------------- */
/* MODEL LAYOUT -------------------------------- */
#model {
    display: flex;
}

#model.column {
    flex-direction: column;
}

#model .left {
    flex: 1 1 auto;
}

#model .right {
    flex: 0 0 auto;
    background-color: #c8d4db;
    border-radius: 0 10px 10px 0;
}

.collaborative #model .right {
    border-radius: 0 0 10px 10px;
}

/* --------------------------------------------- */
/* --------------------------------------------- */
/* CURRENT RESULTS LAYOUT ---------------------- */
.inverted_border + div.padding_20 {
    padding-top: 0;
}

.graph {
    height: 250px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 2px 10px 10px 10px;
}

.inverted_border {
    background-color: #e6e7e8;
}

.inverted_border div:first-child {
    border: 10px solid white;
    border-radius: 0 0 0 10px;
    margin-bottom: 10px;
}

.inverted_border div:last-child {
    border: 10px solid white;
    border-radius: 10px 0 0 0;
}

/* --------------------------------------------- */
/* --------------------------------------------- */
/* STORED RESULTS LAYOUT ----------------------- */
#results {
    background-color: #c8d4db;
}

#results .farm {
    display: flex;
    margin-top: 20px;
}

.farm .mirror {
    margin-right: 20px;
}

#results .farm h2,
#results .farm h3 {
    font-size: 18px !important;
}

#results .mirror img {
    max-width: 100%;
}

#results .flex {
    align-items: flex-start;
}

#results .energy {
    margin-top: 20px;
}


#results .resultContainer {
    margin-bottom: 20px;
    background-color: white;
    border-radius: 10px;;
}

#results .flex.header {
    flex-direction: row;
    align-items: center;
    clear:both;
}

#results .flex.header h2 {
    flex: 1 1 auto;
}

#results .flex.header button {
    margin-right: 10px;
    padding: 7px 10px 5px 10px;
    height: 36px;
    border-radius: 10px;
    margin-left: 0;
}

/* .collaborative #results .mirror {
    max-width: 50%;
    display: block;
    margin-top: 20px;
} */

#results .resultContainer:last-child {
    margin-bottom: 0;
}

#results div.resultContainer {
    margin-top: 20px;
}

#results .resultContainer:first-of-type {
    margin-top: 0;
}

#results table {
    margin-bottom: 20px;
    width: 100%;
}

table {
    border: none;
}

td,
th {
    border: 1px solid #ccc;
    border-width: 0 1px 1px 0;
}

th:first-of-type {
    border-width: 1px;
}

th {
    border-top-width: 1px;
}

th:last-of-type {
    border-radius: 0 5px 0 0;
}

tr td:first-of-type {
    border-left-width: 1px;
}

tr:last-of-type td:last-of-type {
    border-radius: 0 0 5px 0;
}

#results table thead tr th:first-of-type,
#results table tbody tr td:first-of-type {
    font-weight: bold;
    width: 50px;
}

table .empty {
    background-color: white;
    border-bottom-color: white;
    border-top-color: white;
    width: 10px;
}

#results .graph {
    height: 200px;
}


/* --------------------------------------------- */
/* --------------------------------------------- */
/* DATA TABLE ----------------------------------- */

table { 
    /* border: 1px solid #ccc; */
    border-collapse: separate;
    border-left: 0;
    /* border-radius: 4px; */
    border-spacing: 0px;
    table-layout: fixed;
}

table.visible {
    display: table;
}

tr {
    display: table-row;
    vertical-align: inherit;
    border-color: inherit;
}

th {
    background-color: #e6e7e8;
}
th, td {
    padding: 2px; 
    text-align: center;
    font-size: .8em;   
}

thead:first-child tr:first-child th:first-child, tbody:first-child tr:first-child td:first-child {
    border-radius: 4px 0 0 0;
}
thead:last-child tr:last-child th:first-child, tbody:last-child tr:last-child td:first-child {
    border-radius: 0 0 0 4px;
}

/* --------------------------------------------- */
/* --------------------------------------------- */
/* INSTRUCTIONS -------------------------------- */



/* --------------------------------------------- */
/* --------------------------------------------- */
/* CANVAS ENVIRONMENT -------------------------- */

#dayHolder {
    /* max-width: 630px; */
    border-radius: 10px 10px 0 0;
    background-color: white;
    padding: 10px;
    display: flex;
    align-items: center;
}

#dayHolder #daySpeed,
#dayHolder #key,
#dayHolder #baseVars {
    text-align: left;
    padding-left: 5px;
    flex: 1 0 100px;
}

#dayHolder #daySpeed button:last-of-type {
    margin-right: 0;
}

#speeds {
    margin-top: 3px;
}

#dayHolder #buttons button {
    margin-right: 0;
    margin-left: 10px;
}

#environmentWrap {
    text-align: center;
    background-color: #536d3b;
    margin: 0 auto;
}

#environmentHolder {
    height: 650px;
    width: 100%;
    margin: 0 auto;
    background-color: #668a48;
    overflow: hidden;
}

/* --------------------------------------------- */
/* --------------------------------------------- */
/* HIDE PRELOAD SVGS --------------------------- */
body > svg {
  display: none;
}

/* --------------------------------------------- */
/* --------------------------------------------- */
/* BUTTONS ------------------------------------- */
#buttons {
    flex: 0 0 auto;
    text-align: center;
    /* margin-left: -100px; */
    margin-right: 2px;
}

button,
.button {
    color: white;
    font-family: "Khula", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1em;
    padding: 10px 15px 7px 15px;
    border-radius: 15px;
    border: none;
    font-weight: bold;
    line-height: 1em;
    margin-right: 10px;
    margin-bottom: 5px;
    height: 52px;
    float: left;
    display: inline-block;
}

button:focus,
.button:focus {
    outline: none;
}

button.small,
#key button.small.blue {
    font-size: .8em;
    padding: 4px 6px 0 6px;
    border-radius: 5px;
    height: 25px;
    margin-right: 7px;
    font-weight: normal;

    background-color: white;
    border: 1px solid #138496;
    color: #138496;
}
#key button.small.blue {
    padding: 0 6px 0 6px;
}

button.small:focus {
    outline: none;
}

button.small:hover,
#key button.small.blue:hover,
button.small:focus,
#key button.small.blue:focus {
    background-color: #cbecf4;
}

button.small.selected,
#key button.small.blue.selected {
    background: #138496;
    border: none;
    color: white;
}

.button:link,
.button:hover,
.button:active,
.button:visited {
    color: white;
    text-decoration: none;
}

button:hover,
.button:hover {
    cursor: pointer;
}

button.expander {
    float: right;
    height: 30px;
    padding: 8px 10px;
}

button.right {
    float: right;
    margin-bottom: 5px;
    margin-right: 0;
}

button span,
.button span {
    font-size: .7em;
    font-weight: normal;
    display: block;
}

.orange {
    background-color: #e05f10;
}

.orange:hover {
    background-color: #fc721e;
}

.red {
    background-color: #be4031;
}

.red:hover {
    background-color: #db4c3b;
}

.green {
    background-color: #475e2e;
}

.green:hover {
    background-color: #607f3f;
}

.blue {
    background-color: #138496;
}

.blue:hover,
#copycode:hover {
    background-color: #19a3b9;
}

.width_full {
    width: 100%;
}

/* --------------------------------------------- */
/* --------------------------------------------- */
/* MEDIA QUERIES ------------------------------- */
@media only screen and (max-width: 1000px) {
    #model {
        flex-direction: column;
    }

    #model .right {
        border-radius: 10px 10px 0 0;
    }
    
    #model .right {
        text-align: center;
        border-radius: 0 0 10px 10px;
    }

    #results .flex {
        flex-direction: column;
    }

    #results .graph {
        margin-left: 0;
        width: auto;
        margin-top: 10px!important;
        margin-bottom: 20px;
        max-width: 100%;
    }

    #results table {
        max-width: 100%;
    }

    #environmentHolder,
    #dayHolder {
        margin: 0 auto;
    }

    .inverted_border div:first-child,
    .inverted_border div:last-child {
        border-radius: 0;
    }
    
}

@media only screen and (max-width: 770px) {
    #income {
        flex-direction: column;
    }
    #income div {
        margin-bottom: 10px;
    }
}

@media only screen and (max-width: 740px) {
    #dayHolder {
        flex-direction: column;
    }

    #dayHolder #daySpeed {
        flex: 1 0 30px;
        text-align: center;
        margin-bottom: 10px;
    }

    #dayHolder #buttons {
        margin-left: 0;
        display: flex;
    }

    #buttons button.visible {
        float: none;
        display: inline-block;
    }
}

@media only screen and (max-width: 420px) {
    #buttons button.visible {
        clear: left;
        margin-right: 0;
        margin-bottom: 10px;
    }
}