body { background-color: white; color: black; font-family: monospace; } section { border-top: 1px solid black; clear: both; padding: 1em; } table { border-collapse: collapse; } td { border: 1px solid black; padding: 0.2em 0.5em; } ul { list-style-type: none; } button { border-width: 1px; } .button { padding: 0.2em; } .red { background-color: red; color: white; } .yellow { background-color: yellow; color: black; } .blue { background-color: blue; color: white; } .green { background-color: green; color: white; } .white { background-color: white; border-color: black; color: black; } .black { background-color: black; color: white; } .button.white { border: 1px solid black; } section .active { /* ugh, specificity */ opacity: 1; } .inactive { opacity: 0.3; } h2 { cursor: pointer; } .collapsed { padding: 0; } .collapsed * { display: none; } .collapsed h2 { display: block; font-size: small; margin: 0; } .jsResetSection { margin-top: 1em; } #sectionWires button { border-color: black; cursor: pointer; width: 2em; height: 2em; } #wireOptions li { display: inline-block; } #wireList { list-style-type: decimal; } .wireToCut:after { color: green; } .wireToCut:after, .wireToCut.odd.even:after { content: '\27fd'; } .wireToCut.odd:after { content: '\27fd\a0 odd'; } .wireToCut.even:after { content: '\27fd\a0 even'; } #sectionButton { line-height: 150%; } #sectionButton div { margin-bottom: 1em; } #sectionButton .buttonWhite { border-style: solid; border-width: 1px; } #simonInputs { float: left; margin-right: 5em; } .collapsed #simonBoard { display: none; } #simonBoard { display: inline-block; padding-bottom: 40px; /* Compensate for height increase as a result of rotation */ position: relative; transform: rotate(45deg); } #simonBoard > div > div { border: 2px solid black; display: inline-block; height: 64px; width: 64px; } #simonBoard > .simonRow:first-child > div { border-top-width: 4px; } #simonBoard > .simonRow:first-child + div > div { border-bottom-width: 4px; } #simonBoard > .simonRow > div:first-child { border-left-width: 4px; } #simonBoard > .simonRow > div:last-child { border-right-width: 4px; } .arrow { background-color: magenta; height: 10px; width: 50px; opacity: 0; position: absolute; } .arrow::after { content: ''; border-top: 10px solid transparent; border-left: 20px solid magenta; border-bottom: 10px solid transparent; height: 0; width: 0; margin-left: 50px; position: absolute; top: -5px; } #arrowRB { top: 70px; left: 10px; transform: rotate(-90deg); } #arrowBR { top: 60px; left: 10px; transform: rotate(90deg); } #arrowBY { top: 30px; left: 45px; } #arrowYB { top: 30px; left: 45px; transform: rotate(180deg); } #arrowYG { top: 60px; left: 80px; transform: rotate(90deg); } #arrowGY { top: 70px; left: 80px; transform: rotate(-90deg); } #arrowGR { top: 100px; left: 45px; transform: rotate(180deg); } #arrowRG { top: 100px; left: 45px; } #arrowRY { top: 66px; left: 44px; transform: rotate(-45deg); } #arrowYR { top: 66px; left: 44px; transform: rotate(135deg); } #arrowBG { top: 64px; left: 44px; transform: rotate(45deg); } #arrowGB { top: 64px; left: 44px; transform: rotate(-135deg); } #sectionDisplay { white-space: nowrap; } #sectionDisplay dl, #sectionDisplay table { display: inline-block; margin-bottom: 1em; } #sectionDisplay.collapsed dl, #sectionDisplay.collapsed table { display: none; } #sectionDisplay dl { margin-right: 4em; } #sectionDisplay dt { background-color: black; clear: left; color: white; margin-right: 1em; text-align: center; width: 6em; } #sectionDisplay dd { margin-bottom: 0.4em; margin-left: 0; } #sectionDisplay dt, #sectionDisplay dd { display: inline-block; float: left; } #sectionDisplay table { margin-left: 0.5em; } #sectionDisplay th { border: 1px solid black; } #sectionMemory td { text-align: right; } #sectionMemory input { text-align: center; width: 5em; } #sectionMorse table { float: left; margin-bottom: 1em; margin-right: 1em; } #sectionSequence button { cursor: pointer; width: 2em; } #sequenceOptions { padding-left: 0; width: 7.9em; } #sequenceOptions li { display: inline-block; } #sequenceInstruction { list-style-type: decimal; } #sequenceInstruction button { margin-right: 0.2em; }