body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow: hidden;
    background-color: #1a1a2e;
    color: #ffffff;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#info {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    max-width: 300px;
    text-align: center;
}

h1 {
    margin-top: 0;
    color: #4cc9f0;
}

#game-status {
    margin: 10px 0;
    font-size: 18px;
    color: #f72585;
}

#turn-info {
    margin: 10px 0;
    font-size: 16px;
}

#audio-controls {
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

#mute-button {
    background-color: transparent;
    border: 2px solid #4cc9f0;
    color: #4cc9f0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

#mute-button:hover {
    background-color: rgba(76, 201, 240, 0.1);
}

#mute-button .speaker {
    display: block;
}

#mute-button .x {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #f72585;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mute-button.muted .x {
    opacity: 1;
}

#game-ui {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

button {
    background-color: #4361ee;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3a0ca3;
}

button:disabled {
    background-color: #666;
    cursor: not-allowed;
}

/* Game board grid overlay styles */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 5;
}

/* Ship status panels */
#ship-status-container {
    position: absolute;
    display: none; /* Hidden by default, shown when game starts */
    justify-content: space-between;
    width: 100%;
    top: 20px;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 10;
    pointer-events: none; /* Allow clicks to pass through */
}

#ship-status-container.visible {
    display: flex;
}

.ship-list {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    width: 200px;
    max-width: 200px;
}

#player-ships {
    margin-right: auto;
    margin-left: 0;
}

#enemy-ships {
    margin-left: auto;
    margin-right: 0;
}

.ship-list h2 {
    margin-top: 0;
    color: #4cc9f0;
    font-size: 18px;
    text-align: center;
}

.ship-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.ship-list li {
    padding: 5px 0;
    color: #ffffff;
    font-size: 16px;
    text-transform: capitalize;
}

.ship-list li.sunk {
    color: #f72585;
    text-decoration: line-through;
    position: relative;
}

.ship-list li.sunk::after {
    content: "SUNK";
    position: absolute;
    right: 0;
    font-size: 12px;
    color: #f72585;
}
