quiz.css 848 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* (A) WRAPPER */
  2. #quizWrap {
  3. max-width: 600px;
  4. margin: 0 auto;
  5. }
  6. /* (B) QUESTION */
  7. #quizQn {
  8. padding: 20px;
  9. background: #4c93ba;
  10. color: #fff;
  11. font-size: 24px;
  12. border-radius: 10px;
  13. }
  14. /* (C) ANSWERS */
  15. #quizAns {
  16. margin: 10px 0;
  17. display: grid;
  18. grid-template-columns: auto auto;
  19. grid-gap: 10px;
  20. }
  21. #quizAns input[type=radio] { display: none; }
  22. #quizAns label {
  23. background: #fafafa;
  24. border: 1px solid #eee;
  25. border-radius: 10px;
  26. padding: 10px;
  27. font-size: 20px;
  28. cursor: pointer;
  29. text-align: center;
  30. }
  31. #quizAns label.correct {
  32. background: #d8ffc4;
  33. border: 1px solid #60a03f;
  34. }
  35. #quizAns label.wrong {
  36. background: #ffe8e8;
  37. border: 1px solid #c78181;
  38. }
  39. /* (D) BODY... DOES NOT QUITE MATTER */
  40. html, body {
  41. background: #74b6db;
  42. font-family: arial, sans-serif;
  43. }