style.css 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. html,
  2. body {
  3. height: 100%;
  4. }
  5. body {
  6. margin: 0;
  7. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
  8. Helvetica, Arial, sans-serif;
  9. font-size: calc(14px + 0.5vmin);
  10. background-color: #ebebeb;
  11. display: flex;
  12. flex-direction: column;
  13. }
  14. #header {
  15. padding: 1em;
  16. background-color: #500076;
  17. }
  18. #header h1 {
  19. max-width: 640px;
  20. margin: 0 auto;
  21. font-weight: 600;
  22. }
  23. #header a {
  24. color: white;
  25. text-decoration: none;
  26. }
  27. #content {
  28. padding: 2em 1em 1em;
  29. flex-grow: 1;
  30. }
  31. #footer {
  32. padding: 1em;
  33. border-bottom: 1em solid #500076;
  34. }
  35. #footer p {
  36. max-width: 640px;
  37. margin: 0 auto;
  38. }
  39. hr {
  40. background-color: #ccc;
  41. border: none;
  42. margin: 2em 0;
  43. height: 4px;
  44. }
  45. a {
  46. color: black;
  47. text-decoration: underline;
  48. }
  49. h2,
  50. h3,
  51. h4 {
  52. max-width: 640px;
  53. margin: 0 auto;
  54. font-weight: 600;
  55. }
  56. h3 {
  57. font-size: calc(16px + 1vmin);
  58. }
  59. h4 {
  60. margin: 0 auto 0.5em;
  61. }
  62. .simpleText {
  63. max-width: 640px;
  64. margin: 1em auto 2em;
  65. }
  66. .simpleText svg {
  67. vertical-align: text-bottom;
  68. }
  69. .columnContainer {
  70. position: relative;
  71. }
  72. .columnLeft {
  73. float: left;
  74. width: 100%;
  75. }
  76. .columnRight {
  77. float: left;
  78. width: 100%;
  79. margin-bottom: 4vmin;
  80. }
  81. @media screen and (min-width: 80em) {
  82. .columnLeft {
  83. width: 50%;
  84. }
  85. .columnRight {
  86. width: 50%;
  87. }
  88. }
  89. #bonusBox {
  90. max-width: 640px;
  91. margin: 0 auto;
  92. }
  93. .questionBox {
  94. max-width: 640px;
  95. min-height: 5.5em;
  96. margin: 1em auto;
  97. }
  98. .description {
  99. margin: 1.5em auto;
  100. display: flex;
  101. flex-direction: row-reverse;
  102. justify-content: center;
  103. }
  104. .descText,
  105. .descTextMono {
  106. flex-grow: 1;
  107. max-width: 640px;
  108. }
  109. .descText {
  110. width: calc(100% - 30vmin);
  111. }
  112. .descText p {
  113. margin: 0 0 1em;
  114. }
  115. .descTextMono {
  116. align-self: center;
  117. }
  118. .descTextMono p {
  119. margin: 0;
  120. }
  121. .descImg {
  122. line-height: 0;
  123. }
  124. .descImg img {
  125. width: 15vmin;
  126. height: 15vmin;
  127. }
  128. .axisConstructivism {
  129. background-color: #a425b6;
  130. text-align: right;
  131. }
  132. .axisEssentialism {
  133. background-color: #34b634;
  134. text-align: left;
  135. }
  136. .axisInternationalism {
  137. background-color: #3e6ffd;
  138. text-align: right;
  139. }
  140. .axisNationalism {
  141. background-color: #ff8500;
  142. text-align: left;
  143. }
  144. .axisCommunism {
  145. background-color: #cc0000;
  146. text-align: right;
  147. }
  148. .axisCapitalism {
  149. background-color: #ffb800;
  150. text-align: left;
  151. }
  152. .axisProgressism {
  153. background-color: #850083;
  154. text-align: right;
  155. }
  156. .axisConservatism {
  157. background-color: #970000;
  158. text-align: left;
  159. }
  160. .axisEcology {
  161. background-color: #a0e90d;
  162. text-align: right;
  163. }
  164. .axisProductivism {
  165. background-color: #4deae9;
  166. text-align: left;
  167. }
  168. .axisLiberal {
  169. background-color: #14bee1;
  170. text-align: right;
  171. }
  172. .axisAuthoritarism {
  173. background-color: #e6cc27;
  174. text-align: left;
  175. }
  176. .axisRegulation {
  177. background-color: #269b32;
  178. text-align: right;
  179. }
  180. .axisLaissez {
  181. background-color: #6608c0;
  182. text-align: left;
  183. }
  184. .axisRevo {
  185. background-color: #eb1a66;
  186. text-align: right;
  187. }
  188. .axisRefo {
  189. background-color: #0ee4c8;
  190. text-align: left;
  191. }
  192. .navButtons {
  193. margin: 0 auto 1em;
  194. text-align: center;
  195. max-width: 400px;
  196. }
  197. button,
  198. .button {
  199. text-align: center;
  200. margin: 0.5em 0;
  201. padding: 0.5em 1.5em;
  202. display: inline-block;
  203. border: none;
  204. border-radius: 3px;
  205. text-decoration: none;
  206. font-size: 18px;
  207. background-color: #500076;
  208. color: white;
  209. cursor: pointer;
  210. }
  211. button.strong-agree {
  212. background-color: #1b5e20;
  213. }
  214. button.agree {
  215. background-color: #4caf50;
  216. }
  217. button.neutral {
  218. background-color: #bbbbbb;
  219. }
  220. button.disagree {
  221. background-color: #f44336;
  222. }
  223. button.strong-disagree {
  224. background-color: #b71c1c;
  225. }
  226. .questionButtons button {
  227. color: white;
  228. width: 100%;
  229. padding: 0.5em 0;
  230. }
  231. .button:hover {
  232. background-color: white;
  233. color: #500076;
  234. }
  235. .button svg {
  236. fill: white;
  237. vertical-align: text-bottom;
  238. }
  239. .button:hover svg {
  240. fill: #500076;
  241. }
  242. .buttonLinkGood {
  243. background-color: #0eb31a;
  244. color: white;
  245. }
  246. .buttonLinkGood:hover {
  247. background-color: #0eb31a;
  248. color: white;
  249. }
  250. .buttonLinkGood svg,
  251. .buttonLinkGood:hover svg {
  252. fill: white;
  253. }
  254. .urlToCopyContainer {
  255. width: 100%;
  256. text-align: center;
  257. }
  258. .urlToCopy {
  259. max-width: 400px;
  260. background-color: white;
  261. display: inline-block;
  262. padding: 0.5em;
  263. margin: 1em 0 0;
  264. z-index: 6;
  265. border-radius: 3px;
  266. word-break: break-all;
  267. }
  268. .flagDecoration {
  269. text-align: center;
  270. }
  271. .flagDecoration canvas {
  272. box-shadow: 0 1px 1px 1px #aaa;
  273. max-width: 70vmin;
  274. }
  275. .generatedResultsDecorations {
  276. text-align: center;
  277. }
  278. .generatedResultsDecorations canvas {
  279. box-shadow: 0 1px 1px 1px #aaa;
  280. max-width: 800px;
  281. width: 100%;
  282. }
  283. #slogan {
  284. margin: 1em 0;
  285. font-size: calc(14px + 2vw);
  286. }
  287. .scale {
  288. display: flex;
  289. width: 100%;
  290. margin-bottom: 1em;
  291. }
  292. .scale .left,
  293. .scale .right {
  294. width: 15vmin;
  295. height: 15vmin;
  296. position: relative;
  297. }
  298. .scale .left img,
  299. .scale .right img {
  300. position: absolute;
  301. top: 0;
  302. width: 15vmin;
  303. z-index: 2;
  304. }
  305. .scale .left img {
  306. left: 2vmin;
  307. }
  308. .scale .right img {
  309. right: 2vmin;
  310. }
  311. .scale .axis {
  312. flex-grow: 1;
  313. }
  314. .scale .axis .label {
  315. display: flex;
  316. font-size: 2.5vmin;
  317. height: 5vmin;
  318. align-items: center;
  319. }
  320. .scale .axis .label .left-label,
  321. .scale .axis .label .right-label {
  322. width: 50%;
  323. margin: 0 0.5em;
  324. }
  325. .scale .axis .label .right-label {
  326. text-align: right;
  327. }
  328. .scale .axis .axis-bar {
  329. display: flex;
  330. box-shadow: 0vmin 1px 0.4vmin #aaa;
  331. height: 5vmin;
  332. background-color: #f3f3f3;
  333. color: #888;
  334. }
  335. .scale .axis .axis-bar .axis-left,
  336. .scale .axis .axis-bar .axis-center,
  337. .scale .axis .axis-bar .axis-right {
  338. font-size: 3.2vmin;
  339. line-height: 5vmin;
  340. }
  341. .scale .axis .axis-bar .axis-left span,
  342. .scale .axis .axis-bar .axis-right span {
  343. padding: 0 1.1vmin;
  344. color: white;
  345. text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  346. }
  347. .scale .axis .axis-bar .axis-left {
  348. text-align: right;
  349. }
  350. .scale .axis .axis-bar .axis-center {
  351. text-align: center;
  352. flex-grow: 1;
  353. }