/* General styling */
body {
    font-family: "Roboto", sans-serif;
    background: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
  }
  
  .container {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 320px;
    position: relative;
  }
  
  /* Notification bubble */
  .notification {
    position: absolute;
    top: -20px;
    right: -20px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: none;
    color: #fff;
  }
  
  /* PIN-code input boxes */
  .pin-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .pin-box {
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  .pin-box:focus {
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
  }
  
  /* Buttons */
  .join-button,
  .leave-button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    background: #3498db;
    color: white;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .join-button:hover,
  .leave-button:hover {
    background: #2980b9;
  }
  
  /* Modern nickname input box */
  #nicknameInput {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 10px;
  }
  
  #nicknameInput:focus {
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
  }
  
  /* Spinner for the loading screen */
  .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #3498db;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
  }
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  /* Lobby animated dots */
  .dots {
    font-weight: bold;
  }
  
  /* Spacing for waiting text */
  #waitingText {
    margin: 20px 0;
  }
  
/* Loading container to center the spinner */
.loading-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full viewport height */
    width: 100vw;  /* Full viewport width */
    background: #f0f2f5; /* Consistent background */
  }
  