/* Reset en basisinstellingen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    text-align: center;
    padding: 0;
    overflow-y: auto;
    position: relative;
    background-color: #fff; /* Optioneel: stel een achtergrondkleur in */
}

/* Header stijlen */
header {
    position: relative;
    width: 100%;
    height: 50vh; /* Hoogte van 50% van de viewport */
    overflow: hidden;
}

/* Halve cirkel met achtergrondafbeelding en gradient overlay */
header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 100%;
    background: 
        linear-gradient(to bottom, rgba(61, 94, 39, 0) 0%, rgba(61, 94, 39, 0.8) 75%),
        url('https://fietsrace.nl/background.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    z-index: -1;
}

.logo, header h1, header .intro {
    position: relative;
    z-index: 1; /* Zorg dat deze elementen boven de halve cirkel worden weergegeven */
    color: white;
}

.logo {
    width: 200px;
    display: block;
    margin: 20px auto 10px auto;
}

header h1 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header .intro {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Podium stijlen */
.leaderboard-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: -100px; /* Verhoogde negatieve marge om het podium meer te laten overlappen met de header */
    margin-bottom: 30px;
    position: relative;
    z-index: 1; /* Zorg dat het podium boven de halve cirkel wordt weergegeven */
}

.place {
    border-radius: 10px;
    width: 150px;
    margin: 0 10px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
    color: white; /* Tekstkleur wit voor betere leesbaarheid */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.first-place {
    height: 300px;
    background: linear-gradient(145deg, #FFD700, #FFDF00); /* Gouden gradient */
}

.second-place {
    height: 225px;
    background: linear-gradient(145deg, #C0C0C0, #B0B0B0); /* Zilveren gradient */
}

.third-place {
    height: 150px;
    background: linear-gradient(145deg, #CD7F32, #C36F30); /* Bronzen gradient */
}

.trophy {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.rank {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.name {
    font-size: 1.2rem;
}

.score {
    font-size: 1rem;
    margin-top: 10px;
}

/* Leaderboard lijst */
.leaderboard-list {
    max-width: 600px;
    margin: 30px auto 0 auto; /* Verhoogde marge bovenaan voor meer ruimte */
    position: relative;
    z-index: 1;
    padding: 0 20px; /* Voeg padding toe aan de zijkanten voor spacing */
}

.leaderboard-list ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.leaderboard-list li {
    padding: 10px 0;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
}

.leaderboard-list li:first-child {
    margin-top: 10px; /* Voeg extra ruimte boven het eerste item toe */
}

.leaderboard-list li:last-child {
    border-bottom: none;
}

.leaderboard-list li span.score {
    font-weight: bold;
    color: #4CAF50;
}

/* Media queries voor mobiele apparaten */
@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }

    .place {
        width: 100px;
        margin: 0 5px;
    }

    .first-place {
        height: 200px;
    }

    .second-place {
        height: 150px;
    }

    .third-place {
        height: 100px;
    }

    .trophy {
        font-size: 2rem;
    }

    .rank {
        font-size: 1.5rem;
    }

    .name {
        font-size: 1rem;
    }

    .score {
        font-size: 0.9rem;
    }

    .leaderboard-list {
        padding: 0 15px; /* Iets meer padding op mobiele apparaten */
    }

    .leaderboard-list li {
        font-size: 1rem;
    }
}
