body {
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#header-bar {
    width: 940px;
    height: 50px;
    background-color: #333;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

#controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

#timer-display {
    font-size: 18px;
    font-weight: bold;
}

#timer-display.warning {
    color: #ff4444;
}

#color-picker-container {
    position: relative;
}

#color-button {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    cursor: pointer;
    background-color: #000000;
}

#color-palette {
    position: absolute;
    top: 40px;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    display: grid;
    grid-template-columns: repeat(10, 20px);
    gap: 2px;
    padding: 5px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hidden {
    display: none !important;
}

.color-cell {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border: 1px solid #ddd;
}

#canvas-container {
    margin-top: 10px;
}

canvas {
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    cursor: crosshair;
}