* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  background: rgb(0, 0, 0);
  color: #ffffff;
  margin: 0;
  overflow: hidden;
  font: bold;
}

/* Style the modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  border-radius: 5px;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  color: black;
}

#openModal,#showPercentageBtn {
  background-color: #007bff;
  color: #afafaf;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-family: "poppins";
  font-weight: 700;
}


#openModal:hover {
  background-color: #0056b3;
}

.modaltext {
  color: black;
}

#notification-display {
  font-size: 14px;
  margin-top: 10px;
}
.topi {
  text-decoration: underline;
  color: rgb(34, 115, 0);
}
.topic {
  text-decoration: underline;
  color: red;
}

/* buttons  */

.analysis-button {
  background-color: #6e34db;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.analysis-button:hover {
  background-color: #2980b9;
}

.analysis-button.active {
  background-color: #e74c3c; /* Change to the desired color for the active state */
}

#digitBeingAnalyzed {
  border-radius: 3px;
  font-size: 30px;
  background-color: white;
  color: black;
  width: 30px;
  margin-bottom: 1px;
}
#comparison-progress {
  height: 40px;
}

.number-buttons {
  display: flex;
  flex-wrap: wrap; /* Added to wrap buttons onto multiple lines */
  justify-content: center;
  margin-top: 20px;
}

.number-buttons button {
  font-family: "poppins";
  width: 45px;
  height: 40px;
  margin: 0 5px;
  font-size: 18px;
  background-color: #3447db;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: grab;
  margin-bottom: 5px; /* Added for spacing between buttons and count displays */
}

.number-buttons button:hover,
.analysis-button {
  background-color: #7a2342;
}

.number-buttons button.selected,
.number-buttons button.active {
  background-color: #4d0024;
  color: #fff;
}

.digit-count {
  color: #fff; /* Color for the digit count display */
  font-size: 14px;
  margin-top: 2px; /* Adjust as needed for spacing */
}

/* Navbar styles */

.navbar {
  background-image: url(/assets/bg-4.png);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  width: 100%;
  height: 10vh;
  z-index: 1;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 4px;
}

.logo h2 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  -webkit-text-stroke: 0.3px black;
  cursor: grab;
}

/* Dashboard styles */

.dashboard {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100vh;
  width: 100vw;
  background: black;
  overflow-y: auto;
}

.main-content {
  text-align: center;
  padding: 2%;
  flex: 1;
}

/* Controls styles */

.controls {
  font-family: "poppins";
  background-color: rgba(0, 0, 0, 0.741);
  backdrop-filter: blur(10px);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid orange;
  gap: 4px;
}

.label {
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 5px;
}

.controls select,
.controls input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: rgba(127, 123, 130, 0.854);
  color: #0c0c0c;
  font-family: "Poppins";
}

/* Comparison buttons styles */

.comparison-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.comparison-btn {
  padding: 10px 20px;
  margin: 5px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.comparison-btn:hover {
  background-color: #555;
}

/* Progress bar styles */

.progress-bar {
  margin-top: 20px;
  text-align: center;
}

.progress-bar label {
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 5px;
}

#comparison-progress {
  width: 100%;
}

#percentage-display {
  font-size: 20px;
  color: #ffffff;
  margin-top: 10px;
}

/* Media queries for responsiveness */

@media (max-width: 576px) {
  .nav-links a {
    border-radius: 6px;
    text-align: center;
    justify-content: center;
    font-size: 8px;
    margin: 2px;
    display: flex;
    padding: auto 0.6px;
  }
  .nava {
    padding: auto 1px;
  }
  .dashboard {
    width: 100vw;
  }

  .main-content {
    width: 100vw;
  }

  .label {
    font-size: 16px;
  }

  .controls select,
  .controls input {
    padding: 8px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .dashboard {
    padding: 20%;
  }

  .label {
    font-size: 18px;
  }

  .controls select,
  .controls input {
    padding: 8px;
    font-size: 14px;
  }
}

@media (max-width: 1200px) {
  .dashboard {
    align-items: center;
    justify-content: center;
    padding-top: 2%;
  }
}

@media (max-width: 1024px) {
  .label {
    font-size: 20px;
  }
}
