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

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

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

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 25px;
    max-width: 900px;
    width: 95%;
    transition: transform 0.3s;
}

.game-container:hover {
    transform: translateY(-5px);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

h1 {
    font-size: 28px;
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, #43cea2, #185a9d);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

#score {
    margin-left: 5px;
    font-size: 22px;
}

canvas {
    background-color: #076324;
    border-radius: 10px;
    margin-bottom: 20px;
    max-width: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 8px solid #5D4037;
}

.game-info {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    background-color: rgba(67, 206, 162, 0.1);
    border-radius: 8px;
    width: 100%;
    font-size: 16px;
    color: #444;
    line-height: 1.5;
    border-left: 4px solid #43cea2;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 15px;
}

button {
    padding: 12px 25px;
    background: linear-gradient(135deg, #43cea2, #185a9d);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #3bbc93, #1a4c7c);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.power-meter {
    width: 200px;
    height: 25px;
    background-color: #f0f0f0;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.power-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #43cea2, #f7971e, #ff6a00);
    border-radius: 30px;
    transition: width 0.1s;
    position: relative;
    overflow: hidden;
}

.power-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

@media (max-width: 600px) {
    .header {
        flex-direction: column;
        gap: 10px;
    }
    
    .controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .power-meter {
        width: 100%;
        margin-top: 10px;
    }
} 