body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    touch-action: none; /* Prevent default touch behaviors */
    font-family: Arial, sans-serif;
    background-color: #000;
    color: white;
    height: 100%;
}

#gameCanvas {
    display: block;
    background-color: #000;
    width: 100vw;
    height: 100vh;
}

#startScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#startScreen h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 10px #00f, 0 0 20px #00f, 0 0 30px #00f;
}

#startScreen p {
    font-size: 20px;
    margin-bottom: 30px;
}

#startButton {
    padding: 15px 30px;
    font-size: 18px;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
}

#links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

#links a {
    color: #00f;
    text-decoration: none;
    font-size: 16px;
}

#links a:hover {
    text-decoration: underline;
}

#gameUI {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 5;
    font-size: 20px;
}

#gameOverScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#gameOverScreen.show {
    display: flex !important;
}

#gameOverScreen h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 10px #f00, 0 0 20px #f00, 0 0 30px #f00;
}

#gameOverScreen p {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

.hidden {
    display: none !important;
}

#restartButton {
    padding: 15px 30px;
    font-size: 18px;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}