body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #0b0a0a;
}

th, td {
    padding: 10px;
    text-align: center;
}

th {
    background-color: #32cd32;
}

td {
    background-color:  #e0ffff;
}

button {
    padding: 8px 12px;
    border: none;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 5px;
}

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

input[type="text"],
input[type="number"] {
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Controls container */
.controls {
    margin-bottom: 10px;
    text-align: center;
}

.controls button {
    margin: 10px 0;
}

/* Specific button styles */
.delete-btn {
    background-color: #dc3545;
}

.delete-btn:hover {
    background-color: #c82333;
}

/* Icons */
.edit-icon:before {
    content: "\270E";
}

.delete-icon:before {
    content: "\2716";
}

/* New game button */
.newgame button {
    color: white;
    width: 100%;
    background-color: #e8222f;
    margin: 10px 0;
}

/* Adjustments for smaller screens */
@media screen and (max-width: 768px) {
    button {
        padding: 6px 10px;
        font-size: 14px;
    }

    input[type="text"],
    input[type="number"] {
        padding: 6px;
        font-size: 14px;
    }
}

/* Adjustments for even smaller screens */
@media screen and (max-width: 480px) {
    button {
        padding: 4px 8px;
        font-size: 12px;
    }

    input[type="text"],
    input[type="number"] {
        padding: 4px;
        font-size: 12px;
    }

    .controls {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .controls button {
        width: 100%;
        margin: 5px 0;
    }
}

#playerName {
    margin: 0 auto;
    width: 40%;
    margin-left: 20%;
}

.reset button {
    margin-left: 80%;
    margin-bottom: 5%;
    background-color: #dc3545;
}
