/* Ping Pong Styles */
.container {
    max-width: 950px !important;
    width: 100%;
    margin: 0 auto;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 90%;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    width: 100%;
}

#canvas-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 750px;
}

#game-canvas {
    border: 4px solid #333;
    background-color: black;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    width: 100% !important;
    max-width: 750px !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    display: block;
    margin: 0 auto;
}

.controls {
    margin-top: 15px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 750px;
    width: 100%;
    box-sizing: border-box;
}

.mode-btn {
    display: block;
    width: 100%;
    margin: 15px 0;
    padding: 15px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.2s, transform 0.1s;
}

.mode-btn:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.instructions {
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.1rem;
}
