* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: black;
}

#level-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#level-menu-title {
    color: white;
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    margin: 30px;
}

#level-menu-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.level-icon {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    background-color: rgb(255, 255, 255);
    border-radius: 75px;
    border-width: 0px;
    border-style: solid;
    border-color: white;
    color: black;
    font-size: 72px;
    font-weight: bold;
    cursor: pointer;
}


.game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
}

.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.start-content {
    background: white;
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.start-content h1 {
    margin-bottom: 30px;
    font-size: 3em;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.start-content button {
    padding: 20px 40px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    font-weight: bold;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-content button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#gameCanvas {
    width: 100vw;
    height: 100vh;
    background: transparent;
    cursor: crosshair;
}

.game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.game-over-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.game-over-content h2 {
    margin-bottom: 20px;
    font-size: 2em;
    color: #333;
}

.game-over-content button {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-over-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
} 

#game-score {
    margin-bottom: 20px;
    font-size: 24px;
    color: #000000;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: white;
}

.stat-container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 10px;
    width: 190px;
}

.tower-container {
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-width: 0px;
    border-style: solid;
    border-color: white;
    border-radius: 5px;
}

.tower-container:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.buy-tower-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    padding: 5px;
    position: absolute;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: max-content;
    height: max-content;
    color: white;
    text-align: center;
    border-width: 0px;
    border-style: solid;
    border-color: white;
    border-radius: 8px;
    user-select: none;
    cursor: crosshair;
}

tower-menu-title {
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-align: center;
    user-select: none;
}

.close-div {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 999;
}

.stat-image {
    width: 32px;
}