austinh115

kahoot xs

May 1st, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. background: white;}
  2. /** CSS By Austin (638877683) **/
  3. body {
  4. margin: 0;
  5. font-size: 12px;
  6. font-family: 'Montserrat','Helvetica Neue',helvetica,arial,sans-serif;
  7. line-height: 180%;
  8. -moz-osx-font-smoothing: grayscale;
  9. -webkit-font-smoothing: antialiased;
  10. font-smoothing: antialiased;
  11. color: #000;
  12. overflow: hidden;
  13. }
  14.  
  15. @font-face {
  16. font-family: bpreplay;
  17. src: url('https:\/\/austinh115.github.io/BPreplayBoldItalics.ttf');
  18. /*src: url('BPreplayBoldItalics.ttf');*/
  19. }
  20.  
  21. *{padding:0;margin:0;}
  22.  
  23. /**/
  24.  
  25. .kahoot {
  26. width: 100vw;
  27. height: 100vh;
  28. display: block;
  29. overflow: hidden;
  30. }
  31.  
  32. .header {
  33. height: 10vh;
  34. width: 100%;
  35. background: white;
  36. border-bottom: 3px solid #d9d9d9;
  37. }
  38.  
  39. .title {
  40. font-size: 56px;
  41. text-align: center;
  42. line-height: 10vh;
  43. }
  44.  
  45. .question-big .title {
  46. font-family: bpreplay;
  47. font-weight: bold;
  48. }
  49.  
  50. .fullscreen {
  51. position: absolute;
  52. top: 0;
  53. right: 0;
  54. height: 10vh;
  55. }
  56.  
  57. .screen {
  58. display: block;
  59. position: relative;
  60. height: 100vh;
  61. width: 100%;
  62. overflow: hidden;
  63. }
  64.  
  65. .timer {
  66. height: 20px;
  67. background: #ccc;
  68. position: absolute;
  69. top: calc(10vh + 3px);
  70. width: 100%;
  71. }
  72.  
  73. .timer::after {
  74. content: '';
  75. display: block;
  76. background: rgb(114, 51, 178);
  77. width: 0px;
  78. height: 100%;
  79. animation: timer forwards 5s linear;
  80. }
  81.  
  82. @keyframes timer {
  83. 0% {
  84. width: 0px;
  85. }
  86. 100% {
  87. width: 100%;
  88. }
  89. }
  90.  
  91. .question-big h1 {
  92. display: block;
  93. line-height: 80vh;
  94. width: 100%;
  95. text-align: center;
  96. font-size: 64px;
  97. font-weight: normal;
  98. }
  99.  
  100. .footer {
  101. display: block;
  102. height: 10vh;
  103. width: 100%;
  104. background: rgb(19, 104, 206);
  105. color: white;
  106. font-size: 28px;
  107. text-align: center;
  108. line-height: 10vh;
  109. }
  110.  
  111. .question-mini, .results {
  112. opacity: 0;
  113. top: 0;
  114. position: absolute;
  115. }
  116.  
  117. .question-big {
  118. animation: hidebig 0s forwards steps(2, end);
  119. animation-delay: 5s;
  120.  
  121. display: block;
  122. opacity: 1;
  123. z-index: 999;
  124. }
  125. .question-mini {
  126. animation: showmini 0s forwards steps(2, end), hidemini 0s forwards steps(2, end);
  127. animation-delay: 5s, 25s;
  128.  
  129. background: rgb(242, 242, 242);
  130.  
  131. display: block;
  132. width: 100%;
  133. z-index: 998;
  134. }
  135. .results {
  136. animation: showresult 0s forwards steps(2, end);
  137. animation-delay: 25s;
  138.  
  139. width: 100%;
  140. height: 100%;
  141.  
  142. background: rgb(255, 51, 85);
  143.  
  144. color: white;
  145.  
  146. text-align: center;
  147.  
  148. display: flex;
  149. align-items: center;
  150. justify-content: center;
  151. z-index: 997;
  152. }
  153. /*h1 img span span*/
  154. .results h1 {
  155. font-family: bpreplay;
  156. font-size: 2rem;
  157. margin: 0 0 1rem;
  158. line-height: normal;
  159. }
  160. .results .img {
  161. background: url('https:\/\/austinh115.github.io/icn_incorrect.svg') center/contain no-repeat;
  162. height: 4.5rem;
  163. margin: 0 0 1.5rem;
  164. }
  165. .results .msg {
  166. display: flex;
  167. align-items: center;
  168. justify-content: center;
  169. padding: .625rem;
  170. background-color: rgba(0,0,0,.15);
  171. overflow: hidden;
  172. position: relative;
  173. margin: 0 auto 1rem;
  174. min-height: 3.875rem;
  175. width: 300px;
  176. font-size: 1.25rem;
  177. line-height: 1.25;
  178. }
  179. .results .place {
  180. width: 100%;
  181. font-size: 1rem;
  182. letter-spacing: .025rem;
  183. line-height: 1.5;
  184. margin-top: 7.5rem;
  185. display: block;
  186. }
  187.  
  188. @keyframes hidebig {
  189. 100% {opacity: 0;display:none;}
  190. }
  191.  
  192. @keyframes showmini {
  193. 100% {opacity: 1}
  194. }
  195.  
  196. @keyframes hidemini {
  197. 100% {opacity: 0;display:none;}
  198. }
  199.  
  200. @keyframes showresult {
  201. 100% {opacity: 1}
  202. }
  203.  
  204. .countdown, .finished {
  205. position: absolute;
  206. top: 25vh;
  207. height: 120px;
  208. width: 120px;
  209. margin-top: calc(40px);
  210. line-height: 120px;
  211. text-align: center;
  212. display: block;
  213. font-family: bpreplay;
  214. font-size: 54px;
  215. }
  216.  
  217. .content {
  218. height: 50vh;
  219. width: 100%;
  220. }
  221.  
  222. .content img {
  223. margin: 0 auto;
  224. display: block;
  225. position: relative;
  226. top: 50%;
  227. transform: translateY(-50%);
  228. max-height: 100%;
  229. }
  230.  
  231. @keyframes countdown {
  232. 0% {content:'20'}
  233. 5% {content:'19'}
  234. 10% {content:'18'}
  235. 15% {content:'17'}
  236. 20% {content:'16'}
  237. 25% {content:'15'}
  238. 30% {content:'14'}
  239. 35% {content:'13'}
  240. 40% {content:'12'}
  241. 45% {content:'11'}
  242. 50% {content:'10'}
  243. 55% {content:'9'}
  244. 60% {content:'8'}
  245. 65% {content:'7'}
  246. 70% {content:'6'}
  247. 75% {content:'5'}
  248. 80% {content:'4'}
  249. 85% {content:'3'}
  250. 90% {content:'2'}
  251. 95% {content:'1'}
  252. 100% {content:'0'}
  253. }
  254.  
  255. .countdown {
  256. left: 3%;
  257. background: rgb(134, 76, 191);
  258. border-radius: 50%;
  259. color: white;
  260. }
  261. .countdown::after {
  262. display: block;
  263. content: '';
  264. animation: countdown 20s forwards linear;
  265. animation-delay: 5s;
  266. }
  267.  
  268. .finished {
  269. right: 3%;
  270. }
  271.  
  272. .finished span {
  273. font-size: 22px;
  274. margin-top: -80px;
  275. display: block;
  276. }
  277.  
  278. .options {
  279. display: grid;
  280. grid-template-columns: auto auto;
  281. grid-template-rows: auto auto;
  282. grid-column-gap: 10px;
  283. grid-row-gap: 10px;
  284. height: 40vh;
  285. border: 10px;
  286. border-top: 0;
  287. border-style: solid;
  288. border-color: transparent;
  289. box-sizing: border-box;
  290. }
  291.  
  292. .option {
  293. color: white;
  294. text-shadow: 0px 0px 1px black;
  295. font-size: 27px;
  296. border-radius: 3px;
  297. display: grid;
  298. padding: 1em;
  299. }
  300.  
  301. .option span {
  302. align-self: center;
  303. justify-self: left;
  304. }
  305.  
  306. .option:nth-child(1) {background: #e21b3c}
  307. .option:nth-child(2) {background: #1368ce}
  308. .option:nth-child(3) {background: #d89e00}
  309. .option:nth-child(4) {background: #298f0d}
  310.  
  311. .option:nth-child(1):hover {background: #c01733}
  312. .option:nth-child(2):hover {background: #1058af}
  313. .option:nth-child(3):hover {background: #b88600}
  314. .option:nth-child(4):hover {background: #237a0b}
  315.  
  316. iframe {
  317. position: fixed;
  318. top: -500px;
  319. left: -500px;
  320. }
  321. ::selection {
  322. background: transparent;
  323. }
  324.  
  325. /**/
  326.  
  327. [id*=ayf]{top:5vh;height:50px;margin-top:-25px;margin-left:5px;}
  328.  
  329. *{;
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341. <div class="kahoot">
  342.  
  343. <div class="screen">
  344.  
  345. <div class="question-big">
  346.  
  347. <div class="header">
  348.  
  349. <div class="title">Question 1 of 10</div>
  350.  
  351. <div class="timer"></div>
  352.  
  353. </div>
  354.  
  355.  
  356. <h1>Why is Austin so amazing?</h1>
  357.  
  358. <span class="footer">Win up to <b>1,000</b> points!</span>
  359.  
  360. </div>
  361.  
  362.  
  363. <div class="question-mini">
  364.  
  365. <div class="header">
  366.  
  367. <div class="title">Why is Austin so amazing?</div>
  368.  
  369. </div>
  370.  
  371.  
  372. <div class="content">
  373.  
  374. <span class="countdown"></span>
  375.  
  376. <img src="https://i.postimg.cc/kCs0psXw/girltest5xatspace.png" />
  377.  
  378. <span class="finished">0<br /><span>Answers</span></span>
  379.  
  380. </div>
  381.  
  382.  
  383. <div class="options">
  384.  
  385. <div class="option"><span>That's just the way it is</span></div>
  386. <div class="option"><span>That's just the way it is</span></div>
  387. <div class="option"><span>That's just the way it is</span></div>
  388. <div class="option"><span>That's just the way it is</span></div>
  389.  
  390. </div>
  391.  
  392. </div>
  393.  
  394.  
  395. <div class="results">
  396.  
  397. <div class="container">
  398.  
  399. <h1>Incorrect</h1>
  400.  
  401. <div class="img"></div>
  402.  
  403. <span class="msg">You meant the other one, right?!</span>
  404.  
  405. <span class="place">You're in <b>1st place</b></span>
  406.  
  407. </div>
  408.  
  409. </div>
  410.  
  411. </div>
  412.  
  413. </div>
  414.  
  415.  
  416. [youtube:350:197:8YGlzSl6cxU:autoplay=1&playlist=8YGlzSl6cxU&loop=1&showinfo=0&rel=0&modestbranding=1]
Add Comment
Please, Sign In to add comment