/* Algemene styling */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    background-color: #f9f9f9;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

header {
    background-color: #403A94;
    color: #ffffff;
    padding: 10px;
    text-align: left;
}

header h1 {
    margin: 0;
}

nav ul.navigation {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
}

nav ul.navigation li {
    display: inline;
    margin: 0 15px;
}

nav ul.navigation li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

main {
    padding: 20px;
}

section {
    margin-bottom: 20px;
}

section h2 {
    color: #403A94;
}

.welcome {
    background: #eef;
    padding: 15px;
    border-radius: 8px;
}

.button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #403A94;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
}

footer {
    background-color: #403A94;
    color: white;
    text-align: center;
    padding: 10px;
    width: 100%;
}

.diensten-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.diensten-tekst {
    flex: 1;
}

.diensten-afbeelding {
    width: 300px;
    height: auto;
    margin-left: 20px;
}

#woordenboek input[type="text"], 
select {
    font-family: 'Poppins', sans-serif;
    padding: 10px;
    width: 375px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#woordenboek button {
    font-family: 'Poppins', sans-serif;
    background-color: #403A94;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#woordenboek button:hover {
    background-color: #5b5fc4;
}

/* Navigatiemenu styling */
.menu-toggle {
    font-size: 2rem;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}

.menu-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.extra-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.extra-button img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media screen and (max-width: 768px) {
    header {
        padding: 5px 10px;
    }

    header h1 {
        font-size: 1.7rem;
    }

    header h2 {
        font-size: 1.3rem;
    }
    
    .header-container {
        flex-wrap: wrap;
    }

    .menu-wrapper {
        position: relative;
        right: 0;
    }
    
    nav ul.navigation {
        display: none;
        flex-direction: column;
        background-color: #403A94;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
    
    nav ul.navigation.show {
        display: flex;
    }
    
    nav ul.navigation li {
        margin: 10px 0;
        display: block;
    }
}

@media screen and (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* Tooltip styling */
.tooltip {
    position: relative;
    cursor: pointer;
    border-bottom: 1px dotted #000;
    display: inline;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #f9f9f9;
    color: #333;
    text-align: left;
    padding: 10px;
    border-radius: 5px;
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
    font-size: 14px;
    line-height: 1.4;
}

.tooltip:hover .tooltip-text,
.tooltip:focus .tooltip-text {
    visibility: visible;
}

/* Verberg de container standaard */
.verborgen {
    display: none;
}