$main-bg-color: #FFF; $main-box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2); $main-border-radius: 5px; $border-radius-neumorphic: 0px -6px 10px rgba(255, 255, 255, 1), 0px 4px 15px rgba(0, 0, 0, 0.15); $border-radius-neumorphic-active: 0 15px 20px rgba(0, 0, 0, 0.015), inset 0px -2px 5px rgb(255, 255, 255), inset 0px 2px 5px rgba(0, 0, 0, 0.15); * { box-sizing: border-box; margin: 0px; padding: 0px } html, body { height: 100%; width: 100%; background: $main-bg-color; // background: #444; } #root { height: 100%; display: flex; flex-direction: column; // justify-content: center; align-items: center; width: 100%; border: 3px solid green; } header { margin-top: 100px; } #main-content { display: flex; flex-direction: column; width: 95vw; border: 1px solid red; align-items: center; } footer { } .mode-picker { display: flex; align-self: center; button { background: #fcfcfc; margin: 15px; padding: 5px; box-shadow: $main-box-shadow; border: 0px; border-radius: $main-border-radius; } .selected { box-shadow: $border-radius-neumorphic; } } #legend { width: 450px; display: flex; justify-content: space-evenly; position: fixed; top: 50px; left: 50px; flex-wrap: wrap; div { width: 80px; display: flex; flex-wrap: nowrap; button { width: 40px; margin: 4px; } } } #morseButton { width: 100px; height: 100px; margin: 30px; // background: goldenrod; border-radius: 50px; align-self: center; display: flex; justify-content: center; align-items: center; transition: all 500ms ease-in-out; } #morseButton.showPaddles { width: 239px; background: transparent; box-shadow: 0px 0px 0px transparent; } .paddle { font-size: 1rem; color: transparent; width: 100px; height: 100px; background: goldenrod; margin: 0px; border: 0px; transition: all 500ms ease-in-out; &#left { border-radius: 50px 0 0 50px; &.showPaddles{ margin-right: 7px; border-radius: 20px 0 0 20px; } } &#right { border-radius: 0 50px 50px 0; &.showPaddles{ margin-left: 7px; border-radius: 0 20px 20px 0; } } &.showPaddles { color: #000; font-size: 2.5rem; font-weight: bold; width: 250px; height: 100px; } } #challengeWord { display: flex; justify-content: center; align-items: center; // border: 1px solid green; height: 50px; margin-bottom: 20px; padding-left: 10px; padding-right: 10px; border-radius: 5px; width: fit-content; display: flex; font-size: 40px; font-family: 'Courier'; font-weight: bold; background: #EEE; text-transform: uppercase; align-self: center; transition: all 300ms ease-in-out; span { padding: 4px; margin: 1px; transition: background 300ms ease-in-out; //, opacity 100ms ease-in-out; } &.correct { background: rgba(0,200,0,0.7); } } #morseBufferDisplay { border: 1px solid green; display: flex; justify-content: center; flex-direction: column-reverse; align-items: center; width: 100%; height: 150px; margin-bottom: 20px; #alphanumeric-container { // border-left: 2px solid #000; background: #ccc; display: flex; padding-left: 5px; height: 50px; min-width: 50px; margin-bottom: 10px; display: flex; justify-content: center; align-items: center; border-radius: 5px; box-shadow: $main-box-shadow; #alphanumeric { font-size: 40px; font-family: 'Courier'; font-weight: bold; background-color: transparent; &:first-child { padding-left: 5px; padding-right: 5px; // box-shadow: $main-box-shadow; } span { padding: 4px; transition: background 300ms ease-in-out; } } } #ditDahs { width: 50%; height: 50px; padding-right: 5px; // border-right: 2px solid #000; display: flex; flex-direction: row; justify-content: center; font-size: 25px; font-family: 'Courier'; font-weight: bold; span { padding: 4px; transition: background 100ms ease-in-out; } .ditDah { background: #DDD; height: 40px; width: 30px !important; margin-left: 3px; // box-shadow: 0px 1px 0px #000; border-radius: $main-border-radius; box-shadow: $main-box-shadow; display: flex; justify-content: center; align-items: center; opacity: 50%; transition: all 100ms ease-in-out; } } } .example-appear { opacity: 0.01; } .example-appear.example-appear-active { opacity: 1; transition: opacity .5s ease-in; } #challengeBufferDisplay { display: flex; justify-content: center; border: 1px solid green; flex-direction: column; align-items: center; width: 100%; height: 150px; margin-bottom: 20px; #alphanumeric-container { // border-left: 2px solid #000; padding-left: 5px; width: 50%; display: flex; justify-content: center; #alphanumeric { font-size: 40px; font-family: 'Courier'; font-weight: bold; background-color: transparent; margin-bottom: 10px; &:first-child { padding-left: 5px; padding-right: 5px; // box-shadow: $main-box-shadow; } span { padding: 4px; transition: background 300ms ease-in-out; } } } #ditDahs { width: 50%; padding-right: 5px; // border-right: 2px solid #000; display: flex; flex-direction: row; justify-content: center; font-size: 25px; font-family: 'Courier'; font-weight: bold; span { padding: 4px; transition: background 100ms ease-in-out; } .ditDah { // background: #DDD; height: 40px; width: 30px !important; margin-left: 3px; // box-shadow: 0px 1px 0px #000; border-radius: $main-border-radius; box-shadow: $main-box-shadow; display: flex; justify-content: center; align-items: center; } } } .space { font-size: 20px; } .strike { text-decoration: line-through; opacity: 30%; } .morseError { background: rgba(255,0,0,0.4); color: rgb(120, 0, 0); border-radius: 5px; // text-decoration: line-through; } .correct { background: rgba(0,255,0,0.4); // color: rgb(120, 0, 0); border-radius: 5px; } // #morseHistory { // border: 1px solid purple; // padding: 5px; // width: 650px; // font-family: 'Verdana'; // font-size: 1.5em; // } #morseHistory { // /* border: 1px solid blue; */ display: flex; flex-direction: column; .morseCard:nth-child(1){ opacity: 100%; } .morseCard:nth-child(2){ opacity: 90%; } .morseCard:nth-child(3){ opacity: 80%; } .morseCard:nth-child(4){ opacity: 70%; } .morseCard:nth-child(5){ opacity: 60%; } .morseCard:nth-child(6){ opacity: 50%; } .morseCard:nth-child(7){ opacity: 40%; } .morseCard:nth-child(8){ opacity: 30%; } .morseCard:nth-child(9){ opacity: 20%; } .morseCard:nth-child(10){ opacity: 10%; } } .morseCard { display: flex; flex-direction: row !important; justify-content: center; /* border: 1px solid orange; */ margin-bottom: 2px; font-size: 1.5rem; font-family: 'Courier'; /* width: 100%; */ div div { // border: 1px solid purple; cursor: default; padding: 5px; margin: 3px; background: #EEE; // width: 50%; white-space: nowrap; border-radius: $main-border-radius; box-shadow: $main-box-shadow; line-height: 1rem; } .ditDahs-container, .alphanumeric-container { display: flex; width: 50%; font-weight: bold; } .ditDahs-container { justify-content: flex-end; } .ditDahs { // border: 1px solid red; display: flex; justify-content: flex-end; align-items: center; overflow-wrap: break-word; } }