body,
html {
    margin: 0;
    overflow-x: hidden;
    width: 100%;
}

* {
  font-family: "Righteous", sans-serif;
}


@import url('https://fonts.googleapis.com/css2?family=Righteous&display=swap');

h1,
h2,
h3,
h5,
h6,
p {
    color: #007057;
}

h4 {
    color: #ffffff;
    margin-left: 3%;
}


.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: #2196f3;
}

.switch input:focus + .slider {
    box-shadow: 0 0 1px #2196f3;
}

.switch input:checked + .slider:before {
    transform: translateX(26px);
}

.righteous-regular {
    font-family: "Righteous", sans-serif;
}

header {
    background-color: #007057;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.themebtn {
    background-color: inherit;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
}

.theme {
    position: relative;
    display: inline-block;
    margin-left: 10%;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #0b8067;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    flex-direction: column;
}

.theme-option {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
}

.theme-option:hover {
    background-color: #0c0e0c;
}

.theme:hover .dropdown-content {
    display: flex;
}

.theme:hover .themebtn {
    background-color: #0b8067;
    transition: 0.3s;
}

nav {
    display: flex;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 3vw;
}


.logo {
    width: 70px;
    height: 70px;
    margin-left: 2vw;
    border-radius: 50%;
    border: solid #0b8067 2px;
}


body.dark-theme {
    background-color: #121212;
}

body.dark-theme header {
    background-color: #1a1a1a;
}

body.dark-theme .vraag {
    background-color: #0c0e0c;
}

body.dark-theme input[type="radio"] {
    accent-color: #0b8067;
    filter: invert(1) hue-rotate(170deg);
}


.quiz {
    padding: 20px 40px;
}


.questions-grid,
.vragen {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}


.vraag {
    background-color: #ffffff;
    border: 2px solid #0b8067;
    padding: 16px;
    border-radius: 8px;
}


.vraag h2 {
    font-size: 1em;
}

.vraag p {
    font-size: 0.95em;
}

.vraag label {
    display: block;
    color: #0b8067;
    cursor: pointer;
}

.vraag label input {
    margin-right: 8px;
    accent-color: #0b8067;
}

.submit {
    background-color: #0b8067;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.submit:hover {
    background-color: #007057;
}


footer {
    background-color: #007057;
    height: 60px;
    margin-top: 6%;
}


@media (max-width: 800px) {

    .questions-grid,
    .vragen {
        grid-template-columns: 1fr; /* ✅ 1 column */
        padding: 10px;
    }

    .vraag {
        display: block; /* ✅ no hiding */
    }

    footer {
        display: none;
    }
}

@media (min-width: 801px) {
    .navigatie {
        display: none;
    }
}