


body {
    background: #000;
}


#gl-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}


/* HIGHSCORES */

#highScoresContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2000;
}

/* High Scores Table */
#highScores {
    color: #8BA7AF;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    text-shadow: 0px 0px 1px #A4AEB2;
    letter-spacing: 3px;
    font-weight: 300;
    text-transform: uppercase;
    max-height: calc(100% - 360px);
    margin-top: 110px; 
    margin-bottom: 250px;
    padding-bottom: 0px;
    padding-top: 40px;
    mask-image: linear-gradient(to bottom, transparent 0px, black 40px, black calc(100% - 100px), transparent calc(100% - 0px));
    -webkit-mask-image: linear-gradient(to bottom, transparent 0px, black 40px, black calc(100% - 100px), transparent calc(100% - 0px));
    overflow-y: auto;
    pointer-events: all;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Tier Header Styling */
#highScores tr.tier-header td {
    background: linear-gradient(
        to right,
        rgba(165, 201, 211, 0) 0%,
        rgba(165, 201, 211, 0.2) 40%,
        rgba(165, 201, 211, 0.2) 60%,
        rgba(165, 201, 211, 0) 100%
    );
    color: #A5C9D3;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
    text-align: center;
    padding: 4px;
    border: none;
}

/* Hide Scrollbar */
#highScores::-webkit-scrollbar {
    display: none;
}

/* Extra Space at Bottom */
#highScores:after {
    content: "";
    display: block;
    height: 60px;
}

/* Table Layout */
#highScores table {
    width: 100%;
    border-collapse: collapse;
    overflow: auto;
}

/* Cell Styling */
#highScores th, #highScores td {
    text-align: left;
    border: none;
    white-space: nowrap;
    overflow: hidden;
    padding: 2px 10px;
    line-height: 17px;
}

/* Align Score Column to Right */
#highScores td:last-child, 
#highScores th:last-child {
    text-align: right;
    padding-right: 15px;
}

/* Reset Margin Inside Cells */
#highScores th div, #highScores td div {
    margin: 0;
    transition: color 0.5s ease; /* Smooth color fade */
}

/* Align Rank Column to Right */
#highScores th:first-child, #highScores td:first-child {
    text-align: right;
}

/* Fade-In Animation */
.hidden-row {
    opacity: 0;
}

@keyframes showRow {
    from { opacity: 0; }
    to { opacity: 1; }
}

.show-row {
    animation: showRow 0.5s forwards;
}

/* Highlight Latest Score */
.text-white {
    color: #fff;
}

#loadingSpinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 8px solid rgba(0, 0, 0, 0.1);
    border-top: 8px solid #555;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    z-index: 9999;
}

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