* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.game-container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 1400px;
    width: 100%;
    height: 95vh;
    display: flex;
    flex-direction: column;
}

.game-title-banner {
    text-align: center;
    margin-bottom: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    border-radius: 15px;
    border: 3px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.game-title-banner h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 3px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.game-title-banner p {
    font-size: 1rem;
    margin: 5px 0 0 0;
    color: #FFD700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: bold;
    letter-spacing: 1px;
}

.main-game-layout {
    display: flex;
    gap: 20px;
    flex: 1;
    align-items: stretch;
}

.game-canvas-container {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 350px;
    min-width: 300px;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes titleGlow {
    from {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 215, 0, 0.5);
    }

    to {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
    }
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.player1-info,
.player2-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 10px;
    text-align: center;
}

.player1-info {
    border: 2px solid #4CAF50;
}

.player2-info {
    border: 2px solid #f44336;
}

.player1-info h3,
.player2-info h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.character-selector {
    margin: 8px 0;
}

.character-selector span {
    font-size: 14px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.weapon-display {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
}

.score-display {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.wins-display,
.streak-display {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #FFD700;
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.5);
    flex: 1;
    text-align: center;
}

.wins-display {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    color: #4CAF50;
    text-shadow: 0 0 3px rgba(76, 175, 80, 0.5);
}

.streak-display {
    background: rgba(255, 152, 0, 0.2);
    border-color: #FF9800;
    color: #FF9800;
    text-shadow: 0 0 3px rgba(255, 152, 0, 0.5);
}

.health-bar {
    width: 100%;
    height: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 8px;
}

.health-fill {
    height: 100%;
    width: 100%;
    border-radius: 8px;
    transition: width 0.3s ease;
}

#p1-health {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

#p2-health {
    background: linear-gradient(90deg, #f44336, #FF9800);
}

.controls-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    overflow-y: auto;
}

.controls-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
}

.controls-section h4 {
    margin-bottom: 6px;
    color: #FFD700;
    font-size: 0.95rem;
}

.controls-section p {
    margin: 3px 0;
    font-size: 0.8rem;
    line-height: 1.3;
}

.restart-section {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #FFD700;
    text-align: center;
}

.restart-section h4 {
    color: #FFD700;
    font-size: 1rem;
    margin-bottom: 6px;
}

.restart-section p {
    font-size: 0.9rem;
    color: #FFD700;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

#gameCanvas {
    border: 3px solid #FFD700;
    border-radius: 10px;
    background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 70%, #228B22 100%);
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* Responsive design */
@media (max-width: 1200px) {
    .main-game-layout {
        flex-direction: column;
    }

    .game-canvas-container {
        flex: none;
    }

    .ui-sidebar {
        flex: none;
        max-width: none;
        min-width: auto;
    }

    .player-info {
        flex-direction: row;
        gap: 15px;
    }

    .controls-info {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .controls-section {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .game-title-banner h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .game-title-banner p {
        font-size: 0.9rem;
    }

    .game-title-banner {
        padding: 10px;
        margin-bottom: 10px;
    }

    .game-container {
        padding: 10px;
        height: 98vh;
    }

    .main-game-layout {
        gap: 10px;
    }

    .controls-info {
        flex-direction: column;
    }
}