*, *::before, *::after { box-sizing: border-box; } html, body { margin: 0; padding: 0; overflow-x: hidden; font-family: 'Poppins', Arial, sans-serif; scroll-behavior: smooth; } body { background-image: url('../../afbeeldingen/verkeerssprookjes-sfeervolle-woonkamer.jpg'); background-repeat: no-repeat; background-attachment: fixed; background-position: center; background-size: cover; color: #000000; position: relative; } body::before { content: ""; position: fixed; inset: 0; z-index: -1; } .header { background-color: #03A9F4; padding: 20px; text-align: center; color: white; width: 100%; box-shadow: 0 4px 8px rgba(0,0,0,0.3); } .header h1 { margin: 0; font-size: 2.5rem; font-weight: 700; text-shadow: 1px 1px 3px rgba(0,0,0,0.4); } .container { display: none; position: relative; max-width: 1200px; width: 90%; margin: 40px auto; padding: 30px 40px; background-color: #ffffff; color: #000000; border-radius: 10px; border: 3px solid #000000; box-shadow: 0 6px 12px rgba(0,0,0,0.3); text-align: left; font-size: 1.2rem; min-height: 400px; opacity: 0; transition: opacity 0.2s ease; } .container.active { opacity: 1; pointer-events: auto; } #container1 { display: block; } .step-image, .card img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 3px solid #000000; display: block; margin-bottom: 10px; } .cards-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin: 1rem 0 2rem 0; } .card { background-color: #ffffff; color: #000000; border-radius: 10px; padding: 1rem; display: flex; flex-direction: column; gap: 0.8rem; transition: transform 0.2s, box-shadow 0.2s; overflow: hidden; } .card img { width: 100%; height: auto; object-fit: cover; border-radius: 10px; border: 3px solid #000000; display: block; } .card h4 { margin: 0; display: flex; align-items: center; gap: 0.5rem; } .card p { margin: 0; line-height: 1.5; } .wegcode-quiz { background-color: #f0f8ff; padding: 0px; border-radius: 10px; border: 2px solid #03A9F4; margin-bottom: 15px; } .quiz-content { width: 100%; } .quiz-content p { text-align: center; } .quiz-img { width: 100%; max-width: 250px; height: auto; object-fit: cover; border-radius: 10px; display: block; float: left; margin-right: 20px; } .quiz-inner { display: flex; gap: 20px; margin: 20px 0; align-items: stretch; } .wegcode-antwoorden { list-style: none; padding: 0; margin: 0; counter-reset: answer-counter; } .wegcode-antwoorden li { position: relative; width: 95%; margin-bottom: 15px; border-radius: 10px; border: 3px solid #ddd; box-shadow: 0 6px #aaa; cursor: pointer; font-size: 1.2rem; transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s; display: flex; align-items: center; justify-content: center; min-height: 50px; padding-left: 30px; text-align: center; box-sizing: border-box; } .wegcode-antwoorden li::before { content: counter(answer-counter, upper-alpha) "."; counter-increment: answer-counter; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-weight: bold; color: #333; } .wegcode-antwoorden li:hover { background-color: #eaf6ff; transform: scale(1.03); } .wegcode-antwoorden li:active { background-color: #1CB0F6; color: white; } .wegcode-antwoorden li.correct { background-color: #B9F289; border: 3px solid #5DA223; box-shadow: 0 6px #5DA223; color: #155724; animation: fadeInScale 0.4s ease-out forwards; } .wegcode-antwoorden li.incorrect { background-color: #f8d7da; border: 3px solid #721c24; box-shadow: 0 6px #721c24; color: #721c24; animation: fadeInScale 0.4s ease-out forwards; } @keyframes fadeInScale { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } } @keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } } .wegcode-feedback { display: none; padding: 10px 15px; border-radius: 10px; margin-top: 10px; font-size: 1.1rem; font-weight: 500; box-shadow: 0 3px rgba(0,0,0,0.3); white-space: nowrap; transition: all 0.3s ease; opacity: 0; transform: translateY(-10px); text-align: center; width: 95%; } .wegcode-feedback.feedback-correct, .wegcode-feedback.feedback-wrong { display: inline-block; opacity: 1; transform: translateY(0); } .wegcode-feedback.feedback-correct { background-color: #B9F289; border: 3px solid #5DA223; color: #155724; box-shadow: 0 6px #5DA223; } .wegcode-feedback.feedback-wrong { background-color: #FF4B4B; border: 3px solid #A22323; color: white; box-shadow: 0 6px #A22323; } .next-page-button { position: absolute; bottom: 20px; right: 20px; width: 50px; height: 50px; border: none; border-radius: 50%; background-color: #28a745; color: white; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 6px #145423; } .next-page-button:hover:not(:disabled) { background-color: #218838; transform: scale(1.1); } .next-page-button:disabled { background-color: #6c757d; cursor: not-allowed; transform: none; box-shadow: 0 6px #363B3F; } .prev-page-button { position: absolute; bottom: 20px; left: 20px; width: 50px; height: 50px; border: none; border-radius: 50%; background-color: #28a745; color: white; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 6px #145423; z-index: 1000; } .prev-page-button:hover { background-color: #218838; transform: scale(1.1); } .back-btn { position: fixed; bottom: 20px; right: 20px; padding: 15px 25px; background-color: #03A9F4; color: white; border-radius: 10px; font-size: 1.2rem; text-decoration: none; display: flex; align-items: center; gap: 10px; z-index: 1000; box-shadow: 0 6px #01547A; transition: all 0.2s ease-in-out; } .back-btn:hover { background-color: #1E88E5; transform: scale(1.1); } .back-btn:focus { outline: 3px solid #fff; outline-offset: 2px; } p, li { line-height: 1.5; margin-bottom: 1em; text-shadow: 1px 1px 2px rgba(0,0,0,0.1); } h2 { text-align: center; margin: 5px 0; font-weight: 600; font-size: 2rem; color: #03A9F4; text-shadow: 0 1px 2px rgba(0,0,0,0.2); } @media (max-width: 1023px) and (min-width: 600px) { .header h1 { font-size: 2rem; } .container { width: 95%; padding: 20px 25px; font-size: 1.1rem; margin: 30px auto; min-height: 300px; margin-bottom: 80px; } .cards-container { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.8rem; } .quiz-inner { flex-direction: column; gap: 15px; } .quiz-img { max-width: 150px; margin: 0 auto -20px auto; float: none; display: block; } .next-page-button { width: 45px; height: 45px; font-size: 1.2rem; bottom: 15px; right: 15px; } .prev-page-button { width: 45px; height: 45px; font-size: 1.2rem; bottom: 15px; right: 15px; } .back-btn { padding: 12px 20px; font-size: 1rem; } .wegcode-antwoorden li, .wegcode-feedback { width: 90%; margin-left: auto; margin-right: auto; } } @media (max-width: 599px) { .header h1 { font-size: 1.5rem; } .container { width: 90%; padding: 15px 20px; font-size: 1rem; margin: 20px auto; min-height: 250px; margin-bottom: 80px; } .cards-container { grid-template-columns: 1fr; gap: 0.5rem; } .card { padding: 0.8rem; } .quiz-inner { flex-direction: column; gap: 10px; } .quiz-img { max-width: 150px; margin: 0 auto -20px auto; float: none; display: block; } .wegcode-antwoorden li { font-size: 1rem; min-height: 45px; padding-left: 25px; } .wegcode-feedback { font-size: 1rem; white-space: normal; } .wegcode-antwoorden li, .wegcode-feedback { width: 90%; margin-left: auto; margin-right: auto; } .next-page-button { width: 40px; height: 40px; font-size: 1rem; bottom: 10px; right: 10px; } .prev-page-button { width: 40px; height: 40px; font-size: 1rem; bottom: 10px; right: 10px; } .back-btn { padding: 12px 20px; font-size: 1em; bottom: 20px; right: 10px; } h2 { font-size: 1.5rem; } } width: 40px; height: 40px; font-size: 1rem; } .back-btn { padding: 12px 20px; font-size: 1em; bottom: 20px; transform: translateX(-50%); } h2 { font-size: 1.5rem; } }