* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    padding: 20px 0;
    color: #fff !important;
    overflow-x: hidden;
}

/* Ensure all text is white */
body * {
    color: #fff;
}

.game-wrapper {
    padding: 30px 15px;
}

h1 {
    font-size: 4rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    letter-spacing: 15px;
    font-weight: bold;
}

.score-board {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.score-card {
    padding: 10px;
}

.player-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.score-value {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    line-height: 1;
}

.canvas-container {
    position: relative;
    display: inline-block;
}

#pongCanvas {
    border: 3px solid #fff;
    background: #000;
    max-width: 100%;
    height: auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    display: block;
    touch-action: none; /* Prevents default touch behaviors */
}

.controls .btn {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.btn-light {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    color: #2a5298 !important;
}

.btn-light:hover {
    background-color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff !important;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    color: #fff !important;
}

.btn:active {
    transform: scale(0.98) !important;
}

.card {
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 1.8rem;
    font-weight: bold;
}

.card-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #fff !important;
}

kbd {
    padding: 5px 10px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.text-warning {
    color: #ffd700 !important;
}

.border-light {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Responsive design */
@media (max-width: 850px) {
    h1 {
        font-size: 2.5rem;
        letter-spacing: 8px;
    }
    
    .score-value {
        font-size: 3rem !important;
    }
    
    .controls .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    #pongCanvas {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
        letter-spacing: 5px;
    }
    
    .game-wrapper {
        padding: 15px 10px;
    }
    
    .controls .btn {
        display: block;
        width: 100%;
        margin: 5px 0 !important;
    }
}

/* Text color overrides to ensure everything is white */
.text-white,
.text-white * {
    color: #fff !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Prevent text selection on buttons */
button {
    -webkit-tap-highlight-color: transparent;
}