body {
    font-family: Arial, sans-serif;
    background: #f0f0f0;
    margin: 0;
    padding: 0;
  }
  #header {
    background: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
  }
  .screen {
    display: none;
    padding: 20px;
    text-align: center;
    max-width: 1400px; 
    margin: 0 auto;
  }
  button {
  padding: 10px 20px;
  margin: 10px;
  font-size: 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}
button:hover {
  background-color: #45a049;
}
  #roomList {
    margin: 20px auto;
    max-width: 400px;
    text-align: left;
    list-style: none;
    padding: 0;
  }
  #roomList li {
    background: #fff;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    cursor: pointer;
  }

  .game-container {
    display: flex;
    align-items: center;
    justify-content: center; 
    width: 100%;
    margin: 20px auto;
  }

  .webcam-container {
  width: 300px; 
  height: 300px;
  background: #333;
  border: 2px solid #666;
  border-radius: 10px; 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); 
  margin: 0 15px; 
  display: flex;
  align-items: center;
  justify-content: center;
}

.webcam-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}


#pongCanvas {
  border: 2px solid #333;
  background: #fff;
  margin: 0 20px;
  border-radius: 10px; 
}

#log {
  max-width: 800px;
  margin: 10px auto;
  padding: 10px;
  background: #fff;
  border: 1px solid #ccc;
  height: 100px;
  overflow-y: auto;
  text-align: left;
}
#lobbyStatus, #status {
  font-size: 18px;
  margin: 10px;
}
#winnerOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 36px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
}
#winnerOverlay button {
  margin-top: 20px;
  font-size: 24px;
}

#btnRestartGame {
  display: none !important;
}
