html,
body {
    background-color: black;
    overflow: hidden; /* Hide scrollbars and disable scrolling */
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Example CSS styles */
.flex-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.buttons-container,
.show-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(100, 100, 100, 0.3);
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 1vh 0 0 0;
    /* Use viewport height for responsive padding */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.color-picker-container,
.show-menu-container button,
.buttons-container button {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0 0.5vw 0.5vw 0.5vw;
    /* Use viewport width for responsive spacing */
    padding: 0.5vh 0.5vw;
    /* Use viewport units for responsive padding */
    font-size: calc(10px + 0.5vw);
    /* Adjust font size based on the width of the viewport */
    border: none;
    border-radius: 5px;
    background-color: rgba(0, 123, 255, 0.5);
    color: white;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.color-picker-container:hover,
.show-menu-container button:hover,
.buttons-container button:hover {
    filter: brightness(85%);
    /* Darken button color */
}

.color-picker-container:hover,
.show-menu-container button:focus,
.buttons-container button:focus {
    outline: none;
}

/* Responsive design for smaller screens */
@media (max-width: 600px) {

    .show-menu-container,
    .buttons-container {
        flex-direction: column;
        /* Stack buttons vertically on small screens */
        padding: 0;
        /* Increase padding on smaller screens */
    }

    .color-picker-container,
    .show-menu-container button,
    .buttons-container button {
        width: 80%;
        /* Make buttons wider on small screens */
        margin: 2vh 10% 0vh 10%;
        /* Increase vertical margin and center buttons */
        font-size: calc(12px + 1vw);
        /* Increase font size for better readability */
    }
}

#simulationCanvas {
    width: 100vw;
    height: 100vh;
}

#colorPicker {
    visibility: hidden;
    /* Hide the default input */
    width: 0;
    /* Remove the default input width */
    height: 0;
    /* Remove the default input height */
}

/* Adjust the color of the label to match the chosen color */
#colorPicker:checked+#colorPickerLabel {
    background-color: rgba(181, 26, 0, 0.5);
    /* This should match the initial colorPicker value */
}


.show-menu-container button {
    /* Full-width button for easier touch access */
    width: 80%;
    margin: 1vh auto;
}

/* Hide show/hide buttons on non-mobile screens */
@media (min-width: 601px) {

    #toggleMenuButton,
    .show-menu-container {
        display: none;
    }

    .buttons-container {
        display: flex;
        /* Ensure the menu is always shown */
    }
}

/* Show the menu and the toggle button on mobile screens */
@media (max-width: 600px) {
    .buttons-container {
        /* Hide by default on mobile, will be toggled by the show menu button */
        display: none;
    }

    .show-menu-container {
        /* Show the show menu button when the menu is hidden */
        display: flex;
        justify-content: center;
        /* Center the button */
        padding: 1vh 0;
        /* Same padding */
    }
}
