
/*style.css*/


body {
    background-image: url('image/webbackground.PNG');
    background-size: cover; /* This ensures the image covers the entire background */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    /* You can also adjust other properties like background-position if needed */
}





.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}


#gameBoard {
    display: grid;
    grid-template-columns: repeat(5, 100px); /* Adjust based on your grid size */
    gap: 0px;
}

/* #gameBoard { */
    /* display: grid; */
    /* Specify each column's width manually if not using 'repeat' */
    /* grid: 100px 100px 100px 100px 100px; */
    /* gap: 0px; */
/* } */


.cell {
    width: 100px;
    height: 100px;
    background-color: #f0f0f0;
    border: 1px solid #333;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}


.hallway_Horizontal, .hallway_Vertical {
    font-size: 0.8em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hallway_Horizontal {
    width: 50px; /* Smaller width */
    height: 100px; /* Full height */
    margin-left: 25px; /* Adjust this to center horizontally */
}

.hallway_Vertical {
    width: 100px; /* Full width */
    height: 50px; /* Smaller height */
    margin-top: 25px; /* Adjust this to center vertically */
}


.cell.blocked {
    background-color: #060101; 
    /* Darker color to indicate the cell is blocked */
    border-color: #d30707; 
    /* Dark border for better visibility */
}


.piece {

    /* border-radius: 100%; 
    /* Makes the piece a circle */
    background-color: transparent; /* Initially no player */
    align-items: center;
    background-size: contain;
    /* Adjust the image size to cover the entire element */
    background-repeat: no-repeat;
    align-items: center;
    background-position: center;
    overflow: hidden; /* Hide any overflow content outside the circular shape */
}

.player1 { background-color: red; 

    background-image: url('image/Pro.PNG');

}

.player2 { background-color: orange; 

    background-image: url('image/sar.PNG');

}

.player3 { background-color: yellow; 

    background-image: url('image/mus.PNG');

} 

.player4 { background-color: green;

    background-image: url('image/whi.PNG');

} 

.player5 { background-color: pink;    

    background-image: url('image/gre.PNG');
} 

.player6 { background-color: purple;     

    background-image: url('image/pea.PNG');

}
/* Add more as needed for additional players



/* Add space above the dropdown container */
.dropdowns-container {
    margin-top: 20px; /* Adjust the space as needed */
}


.controller {
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
}

.controller-row {
    display: flex;
    justify-content: center;
}

#chatContainer {
    position: fixed; /* Keep the chat container in the same place */
    top: 100px; /* Distance from the top of the viewport */
    right: 100px; /* Distance from the right of the viewport */
    width: 300px; /* Set a fixed width */
    height: auto; /* Adjust height automatically based on content */
    max-height: 500px; /* Set a max height */
    display: flex; /* Use Flexbox for the layout */
    flex-direction: column; /* Stack items from top to bottom */
    border: 1px solid #000; /* Define a border */
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Adds shadow for depth */
    padding: 20px; /* Add space inside the container */
}

#inputContainer {
    margin-bottom: 10px; /* Space between input container and chat box */
}

#chatBox {
    overflow-y: auto; /* Add scroll bar if content is too long */
    flex-grow: 1; /* Allow the chat box to grow and fill available space */
    max-height: 400px; /* You can adjust this based on your needs */
}




#playerCards {
    position: fixed; /* Keep the card container fixed */
    top: 100px; /* Distance from the top of the viewport */
    left: 50px; /* Distance from the left of the viewport */
    width: 200px; /* Set a fixed width */
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    border: 1px solid #000; /* Define a border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Adds shadow for depth */
    padding: 20px; /* Add space inside the container */
}

.cardContainer {
    margin-bottom: 20px; /* Space between card categories */
    display: flex; /* Use Flexbox for the layout */
    flex-direction: column;
}
.card {
    background-color: white; /* Card background */
    color: black; /* Text color */
    padding: 10px 20px; /* Padding inside the button */
    margin: 2px; /* Space between cards */
    border: 1px solid #ddd; /* Border color */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Change mouse icon to pointer */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}

.card:hover {
    background-color: goldenrod; /* Light grey background on hover */
    border-color: #ccc; /* Darker border color on hover */
}


#playerCountSelection {
    position: fixed; /* Fixed position to stay in place even when scrolling */
    top: 70%; /* Position the top edge of the element in the middle of the screen */
    left: 50%; /* Position the left edge of the element in the middle of the screen */
    transform: translate(-50%, -50%); /* Shift the element up and to the left by half its height and width to center it */
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    border: 1px solid #ddd; /* Light grey border */
    padding: 20px; /* Spacing inside the box */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Slight shadow for depth */
    display: none; /* Initially hidden, will be shown for player 1 */
    z-index: 100; /* Ensure it's on top of other elements */
}



