/*STyles rules related just with the game*/
.game-container {
    align-items: center;
    border: 10px solid white;
    border-image: conic-gradient(lime, fuchsia, cyan) 1;
    display: flex;
    flex-direction: column;
    max-width: 99vw;
    padding: 8px;
    text-align: center;
}

/*Styles for puzzle */
.puzzle-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.puzzle-grid {
    background-color: #f0f0f0;
    border-radius: 5px;
    display: grid;
    grid-gap: 5px;
    margin-bottom: 20px;
    overflow: hidden;
    width: 100%;

    .tile {
        align-items: center;
        aspect-ratio: 1;
        background-color: #3498db;
        border-radius: 5px;
        color: white;
        cursor: pointer;
        display: flex;
        justify-content: center;
        left: 0;
        position: relative;
        text-align: center;
        top: 0;
        transition: top 0.3s ease-out, left 0.3s ease-out;
        user-select: none;
        z-index: 1;
    }

    .tile.empty {
        background-color: transparent;
        border: 1px solid lightgray;
        cursor: none;
        transition: none;
        z-index: 0;
    }

    .tile:not(.empty):hover {
        background-color: #2980b9;
    }
}

.control-panel {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 20px;
    width: 100%;

    button.shuffle {
        background-color: #3498db;
        border: none;
        border-radius: 5px;
        color: white;
        cursor: pointer;
        font-size: 1rem;
        padding: 10px 20px;
    }

    button:hover {
        background-color: #2980b9;
    }
}

.size-buttons > button {
    background-color: #BF360C;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    padding: 10px 20px;
}

.size-buttons > button:hover {
    background-color: #F4511E;
}



