* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a[aria-current="page"] {
    font-weight: bold;
    text-decoration: underline;
    color: #ffcc00;
}

body {
    font-family: 'Press Start 2P', cursive;
    background-color: #0d0d0d;
    background-image: 
linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    color: #ffffff;
    text-align: center;
    margin: 0; 
    padding: 0;

    line-height: 1.8;
    letter-spacing: 1,5px;
}

.leaderboard-container {
    max-width: 700px;
    margin: 50px auto;
    background-color: rgba(0, 0, o, o.85);
    padding: 20px;
    border: 4px solid #33ff33;
    box-shadow: 0 0 15pcx #33ff33, 0 0 25px #00ffcc; 
}

.leaderboard-container h1 {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #ffcc00;
    text-shadow: 0 0 5px #ffcc00, 0 0 10px #ff6600;
}
main h2 {
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    table.leaderboard th,
    table.leaderboard td {
        padding: 8px 5px;
        font-size: 0.9rem;
    }
}
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
table.leaderboard {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    font-family: 'Press Start 2P', cursive;
    border-collapse: collapse;
    table-layout: auto;
}
table.leaderboard td {
font-family: 'Press Start 2P', cursive;
}
.leaderboard thead {
    background-color: #222;
    color: #00ffff;
    border-bottom: 4px solid #33ff33;
}

.leaderboard th,
.leaderboard td {
    padding: 20px;
    text-align: center;
}

.leaderboard tbody tr:nth-child(odd) {
    background-color: rgba(0, 255, 0, 0.05);
}

.leaderboard tbody tr:nth-child(even) {
    background-color: rgba(0, 255, 255, 0.05);
}

.leaderboard tbody tr:nth-child(1) td {
    color: #ffcc00;
    text-shadow: 0 0 5px #ffcc00, 0 0 10px #ff9900;
}
.leaderboard tbody tr:nth-child(2) td {
    color: #cccccc;
    text-shadow: 0 0 5px #cccccc, 0 0 10px #999999;
}
.leaderboard tbody tr:nth-child(3) td {
    color: #cd7f32;
    text-shadow: 0 0 5px #cd7f32, 0 0 10px #995522;
}
.leaderboard tbody tr:nth-child(4) td {
    color: #cd7f32;
    text-shadow: 0 0 5px #33ff33, 0 0 10px #5ab307;
}
.player {
    text-align: left;
}

header {
    position: relative;
    background-color: #222;
    padding: 1rem;
    text-align: center;
    border-bottom: 3px solid #00ffcc;

    background-image: url("images/heading-image.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 20px;
    color: #00ffcc; /*mind this color*/
    text-shadow: 2px 2px #333;
    font-family: 'Press Start 2P', cursive;
}
header nav {
    background-color: #00c2fe;
    padding: 10px 0;
    border-bottom: 3px solid #00c2fe;
}
header nav a {
    color: #000000;
    text-decoration: none;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
}
header h1 {
    font-size: 2rem;
    color: #ffffff;
    text-shadow: 2px 2px #333;
}

/* Main game section */
main {
    background: linear-gradient(to bottom, #000, #011f6b);
    padding:2rem;
    min-height: 100vh;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.main-nav {
    background: color #333;
    border-bottom: 3px solid #00ffcc;
    text-align: center;
    padding: 1rem 0;
}

.main-nav a {
    color: #00ffcc;
    text-decoration: none;
    margin: 0 1rem;
    font-family: 'Press Start 2P', cursive;
}

.main-nav a:hover {
    color: #ffcc00;
}

canvas {
    background-color: #000;
    border: 2px solid #00ffcc;
    box-shadow: 0px 0px 15px rgba(0, 255, 204, 0.7);
}

/* Loading overlay (dying inside) */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #00ffcc;
    z-index: 1000;
}
/*#loader {
    width: 480px;
    height: 480px;
    background-image: url('images/robot-head.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: spin 2s linear infinite;
}
#loader {
    position: fixed; stays centered even when scrolling 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);  perfectly center 
    width: 480px;
    height: 480px;
    background-image: url('images/robot-head.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: spin 2s linear infinite;
    z-index: 1000;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} */

/* Loader animations */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* why won't you work dammit?! */
#loader {
    position: fixed; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    width: min(480px, 80vw); 
    height: min(480px, 80vw);
    background-image: url('images/robot-head.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: spin 2s linear infinite;
    z-index: 1000;
}

/* animation style */
.loader {
  width: 50px;
  height: 50px;
  border: 6px solid #ccc;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Spin animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


#menu p {
    margin-bottom: 1.5rem;
}
#startBtn {
    font-family: 'Press Start 2P' , cursive;
    font-size: 1.2rem;
     padding: 20px 40px;
     background-color: #ffcc00;
     border: 4px solid #333;
     margin: 1.5rem 0;
     color: #000;
     text-transform: uppercase;
     letter-spacing: 2px;
     cursor: pointer;
     box-shadow: 4px 4px 0 #333;
     transition: all 0.2s ease-in-out;
}
#startBtn:hover {
    background-color: #ff9900;
    box-shadow: 2px 2px 0 #333;
    transform: translate(2px, 2px);
}
#startBtn:active {
    background-color: cc6600;
    box-shadow: none;
    transform: translate(4px, 4px);
}

footer {
    background-color: #222;
    text-align: center;
    padding: 0.5rem;
    border-top: 3px solid #00ffcc;
}

footer p {
    color: #888;
    font-size: 0.9rem;
}