body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    background-color: #000;
    font-family: Arial, sans-serif;
}

.game-container {
    position: relative;
    width: 800px;
    height: 600px;
    max-width: 100vw;
    max-height: 100dvh;
}

#gameCanvas {
    background-color: #000;
    width: 100%;
    height: 100%;
}

#gameOver {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
}

#gameOver.hidden {
    display: none;
}

#restartButton {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

#restartButton:hover {
    background-color: #45a049;
}

#mobileControls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    margin-bottom:40px;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#mobileControls.hidden {
    display: none;
}

.mobile-control {
    width: 40px;
    height: 40px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Add specific style for fire button */
.mobile-control[alt="Fire"] {
    width: 80px;  /* 2x wider */
}

.mobile-control:active {
    opacity: 0.7;
}

.direction-buttons {
    display: flex;
    gap: 10px;
}

#introScreen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: white;
    max-width: 90%;
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

#introScreen.hidden {
    display: none;
}

#introTitle {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #4CAF50;
}

#introText {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 20px;
    white-space: pre-line;
}

#gameText {
    font-size: 1.4em;
    margin: 20px 0;
    color: #4CAF50;
}

#startButton {
    padding: 15px 30px;
    font-size: 1.2em;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}

#startButton:hover {
    background-color: #45a049;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #333;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.share-button:hover {
    transform: scale(1.1);
    background-color: #4CAF50;
}

#copyButton {
    background-color: #666;
}

#whatsappButton {
    background-color: #25D366;
}

#facebookButton {
    background-color: #1877F2;
}

#telegramButton {
    background-color: #0088cc;
}

@media (max-width: 768px) {
    .game-container {
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        position: fixed;
        top: 0;
        left: 0;
    }
    
    #gameCanvas {
        height: 70%;
    }
    
    #introScreen {
        padding: 20px;
        width: 85%;
    }
    
    #introTitle {
        font-size: 2em;
    }
    
    #introText {
        font-size: 1em;
    }
    
    #gameText {
        font-size: 1.2em;
    }
    
    #startButton {
        padding: 12px 24px;
        font-size: 1.1em;
    }
    
    .share-buttons {
        gap: 10px;
    }
    
    .share-button {
        width: 35px;
        height: 35px;
    }
    
    .share-button svg {
        width: 20px;
        height: 20px;
    }
    
    .mobile-control {
        width: 35px;
        height: 35px;
    }
    
    .mobile-control[alt="Fire"] {
        width: 70px;  /* 2x wider for mobile */
    }
} 