* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f0f0f0;
    padding: 20px;
}

.game-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.kerning-message {
    text-align: center;
    margin-bottom: 20px;
    color: #FF5722;
    font-weight: bold;
    font-style: italic;
}

.demon-warning {
    text-align: center;
    margin-bottom: 20px;
    color: #9C27B0;
    font-weight: bold;
    display: none;
}

h2 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

.game-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.angle-display {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
    font-size: 18px;
    padding: 0 20px;
}

#your-angle-display {
    min-width: 150px; 
}

/* MODE SELECT BAR */
.mode-bars {
    width: 100%;
    margin: 0 0 14px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mode-bar {
    display: flex;
    align-items: center;
    background: #f3f3f3;
    border-radius: 6px;
    padding: 6px 12px;
    margin-bottom: 4px;
    gap: 10px;
}
.mode-bar-title {
    font-weight: bold;
    font-size: 15px;
    margin-right: 15px;
    color: #444;
    min-width: 100px;
    display: inline-block;
}
.mode-bar .mode-tab {
    margin: 0 3px;
    padding: 6px 18px;
    background: #e3e3e3;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    transition: 0.22s background;
    position: relative;
    outline: none;
}
.mode-bar .mode-tab.active,
.mode-bar .mode-tab:active {
    background: #2196F3;
    color: #fff;
    font-weight: bold;
}
.mode-bar .mode-tab.coming-soon {
    cursor: not-allowed;
    background: #eeeeee;
    color: #adb5bd;
    font-weight: normal;
    position: relative;
}
.soon-label {
    display: inline-block;
    background: #ffe082;
    color: #745305;
    font-size: 10px;
    border-radius: 6px;
    margin-left: 6px;
    padding: 2px 7px 1px 7px;
    vertical-align: middle;
    font-weight: bold;
    letter-spacing: 0.5px;
}
.mode-bar .mode-tab:not(.coming-soon):hover {
    background: #1976d2;
    color: #fff;
}

/* END MODE BAR */

#game-canvas {
    width: 300px;
    height: 300px;
    border: 2px solid #333;
    border-radius: 50%;
    margin-bottom: 20px;
    cursor: pointer;
}

.controls {
    display: flex;
    gap: 10px;
}

button {
    padding: 10px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

#reset-button {
    background-color: #f44336;
}

#reset-button:hover {
    background-color: #d32f2f;
}

#reset-button:disabled {
    background-color: #ffcccc;
}

.mode-toggle {
    margin-bottom: 10px;
    text-align: center;
}

.mode-button {
    background-color: #2196F3;
    padding: 8px 16px;
    font-size: 14px;
    min-width: 210px;
}

.mode-button.hard-mode {
    background-color: #FF5722;
}

.mode-button:hover {
    background-color: #0b7dda;
}

.mode-button.hard-mode:hover {
    background-color: #e64a19;
}

.leaderboard-container {
    margin-top: 30px;
}

/* Increase spacing/clarity between the two leaderboards */
.leaderboard-container h2 {
    margin-top: 24px;
}

/* To give each leaderboard its own visuals */
#leaderboard-normal, #leaderboard-hard {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.leaderboard-angle {
    width: 120px;
    text-align: center;
}

.leaderboard-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-item:nth-child(even) {
    background-color: #f9f9f9;
}

.leaderboard-item.current-user {
    background-color: #e8f5e9;
}

.leaderboard-rank {
    font-weight: bold;
    width: 30px;
}

.leaderboard-username {
    flex-grow: 1;
    text-align: left;
    padding-left: 10px;
}

.leaderboard-score {
    width: 70px;
    text-align: right;
}

.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

#accuracy-display {
    font-weight: bold;
}