body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-image: url('https://iili.io/FsTOo1R.png');
    transition: background-image 0.5s ease-in-out;
}

#score-board {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 10;
}

#butterfly-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.butterfly {
    position: absolute;
    width: 70px;
    height: 70px;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 6;
    transform: translate(-50%, -50%);
}

.butterfly:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

#butterfly-left {
    left: 30%;
    top: 50%;
}

#butterfly-right {
    right: 30%;
    top: 50%;
}

#attackers-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.attacker {
    position: absolute;
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 4;
    transform: translate(-50%, -50%);
}

#game-over {
    position: absolute;
    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;
    color: white;
    z-index: 20;
}

#game-over.hidden {
    display: none;
}

#game-over h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

#game-over p {
    font-size: 24px;
    margin-bottom: 30px;
}

#restart-btn {
    padding: 15px 30px;
    font-size: 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#restart-btn:hover {
    background-color: #45a049;
}

#instructions {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    max-width: 80%;
    margin: 0 auto;
}