/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-lhq6boe80a] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-lhq6boe80a] {
    flex: 1;
}

.sidebar[b-lhq6boe80a] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-lhq6boe80a] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-lhq6boe80a]  a, .top-row[b-lhq6boe80a]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-lhq6boe80a]  a:hover, .top-row[b-lhq6boe80a]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-lhq6boe80a]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-lhq6boe80a] {
        justify-content: space-between;
    }

    .top-row[b-lhq6boe80a]  a, .top-row[b-lhq6boe80a]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-lhq6boe80a] {
        flex-direction: row;
    }

    .sidebar[b-lhq6boe80a] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-lhq6boe80a] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-lhq6boe80a]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }
}

#blazor-error-ui[b-lhq6boe80a] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-lhq6boe80a] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Pages/Game.razor.rz.scp.css */
.game-page-container[b-poqpftsfll] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 90vh; /* Takes up almost full viewport height */
    width: 100%;
}



.game-board[b-poqpftsfll] {
    /* Fluid width: max 80px per cell OR 95% of viewport width, whichever is smaller */
    width: min(calc(var(--board-size) * 80px), 95vw);
    display: grid;
    /* Distribute available space equally among columns */
    grid-template-columns: repeat(var(--board-size), 1fr);
    gap: 2px;
    background-color: #333;
    padding: 5px;
    margin: 20px auto;
    box-shadow: 0 0 15px rgb(113, 75, 162); 
}

.game-cell[b-poqpftsfll] {
    /* Remove fixed size, let grid handle it */
    width: 100%;
    /* Ensure cells stay square */
    aspect-ratio: 1;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}





.cell-content[b-poqpftsfll] {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.cell-content.blue[b-poqpftsfll] {
    background-image: url('images/sprites/Blue.bmp');
}

.cell-content.red[b-poqpftsfll] {
    background-image: url('images/sprites/Red.bmp');
}

.game-cell.selected .cell-content.blue[b-poqpftsfll] {
    background-image: url('images/sprites/BlueSelected.bmp');
}

.game-cell.selected .cell-content.red[b-poqpftsfll] {
    background-image: url('images/sprites/RedSelected.bmp');
}

.cell-content.black[b-poqpftsfll] {
    background-image: url('images/sprites/Black.bmp');
    width: 100%;
    height: 100%;
}

@media (max-width: 600px) {
    /* Fluid layout handles sizing now, no need for overrides */
}

.game-controls[b-poqpftsfll] {
    margin-bottom: 20px;
    text-align: center; /* Helper for centering controls */
    display: flex;
    justify-content: center;
}

.game-menu[b-poqpftsfll] {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    color: #333; /* Dark text for readability */
    display: flex;
    gap: 10px;
    align-items: center;
}

.status-bar[b-poqpftsfll] {
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
}

.player-indicator[b-poqpftsfll] {
    padding: 2px 5px;
    border-radius: 4px;
}

.player-indicator.red[b-poqpftsfll] {
    color: red;
    font-weight: bold;
}

.player-indicator.blue[b-poqpftsfll] {
    color: blue;
    font-weight: bold;
}

.game-title[b-poqpftsfll] {
    text-align: center;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.game-timer[b-poqpftsfll] {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    margin-bottom: 15px;
}

.tutorial-section[b-poqpftsfll] {
    width: 95%; /* Provides margin on mobile */
    max-width: 600px; /* Keep it readable */
    margin: 20px auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}

.tutorial-header[b-poqpftsfll] {
    background-color: #f0f0f0;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.tutorial-header:hover[b-poqpftsfll] {
    background-color: #e0e0e0;
}

.tutorial-content[b-poqpftsfll] {
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid #ccc;
}

.tutorial-content p[b-poqpftsfll] {
    margin: 0;
}
