/* styles.css */
body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f8ff;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.game-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#topBar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #eee;
    padding: 10px;
    font-size: 14px;
    color: #333;
}

#topBar button {
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#topBar button:hover {
    background-color: #45a049;
}

#gameCanvas {
    flex: 1;
    border: 1px solid #ccc;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
    touch-action: none;
}

.menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 30px;
    color: #ff0000;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    z-index: 10;
}

.menu button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.menu button:hover {
    background-color: #45a049;
}

#progressContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

#progressLabel {
    font-size: 10px;
    color: #666;
    margin: 0;
}

#progressBar {
    width: 60px;
    height: 8px;
    background-color: #ddd;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

#progressFill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 2%;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

#progressText {
    font-size: 9px;
    color: #555;
    font-weight: bold;
}

#levelGoal {
    font-size: 8px;
    color: #888;
    font-style: italic;
    margin-top: 2px;
}

.hidden {
    display: none !important;
}