/* body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
} */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.drivercontainer{
    max-width: 80%;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: grid;
    gap: 20px;
}
.statcontainer {
    max-width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.stat-box {
    grid-column: span 2;
    background-color: #f2f2f2;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.stat-box-half{
    grid-column: span 3;
    background-color: #f2f2f2;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.stat-box-wide {
    grid-column: span 6;
    background-color: #f2f2f2;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.stat-image {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    border-radius: 50%;
    object-fit: cover;
}
h1 {
    color: #777;
    font-size: 3rem;
}
h2 {
    color: #555;
    font-size: 1.2rem;
    margin-bottom: 10px;
}
p {
    color: #777;
    font-size: 0.9rem;
}
table a, .stat-box-half a {
    color: #777 !important;
    text-decoration: underline !important;
}
table a:hover {
    color: #333 !important;
}
table a:visited{
    color: #555 !important;
}
.newnavbar button {
    color: #f2f2f2;
    text-decoration: none;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
    font-family: 'Formula1', Helvetica, Arial, Lucida, sans-serif;
    font-size: small !important;
}
.newnavbar button:hover {
    text-decoration: underline;
    color: orange;
}
.newnavbar button.active {
    color: orange;
}
.newnavbar {
    position: fixed;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    /* padding: 10px; */
    z-index: 1;
}
.newnavbar button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    margin: 0 10px;
    cursor: pointer;
}
/* hacked because i cannot find out what causes the footer to float above */
footer {
    position: relative !important;
}
.footerPlaceholder.spacer{
    height: 0px !important;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.stat-box-wide table {
    border: 0px;
}
th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
th {
    background-color: #f2f2f2;
}
#table-rank {
    width: 80%;
}
/* Match input fields */
input[type="text"], select, input[type="file"], .custom-combobox-input {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

/* Button styling */
input[type="submit"] {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
input[type="submit"]:hover {
    background-color: #45a049;
}

/* Combobox container */
.custom-combobox {
    position: relative;
    width: 100%;
}

/* Input field inside combobox */
.custom-combobox-input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 4px 0 0 4px;
    border: 1px solid #ccc;
    background-color: white;
}

/* Dropdown button */
.custom-combobox-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: #ccc;
    border-left: 1px solid #ccc;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Adjust button inside */
.custom-combobox-toggle.ui-button {
    padding: 0;
    height: 100%;
    border: none;
    background: transparent;
}


.hidden { display: none; }
.fade-in { animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Loading Spinner */
#spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dropdown { position: absolute; background: white; border: 1px solid #ccc; display: none; max-height: 150px; overflow-y: auto; }
.dropdown-item { padding: 5px; cursor: pointer; }
.dropdown-item:hover { background-color: #f2f2f2; }
/* Table styles */
#driver-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
#driver-table th, #driver-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
#driver-table th { cursor: pointer; position: relative; padding-right: 20px; }
#driver-table th:after { content: '\25B2'; position: absolute; right: 5px; opacity: 0.5; }
#driver-table th.asc:after { content: '\25B2'; opacity: 1; }
#driver-table th.desc:after { content: '\25BC'; opacity: 1; }

/* The Steam button style */
.cust-steam-button {
    display: inline-block;
    background-color: #171a21;
    color: #66c0f4;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #66c0f4;
}

.cust-steam-button:hover {
    background-color: #66c0f4;
    color: #171a21;
}

.steamlogin {
    text-align: center !important;
    color: #555 !important;
}

.profile-table {
    min-width: 80%;
}