style.css 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. :root {
  2. box-sizing: border-box;
  3. font-size: 16px;
  4. line-height: 20px;
  5. font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  6. }
  7. .container {
  8. max-width: 1200px;
  9. padding: 0 15px;
  10. margin: 0 auto;
  11. display: flex;
  12. justify-content: space-around;
  13. }
  14. .traffic__lights {
  15. background-color: #000000;
  16. width: 100px;
  17. height: 300px;
  18. display: flex;
  19. flex-direction: column;
  20. align-items: center;
  21. justify-content: space-evenly;
  22. border-radius: 10px;
  23. }
  24. .lights {
  25. width: 70px;
  26. height: 70px;
  27. background-color: #ececec;
  28. border-radius: 50%;
  29. transition: all 0.3s;
  30. display: flex;
  31. align-items: center;
  32. justify-content: center;
  33. font-size: 3em;
  34. }
  35. #green.active,
  36. #green2.active,
  37. #green3.active {
  38. background-color: #5bff00;
  39. }
  40. #yellow.active,
  41. #yellow2.active,
  42. #yellow3.active {
  43. background-color: #fffe00;
  44. }
  45. #red.active,
  46. #red2.active,
  47. #red3.active {
  48. background-color: #ff0000;
  49. }
  50. .btn,
  51. .btn-light {
  52. border: none;
  53. background-color: rgb(3, 70, 70);
  54. color: #fff;
  55. cursor: pointer;
  56. padding: 25px 35px;
  57. font-size: 2em;
  58. border-radius: 5px;
  59. transition: all 0.3s;
  60. }
  61. .btn:disabled,
  62. .btn-light:disabled {
  63. background-color: #ececec;
  64. color: #000;
  65. opacity: 0.5;
  66. }