/* Matrix Slide Words Game Styles - Updated Design */

body {
    font-family: 'Roboto', Arial, sans-serif;
    /* A dark background to make the glowing board stand out */
    background: #0b1021;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-content {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

/* UI Controls adapted for the new theme */
h1, .game-description, #fldStatus {
    /* display: none; */ /* Hide UI text to focus on the board as per the visual target */
}

select, .but {
    /* display: none; */ /* Hide UI controls as they are not in the target image */
}


/* Game Board Frame with Gradient Glow */
#board {
    display: grid;
    gap: 12px;
    margin: 20px auto;
    padding: 18px;
    background: #091a3d; /* Dark blue base */
    border-radius: 25px;
    width: fit-content;
    /* Multi-layered box-shadow to create the dark blue to teal outer glow */
    box-shadow: 
        0 0 35px rgba(34, 180, 200, 0.5),  /* Teal glow (outer) */
        0 0 15px rgba(9, 32, 79, 0.7);      /* Dark blue glow (inner) */
}

/* Dynamic grid sizing */
#board {
    grid-template-columns: repeat(var(--gsize, 3), 1fr);
    grid-template-rows: repeat(var(--gsize, 3), 1fr);
}

/* Tiles & Hole Styling */
.cell, .hole {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 20%; /* Rounded corners as requested */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 2px;
}

/* Interior Tiles */
.cell {
    /* Gradient from white to light gray */
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    color: #3b4251; /* Dark text for readability */
    /* Inset shadow for depth, using the specified #ccc for the shadow color */
    box-shadow: inset 4px 4px 8px #cccccc, 
                inset -4px -4px 8px #ffffff;
}

.cell:hover {
    transform: scale(1.02); /* Slight lift on hover */
}

.cell:active {
    transform: scale(0.96); /* Press-in effect */
    box-shadow: inset 6px 6px 12px #cccccc, 
                inset -6px -6px 12px #ffffff;
}

/* The Hole Tile */
.hole {
    /* Vibrant purple gradient */
    background: linear-gradient(45deg, #6c4ddc, #8a4fff);
    cursor: default;
    /* Teal outer glow to match the board's frame */
    box-shadow: 0 0 15px rgba(34, 180, 200, 0.6);
}

/* Responsive Design */
@media (max-width: 600px) {
    .cell, .hole {
        width: 60px;
        height: 60px;
        font-size: 12px;
    }
    
    #board {
        gap: 10px;
        padding: 15px;
        border-radius: 20px;
    }
}

@media (max-width: 400px) {
    .cell, .hole {
        width: 50px;
        height: 50px;
        font-size: 10px;
    }
}