/**
*   Referencing code from:
*       https://www.geeksforgeeks.org/build-a-drawing-app-using-javascript/
*/

/**
*   Style applied to entire 2Ddrawing.html file
*/
body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #5c4444a2;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

/**
*   Style applied to containers, used in drawing board/canvas
*/
.container {
    gap: 10px;
    height: 600px;
    max-width: 900px;
    width: 100%;
}

/**
*   Style applied to drawing board to adjust sizing
*/
.drawing-board {
    display: flex;
    flex: 1;
}

/**
*   Style applied to canvas of drawing board (more sizing?)
*/
.drawing-board canvas {
    width: 100%;
    height: 600px;
}

/**
*   Style applied to column of elements
*/
.element-board {
    width: 140px;
    height: 600px;
    background-color: #607d8b;
}

/**
*   Style applied to left column
*/
.nav-board {
    width: 105px;
    height: 600px;
    background-color: #607d8b;
}

/**
*   This is what highlights selectable words...
*/
.option:is(:hover, .active) :where(span, label) {
    color: #f2ebeb;
}

/**
*   Style applied to button when in class buttons
*/
.buttons button {
    width: 70%;
    padding: 3px;
    margin: 6px 0px 6px 6px;
    border: none;
    outline: none;
    font-size: 0.9rem;
    background: none;
    border-radius: 5px;
    cursor: pointer;
}

/**
*   Style applied to Clear Canvas button
*/
.clear-canvas {
    color: black;
    transition: all 0.2s ease;
    border: 2px solid black;
    font-size: 13px;
    width: 80%;
    margin: 6px;
    box-align: center;
}

/**
*   Style applied to Verify button (and to Undo)
*/
.verify {
    color: black;
    transition: all 0.2s ease;
    border: 2px solid black;
    font-size: 13px;
    width: 80%;
    margin: 6px;
    box-align: center;
}

/**
*   Carbon
*/
.buttons .carbon {
    color: #f2ebeb;
    border: 2px solid black;
    transition: all 0.2s ease;
    border: 2px solid #C8C8C8;
    font-size: 13px;
}
.carbon:hover {
    color: black;
    background: #C8C8C8;
}

/**
*   Hydrogen
*/
.buttons .hydrogen {
    color: #f2ebeb;
    border: 2px solid black;
    transition: all 0.2s ease;
    border: 2px solid white;
    font-size: 13px;
}
.hydrogen:hover {
    color: black;
    background: #ffffff;
}

/**
*   Oxygen
*/
.buttons .oxygen {
    color: #f2ebeb;
    border: 2px solid black;
    transition: all 0.2s ease;
    border: 2px solid #F00000;
    font-size: 13px;
}
.oxygen:hover {
    color: black;
    background: #F00000;
}

/**
*   Nitrogen
*/
.buttons .nitrogen {
    color: #f2ebeb;
    border: 2px solid black;
    transition: all 0.2s ease;
    border: 2px solid #8F8FFF;
    font-size: 13px;
}
.nitrogen:hover {
    color: black;
    background: #8F8FFF;
}

/**
*   Phosphorus
*/
.buttons .phosphorus {
    color: #f2ebeb;
    border: 2px solid black;
    transition: all 0.2s ease;
    border: 2px solid #ffa500;
    font-size: 13px;
}
.phosphorus:hover {
    color: black;
    background: #ffa500;
}

/**
*   Sulfur
*/
.buttons .sulfur {
    color: #f2ebeb;
    border: 2px solid black;
    transition: all 0.2s ease;
    border: 2px solid #ffc832;
    font-size: 13px;
}
.sulfur:hover {
    color: black;
    background: #ffc832;
}

/**
*   Referencing code from:
*       https://codepen.io/mgzme/pen/OqqeLM--
*
*   All of the below is from the above source. I liked its aesthetics, just changed the coloring a bit.
*/

*,
*:before,
*:after {
  box-sizing: border-box;
}

body {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.toggle-switch-container {
    align-content: center;
    padding: 6px;
}

.toggle-switch {
    margin: 0;
}
  
.toggle-switch {
    width: 10px;
    position: relative;
}

.toggle-switch input {
    position: absolute;
    top: 0;
    z-index: 2;
    opacity: 0;
    cursor: pointer;
}

.toggle-switch input:checked {
    z-index: 1;
}

.toggle-switch input:checked + label {
    opacity: 1;
    cursor: default;
}

.toggle-switch input:not(:checked) + label:hover {
    opacity: 0.5;
}

.toggle-switch label {
    color: #f2ebeb;
    opacity: 0.33;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
}

.toggle-switch .toggle-outside {
    height: 100%;
    border-radius: 17px;
    padding: 11px;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out;
}

.toggle-switch .toggle-inside {
    border-radius: 50%;
    background: #465b65;
    position: absolute;
    transition: all 0.3s ease-in-out;
}

.switch-vertical {
    background-color: #00F;
    width: 0px;
    height: 60px;
    margin-left: 27px;
}

.switch-vertical input {
    height: 100%;
    width: 60px;
    right: 0;
    margin: 0;
}

.switch-vertical label {
    font-size: 15px;
    line-height: 30px;
    display: block;
    width: 80px;
    height: 50%;
    margin: 0;
    text-align: left;
    padding-left: 12px;
}

.switch-vertical .toggle-outside {
    background: rgba(255, 255, 255, 0.5);
    position: absolute;
    width: 23px;
    height: 100%;
    right: 0;
    top: 0;
}
  
.switch-vertical .toggle-inside {
    height: 17px;
    left: 3px;
    top: 3px;
    width: 17px;
}
  
.switch-vertical input:checked ~ .toggle-outside .toggle-inside {
    top: 3px;
}
  
.switch-vertical input ~ input:checked ~ .toggle-outside .toggle-inside {
    top: 40px;
}
  