:root {
    --primary: #4f46e5;
    --background: #f9fafb;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
  }
  
  * {
    user-select: none;  /* Disable text selection */
    -webkit-user-drag: none;  /* Disable drag on WebKit-based browsers (Chrome, Safari) */
  }

  body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--text);
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .app-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  
  .card {
    background: var(--card);
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    text-wrap: wrap;
  }
  
  
  .hidden {
    display: none;
  }
  
  h1 {
    word-wrap: break-word; /* Ensures long words break and wrap */
    white-space: normal; /* Allows the text to wrap to the next line */
    word-break: break-word; /* Breaks words if they are too long */
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary);
  }

  h2 {
    margin: 10px auto 10px;
    width: 85%;
    color: var(--text);
  }

  input[type="text"] {
    padding: 12px;
    width: 85%;
    border: 1px solid var(--muted);
    color: var(--text);
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    background-color: var(--card);
  }
  
  button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
  }
  
  button:hover {
    background: #3730a3;
  }
  
  #question-text {
    word-wrap: break-word; /* Ensures long words break and wrap */
    white-space: normal; /* Allows the text to wrap to the next line */
    word-break: break-word; /* Breaks words if they are too long */
    max-width: 100%; /* Ensures the text fits within the container */
  }
  

  .options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
  }
  
  .options button {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--muted);
    padding: 10px;
    border-radius: 8px;
  }
  
  .options button:hover {
    background: var(--muted);
  }
  
  .options button.correct {
    border-color: rgb(107, 253, 107);
  }
  
  .options button.wrong {
    border-color: rgb(255, 95, 95);
  }
  
  #leaderboard {
    text-align: left;
    margin-top: 20px;
  }
  
  #leaderboard-list {
    padding-left: 0;
    list-style: none;
    margin: 0;
  }
  
  #leaderboard h3 {
    color: var(--text);
  }

  #leaderboard-list li {
    padding: 8px;
    color: var(--text);
    border-bottom: 1px solid var(--muted);
    font-weight: 500;
  }
  
  #leaderboard-list span {
    color: var(--text);
  }

  #result button {
    margin-top: 30px;
  }

/* ADMINNNNNNNNNNNNNNNNNNNNNNN */

  /* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}



  #admin-panel {
    text-align: center;
    color: var(--text);
  }
  
  #admin-panel h3 {
    border-top: 1px solid var(--muted);
    margin-top: 40px;
    padding-top: 10px;
    margin-bottom: 10px;
    color: var(--text);
  }

  #admin-panel h2 {
    color: var(--primary);
  }
  
  #admin-panel input {
    width: 90%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid var(--muted);
    border-radius: 8px;
  }
  
  #admin-panel button {
    margin-top: 10px;
  }
  
  #admin-panel button:hover {
    background: #3730a3;
  } 

  a {
    text-decoration: underline;
    color: var(--text);
  }

  a:active {
    color: var(--muted);
  }

  th {
    overflow: hidden;
    text-wrap: wrap;
    width: 85%;
  }

  #No {
    width: auto;
  }

  #question-table {
    color: var(--text);
    width: 100%; /* Ensures the table takes the full width of its container */
    table-layout: auto; /* Allows the table to automatically adjust based on content */
  }
  
  #question-table td {
    color: var(--text);
    word-wrap: break-word; /* Forces long words to wrap instead of overflowing */
    max-width: 250px; /* Optional: You can set a maximum width for the text column */
    white-space: normal; /* Allows the text to wrap */
  }
  
  #question-table th {
    text-align: left; /* Aligns headers to the left */
    padding: 8px;
  }
  
  #question-table td {
    padding: 8px;
    vertical-align: top; /* Aligns text to the top of the cell */
  }
  
  .contribution {
    margin-top: 1rem;
  }

  div {
    color: var(--muted);
  }