#main {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    touch-action: none;
}
#menuContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 180px;
    z-index: 100;
}
#menuToggle {
        background-color: #444444;
    color: white;
    padding: 4px 8px;  /* Reduced padding (top/bottom: 4px, left/right: 8px) */
    cursor: pointer;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 0.9em;  /* Slightly smaller font */
    text-align: center;
    border: 1px solid #333333;
    border-radius: 3px 3px 0 0;  /* Slightly smaller border radius */
    width: fit-content;  /* Make width fit content */
    min-width: 60px;    /* Minimum width to prevent too narrow toggle */
    margin-left: 5px;   /* Add small margin from left edge */
}
#menuToggle:hover {
    background-color: #555555;
}
#controls {
    position: relative;
    background-color: white;
    width: 180px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    border: solid;
    cursor: default;
    transition: max-height 0.3s ease;
}

#tileGen {
    display: none;
}



#axisRosette {
    display: block;
    height: 180px;
    width: 180px;
    touch-action: none;
}
#offsetControls>div {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#offsetControls input {
    flex-grow: 1;
}
.offset-label {
    font-size: 10pt;
}
#colorControls input {
    border: 0;
    padding: 0;
}

#colorModeContainer input[type="color"],
#colorControls input[type="color"] {
    display: none !important;  /* Using !important to override any inline styles */
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
}
#colorModeContainer {
    margin: 10px 0;
    padding: 5px;
    background-color: #ffffff;
    border-radius: 4px;
}
#colorModeContainer div {
    margin-bottom: 8px;
}
#colorModeContainer label {
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
#colorModeContainer input[type="radio"] {
    cursor: pointer;
    margin: 0;
    margin-left: auto;
}
#tileColorPicker {
    display: flex;
    align-items: center;
   

}

.iro__wheel {
    width: 120px !important;  /* Smaller wheel */
    height: 120px !important;
}

.iro__slider {
    height: 20px !important;   /* Thinner slider */
    margin-left: 4px !important;
}

#axesExtra {
    display: flex;
}
#numAxes {
    width: 20%;
}
#numAxesLabel {
    padding: 0 5px 0 2px;
}
#reset {
    flex-grow: 1;
}
.toggle {
    font-family: sans-serif;
    font-variant: small-caps;
    font-size: 14px;
    font-weight: bold;
    background-color: #cccccc;
    padding: 3px;
}
.toggle:hover, .active {
    background-color: #ccddff;
}
.toggle:after {
    content: '\FF0B'; /* Unicode fullwidth plus sign */
    float: right;
}
.active:after {
    content: '\FF0D'; /* Unicode fullwidth hyphen-minus */
}
#about i {
    font-size: smaller;
}
#about ul {
    margin: 0px;
    padding-inline-start: 20px;
}
#about input {
    width: 100%;
}
#codeShow {
    position: absolute;
    top: -200px;
    left: 200px;
    padding: 5px;
    background-color: #eeeeee;
    border: solid;
    transition: 0.3s all;
}
#codeShow.codeActive, #codeLoad.codeActive {
    top: 10px;
}
#codeCode {
    display: inline-block;
    max-width: 400px;
    word-break: break-all;
    font-family: sans-serif;
    padding: 3px;
    background-color: white;
    border: 1px solid lightgrey;
}
#codeLoad {
    position: absolute;
    top: -100px;
    left: 200px;
    padding: 5px;
    background-color: #eeeeee;
    border: solid;
    transition: 0.3s all;
}
#undoRedoControls {
    display: flex;
    justify-content: space-between;
    
    padding: 2px;
   
    background-color: #ffffff;
}

#undoButton, #redoButton {
    padding: 2px 5px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

#undoButton:hover, #redoButton:hover {
    background-color: #e0e0e0;
}

#undoButton:disabled, #redoButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Crop Controls Styles */
#cropControls {
    padding: 10px;
    border-top: 1px solid #ccc;
}

#cropControls div {
    margin-bottom: 8px;
}

#cropControls label {
    display: inline-block;
    margin-bottom: 4px;
}

#cropControls input[type="range"] {
    width: 100%;
    margin: 4px 0;
}

#cropControls select {
    width: 100%;
    padding: 4px;
    margin: 4px 0;
}

#cropControls span {
    display: inline-block;
    margin-left: 8px;
    color: #666;
}

#cropShape {
    margin-top: 4px;
}
