/* Classic Pong Style */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #000;
    touch-action: none;
    font-family: 'Courier New', monospace;
    color: #fff;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#game-canvas {
    background-color: #000;
    border: 2px solid #fff;
    max-width: 100%;
    max-height: 80vh;
    display: none; /* Hidden initially */
}

#score-display {
    position: absolute;
    top: 20px;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    display: none; /* Hidden initially */
}

#wins-display {
    position: absolute;
    top: 50px;
    color: #fff;
    font-size: 16px;
    text-align: center;
    width: 100%;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    display: none; /* Hidden initially */
}

#controls {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 20px;
}

button {
    background-color: #000;
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    transition: background-color 0.2s, color 0.2s;
}

button:hover, button:active {
    background-color: #fff;
    color: #000;
}

#main-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

#main-menu h1 {
    font-size: 48px;
    letter-spacing: 10px;
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

#game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    letter-spacing: 3px;
    z-index: 10;
}

#pause-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    letter-spacing: 3px;
    z-index: 10;
}

#leaderboard {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    z-index: 10;
    overflow-y: auto;
}

#leaderboard-content {
    width: 90%;
    max-width: 600px;
    margin: 20px 0 30px 0;
    overflow-y: auto;
    max-height: 60vh;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    text-align: center;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid #444;
}

th {
    background-color: #111;
    letter-spacing: 2px;
}

tr:hover {
    background-color: #222;
}

#no-scores-message {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    display: none;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    align-items: center;
}

h1, h2 {
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
}

#save-score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
}

input[type="text"] {
    background-color: #000;
    color: #fff;
    border: 2px solid #fff;
    padding: 10px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    text-align: center;
    width: 200px;
    letter-spacing: 1px;
}
