body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

header {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-align: center;
}

nav {
    background-color: #333;
    overflow: hidden;
    display: flex;
    justify-content: space-between; /* Space items evenly */
    align-items: center; /* Center items vertically */
}

nav a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    margin: 0 10px; /* Add margin between items */
}

nav a:hover {
    background-color: #ddd;
    color: black;
}

.content {
    padding: 20px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px; /* Add some space below the heading */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #4CAF50;
    color: white;
}

/* Alternate Row Colors (Zebra Stripes) */
.data-table tbody tr:nth-child(odd) {
    background-color: #ffffff; /* White for odd rows */
}

.data-table tbody tr:nth-child(even) {
    background-color: #e8f5e9; /* Light green */
}

tr:hover {
    background-color: #f1f1f1;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
    max-width: 800px; /* Set a max width for the grid */
    margin: 20px auto; /* Center the grid container */
    width: 100%; /* Ensure it takes full width up to the max */
}

.grid-item {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.grid-item h2 {
    margin: 0 0 10px 0;
}

.grid-item p {
    font-size: 24px;
    font-weight: bold;
}

.grid-item:hover {
    transform: scale(1.05);
}

.form-table {
    width: 100%; /* Full width for the table */
    max-width: 800px; /* Set a max width for the table */
    margin: 20px auto; /* Center the table container */
    border-collapse: collapse; /* Collapse borders */
}

.form-table th, .form-table td {
    border: 1px solid #ddd;
    padding: 12px; /* Padding inside table cells */
    text-align: left; /* Align text to the left */
}

.form-table th {
    background-color: #4CAF50; /* Background for header cells */
    text-align: center; /* Center-align text in header */
    font-weight: bold; /* Make header text bold */
}


.form-table input {
    width: 100%; /* Full width for inputs */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in the total width */
}

button {
    padding: 10px 20px;
    border: none;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px; /* Add some space between the buttons */
}

button:hover {
    background-color: #45a049;
}

#button-container {
    display: flex;
    justify-content: center; /* Center the buttons */
    gap: 10px; /* Space between the buttons */
}

.right {
    margin-left: auto; /* Push the right-aligned items to the end */
}

h2 {
    text-align: center; /* Center the text */
}

.submit-button {
    display: block; /* Make the button a block element */
    width: 200px; /* Set a width for the button */
    height: 50px; /* Set a height for the button */
    font-size: 16px; /* Increase font size */
    margin: 20px auto; /* Center the button with auto margins */
    background-color: #4CAF50; /* Green background */
    color: white; /* White text */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Change cursor on hover */
}

.submit-button:hover {
    background-color: #45a049; /* Darker green on hover */
}

/* Ensure minimal space between the form header and its table */
.form-header {
    display: flex;
    align-items: center;
    justify-content: center;  /* Center the content */
    gap: 10px;
    margin: 20px;  /* Adjust margin to remove large gap below the header */
}

/* Add more spacing between form header and the table body (rows) */
.form-header h2 {
    margin: 0;  /* Remove default margin */
    padding-bottom: 5px;  /* Slight padding at the bottom */
    font-size: 24px;
}

/* Ensure that the table cells are properly aligned and spaced */
.form-table th, .form-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

/* Add some space between the score input field and the "-" sign */
.score-container span {
    margin-right: 5px;  /* Adds space between the "-" and input box */
    font-size: 20px;
}

.score-input {
    width: 80px;  /* Adjust width of the score input box */
    padding: 5px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Remove margin around the table */
.form-table {
    width: 100%;
    max-width: 800px;  /* Keep table within a max width */
    margin: 20px auto;  /* Center the table container */
    border-collapse: collapse;
}

.data-table {
    max-width: 900px; /* Adjust to your preferred maximum width */
    width: 100%; /* Makes the table take up full width until the max-width is reached */
    margin: 0 auto; /* This centers the table horizontally */
}

.player-selection {
    display: block; /* Make sure it's a block element */
    text-align: center; /* Center the text and form content */
    margin-top: 30px;
    margin-left: auto; /* Center horizontally */
    margin-right: auto; /* Center horizontally */
    width: fit-content; /* Adjust width based on content */
}
