/* Basic page formatting */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f4f4f9;
    color: #333;
}

header {
    margin-bottom: 20px;
}

h1, h2, h3 {
    color: #2c3e50;
}

/* Data Table Formatting */
.data-table {
    border-collapse: collapse;
    width: 80%;
    margin-bottom: 20px;
    background-color: #fff;
}

.data-table caption {
    font-weight: bold;
    margin-bottom: 8px;
    text-align: left;
}

.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center; /* Alignment requirement */
}

.data-table th {
    background-color: #3498db;
    color: white;
}

/* Tic Tac Toe Grid Formatting */
.tic-tac-toe {
    border-collapse: collapse;
    margin: 15px 0;
}

.tic-tac-toe td {
    border: 3px solid #2c3e50;
    width: 60px;
    height: 60px;
    text-align: center;
    vertical-align: middle;
    font-size: 24px;
    font-weight: bold;
    background-color: #ffffff;
}

/* Form Styles */
fieldset {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 20px;
    background-color: #fff;
    max-width: 500px;
}

legend {
    font-weight: bold;
    padding: 0 10px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 90%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="submit"],
input[type="reset"] {
    padding: 10px 15px;
    margin-right: 10px;
    border: none;
    background-color: #27ae60;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

input[type="reset"] {
    background-color: #e74c3c;
}

input[type="submit"]:hover {
    background-color: #219150;
}

input[type="reset"]:hover {
    background-color: #c0392b;
}