html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/*Wit ruimte voorkomen in de footer*/
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

:root {
    --bs-primary: #e34e1e;
    /* Oranje */
    --bs-primary-rgb: 227, 78, 30;
    --bs-secondary: #bbbbbb;
    /* Grijs */
    --bs-secondary-rgb: 187, 187, 187;
    --bs-info: #ffa100;
    /* Lichter oranje */
    --bs-info-rgb: 255, 161, 0, 1
        /* Lichter oranje */
}

.navbar-nav .nav-item.active .nav-link {
    color: var(--bs-primary) !important;
    /* Dit gebruikt de 'primary' kleur die je hebt ingesteld in de :root */
}

/* Hover effect voor de primary kleur */
.hover-primary:hover {
    color: var(--bs-dark) !important;
    background-color: var(--bs-info) !important;
    border-color: var(--bs-primary);
}

.hover-primary {
    transition: all 0.5s;
}

/* Hover effect voor de secondary kleur */
.hover-secondary:hover {
    color: var(--bs-primary) !important;
}

.hover-secondary {
    transition: all 0.5s;
}

h3.text-white {
    font-size: 1.3rem;
    font-weight: normal;
}

.box {
    width: 100px;
    height: auto;
    transition: .5s linear;
    position: relative;
    display: block;
    overflow: hidden;
    padding: 10px;
    text-align: center;
    margin: 0 5px;
    background: transparent;
    font-weight: 300;
    text-decoration: none;
    /* verwijder standaard linkstijl */
    color: black;
    /* standaard kleur */
}

.box:before {
    position: absolute;
    content: '';
    left: 0;
    bottom: 0;
    height: 4px;
    width: 100%;
    border-bottom: 4px solid transparent;
    border-left: 4px solid transparent;
    box-sizing: border-box;
    transform: translateX(100%);
}

.box:after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-top: 4px solid transparent;
    border-right: 4px solid transparent;
    box-sizing: border-box;
    transform: translateX(-100%);
}

.box:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    color: #e34e1e
}

.box:hover:before {
    border-color: #e34e1e;
    height: 100%;
    transform: translateX(0);
    transition: .3s transform linear, .3s height linear .3s;
}

.box:hover:after {
    border-color: #e34e1e;
    height: 100%;
    transform: translateX(0);
    transition: .3s transform linear, .3s height linear .5s;
}

.box.active {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    color: #e34e1e;
}

.box.active:before,
.box.active:after {
    border-color: #e34e1e;
    height: 100%;
    transform: translateX(0);
}

/* Navbar mobile */
@media (max-width: 576px) {
    .navbar-nav {
        align-items: flex-end !important;
    }

    .navbar-nav .nav-item {
        width: 100%;
        text-align: right;
    }

    .navbar-nav .nav-item .box {
        display: inline-block;
        text-align: right;
        width: auto;
    }

    .navbar-nav .language-switcher {
        justify-content: flex-end;   /* Zorgt dat de inhoud rechts staat */
        text-align: right;           /* fallback */
        width: 100%;                 /* neemt volledige breedte */
        display: flex;               /* maakt flexbox aan */
        align-items: center;         /* verticaal uitlijnen */
    }

    .navbar-nav .language-switcher select {
        margin-left: 0;              /* geen marge links */
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        flex-wrap: wrap !important;         /* zorgen dat items naar nieuwe regel gaan als nodig */
        justify-content: flex-end !important; /* items rechts uitlijnen */
        align-items: center !important;    /* items verticaal centreren */
        margin-right: 1rem !important;
    }

    .navbar-nav .nav-item {
        flex: 0 1 auto;                     /* items krimpen en groeien indien nodig */
        margin: 0 0.5rem 0.5rem 0;          /* marge rechts en onder voor ruimte */
        text-align: right;
        white-space: nowrap;                /* voorkomen dat tekst breekt */
    }

    .navbar-nav .nav-item .box {
        width: auto;                       /* geen vaste breedte */
        display: inline-block;
        text-align: right;
    }

    .navbar-nav .language-switcher {
        flex: 0 1 auto;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin-left: 0.5rem;
        white-space: nowrap;
    }

    .navbar-nav .language-switcher select {
        min-width: 120px;
        max-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .navbar-brand {
        margin-left: 1rem !important;
    }

    .navbar-nav {
        margin-right: 1rem !important;
        flex-wrap: wrap;
    }

    .navbar-collapse {
        overflow-x: auto;
        white-space: nowrap;
    }

    .navbar-nav .language-switcher {
        width: auto; /* of een max-width passend bij je design */
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin-left: 1rem; /* optioneel, om wat ruimte te geven */
    }

    .navbar-nav .language-switcher select {
        width: auto; /* zorg dat select niet breder wordt dan nodig */
        min-width: 120px; /* of een minimum, zodat hij niet te klein wordt */
    }
}

/* Footer */
footer li {
    font-size: 16px !important;
}