/* General Styles */
body {
    margin: 0;
    overflow: hidden;
    font-family: Arial;
    background-color: #000; /* Changed background for better contrast */
    color: #fff;
}

.hidden {
    display: none;
}

/* Menu Styles */
.menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(30, 30, 30, 0.9);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.menu h1 {
    margin-top: 0;
    font-size: 2em;
}

.menu button {
    margin: 10px 0;
    padding: 15px 30px;
    font-size: 1em;
    border: none;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

.menu button:hover {
    background-color: #0056b3;
}

/* Game Canvas */
#gameCanvas {
    display: block;
    background-color: #f0f0f0;
}

/* HUD Styles */
#hud {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 18px;
}

#hud div {
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
}

#expBarContainer {
    width: 200px;
    height: 20px;
    background: #555;
    border-radius: 10px;
    overflow: hidden;
}

#expBar {
    width: 0%;
    height: 100%;
    background: #00FF00;
}

#pauseButton {
    padding: 10px 20px;
    background-color: #FFA500;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#pauseButton:hover {
    background-color: #cc8400;
}

/* Upgrade and Mutation Panels */
#upgradePanel, #mutationPanel {
    position: absolute;
    bottom: 10px;
    background: rgba(30, 30, 30, 0.8);
    padding: 15px;
    border-radius: 8px;
    width: 180px;
    max-height: 60vh;
    overflow-y: auto;
}

#upgradePanel {
    left: 10px;
}

#mutationPanel {
    right: 10px;
}

#upgradePanel h2, #mutationPanel h2 {
    margin-top: 0;
}

#upgradePanel button, #mutationPanel button {
    margin: 5px 0;
    padding: 10px;
    width: 100%;
    border: none;
    background-color: #28a745;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}

#upgradePanel button:hover, #mutationPanel button:hover {
    background-color: #1e7e34;
}

/* Mini-Map */
#miniMap {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(200, 200, 200, 0.8);
    border: 1px solid #000;
    border-radius: 4px;
}

/* Touch Controls */
#joystickContainer {
    position: absolute;
    bottom: 80px;
    left: 80px;
    width: 100px;
    height: 100px;
    background: rgba(100, 100, 100, 0.5);
    border-radius: 50%;
    touch-action: none;
}

#joystick {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(200, 200, 200, 0.8);
    border-radius: 50%;
    top: 20px;
    left: 20px;
}

/* Statistics Menu */
#statsMenu #statsContent {
    text-align: left;
    margin-top: 20px;
}

#statsMenu #statsContent p {
    margin: 5px 0;
}

.notification {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

