body {
    margin: 0;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
}

canvas {
    display: block;
}

/* --- Top UI Bar --- */
#top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
    color: white;
    font-size: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0));
}

.top-bar-section {
    flex: 1;
    display: flex;
}

#xp-container {
    text-align: left;
}

#coins-container {
    text-align: center;
    
}

#regen-indicator {
    font-size: 14px;
    color: cyan;
    display: none;
    margin-top: 5px;
}
#info-button {
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid white;
    color: white;
    font-size: 20px;
    font-weight: bold;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    text-align: center;
    line-height: 28px;
}
/*
#reset-button {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(255, 165, 0, 0.6);
    border: 1px solid white;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}
*/
#about {
    position: absolute;
    bottom: 0;
    left: 20px;
    color: white;
}

#about a {
    color: #87CEEB;
    text-decoration: none;
}

#about a:hover {
    text-decoration: underline;
    color: #ADD8E6;
}

#reset-button {
    background-color: rgba(255, 0, 0, 0.6);
    border: 1px solid black;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

#reset-everything-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(255, 80, 80, 0.6);
    border: 1px solid white;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}
#free-coins-indicator {
    display: none;
    color: #00ff00;
    font-weight: bold;
}

/* --- Info Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    font-family: sans-serif;
}

#upgrades-grid {
    display: grid;
    gap: 15px;
}
@media (min-width: 900px) {
    #upgrades-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

#upgrade-button {
    background-color: rgba(255, 215, 0, 0.7);
    border: 1px solid white;
    color: black;
    font-size: 12px;
    border-radius: 5px;
    cursor: pointer;
}

.modal-content {
    background-color: #fefefe;
    color: #333;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 10px;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}