* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #000000;
    overflow: hidden;
}

#gameContainer {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: url('bg.png') no-repeat center/cover;
    overflow: hidden;
    display: none;
}

#player {
    position: absolute;
    width: 120px; /* Perbesar ukuran karakter */
    height: 120px; /* Perbesar ukuran karakter */
    background: url('player.png') no-repeat center/cover;
    left: 100px;
    bottom: 50%;
    transform: translateY(50%);
}

.enemy {
    position: absolute;
    width: 100px; /* Sesuaikan ukuran musuh */
    height: 100px;
    background: url('enemy.png') no-repeat center/cover;
    right: 0;
}

.bullet {
    position: absolute;
    width: 45px; /* Perbesar ukuran peluru */
    height: 42px;
    background: url('bullet.png') no-repeat center/cover;
    left: calc(100px + 40px); /* Atur posisi awal peluru sesuai ukuran player */
    bottom: 50%;
    transform: translateY(50%);
}

#score {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

#refresh {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 15px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

#intro {
    position: absolute;
    width: 100%;
    height: 100vh;
    background: rgb(0, 0, 0);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

#rotateBtn {
    padding: 12px 20px;
    background: rgb(38, 173, 106);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
}

.mobile-controls {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-btn {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    font-size: 24px;
    text-align: center;
    line-height: 70px;
    cursor: pointer;
}

.left-controls {
    position: absolute;
    left: 20px;
    bottom: 20px;
}

.right-controls {
    position: absolute;
    right: 20px;
    bottom: 20px;
}
