html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 13px;
    }
}

body {
    margin-bottom: 60px;
    background-color: #9E0000;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    color: #222;
    line-height: 1.6;
}
html, body {
    height: 100%;
    margin: 0;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Full viewport height */
}

.title-bar {
    flex: 0 0 auto; /* Fixed height */
}

#map {
    flex: 1 1 auto; /* Take up remaining space */
    width: 100%;
    position: relative; /* Needed to contain absolutely positioned children */
}

/* Highlights required fields */
.required {
    color: #ff4d4f;
    font-weight: 600;
    margin-left: 4px;
}

.main-logo{
    width: 300px;
    padding-bottom: 5px;
    padding-top: 3px;
}

/* Entrant Row Styles */
.entrant-row {
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

    .entrant-row:nth-child(odd) {
        background-color: #ffffff;
    }

    .entrant-row:nth-child(even) {
        background-color: #f5f5f5;
    }

    .entrant-row:hover {
        background-color: #eaeaea;
        transform: translateY(-2px);
    }

/* Validation Error Box */
.validation-error {
    width: 100%;
    background-color: #d32f2f;
    color: #fff;
    text-align: center;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.content-box {
    background-color: #ffffff;
    padding: 24px 12px;
    /*border-radius: 16px;*/
    width: 100%;
    max-width: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem; /* Reduced vertical padding */
    background-color: #fafafa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease;
}

.result-header {
    display: flex;
    align-items: center;
    width: 100%; /* Ensure the header spans the full width */
}

.result-rank {
    font-size: 2rem; /* Larger rank */
    color: black; /* Rank number in black */
    margin-right: 1rem; /* Space between rank and name */
}

.rank-number {
    font-size: 2.5rem; /* Even larger rank number */
    font-weight: bold;
}

.result-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007BFF;
    text-align: left;
    background-color: white;
    padding: 0 5px;
    border-radius: 4px;
    white-space: nowrap; /* Prevents the name from breaking into multiple lines */
    margin-right: 10px; /* Space between name and trophy */
    flex-shrink: 0; /* Prevent the name from shrinking */
}

.result-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem; /* Reduced margin between rows */
    flex-wrap: nowrap;
}

.label-value-group {
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.4rem; /* Reduced padding */
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.bottom-banner {
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
    color: white;
    text-align: center;
    padding: 5px;
    font-size: 1rem;
    z-index: 999;
}

.label {
    font-weight: bold;
    color: #333;
    flex: 1 1 45%;
    min-width: 100px;
}

.value {
    flex: 1 1 50%;
    text-align: right;
    color: #555;
}

a {
    color: #007BFF;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* Custom background colors for the top 3 results */
.result-card.gold {
    background-color: #FFEC80; /* Lighter Gold */
}

.result-card.silver {
    background-color: #D3D3D3; /* Lighter Silver */
}

.result-card.bronze {
    background-color: #E6A77A; /* Lighter Bronze */
}


.result-card {
    background-color: #ffffff;
}

.medal {
    display: inline-block;
    width: 24px; /* Increase the size of the medal */
    height: 24px; /* Increase the size of the medal */
    border-radius: 50%;
    text-align: center;
    line-height: 19px; /* Vertically center the text inside the circle */
    font-size: 9px; /* Adjust the font size */
    color: black; /* Ensure text is white */
    font-weight: bold;
    vertical-align: middle; /* Align with text */
    border: 2px solid #333; /* Darker border */
}

.gold {
    background-color: #FFD700; /* Gold */
}

.silver {
    background-color: #C0C0C0; /* Silver */
}

.bronze {
    background-color: #cd7f32; /* Bronze */
}

.trophy-image {
    width: 30px; /* Adjust size */
    height: 30px;
    vertical-align: middle; /* Align the image with the text */
    flex-shrink: 0; /* Prevent trophy from shrinking */
}

.gold-trophy {
    filter: grayscale(0%);
}

.silver-trophy {
    filter: grayscale(0%);
}

.bronze-trophy {
    filter: grayscale(0%);
}

