body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: #f0f0f0;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#gameCanvas {
    width: 100%;
    height: 100%;
    border: 1px solid #000;
    display: block;
}

#joystick-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#joystick {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    position: relative;
}

.arrow {
    width: 0;
    height: 0;
    border-style: solid;
}

.arrow-up {
    border-width: 0 20px 20px 20px;
    border-color: transparent transparent rgba(0, 0, 0, 0.5) transparent;
    margin-bottom: 10px;
}

.arrow-down {
    border-width: 20px 20px 0 20px;
    border-color: rgba(0, 0, 0, 0.5) transparent transparent transparent;
    margin-top: 10px;
}

.arrow-left {
    border-width: 20px 20px 20px 0;
    border-color: transparent rgba(0, 0, 0, 0.5) transparent transparent;
    margin-right: 10px;
}

.arrow-right {
    border-width: 20px 0 20px 20px;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.5);
    margin-left: 10px;
}

#message-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    align-items: center;
}

#close-button {
    margin-top: 10px;
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}
#score-board {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 18px;
}