body {
  background-color: #121212;
  color: #ffffff;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  overflow: hidden; /* Prevent body overflow */
}

.container {
  text-align: center;
  max-width: 600px;
  width: 100%;
  padding: 20px;
  background: #1e1e1e;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  max-height: 90%; /* Limit height to 90% of the viewport */
  overflow-y: auto; /* Add vertical scrolling if content overflows */
  position: relative; /* Maintain alignment */
}

/* Ensure input and button share the same width */
input, button {
  width: calc(100% - 20px); /* Subtract padding to align widths */
  box-sizing: border-box; /* Include padding and border in width calculation */
}


input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-radius: 4px;
  background: #333;
  color: #fff;
}

button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: none;
  border-radius: 4px;
  background-color: #007BFF;
  color: white;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

.result {
  margin-top: 20px;
  font-size: 18px;
}

.thermometer {
  width: 100%;
  background: #333;
  height: 20px;
  border-radius: 10px;
  margin-top: 10px;
  overflow: hidden;
  position: relative;
}

.thermometer-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, #FF0000, #FFFF00, #00FF00);
  transition: width 0.5s ease-in-out;
}

.score-label {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 2px;
  font-size: 12px;
  color: #ffffff;
}

.details {
  background: #1e1e1e;
  padding: 10px;
  border-radius: 8px;
  margin-top: 20px;
  display: none; /* Initially hidden */
  text-align: left; /* Align content in the details section to the left */
}


.details h3 {
  margin: 0;
  cursor: pointer;
  color: #007BFF;
}

.entity {
  margin-bottom: 10px;
}

hr {
  border: 0;
  height: 1px;
  background: #333;
}
/* Loading Spinner */
.loading {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
  display: inline-block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Align details content to the left */
.details-content {
  text-align: left; /* Align content to the left */
  padding: 10px; /* Optional padding for better readability */
}

