/* Styling for the GitHub link */
.github-link {
    display: block; /* Make it a block element to occupy its own line */
    margin-top: 15px; /* Add some space above the link */
    color: #007bff; /* A nice blue color for links */
    text-decoration: none; /* Remove underline */
    font-weight: bold; /* Make the text bold */
    transition: color 0.3s ease; /* Smooth transition for hover effect */
}

.github-link:hover {
    color: #0056b3; /* Darker blue on hover */
    text-decoration: underline; /* Underline on hover */
}

body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
    margin: 0;
}

#lobby-container {
    text-align: center;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 500px;
}

#room-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.room {
    background-color: #e9ecef;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #dee2e6;
    font-size: 1.1em;
    color: #495057;
}

.room:hover {
    background-color: #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.room.full {
    background-color: #f8d7da;
    color: #721c24;
    cursor: not-allowed;
    border-color: #f5c6cb;
}


.game-container {
    text-align: center;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

#game-status {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #555;
    font-weight: bold;
}

#game-board {
    display: grid;
    grid-template-columns: repeat(7, 60px); /* 7 columns, each 60px wide */
    grid-template-rows: repeat(6, 60px);    /* 6 rows, each 60px high */
    gap: 5px;
    background-color: #4682B4; /* SteelBlue for the board background */
    border-radius: 5px;
    padding: 10px;
    margin: 0 auto 20px auto; /* Center the board */
    width: fit-content; /* Adjust width to content */
}

.cell {
    width: 60px;
    height: 60px;
    background-color: #f0f8ff; /* AliceBlue for empty slots */
    border-radius: 50%; /* Make cells circular for piece slots */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer; /* Indicate clickable cells */
    position: relative; /* For piece positioning */
}

.cell.player1 {
    background-color: #ff6347; /* Tomato red for Player 1 */
}

.cell.player2 {
    background-color: #ffd700; /* Gold for Player 2 */
}

/* Style for the actual pieces that will be added dynamically */
.piece {
    width: 50px; /* Slightly smaller than cell */
    height: 50px; /* Slightly smaller than cell */
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.new-piece {
    animation: drop 0.5s ease-out forwards; /* Animation for dropping */
}

.last-piece {
    box-shadow: 0 0 15px 5px rgba(255, 255, 0, 0.75);
}

.player1-piece {
    background-color: #ff6347; /* Tomato red */
}

.player2-piece {
    background-color: #ffd700; /* Gold */
}

@keyframes drop {
    from {
        transform: translate(-50%, -200%); /* Start from above */
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%); /* End in the center */
        opacity: 1;
    }
}


button {
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background-color: #28a745; /* Success green */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #218838;
}
