#scores {
  background-color: #fff;
  color: #000;
  width: 100%;
  border-radius: 15px;
  padding: 20px;
  font-family: "Arial", sans-serif;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-height: calc(100vh - 145px);
  overflow-y: auto; /* Add this to make the content scrollable */
}

/* Custom scrollbar styling */
#scores::-webkit-scrollbar {
  width: 8px; /* Width of the scrollbar */
}

#scores::-webkit-scrollbar-thumb {
  background-color: #243b55; /* Color of the scrollbar thumb */
  border-radius: 4px; /* Rounded corners for the thumb */
}

#scores::-webkit-scrollbar-thumb:hover {
  background-color: #243b55; /* Darker shade on hover */
}

#scores::-webkit-scrollbar-track {
  background-color: #eaeaea; /* Color of the scrollbar track */
  border-radius: 4px; /* Rounded corners for the track */
}

#scores-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #000;
}

.score-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
  border: 2px solid rgb(175, 175, 175); /* Black border for each score section */
  border-radius: 15px; /* Rounded corners */
  padding: 15px;
}

.score-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #000;
}

.score-box {
  width: 100px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  margin-bottom: 10px;
}

.score-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

.score-caption {
  font-size: 0.9rem;
  color: #666;
  width: 80%;
  margin-top: 5px;
  text-align: center;
}

/* Color code for score ranges */
.score-box.red {
  background-color: #ff0000;
}

.score-box.orange {
  background-color: #ff9900;
}

.score-box.blue {
  background-color: #0066cc;
}

.score-box.dark-green {
  background-color: #008000;
}

.score-box.bright-green {
  background-color: #00cc44;
}

.arrow {
  position: fixed;
  bottom: 10px;
  width: 45px; /* 30px * 1.5 */
  height: 45px; /* 30px * 1.5 */
  line-height: 45px; /* Adjusted for centering content */
  text-align: center;
  background-color: #ccc;
  color: #333;
  cursor: pointer;
  border-radius: 50%;
  font-size: 30px; /* 20px * 1.5 */
  z-index: 1000;
}

#up-arrow {
  display: none;
}

#down-arrow {
  display: none;
}

/* Media query for screen widths less than 1000px */
@media (max-width: 999px) {
  #scores {
    position: fixed;
    bottom: 0;
    border-radius: 15px;
    left: 0;
    width: 100%;
    height: 70%;
    box-shadow: none; /* Remove shadow for fixed positioning */
    margin-left: 0; /* Remove margin */
    padding: 10px; /* Adjust padding for smaller screens */
    overflow-y: auto; /* Allow vertical scrolling if content overflows */
    z-index: 1000; /* Ensure it's on top of other content */
    transition: height 0.3s ease; /* Add transition effect for height */
  }
  .hiddenScores {
    height: 0 !important; /* Transition to this height when hidden */
    overflow: hidden; /* Optional: hide content overflow when hidden */
    display: block;
  }
  #down-arrow {
    position: fixed;
    left: 50%;
    bottom: 78%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background-color: #ccc;
    color: #333;
    cursor: pointer;
    border-radius: 50%;
    font-size: 30px;
    z-index: 1000;
  }
  #up-arrow {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    bottom: 3%;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background-color: #ccc;
    color: #333;
    cursor: pointer;
    border-radius: 50%;
    font-size: 30px;
    z-index: 1000;
  }
}