@font-face {
  font-family: 'OCRAStd';
  src: url('/assets/fonts/OCRAStd.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

.stats-section {
    margin-top: 20px;
    background-color: var(--color3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid var(--color2);
}

.stat-label {
    font-weight: bold;
    font-size: 1rem;
    color: #FFF;
    margin-right: 10px; /* Adds space between label and value */
}

.stat-value {
    font-weight: bold;
    font-size: 1rem;
    color: #FFF;
    padding-left: 10px; /* Adds space after the colon */
}

.stats-section .stat-item span {
    display: block;
}

.stats-section .stat-value {
    font-weight: normal;
    text-align: right;
}

/* Container for badges */
#badges-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    background: var(--color1);
    padding: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
    position: relative;
}

.badge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    max-width: 120px;
    user-select: none;
    -webkit-user-drag: none;
    cursor: pointer;
}

.details-container {
    width: 100%;
}

/* Ensuring smooth transitions */
#details-container {
    display: none;
}

.dropdown-btn {
    background-color: var(--color2);
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
    font-family: "OCRAStd", monospace;
}

.dropdown-btn:hover {
    background-color: var(--color3);
}

/* Badge image styling */
.badge img, .badge-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Greyscale badges (for unearned badges) */
.greyscale img {
    filter: grayscale(100%);
    opacity: 20%;
}

/* Show details below badge */
.badge-container:hover {
    transform: scale(1.05);
}

/* Custom scrollbar styling for webkit browsers (Chrome, Safari, etc.) */
#badges-container::-webkit-scrollbar {
    height: 8px;
}

#badges-container::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
}

#badges-container::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}