/* style.css */
:root {
    --puzzle-size: 300px;
    --grid-count: 3;
    --piece-size: 100px; 
}

#timer-display {
    text-align: center;
    font-size: 2.5em;
    font-weight: bold;
    margin: 20px auto 10px;
    color: #dc3545; /* Rojo para darle importancia */
}

#puzzle-container {
    display: grid;
    grid-template-columns: repeat(var(--grid-count), var(--piece-size));
    grid-template-rows: repeat(var(--grid-count), var(--piece-size));
    width: var(--puzzle-size);
    height: var(--puzzle-size);
    margin: 10px auto;
    border: 3px solid #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.puzzle-piece {
    width: var(--piece-size);
    height: var(--piece-size);
    background-size: var(--puzzle-size) var(--puzzle-size);
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    border: 1px solid #111;
    box-sizing: border-box;
    /* ... otros estilos de pieza ... */
}

.empty-piece {
    background-image: none !important;
    background-color: #eee;
    cursor: default;
    opacity: 0.8;
}

#controls {
    text-align: center;
    margin-top: 30px;
}

button {
    padding: 12px 25px;
    font-size: 18px;
    cursor: pointer;
    border: none;
    background-color: #28a745; 
    color: white;
    border-radius: 8px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #218838;
}

#message {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
}