body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: black;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align items to the top */
    min-height: 100vh;
    overflow-y: auto;
    font-size: 18px; /* Increased font size */
}

.navbar {
    width: 100%;
    background-color: #333;
    overflow: auto;
    display: flex;
    justify-content: center;
}

.navbar a {
    padding: 14px 10px;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
}

.navbar a:hover {
    background-color: #ddd;
    color: black;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align items to the top */
    min-height: 100vh;
    padding: 10px;
    margin-top: 10px; /* Adjust as needed to reduce space */
    width: auto;
}

.fixed-title {
    position: fixed;
    top: 0;
    background-color: black;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1000;
    text-align: center;
    font-size: 20px; /* Decreased title font size */
}

h2, h3 {
    font-size: 20px; /* Decreased header font size */
    margin-bottom: 20px;
    position: sticky;
    width: 100%;
    text-align: center;
    z-index: 1;
    }


.table-container {
    width: 95%;
    margin: auto;
    overflow-x: auto;
    display: flex;
    justify-content: center;
    vertical-align: top;
}

table {
    width: 95%;
    border-collapse: collapse;
    margin: auto;
}

th, td {
    padding: 10px;
    text-align: center; /* Center text within the cells */
    width: 50px; /* Set a maximum width for columns */
    border: 0px solid white;
}

th {
    background-color: #000000;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1;
}
td a {
    color: white !important; /* This sets the font color of the links to white and uses !important */
    text-decoration: none !important; /* Optionally remove underline from links */
}

td a:hover {
    color: #ddd !important; /* Optionally set a different color on hover */
}

td {
    background-color: #444;
    color: white;
}

button {
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px; /* Add rounded corners */
    width: 100%; /* Make the buttons span the entire container's width */
    box-sizing: border-box; /* Ensure consistent box model */
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.small-button, .delete-button, .create-button {
    padding: 5px 10px;
    margin: 2px;
    font-size: 14px;
    cursor: pointer;
}
.delete-button {
    background-color: red;
    color: white;
    border: none;
}

.delete-button-team {
    background-color: red;
    color: white;
    border: none;
    border-radius: 5px; /* Consistent border-radius */
    padding: 8px 16px; /* Adjust padding for smaller screens */
    font-size: 14px;   /* Adjust font size for smaller screens */
    width: 250px;      /* Make buttons full width on phone screens */
    box-sizing: border-box; /* Ensure padding is included in the width */
    text-align: center; /* Center the text horizontally */
}


.delete-button:hover {
    background-color: darkred;
}

.create-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    text-decoration: none;
    display: inline-block;
    border-radius: 5px; /* Consistent border-radius */
    padding: 8px 16px; /* Adjust padding for smaller screens */
    font-size: 14px;   /* Adjust font size for smaller screens */
    width: 250px;      /* Make buttons full width on phone screens */
    box-sizing: border-box; /* Ensure padding is included in the width */
    text-align: center; /* Center the text horizontally */
}

.create-button:hover {
    background-color: darkgreen;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.list-container {
    max-height: 400px; /* Adjust height as needed */
    overflow-y: auto; /* Add vertical scroll */
    margin-top: 20px; /* Add some space above the list container */
    border: 1px solid #ddd; /* Optional: Add border for better visibility */
}

.form-container, .list-container {
    width: 95%;
}

.form-container {
    margin-top: 80px; /* Space for the fixed title */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-inline {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.form-inline input[type="text"] {
    flex: 1;
    margin-right: 10px;
}

.form-inline button {
    width: auto;
    padding: 10px; /* Smaller padding for Add button */
    font-size: 18px; /* Increased Add button font size */
}

input[type="text"], input[type="password"], input[type="date"], textarea, select {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 18px; /* Increased input font size */
}
button.primary {
    padding: 10px 20px; /* Adjust padding to match the first page */
    font-size: 16px;    /* Ensure the font size is the same */
    border: none;
    border-radius: 5px; /* Consistent border-radius */
    background-color:  #4CAF50; /* Example background color */
    color: white; /* Example text color */
    cursor: pointer;
    width: 250px; /* Default width */
}

button.primary:hover {
    background-color: #4CAF50; /* Example hover background color */
}

@media (max-width: 600px) {
    .container {
        padding: 0px;
        margin: 0;
        max-width: 100%; /* Ensure the container uses full width on small screens */
        min-height: 100svh; /* Ensure container takes the full viewport height */
        overflow-y: auto; /* Allow scrolling */
        align-items: flex-start; /* Align items to the top */
        width : 100%;
    }

    button, .button {
        font-size: 14px; /* Adjusted font size for small screens */
        padding: 10px 15px;
        width: 95%;
    }
    table {
        width: 100%;
        border-collapse: collapse;
        margin: auto;
    }
    
    th, td {
        padding: 10px;
        text-align: center; /* Center text within the cells */
        max-width: 60px; /* Set a maximum width for columns */
        border: 0px solid white;
        font-size: 16px; /* Adjusted table font size for small screens */
        color: white;
    }

    .fixed-title {
        padding: 10px;
        font-size: 18px; /* Adjusted fixed title font size for small screens */
    }

    h2, h3 {
        font-size: 18px; /* Adjusted header font size for small screens */
        margin-bottom: 20px;
        position: sticky;
        width: 100%;
        text-align: center;
        z-index: 1;
    }

    .form-container {
        margin-top: 10px; /* Adjust space for the fixed title on smaller screens */
    }

    .form-inline {
        flex-direction: column;
        align-items: stretch;
        width: 93%;
    }

    .form-inline input[type="text"] {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .chart-button {
        background-color: #008CBA;
    }
    
    .chart-button:hover {
        background-color: #007bb5;
    }
    .chart-container {
        width: 90%;
        overflow-x: scroll;
        padding-bottom: 20px;
    } 
    button.primary {
        padding: 8px 16px; /* Adjust padding for smaller screens */
        font-size: 14px;   /* Adjust font size for smaller screens */
        width: 250px;      /* Make buttons full width on phone screens */
        box-sizing: border-box; /* Ensure padding is included in the width */
    }
    .navbar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box; /* Ensures padding and border are included in the element's total width and height */
        }
    
    }

