* {
    box-sizing: border-box;
}

body {
    margin-top: 15px;
    background-color: #ffffff;
    color: #333333;
    display: grid;
    justify-items: center;
}

h4 {
    font-family: sans-serif;
    color: #333333;
    font-size: 16px;
}

h3 {
    font-family: sans-serif;
    color: #333333;
}

p {
    font-family: sans-serif;
    color: #333333;
    font-size: 14px;
}

a {
    font-family: sans-serif;
    color: #d15423;
    text-decoration: none;
}



#container1 {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: auto auto 1fr;
}

.canvas-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    /* hack for getting rounded corners to work */
}

.canvas-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    /* Ensure each canvas layer takes up the entire container */
    width: 100%;
    height: 100%;
}

#snowflakeCanvas {
    position: absolute;
    z-index: 1;
}

#displayBackgroundCanvas {
    position: absolute;
    z-index: 0;
}

#boardBackgroundCanvas {
    position: absolute;
    z-index: 0;
}

#boardCanvas {
    position: absolute;
    z-index: 1;
}

#polygonLayer {
    position: absolute;
    z-index: 2;
}

/****************** GUI Panel *************/

#GUIPanel {
    width: 130px;
    height: 440px;
}

#inputs-collection {
    /* width: 100px; */
    width: 100%;
}

#colorButtonPanel {
    width: 100%;
    text-align: center;
    /* border: 1px solid blue; */
    padding: 10px;
    ;
}

#colorButtonsLabel {
    font-family: sans-serif;
    margin-bottom: 5px;
    font-size: 10px;
    color: #888;
}

#colorButtonCollection {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-gap: 5px;
    justify-content: center;
    /* width: 100px; */
    margin: auto;
    /* text-align: center; */
    /* padding-bottom: 10px; */
}

.colorButton {
    padding: 2px 5px 2px 5px;
    border-radius: 4px;
    border: hidden;
    width: 28px;
    height: 28px;
    /* margin: 2px; */
}

.colorButton:active {
    outline: #FF0;
}


.button1 {
    padding: 6px;
    background-color: #666;
    border: 1px solid #666;
    border-radius: 10px;
    color: #FFF;
    text-decoration: none;
    font-size: 11px;
    outline: none;
    width: 100%;
    margin-top: 5px;
}

.button1:active {
    /* padding: 2px 5px 2px 5px; */
    background-color: #995;
    border: 1px solid #995;
    /* outline: none; */
    color: #FFF;
    /* text-decoration: none; */
    /* font-size: 11px; */
}

.button1-inactive {
    background-color: #CCC;
    border: 1px solid #CCC;
    color: #FFF;
}

.checkbox-collection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: fit-content;
    /* border: 1px solid fuchsia; */
    margin: 5px auto 0px auto;
    gap: 5px;
}

input[type="checkbox"] {
    margin-right: 5px;
    /* Spacing for clarity */
}

.checkbox-container {
    display: flex;
    align-items: center;
    /* border: 1px solid green; */
}

.cb-label {
    color: #666;
    font-family: sans-serif;
    font-size: 11px;
    /* vertical-align: middle; */
    /* width: auto; */
}

#container2 {
    width: 810px;
    margin: auto;
    padding: 0px;
    border: 1px solid blue;
}

#btnMakeSnowflake {
    background-color: hsl(121, 48%, 38%);
    border: hidden;
    padding: 10px;
    /* border-radius: 999px; */
}

#btnMakeSnowflake:active {
    /* border-color: #297E44; */
    background: hsl(121, 48%, 32%);
    #3d913f;
    filter: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    outline: none;
}

#btnSave {
    background-color: hsl(46, 91%, 38%);
    border: hidden;
}

#btnSave:active {
    /* border-color: #297E44; */
    background: hsl(46, 91%, 32%);
    filter: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    outline: none;
}


#shareIcons img {
    margin-left: 0px;
    margin-top: 6px;
}



.GUI-panel-textbox {
    border-radius: 10px;
    overflow: hidden;
}

#titleText {
    width: 100%;
    /* width: 130px;
    height: 130px;
    border-radius: 10000px; */
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 20px;
    text-align: center;
    padding-top: 15px;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    background: #586B87;
    color: white;
}

#urlText {
    width: 100%;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 11px;
    text-align: center;
    padding-top: 8px;
    padding-bottom: 10px;
    line-height: 1.5;
}

#urlText a {
    width: 100%;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 11px;
    text-align: center;
    color: rgb(249, 250, 207);
}

#urlText2 {
    width: 100%;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 11px;
    text-align: center;
    padding-top: 7px;
    padding-bottom: 7px;
    line-height: 1.5;
}

#urlText2 a {
    width: 100px;
    position: relative;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 11px;
    text-align: center;
    color: #fff;
}


.instructions-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
}

.instructions-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* This centers the content horizontally */
}

#instructionsText {
    position: relative;
    max-width: 45em;
    font-family: sans-serif;
    color: #333333;
    font-size: 11px;
    padding: 10px;
}

#instructionsText h4 {
    margin-top: 0px;
    padding-top: 0px;
}

#instructionsText p {
    margin-bottom: 0px;
}

#instructions-close {
    /* font-weight: bold; */
    padding: 8px;
    /* border-radius: 1000px; */
    background-color: #4e7dc5;
    width: auto;
    font-size: 12pt;
    /* align-self: flex-end; */
}