/* Algemene body-stijl */
body {
    font-family: Arial, sans-serif;
    background-color: #1e1e1e;
    margin: 0;
    padding: 20px;
    color: #ffffff;
}

/* Homepagina - buttons en layout */
.section {
    width: 60%;
    max-width: 800px;
    padding: 20px;
    background-color: #333333;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.section h2 {
    text-align: left;
    margin-bottom: 10px;
    padding-left: 20px;
    color: #26a69a;
}

.buttons-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    background-color: #00796b;
    border: 2px solid #26a69a;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
    width: 48%;
}

.button:hover {
    background-color: #26a69a;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

.separator {
    border-top: 2px solid #00796b;
    margin: 20px 0;
}

/* Tabellen (Draft, Talentendraft, WCS) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #333333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

th, td {
    padding: 12px;
    text-align: center;
    border: 1px solid #00796b;
}

th {
    background-color: #00796b;
    color: white;
}

tr:nth-child(even) {
    background-color: #2c2c2c;
}

/* Grid layout voor teams */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.deelnemer-container {
    padding: 10px;
    background-color: #333333;
    border: 1px solid #00796b;
    border-radius: 8px;
}

.rider-list {
    list-style-type: decimal; /* ➔ Genummerde lijst 1. 2. 3. */
    padding-left: 20px;
    margin: 0;
}

.rider-list li {
    padding: 3px 0;
    border-bottom: 1px solid #3a3a3a;
    font-size: 14px;
    line-height: 1.4;
}

.rider-list li:last-child {
    border-bottom: none;
}

.rider-item {
    padding: 5px 0;
    border-bottom: 1px solid #555;
}

.rider-item:last-child {
    border-bottom: none;
}

/* Tussenstand Giro - Uitslagen */
.radio-group {
    text-align: center;
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

button {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #00796b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #26a69a;
}

h1, h2, h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #26a69a;
}

/* Startlijsten knoppen en secties */
.content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.column {
    width: 50%;
}

.details {
    display: none;
}

.renner-section {
    margin-bottom: 20px;
    border: 1px solid #00796b;
    padding: 15px;
    background-color: #333333;
    border-radius: 5px;
}

/* Giro keuze - speciale stijlen */
.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ploeg-column h3 {
    background-color: #00796b;
    margin-top: 0;
    padding-left: 5px;
    height: 50px;
    display: flex;
    align-items: center;
    color: white;
}

.spelers-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    list-style-type: none;
}

.strikethrough {
    text-decoration: line-through;
    color: grey;
}

/* Pagination bij WCS */
.pagination {
    text-align: center;
    margin-top: 10px;
}

.pagination a {
    margin: 0 5px;
    padding: 8px 12px;
    background-color: #00796b;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a.disabled {
    background-color: #555;
    pointer-events: none;
}

/* Navigatiebalk */
.navbar {
    background-color: #222;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
/* Container inside navbar */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
/* Logo */
.navbar-logo a {
    font-size: 24px;
    color: #00bfa5;
    text-decoration: none;
    font-weight: bold;
}
.navbar-brand a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.dropdown li a:hover {
    background-color: #444;
}
.navbar-brand a:hover {
    color: #26a69a;
}

/* Menu */
.navbar-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: auto; /* <-- deze zorgt dat het naar rechts springt! */
}
/* Menu items */
.navbar-menu li {
    position: relative;
}
.navbar-menu li a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    text-align: center;
}

/* Hover effect */
.navbar-menu li a:hover {
    background-color: #333;
}
/* Dropdown menu */
.navbar-dropdown ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    min-width: 160px;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 0 0 5px 5px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.6);
}

/* Dropdown links */
.navbar-dropdown ul li a {
    padding: 10px 16px;
    white-space: normal;
    word-break: break-word;
}

/* Laat dropdown zien als hover */
.navbar-dropdown:hover ul {
    display: block;
}
.navbar-item {
    position: relative;
}

.navbar-item a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
}
.navbar-item > a {
    min-width: 120px;
    text-align: center;
    display: inline-block;
    padding: 12px 16px;
    white-space: normal; /* Laat tekst afbreken indien nodig */
    word-break: break-word; /* Breek woorden netjes */
}

.navbar-item a:hover {
    background-color: #333333;
    border-radius: 5px;
}

.navbar-item:hover .dropdown {
    display: block;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333333;
    width: 100%;
    max-width: 90vw; /* Op mobiel nooit breder dan 90% van scherm */
    border-radius: 5px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.6);
    z-index: 20;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.dropdown li {
    border-bottom: 1px solid #00796b;
}

.dropdown li a {
    display: block;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    text-align: center;
    white-space: normal;
    word-break: break-word;
}

.dropdown li:last-child {
    border-bottom: none;
}

/* Hero sectie */
.hero {
    background: linear-gradient(135deg, #00796b, #26a69a);
    padding: 60px 20px;
    text-align: center;
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* Overzichtskaarten */
.overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.overview-card {
    background-color: #333333;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.overview-card h2 {
    margin-top: 0;
    color: #26a69a;
}

.more-info-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #00796b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.more-info-button:hover {
    background-color: #26a69a;
}

/* Fade-in animatie */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger effect voor kaarten */
.overview-card:nth-child(1) { animation-delay: 0.2s; }
.overview-card:nth-child(2) { animation-delay: 0.4s; }
.overview-card:nth-child(3) { animation-delay: 0.6s; }
.overview-card:nth-child(4) { animation-delay: 0.8s; }

/* Logo */
.logo {
    height: 60px;
}
.renners-lijst {
    margin: 0;
    text-align: left;
    font-size: 14px;
	padding-left: 20px;
}

.renners-lijst li {
    padding: 2px 0;
}
/* Toggle link voor meer/minder renners */
.toggle-link {
    display: block;
    margin-top: 5px;
    color: #26a69a;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
}

.toggle-link:hover {
    color: #ffffff;
}
.startlist-rider-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    text-align: left;
}

.startlist-rider-list li {
    padding: 3px 0;
    font-size: 14px;
    line-height: 1.4;
    border-bottom: 1px solid #3a3a3a;
}

.startlist-rider-list li:last-child {
    border-bottom: none;
}

/* Startlijsten renner of deelnemer naam */
.renner-section strong {
    display: block;
    text-align: left;
    margin-bottom: 5px;
}
/* Responsive gedrag */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar-menu {
        flex-direction: column;
        width: 100%;
    }
    .navbar-menu li a {
        width: 100%;
        text-align: left;
    }
    .navbar-dropdown ul {
        position: static;
        box-shadow: none;
        border-radius: 0;
    }
}