body {
    background: #1e1e1e;
    color: white;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
}

canvas {
    border: 3px solid white;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    cursor: crosshair;

    touch-action: none;
}

.toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.colour-btn {
    width: 40px;
    height: 40px;
    border: 2px solid white;
    cursor: pointer;
}

.selected {
    outline: 4px solid yellow;
}

button {
    padding: 10px 16px;
    font-size: 16px;
    cursor: pointer;
}

#answerCanvas {
    display: none;
}

.top-buttons {
    position: absolute;
    top: 10px;
    right: 10px;

    display: flex;
    gap: 10px;

    z-index: 1000;
}

.play-button {
    display: inline-block;

    padding: 18px 42px;

    background: linear-gradient(to bottom, #777777, #313131);

    color: white;

    text-decoration: none;

    border-radius: 14px;

    font-size: 28px;
    font-weight: bold;

    box-shadow:
        0 6px 14px rgba(0,0,0,0.2);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.play-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 22px rgba(0,0,0,0.25);
}

.play-button:active {
    transform: translateY(0px);
}

.home-button {
    display: inline-block;

    padding: 14px 22px;

    background: linear-gradient(to bottom, #797979, #363636);

    color: white;

    text-decoration: none;

    border-radius: 6px;

    font-size: 14px;
    font-weight: bold;

    box-shadow: 0 4px 10px rgba(0,0,0,0.15);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.home-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.home-button:active {
    transform: translateY(0px);
}

/* ruler, revisit later
#canvasWrapper {
    display: inline-block;
}

#topRuler {
    display: flex;
    margin-left: 20px; 
}

#middleRow {
    display: flex;
}

#leftRuler {
    display: flex;
    flex-direction: column;
    width: 20px;
}

#topRuler div,
#leftRuler div {
    font-size: 10px;
    color: #aaa;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}
    */


@media (max-width: 600px) {

    canvas {
        width: 100%;
        height: auto;
    }

    .toolbar {
        gap: 6px;
    }

    .colour-btn {
        width: 32px;
        height: 32px;
    }

    button {
        width: 90%;
    }

}