body {
    margin: 0;
    background-color: #0d1117;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

canvas {
    background-image: url("./Assets/background.png");
    background-size: cover;
    border: 5px solid #333;
    border-radius: 10px;
    display: block;
    width: 800px;
    height: 600px;
    width: min(100vw, calc(100vh * (800 / 600)));
    height: min(100vh, calc(100vw * (600 / 800)));
    object-fit: contain;
    transform-origin: center center;
    box-sizing: border-box;
}


.win-title {
    color: #ffcc00;
    text-shadow: 0 0 15px #ffcc00;
    font-size: 4em;
    margin-bottom: 30px;
}

.win-message {
    font-size: 1.8em;
    color: #e0e0e0;
    margin-bottom: 25px;
}



.fullscreen-button {
    position: fixed;
    top: 20px;
    left: 20px;

    padding: 10px;
    font-size: 0;
    color: #ffffff;
    background: linear-gradient(145deg, #6a11cb 0%, #2575fc 100%);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.fullscreen-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.fullscreen-button:active {
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.fullscreen-button svg {
    fill: currentColor;
    width: 24px;
    height: 24px;
}
.hidden {
    display: none !important;
}

#menu-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.menu-screen {
    background: rgba(13, 17, 23, 0.9);
    border: 2px solid #2575fc;
    border-radius: 15px;
    padding: 30px 40px;
    width: 90%;
    max-width: 550px;
    box-shadow: 0 0 25px rgba(37, 117, 252, 0.4);
    text-align: center;
    height: auto;
}

#upgrade-screen {
    max-height: 100%;
    overflow-y: auto;
}



.title {
    font-size: 3em;
    margin-top: 0;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 0 8px #2575fc, 0 0 16px #2575fc;
}

.menu-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin: 15px 0;
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.menu-btn.start { background: linear-gradient(145deg, #28a745, #218838); }
.menu-btn.upgrades { background: linear-gradient(145deg, #17a2b8, #138496); }
.menu-btn.back { background: linear-gradient(145deg, #dc3545, #c82333); margin-top: 30px; }

.menu-btn.upgrade-action {
    background: linear-gradient(145deg, #007bff, #0069d9);
    padding: 8px 12px;
    font-size: 1em;
    margin-left: 15px;
}
.menu-btn.upgrade-action:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

#highscore-display, #money-display-main, #money-display-upgrades, #wave-display {
    font-size: 1.5em;
    margin: 10px 0;
}
#wave-display {
    color: rgb(238, 185, 185);
}

#upgrade-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

#upgrade-list li {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
}

#upgrade-list .stat-info { flex-grow: 1; }
#upgrade-list .stat-name { font-weight: bold; }
#upgrade-list .stat-value { color: #ffd700; }