* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
} 
 
body { 
    background: #000; 
    color: white; 
    font-family: "Arial", sans-serif; 
    overflow: hidden; 
    user-select: none; 
    -webkit-user-select: none; 
    height: 100vh; 
    display: flex; 
    flex-direction: column; 
} 
 
.score-container { 
    position: absolute; 
    right: 20px; 
    top: 50%; 
    transform: translateY(-50%); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    z-index: 10; 
    gap: 40px; 
} 
 
.score-section { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    background: rgba(0, 0, 0, 0.6); 
    padding: 10px 20px; 
    border-radius: 10px; 
    border: 2px solid; 
    box-shadow: 0 0 15px currentColor; 
} 
 
.ai-score-section { 
    color: #00ff66; 
    border-color: #00ff66; 
} 
 
.player-score-section { 
    color: #ff0066; 
    border-color: #ff0066; 
    margin-top: 100px; 
} 
 
.player-name { 
    font-size: 16px; 
    margin-bottom: 5px; 
    color: #ccc; 
} 
 
.score { 
    font-size: 36px; 
    font-weight: bold; 
    text-shadow: 0 0 15px currentColor; 
} 
 
.controls { 
    position: absolute; 
    top: 20px; 
    width: 100%; 
    display: flex; 
    justify-content: space-between; 
    padding: 0 20px; 
    z-index: 10; 
} 
 
.control-btn { 
    padding: 8px 15px; 
    background: rgba(255, 255, 255, 0.2); 
    color: white; 
    border: 1px solid rgba(255, 255, 255, 0.3); 
    border-radius: 5px; 
    cursor: pointer; 
    transition: all 0.3s; 
    font-weight: bold; 
} 
 
.control-btn:hover { 
    background: rgba(255, 255, 255, 0.3); 
    transform: scale(1.05); 
} 
 
#pause-btn { 
    margin-left: auto; /* Align right */ 
} 
 
#restart-btn { 
    margin-right: auto; /* Align left */ 
} 
 
.game-container { 
    flex: 1; 
    position: relative; 
    overflow: hidden; 
    height: 100vh; 
} 
 
#gameCanvas { 
    display: block; 
    width: 100%; 
    height: 100%; 
} 
 
.game-status { 
    position: absolute; 
    top: 70%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    font-size: 20px; 
    color: #ff0066; /* Default player color */ 
    text-shadow: 0 0 15px currentColor; 
    text-align: center; 
    background: rgba(0, 0, 0, 0.1); 
    padding: 20px 30px; 
    border-radius: 15px; 
    border: 3px solid currentColor; 
    box-shadow: 0 0 25px rgba(255, 0, 102, 0.3); 
    z-index: 5; 
} 
 
.game-status.ai-serve { 
    color: #00ff66; /* AI color */ 
    top: 30%; 
    box-shadow: 0 0 25px rgba(0, 255, 102, 0.3); 
} 
 
.game-over { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.9); 
    display: none; 
    justify-content: center; 
    align-items: center; 
    flex-direction: column; 
    z-index: 100; 
} 
 
.game-over h2 { 
    color: #00ffff; 
    font-size: 48px; 
    margin-bottom: 30px; 
    text-shadow: 0 0 30px #00ffff; 
    animation: pulse 2s infinite; 
} 
 
@keyframes pulse { 
    0%, 100% { opacity: 1; } 
    50% { opacity: 0.7; } 
} 
 
.restart-btn { 
    padding: 15px 40px; 
    font-size: 24px; 
    background: linear-gradient(45deg, #00ffff, #0088cc); 
    color: white; 
    border: none; 
    border-radius: 15px; 
    cursor: pointer; 
    box-shadow: 0 0 25px #00ffff; 
    transition: all 0.3s; 
    text-transform: uppercase; 
    font-weight: bold; 
} 
 
.restart-btn:hover { 
    transform: scale(1.1); 
    box-shadow: 0 0 40px #00ffff; 
} 
 
@media (max-width: 768px) { 
    .score-container { 
        right: 10px; 
    } 
     
    .score-section { 
        padding: 5px 10px; 
    } 
     
    .score { 
        font-size: 22px; 
    } 
     
    .player-name { 
        font-size: 14px; 
    } 
     
    .game-status { 
        font-size: 18px; 
        padding: 15px 20px; 
    } 
     
    .control-btn { 
        padding: 5px 10px; 
        font-size: 12px; 
    } 
     
    .player-score-section { 
        margin-top: 80px; 
    } 
     
    .controls { 
        padding: 0 10px; 
    } 
}