/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f9f9f9;
    margin: 0;
    padding: 20px;
    color: #333;
  }
  
  header {
    margin-bottom: 30px;
  }
  
  h1 {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin: 0;
  }
  
  /* Main Content Section */
  .content {
    text-align: center;
  }
  
  #current-number {
    font-size: 4rem;
    font-weight: bold;
    color: #444;
    margin-bottom: 15px;
  }
  
  /* #bingo-phrase {
    font-size: 1.5rem;
    color: #777;
  } */

  #bingo-phrase {
    font-size: 1rem;
    color: #777;
    text-align: center;
    word-wrap: break-word; /* Allow long words to break and wrap into the next line */
    overflow: hidden;
    display: inline-block;
    transition: font-size 0.3s ease;
    max-width: 70%;
  }
  
  #bingo-call {
    font-size: 7rem;
    font-weight: bold;
    color: #222;
    margin-top: 20px;
  }

  #past-numbers {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap; /* Allow items to wrap into the next line if necessary */
    max-width: 100%; /* Restrict the width of the container */
    overflow: hidden; /* Prevent overflow if items exceed container width */
}

.past-number {
    font-size: 3vw; /* Adjust font size relative to viewport width */
    margin-right: 10px;
    opacity: 0.7;
    color: #666;
}
  
  /* Buttons */
  #toggle-btn {
    font-size: 1.5rem;
    padding: 20px 40px;
    width: 100%;
    max-width: 300px;
    height: 100px;
    background-color: #c300ff;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    margin-bottom: 50px;
  }
  
  #toggle-btn.shrunk {
    font-size: 1rem;
    padding: 10px 20px;
    width: auto;
    height: auto;
  }
  
  #toggle-btn:hover {
    background-color: #5a00b3;
  }

  #add-phrase-btn {
    font-size: 1.2rem;
    padding: 6px 10px;
    background-color: #121bc8;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 30px;
    transition: background-color 0.3s ease;
  }

    #add-phrase-btn:hover {
        background-color: #328dee;
    }
  
  .action-btn {
    font-size: 1.2rem;
    padding: 12px 20px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
  }
  
  .action-btn:hover {
    background-color: #218838;
  }
  
  /* Slider */
  input[type="range"] {
    width: 100%;
    max-width: 200px;
    margin-top: 3px;
  }
  
  .slider-label {
    font-size: 1rem;
    margin-bottom: 5px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  #interval-value {
    margin-left: 10px;
    font-size: 1rem;
  }
  
  /* Popup styles */
  .popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
  }
  
  .popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    width: 400px;
    text-align: center;
  }
  
  .popup input {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    border: 1px solid #ccc;
  }
  
  .popup-btn {
    font-size: 1rem;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
  }
  
  .popup-btn:hover {
    background-color: #0056b3;
  }
  
  #login-form {
    display: block;
    text-align: center;
  }
  
  #login-form input {
    margin: 10px 0;
    padding: 8px;
    width: 80%;
    max-width: 250px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }

  /* Login Button */
#login-btn {
    padding: 10px 20px;
    background-color: #14cf4c; /* Green */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
  }
  
  #login-btn:hover {
    background-color: #009e4f; /* Darker Green */
  }
  
  /* Cancel Button */
  #cancel-login-btn {
    padding: 10px 20px;
    background-color: #ff4d4d; /* Red */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
  }
  
  #cancel-login-btn:hover {
    background-color: #b30000; /* Darker Red */
  }
  
  /* Add Phrase Form */
  #add-phrase-form {
    display: none;
  }

  .app-container {
    border: 5px solid #000;  /* Black border with a width of 5px */
    padding: 20px;  /* Optional: Adds some space between the border and the app content */
    border-radius: 10px;  /* Optional: Adds rounded corners */
    max-width: 100%;  /* Optional: Keeps the container within the page width */
    margin: 0 auto;  /* Optional: Centers the app on the page */
    text-align: center;
    flex-direction: column; /* Stack elements vertically */
    align-items: center;
  }

  .scrollable-container {
    max-height: 250px; /* Overall container height */
    overflow-y: auto;
    border: 1px solid #ccc;
    background: white;
    position: relative;
    margin-top: 20px;
  }
  
  .list-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    padding: 10px;
    background: #f8f8f8; /* Light background for visibility */
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 2px solid #ccc;
  }
  
  .scrollable-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
  }
  
  .number-item {
    display: flex;
    justify-content: space-between;
    padding: 5px;
    border-bottom: 1px solid #ddd;
  }
  .number-item:last-child {
    border-bottom: none;
  }
  
  .phrase-container {
    display: flex;
    flex-direction: column; /* Stack label and phrase-text vertically */
    margin-bottom: 1px; /* Optional: adds space below the whole container */
  }
  
  .phrase-text {
    margin-top: 5px; /* Optional: space between label and phrase */
    font-size: 0.8rem; /* Smaller font size */
    color: #666; /* Optional: adjust color */
  }

  .checkbox-container {
    font-size: 1rem;
    margin-bottom: 5px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.stats-button {
    background-color: #e09916;
    color: rgb(0, 0, 0);
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 10px; /* Pushes form down */
}

.stats-button:hover {
    background-color: #d0c012;
}

.stats-popup {
    position: fixed; /* Center it over everything */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%; /* Make it bigger */
    max-width: 300px; /* Prevent it from being too wide */
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    text-align: center;
    z-index: 1001; /* Higher than other popups */
    display: none; /* Start hidden */
}

.stats-popup h3 {
    margin-top: 0;
    font-size: 1.5em;
}

.stats-popup ul {
    list-style: none;
    padding: 0;
    text-align: center;
    max-height: 300px; /* Scroll if too many users */
    overflow-y: auto;
}

.stats-popup li {
    font-size: 1em;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.stats-popup button {
    margin-top: 15px;
    padding: 10px;
    font-size: 1em;
    cursor: pointer;
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 5px;
}

.stats-popup button:hover {
    background: #b30000;
}

  /* Submit Button */
  #submit-phrase {
    padding: 10px 20px;
    background-color: #14cf4c; /* Green */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
  }
  
  #submit-phrase:hover {
    background-color: #009e4f; /* Darker Green */
  }
  
  /* Cancel submit Button */
  #close-popup {
    padding: 10px 20px;
    background-color: #ff4d4d; /* Red */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
  }
  
  #close-popup:hover {
    background-color: #b30000; /* Darker Red */
  }