/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1f1f1f;
    color: #f0f0f0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
h1,
h2,
p {
    text-align: center;
    margin-bottom: 20px;
}

/* Game Board Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th,
td {
    padding: 10px;
    text-align: center;
    border: 1px solid #333;
}

th {
    background-color: #444;
}

.hit {
    background-color: #ff6b6b;
}

.miss {
    background-color: #7986cb;
}

.ship {
    background-color: #4caf50;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

label {
    margin-bottom: 5px;
}

input,
button {
    padding: 8px 12px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    margin-bottom: 10px;
}

button {
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .container {
        padding: 10px;
    }

    table th,
    table td {
        padding: 8px;
        font-size: 14px;
    }

    input,
    button {
        font-size: 14px;
    }
}