/* General Styles for Body */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* Background and Layout Settings */
body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    position: relative;
}

.background-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
    position: absolute;
    top: 0;
    left: 0;
}

/* Menu Styles */
.menu {
    position: absolute;
    top: 20%;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.menu h1 {
    margin: 0;
    font-size: 32px;
    color: #333;
}

.menu ul {
    list-style-type: none;
    padding: 0;
}

.menu li {
    margin: 10px 0;
}

.menu button {
    padding: 10px 20px;
    font-size: 18px;
    color: white;
    background-color: #4d79ff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.menu button:hover {
    background-color: #335a99;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.modal-content h2 {
    font-size: 24px;
    color: #333;
}

.modal-content p {
    font-size: 18px;
    color: #555;
}

.modal-content button {
    padding: 10px 20px;
    font-size: 18px;
    color: white;
    background-color: #4d79ff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-content button:hover {
    background-color: #335a99;
}

/* Board Styles */
.board {
    display: grid;
    grid-template-columns: repeat(7, 60px);
    grid-template-rows: repeat(7, 60px);
    gap: 5px;
    margin-top: 30px;
}

.cell {
    width: 60px;
    height: 60px;
    background-color: lightgray;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, background-color 0.3s ease;
}

.cell.player1 {
    background-color: #ff4d4d;
}

.cell.player2 {
    background-color: #4d79ff;
}

.cell:hover {
    transform: scale(1.2);
}

.highlight {
    background-color: rgb(0, 0, 0);
}

.cell.highlight {
    border: 2px dashed yellow !important;
    background-color: rgba(255, 255, 0, 0.3) !important;
}

/* Auth Container Styles */
#auth-container {
    background-image: url('picc.png'); /* Replace with your image */
    background-size: 60%; /* Adjust the size of the background image to 60% */
    background-position: center center; /* Center the image */
    background-repeat: no-repeat; /* Ensure the background image doesn't repeat */
    padding: 20px; /* Add padding around the content */
    border-radius: 10px;
    width: 80%; /* Set width to 80% of the parent container */
    height: 400px; /* Set a fixed height for the container */
    margin: 0 auto; /* Center the container horizontally */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}



.auth-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.auth-container h2 {
    margin-bottom: 10px;
}

form {
    margin-top: 10px;
}

input[type="text"] {
    padding: 8px;
    width: 80%;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* Status Styles */
.status {
    margin: 20px;
    font-size: 18px;
    display: none; /* Initially hide the status */
}

/* Hidden Class */
.hidden {
    display: none;
}

/* Board visibility */
#board {
    display: none;
}

.game-active #menu {
    display: none;
}

.game-active #board {
    display: grid;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.game-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.game-btn:hover {
    background-color: #ff3333;
}

#game-controls {
    display: none;
}
.game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.game-btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.game-btn:hover {
    background-color: #45a049;
}