/* Pencil component styles */
#pencil-container {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: #ffdcef;
    /* light pink background */
    cursor: url('../pencil/cursor.png'), auto;
    overflow: hidden;
    border-radius: 0.5rem;
}

#pencil-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    outline: none;
}

/* Colour selector list */
.colours {
    bottom: 30px;
    left: 50%;
    list-style-type: none;
    padding-left: 0;
    position: absolute;
    transform: translateX(-50%);
    z-index: 2;
    margin: 0;
    display: none;
    /* shown on larger screens */
}

@media (min-width: 1024px) {
    .colours {
        display: flex;
    }
}

.colours li {
    border-radius: 50%;
    display: inline-block;
    width: 30px;
    height: 30px;
    margin: 0 12px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid #ffffff;
    /* white border */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.colours li:hover {
    transform: scale(1.2);
}

/* Selector colours */
.colours li.color-1 {
    background-color: #100c08;
}

/* Black */
.colours li.color-2 {
    background-color: #333333;
}

/* Dark Gray */
.colours li.color-3 {
    background-color: #E5007E;
}

/* White */
.colours li.color-4 {
    background-color: #ffffff;
    border: 2px solid #cccccc;
    /* Add border to make white visible against light background */
}

/* Light Gray */
.colours li.color-5 {
    background-color: #d3d3d3;
}


@media (min-width: 1024px) {
    .pencil__refresh {
        bottom: 27px;
        left: 30px;
        transform: none;
    }
}

/* Save button */
.pencil__submit {
    bottom: 27px;
    display: none;
    position: absolute;
    right: 30px;
    z-index: 4;
}

@media (min-width: 1024px) {
    .pencil__submit {
        display: block;
    }
}

/* Generic button styling */
.btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: .05em;
    outline: none;
    padding: 5px 10px 1px 10px;
    font-family: 'Manrope', sans-serif;
    text-transform: uppercase;
    user-select: none;
    -moz-user-select: none;
}

/* Additional styles for refresh button */
.pencil__refresh {
    bottom: 27px;
    left: 30px;
    position: absolute;
    z-index: 4;
    display: block;
    /* Make it visible on all screen sizes */
}

button.pencil__refresh.btn,
button.pencil__submit.btn {
    font-family: 'Manrope';
    font-weight: 700;
    font-size: smaller;
}