body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center;
}


header {
            display: flex;
            justify-content: space-between; /* Push content to both ends */
            align-items: center;           /* Vertically center content */
            width: 100%;                   /* Ensure the header takes full width */
            background-color: #333;
            color: #fff;
            padding: 20px 0;
        }

header h1 {
            flex-grow: 1;                  /* Allow the header title to take up available space */
            text-align: center;            /* Center the title horizontally */
            margin: 0;                     /* Remove default margin from h1 */
        }

header a {
            text-decoration: none; /* Remove underline from the link */
            color: inherit;        /* Inherit color from header */
            font-size: 16px;        /* Adjust font size */
        }


main {
    margin-top: 10px; /* Add space above the form */
}

main a {
    text-decoration: none; /* Remove underline from links */
    margin: 0 20px; /* Add horizontal space between the buttons */
    padding: 10px;
}

form {
    max-width: 600px; /* Increase width to accommodate labels and fields on the same line */
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: left; /* Align form content to the left */
}

.form-group {
    display: flex;
    align-items: center; /* Center align items vertically */
    margin-bottom: 20px; /* Increase space after each form group */
}

label {
    width: auto; /* Fixed width for alignment */
    margin-right: 20px; /* Space between label and field */
    font-weight: bold;
    font-size: 18px; /* Larger font size */
    text-align: right; /* Right-align the text in the label */
}

input, select {
    flex: 1; /* Allow input and select to take up remaining space */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px; /* Larger font size */
    box-sizing: border-box; /* Ensure padding and border are included in width */
}

.btn {
    padding: 15px 30px; /* Larger button size */
    border: none;
    color: #fff;
    font-size: 20px; /* Larger font size */
    cursor: pointer;
    margin-top: 20px; /* Add space above the button */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none; /* Remove underline from links */
    display: inline-block; /* Make links behave like buttons */
    transition: background-color 0.3s;
    text-align: center; /* Center text inside button */
}

.initiate {
    background-color: #007bff; /* Blue */
    font-size: 30px; /* Larger font size */
}

.join {
    background-color: #dc3545; /* Red */
    font-size: 30px; /* Larger font size */
}

.create {
    background-color: #007bff; /* Blue */
    display: block; /* Ensure block-level styling for centering */
    margin: 20px auto; /* Center the button and add margin */
}

.submitBid {
    background-color: #dc3545; /* Red */
    display: block; /* Ensure block-level styling for centering */
    margin: 20px auto; /* Center the button and add margin */
}

footer {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 0;
}

#dynamicLabels {
    display: flex;
    justify-content: center;  /* Horizontally center */
    align-items: center;      /* Vertically center */
    min-height: 20vh;         /* Ensure there's enough height for centering */
}

label {
    margin: 0 10px;  /* Add space between the labels */
}

/* CSS for centering the table */
div table {
    margin: 20px auto;  /* Center the table horizontally */
}

div {
    text-align: center;  /* Center the div content, including the table */
    margin-bottom: 40px; /* Adjust this to reduce space */
}

/* Centering the table */
table {
    margin: 0 auto; /* Centers the table horizontally */
    border-collapse: collapse; /* Optional: improves appearance of borders */
    width: 80%; /* Optional: sets a maximum width for the table */
}

/* Center text inside table cells */
th, td {
    padding: 10px;
    text-align: center; /* Centers text within the cells */
}

/* Larger font for timer */
#timer {
    font-size: 1.5rem; /* Increase font size */
    margin-top: 20px; /* Add space above the timer */
}

#serverMessage {
    font-size: 1.5rem; /* Adjust the size as needed */
    font-weight: bold;
    color: red;
    text-transform: uppercase;
    display: block;
    margin-top: 10px;
}

#submitButton {
    font-size: 1.5rem; /* Adjust font size as needed */
    padding: 10px 20px; /* Adjust padding for size */
    background-color: red; /* Red background */
    color: white; /* White text */
    border: none; /* Remove default border */
    border-radius: 5px; /* Optional: Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
}

/* Optional: Add hover effect */
#submitButton:hover {
    background-color: darkred; /* Darker shade of red when hovered */
    color: white;
}

#timerContainer {
    margin-top: 10px;
}

