body {
    margin: 0;
    overflow: hidden;
    background-color: #87CEEB;
    font-family: Arial, sans-serif;
}
canvas {
    display: block;
    background-color: #0077BE;
}
#ui {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    display: none; /* Hidden by default */
}
#controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    display: none; /* Hidden by default */
}
button {
    margin: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
}
button:hover {
    background-color: #45a049;
}

/* Menu system styles */
#menuToggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 1000;
    display: none; /* Hidden by default */
}

#menuPanel {
    position: absolute;
    top: 50px;
    right: 10px;
    width: 350px;
    max-height: 80vh;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    border-radius: 5px;
    padding: 15px;
    display: none;
    z-index: 999;
}

.menu-section {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.menu-section h3 {
    margin-top: 5px;
    margin-bottom: 10px;
    color: #4CAF50;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.menu-item label {
    width: 60%;
}

.menu-item input, .menu-item select {
    width: 35%;
    background-color: #444;
    color: white;
    border: 1px solid #666;
    border-radius: 3px;
    padding: 4px;
}

.menu-item input[type="range"] {
    width: 35%;
}

.menu-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.color-picker {
    width: 30px !important;
    height: 20px;
    padding: 0;
    border: none;
}

.preset-section {
    margin-top: 15px;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.preset-button {
    flex: 1;
    min-width: 100px;
    font-size: 0.9em;
}

#colorPreview {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.color-preview-item {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid white;
}

/* Login UI */
#sessionInfo {
    position: absolute;
    top: 10px;
    right: 100px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    display: none; /* Hidden by default */
}

#loginModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#loginForm {
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
}

#loginForm h2 {
    color: #4CAF50;
    margin-top: 0;
}

#loginForm input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #444;
    color: white;
}

#loginForm button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
}

#createNewBtn {
    background-color: #2196F3;
}

#createNewBtn:hover {
    background-color: #0b7dda;
}