Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.00 KB | None | 0 0
  1. @import url('https://fonts.googleapis.com/css?family=Signika');
  2. @import url('https://fonts.googleapis.com/css?family=Germania+One'); /*Victory / Defeat screen*/
  3. body{
  4. background: #240000 url('../media/bg-play.png') no-repeat center fixed;
  5. background-size: 100%;
  6. font-family: 'Signika', sans-serif;
  7. }
  8. header{
  9. height: auto;
  10. }
  11. #logo{
  12. height: 137px;
  13. background: url("../media/stratego.png") no-repeat 0 -15px;
  14. background-size: 100%;
  15. margin-left: auto;
  16. margin-right: auto;
  17. width: 600px;
  18. }
  19. #logo + h1{
  20. border-top: 1px solid gold;
  21. border-bottom: 1px solid gold;
  22. text-decoration:none;
  23. text-align: center;
  24. color:white;
  25. font-size:1.2rem;
  26. height: 79px;
  27. }
  28. nav {
  29. top:0;
  30. position:sticky;
  31. width:100%;
  32. height: auto;
  33. background-color:#260000b0;
  34. border-top: 1px solid gold;
  35. border-bottom: 1px solid gold;
  36. }
  37. nav ul, #resultScreen ul{
  38. margin:auto;
  39. display:flex;
  40. flex-direction:row;
  41. justify-content: center;
  42. }
  43. nav ul{
  44. width:50%;
  45. }
  46. nav ul li{
  47. display:inline;
  48. padding: 30px 10% 30px 10%;
  49. }
  50. nav ul li a, #resultScreen ul li a{
  51. text-decoration:none;
  52. position:center;
  53. color:gold;
  54. font-size:1.2rem;
  55. }
  56. nav ul li:hover, #resultScreen ul li:hover{
  57. background-color: gold;
  58. }
  59. nav ul li:hover a,#resultScreen ul li:hover a{
  60. color:#260000b0;
  61. }
  62.  
  63. h1{
  64. color: white;
  65. font-size: 3rem;
  66. }
  67.  
  68. .selected a{
  69. color:gold;
  70. border-bottom: 1px solid gold;
  71. }
  72. .hidden{
  73. display:none;
  74. }
  75. main #spelen{
  76. width:400px;
  77. padding-top:9%;
  78. height: auto;
  79. margin-left:auto;
  80. margin-right:auto;
  81. }
  82. main #spelregels{
  83. width: 1050px;
  84. margin-right: auto;
  85. margin-left: auto;
  86. background-color: transparent;
  87. opacity: 0.7;
  88. color: white;
  89. }
  90. main #spelregels h2{
  91. font-size: 2rem;
  92. padding: 3% 0 3% 3%;
  93. }
  94. main #spelregels h3{
  95. font-size: 1.2rem;
  96. padding: 2% 0 1% 1%;
  97. }
  98. #name{
  99. padding: 10px 0 10px 10px;
  100. margin-bottom:40px;
  101. border-radius:20px;
  102. width: 100%;
  103. background-color: transparent;
  104. color: gold;
  105. text-align: center;
  106. font-weight: bold;
  107. border: 1px solid gold;
  108. }
  109. main input::placeholder {
  110. color: gold;
  111. }
  112.  
  113. #play{
  114. border: none;
  115. width: 100%;
  116. min-height: 50px;
  117. border-radius: 20px;
  118. color: #781113;
  119. background-color: gold;
  120. font-size: 1.5rem;
  121. font-weight: bold;
  122. }
  123. #randomTip{
  124. margin-top: 30px;
  125. width: 600px;
  126. height: 98px;
  127. margin-left: auto;
  128. margin-right: auto;
  129. background-color: gold;
  130. border-radius: 5px;
  131. }
  132. #randomTip img{
  133. margin: 1% 0 0 1%;
  134. width: 10%;
  135. height: auto;
  136. border: 1px solid black;
  137. float: left;
  138. }
  139. #randomTip p{
  140. margin: 3% 0 0 3%;
  141. width: 85%;
  142. height: auto;
  143. float: right;
  144. }
  145. #loading {
  146. border: 16px solid transparent;
  147. border-left: gold;
  148. border-radius: 50%;
  149. border-top: 16px solid gold;
  150. width: 100px;
  151. height: 100px;
  152. margin-left: auto;
  153. margin-right: auto;
  154. margin-top: 15%;
  155. animation: spin 2s linear infinite;
  156. }
  157. #waiting{
  158. bottom: 0;
  159. position: absolute;
  160. width: 100%;
  161. text-align: center;
  162. color: gold;
  163. font-size: 2rem;
  164. padding-bottom: 20px;
  165. }
  166.  
  167. @keyframes spin {
  168. 0% { transform: rotate(0deg); }
  169. 100% { transform: rotate(360deg); }
  170. }
  171.  
  172.  
  173. .play {
  174. width: 100%;
  175. color: #260000b0;
  176. height:50px;
  177. background-color: gold;
  178. border: none;
  179. border-radius: 45px;
  180. box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  181. transition: all 0.3s ease 0s;
  182. }
  183. .play:hover {
  184. background-color: transparent;
  185. box-shadow: 0 15px 20px gold; /*rgba(46, 229, 157, 0.4);*/
  186. border:1px solid gold;
  187. color: gold;
  188. transform: translateY(-7px);
  189. }
  190.  
  191. .hidden{
  192. display: none;
  193. }
  194. /********************/
  195. /* SETUP BOARD PAGE */
  196. /********************/
  197.  
  198. #boardsetupmain{
  199. margin: 1% 0 0 1%;
  200. width: 80%;
  201. display: grid;
  202. grid-template-columns: 30% 70%;
  203. grid-template-rows: auto 50px;
  204. grid-gap: 10%;
  205. grid-template-areas: "pc hb"
  206. "bb rb";
  207. }
  208.  
  209. #pieces{
  210. width: auto;
  211. height: auto;
  212. grid-area: pc;
  213. display: grid;
  214. grid-template-columns: repeat(5, auto);
  215. grid-template-rows: auto;
  216. grid-gap: 1px;
  217. }
  218.  
  219. #pieces div{
  220. width: 100%;
  221. height: 100%;
  222. }
  223.  
  224. #pieces img {
  225. width: 100%;
  226. height: 100%;
  227. background-color: gold;
  228. }
  229.  
  230. #halfboard{
  231. grid-area: hb;
  232. background-color: transparent;
  233. display: grid;
  234. grid-template-columns: repeat(10, auto);
  235. grid-template-rows: 1fr 1fr 1fr 1fr 1fr 2fr;
  236. grid-gap: 1px;
  237. }
  238.  
  239. #halfboard img {
  240. width: 100%;
  241. height: 100%;
  242. }
  243.  
  244. #boardbuttons{
  245. grid-area: bb;
  246. }
  247.  
  248. #readybutton{
  249. grid-area: rb;
  250. }
  251.  
  252. /*************/
  253. /* GAME PAGE */
  254. /*************/
  255. #gamegridcontainer{
  256. width: 80%;
  257. display: grid;
  258. grid-template-columns: 10% 80% 10%;
  259. grid-template-rows: auto 10% 5%;
  260. grid-gap: 10%;
  261. grid-template-areas: "pc fb pl"
  262. ". pi ."
  263. "gb";
  264. }
  265. #capturedpieces{
  266. grid-area: cp;
  267. }
  268. #fullboard{
  269. grid-area: fb;
  270. }
  271. #lostpieces{
  272. grid-area: lp;
  273. }
  274. #pieceinfo{
  275. grid-area: pi;
  276. }
  277. #gamebuttons{
  278. grid-area: gb;
  279. }
  280.  
  281. .gamemodebuttons{
  282. margin-left:auto;
  283. margin-right:auto;
  284. width:50%;
  285. margin-top:8%;
  286. display:flex;
  287. flex-direction: column;
  288. justify-content: center;
  289. }
  290. .gamemodebuttons li{
  291. height:50px;
  292. margin-bottom:20px;
  293. }
  294. .gamemodebuttons li:hover a{
  295. color:gold;
  296. }
  297. .gamemodebuttons li h2{
  298. text-align:center;
  299. }
  300. .gamemodebuttons li h2 a
  301. {
  302. line-height:50px;
  303. text-decoration: none;
  304. color: #260000b0;
  305. }
  306. /*****************/
  307. /* RESULT SCREEN */
  308. /*****************/
  309.  
  310. #resultScreen{
  311. width: 500px;
  312. height: 400px;
  313. margin: 10% auto 0 auto;
  314. background-color: transparent;
  315. border: 1px solid gold;
  316. opacity: 0.8;
  317. text-align: center;
  318. padding-top: 10px;
  319. color: white;
  320. }
  321. #resultScreen h1{
  322. font-family: 'Germania One', cursive;
  323. font-size: 2rem;
  324. }
  325. #resultScreen h1 + p{
  326. margin-top: 65px;
  327. }
  328. #resultScreen p + p{
  329. padding-top: 15px;
  330. }
  331. #resultScreen p{
  332. border-bottom: 1px solid gold;
  333. width: 320px;
  334. margin-left: auto;
  335. margin-right: auto;
  336. }
  337. #resultScreen ul{
  338. margin-top: 20px;
  339. }
  340. #resultScreen ul li{
  341. display: inline-block;
  342. padding: 30px 10% 30px 10%;
  343. }
  344. #grid-container {
  345. margin-top: 20px;
  346. height: 25%;
  347. width: 320px;
  348. margin-right: auto;
  349. margin-left: auto;
  350. display: grid;
  351. grid-template-columns: auto auto auto;
  352. padding: 10px;
  353. }
  354. section{
  355. color:white;
  356. }
  357. #back h2{
  358. background-color:gold;
  359. }
  360. #back a{
  361. color: #260000b0;
  362. text-decoration:none;
  363. float:right;
  364. margin-right:50px;
  365. margin-bottom:50px;
  366. position:sticky;
  367. font-size:2rem;
  368. background-color:gold;
  369. padding:10px;
  370. border-radius:25px;
  371.  
  372. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement