/* General Body Styles */
body {
    margin: 0;
    background-color: #f0f0f0; /* Light background for the menu */
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Game Start Menu Styles */
#gameStartMenu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#gameStartMenu h1 {
    font-size: 5rem;
    margin-bottom: 2rem;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: bold;
    color: #333;
}

.menu-buttons {
    display: flex;
    gap: 1rem; /* Space between buttons */
}

#gameStartMenu button {
    font-size: 1.5rem;
    padding: 1rem 2.5rem;
    cursor: pointer;
    border: 2px solid #333;
    background-color: white;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 1px;
}

#gameStartMenu button:hover {
    background-color: #333;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.back-button {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: #555;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.back-button:hover {
    background-color: #ddd;
}


body {
    margin: 0;
    background-color: #f0f0f0; /* Light background for the menu */
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

body.game-active {
    background-color: #202028;
}

body.game-active {
    background-color: #202028;
}

.page-container {
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Game Start Menu Styles */
#gameStartMenu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#gameStartMenu h1 {
    font-size: 5rem;
    margin-bottom: 2rem;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: bold;
    color: #333;
}

.menu-buttons {
    display: flex;
    gap: 1rem; /* Space between buttons */
}

#gameStartMenu button {
    font-size: 1.5rem;
    padding: 1rem 2.5rem;
    cursor: pointer;
    border: 2px solid #333;
    background-color: white;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 1px;
}

#gameStartMenu button:hover {
    background-color: #333;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.back-button {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: #555;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.back-button:hover {
    background-color: #ddd;
}


/* Game Container Styles */
#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 80px; /* Add margin for spacing */
}

.game-boards {
    display: flex;
    gap: 2em;
    margin-bottom: 2em;
}

.player-area h2 {
    color: #fff;
    font-size: 1.5em;
    margin-bottom: 0.5em;
    text-align: center;
}

#player-score, #com-score {
    color: #fff;
    font-size: 2em;
    margin-bottom: 1em;
    text-align: center;
}

canvas {
    border: solid .2em #fff;
}

.game-controls button {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border: 2px solid #fff;
    background-color: transparent;
    color: #fff;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.game-controls button:hover {
    background-color: #fff;
    color: #202028;
}

/* Ranking Column Styles */
.ranking-column, .next-queue-column {
    width: 250px;
    padding: 20px;
    border: 2px solid #fff;
    background-color: #2a2a34;
    border-radius: 8px;
    color: #fff;
}

.next-queue-column {
    width: 120px;
}

.next-queue-column canvas {
    border: none;
    margin-bottom: 10px;
}

.ranking-column h2, .next-queue-column h2 {
    text-align: center;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #555;
}

#ranking-list {
    list-style-type: decimal;
    padding-left: 20px;
    margin: 0;
}

#ranking-list li {
    font-size: 1.1em;
    padding: 8px 5px;
    border-bottom: 1px solid #444;
}

#ranking-list li:first-child {
    font-weight: bold;
    color: #ffd700; /* Gold color for the top rank */
}
