@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #000000;
    color: #0ff;
    font-family: 'Orbitron', sans-serif;
    overflow: hidden;
}

#gameCanvas {
    background-color: #0a0a0a;
    border: 2px solid #0ff;
    box-shadow: 0 0 20px #0ff, 0 0 30px #0ff, 0 0 40px #f0f, inset 0 0 20px #0ff;
    z-index: 1;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 255, 0.1),
            rgba(0, 255, 255, 0.1) 1px,
            transparent 1px,
            transparent 20px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 0, 255, 0.1),
            rgba(255, 0, 255, 0.1) 1px,
            transparent 1px,
            transparent 20px
        );
    pointer-events: none;
}

.score-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    z-index: 2;
}

#player1-score, #player2-score {
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 0 0 10px #0ff, 0 0 20px #0ff, 0 0 30px #f0f;
    margin: 0 40px;
}

.hidden {
    display: none !important;
}

#lobby {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border: 2px solid #f0f;
    box-shadow: 0 0 25px #f0f, inset 0 0 25px #f0f;
    background-color: rgba(10, 0, 10, 0.8);
    border-radius: 10px;
}

#lobby h1 {
    font-size: 3.5rem;
    text-shadow: 0 0 15px #f0f;
    margin-bottom: 1.5rem;
    color: #f0f;
}

#versus-display {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

#versus-display .versus-text {
    color: #f0f;
    font-weight: 700;
    margin: 0 20px;
}

#player1-name-display, #player2-name-display {
    color: #0ff;
    text-shadow: 0 0 10px #0ff;
}

#lobby input {
    background-color: #0a0a0a;
    border: 1px solid #0ff;
    color: #0ff;
    padding: 10px;
    margin-bottom: 1rem;
    width: 80%;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    box-shadow: 0 0 10px #0ff, inset 0 0 5px #0ff;
}

#lobby .button-container {
    display: flex;
    gap: 1rem;
}

#lobby button {
    background-color: transparent;
    border: 2px solid #f0f;
    color: #f0f;
    padding: 10px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px #f0f;
}

#lobby button:hover {
    background-color: #f0f;
    color: #000;
    box-shadow: 0 0 20px #f0f, 0 0 30px #f0f;
}

#statusMessage {
    margin-top: 1rem;
    height: 20px;
    color: #f0f;
    text-shadow: 0 0 5px #f0f;
}

