/* Button Styles */
.button {
    border: 1px solid #000;
    background: transparent;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
    transform-origin: center;
}

.button:active {
    opacity: 0.8;
}

@media (min-width: 768px) {
    .button:hover {
        /* Keep color the same; emphasize hover with a thicker outline */
        box-shadow: 0 0 0 4px #000;
    }
}

.selected-button {
    background-color: #000;
    color: #fff;
    box-shadow: 0 0 0 4px #000;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.button-selected-new {
    animation: button-select-pulse 0.3s ease-out;
}

@keyframes button-select-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* On button click/hold add opacity 0.5 */
.button:active {
    opacity: 0.5;
}

.puzzle-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.buttons-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.symbol-button {
    font-family: "Courier New";
}

.color-button {
    font-family: "Courier New";
}


.deactivated-button {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(50%);
}

#initialize-puzzle-button {
    width: 100%;
    padding: 0.75rem;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}
