body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1e1e1e;
    color: white;
    overflow: hidden;
}

#homeScreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #8e44ad, #3498db);
}

#homeScreen h1 {
    font-size: 4rem;
    margin-bottom: 30px;
}

#homeScreen button {
    padding: 15px 30px;
    font-size: 1.5rem;
    background-color: white;
    color: #2c3e50;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

#gameScreen {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: row;
    background-color: #2c2c2c;
}

.hidden {
    display: none !important;
}

#toolbar {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(30, 30, 30, 0.9);
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

#canvas-container {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: none;
}

#cursor {
    position: absolute;
    border-radius: 50%;
    border: 2px solid white;
    pointer-events: none;
    z-index: 999;
}

#layers-panel {
    width: 200px;
    background-color: #111;
    color: white;
    padding: 10px;
    border-left: 2px solid #444;
    overflow-y: auto;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#layersList {
    list-style: none;
    padding: 0;
}

.layer-item {
    background: #222;
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.layer-item.active {
    background: #555;
}

.layer-controls button {
    background: transparent;
    border: none;
    color: white;
    margin-left: 5px;
    cursor: pointer;
}