body {
    font-family: 'Arial', sans-serif;
    background-color: #222;
    color: #fff;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

h1 {
    color: #ff6600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.game-container {
    width: 100%;
    margin-bottom: 20px;
}

canvas {
    background-color: #000;
    width: 100%;
    height: 700px; /* Increased height for more visible gameplay area */
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
    display: block;
}

.controls-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.player-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    width: 100%;
}

.player-info {
    width: 48%;
    padding: 10px;
    border-radius: 5px;
}

.player1 {
    background-color: rgba(255, 102, 0, 0.2);
    border: 1px solid #FF6600;
}

.player2 {
    background-color: rgba(51, 153, 255, 0.2);
    border: 1px solid #3399FF;
}

.player-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
}

.player1 h3 {
    color: #FF6600;
}

.player2 h3 {
    color: #3399FF;
}

.power-angle {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

label {
    margin-bottom: 5px;
    display: block;
}

.angle-direction {
    font-size: 0.8em;
    color: #aaa;
    font-style: italic;
}

.stat-display {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
}

.keyboard-controls {
    margin-top: 15px;
    padding: 10px;
    background-color: #444;
    border-radius: 5px;
    text-align: center;
    width: 100%;
}

.wind-display {
    margin-top: 15px;
    padding: 10px;
    background-color: #444;
    border-radius: 5px;
    text-align: center;
    width: 100%;
}

.wind-display h4 {
    margin: 0;
    color: #ffcc00;
}

.keyboard-controls h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #fff;
}

.keyboard-controls ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
}

.keyboard-controls li {
    color: #aaa;
    font-size: 14px;
}

button {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #ff8533;
}

@media (max-width: 600px) {
    .game-container {
        padding: 10px;
    }
    
    canvas {
        height: 300px;
    }
}
