source: styles/globals.scss@ ace7865

main
Last change on this file since ace7865 was ace7865, checked in by anastasovv <simon@…>, 2 years ago

Finished Roulette

  • Property mode set to 100644
File size: 13.6 KB
Line 
1@import url(https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap);
2
3html,
4body {
5 padding: 0;
6 margin: 0;
7 // font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
8 // Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
9
10 font-family: 'Inter', sans-serif;
11
12 overflow: hidden;
13}
14
15a {
16 color: inherit;
17 text-decoration: none;
18}
19
20* {
21 box-sizing: border-box;
22}
23
24// my code below:
25p, h1, h3 {
26 margin: 0;
27}
28
29.app {
30 color: white;
31
32 letter-spacing: 1px;
33
34 width: 100vw;
35 height: 100vh;
36
37 margin: auto;
38
39 overflow: hidden;
40
41 background-size: cover;
42 background-repeat: no-repeat;
43 background-position: 0% 50%;
44
45 text-align: center;
46}
47
48/**
49 * Component <- Header
50 */
51header.header {
52 display: flex;
53 justify-content: space-between;
54 align-items: center;
55
56 width: 92vw;
57 margin: auto;
58 margin-top: 20px;
59
60 .logo {
61 width: 80px;
62 aspect-ratio: 1;
63 border-radius: 100%;
64
65 background-image: url("/images/logo.png");
66 background-size: cover;
67
68 border: 2px solid rgba(255, 255, 255, 0.2);
69
70 cursor: pointer;
71 }
72
73 h2 {
74 cursor: pointer;
75 }
76
77 nav {
78 ul {
79 display: flex;
80 flex-direction: row;
81 list-style-type: none;
82
83 li {
84 margin-right: 4rem;
85
86 &:last-child {
87 margin-right: 0;
88 }
89 }
90 }
91
92 &.mainHeaderNavigation {
93 ul {
94 li {
95 cursor: pointer;
96 }
97 }
98 }
99 }
100}
101
102/**
103 * Component <- Full Width Text
104 *
105 * Used in "Welcome To Caessino"
106 */
107.fullwidthText {
108 width: 100vw;
109
110 display: flex;
111 flex-direction: column;
112 justify-content: center;
113 align-items: center;
114
115 margin-top: 40px;
116
117 padding: 15px 0 20px 0;
118
119 background-color: rgba(0, 0, 0, .6);
120
121 h1 {
122 color: #FFD700;
123 font-weight: lighter;
124 font-size: 2.5rem;
125 }
126
127 h3 {
128 margin-top: 15px;
129 font-weight: lighter;
130 }
131}
132
133/**
134 * Component <- Alert
135 *
136 * Similar to Full Width Text
137 */
138.alert {
139 z-index: 30;
140
141 width: 100vw;
142
143 display: flex;
144 flex-direction: column;
145 justify-content: center;
146 align-items: center;
147
148 padding: 20px 0 25px 0;
149
150 background-color: rgba(0, 0, 0, .9);
151
152 position: absolute;
153
154 transform: translateY(-70%);
155
156 transition: '.5s linear';
157
158 h1 {
159 color: #FFD700;
160 font-weight: lighter;
161 font-size: 2.5rem;
162 }
163
164 h3 {
165 margin-top: 10px;
166 font-weight: lighter;
167 }
168
169 button {
170 width: 500px;
171 margin-top: 20px;
172 }
173}
174
175/**
176 * Component <- Notification
177 *
178 * Displayed fixed in the top right corner
179 */
180.notification {
181 position: fixed;
182 top: 40px;
183 right: 30px;
184
185 width: 500px;
186 min-height: 200px;
187
188 display: flex;
189 flex-direction: column;
190 justify-content: center;
191 align-items: flex-end;
192
193 svg {
194 cursor: pointer;
195 }
196
197 &>div {
198 flex: 1;
199
200 width: 100%;
201
202 display: flex;
203 justify-content: center;
204 align-items: center;
205
206 font-size: 1.5rem;
207
208 margin-bottom: 1.2rem;
209
210 text-align: center;
211 }
212
213 font-size: 2rem;
214
215 padding: 20px;
216 border-radius: 15px;
217
218 box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
219}
220
221/**
222 * Component <- Game Circle
223 *
224 * Used in Landing Page -> to display the games in circles
225 */
226.gameCircles {
227 display: flex;
228 flex-direction: row;
229 justify-content: space-between;
230 align-items: center;
231
232 width: 92vw;
233 margin: auto;
234 margin-top: 50px;
235
236 .gameCircle {
237 transition: all .2s linear;
238 cursor: pointer;
239
240 display: flex;
241 flex-direction: column;
242 justify-content: center;
243 align-items: center;
244
245 .circleLarge {
246 transition: all .2s linear;
247
248 width: 22vw;
249 aspect-ratio: 1;
250
251 border-radius: 100%;
252
253 background: linear-gradient(to top right, #ffd900cc, #B65714);
254 opacity: .95;
255
256 display: flex;
257 flex-direction: column;
258
259 .circle {
260 border-radius: 100%;
261 width: 98%;
262 background-size: cover;
263 margin: auto;
264 aspect-ratio: 1;
265 }
266 }
267
268 h3 {
269 transition: all .2s linear;
270
271 font-weight: lighter;
272 margin-top: 30px;
273
274 opacity: 0;
275 }
276
277 h1.loading {
278 color: white;
279 position: absolute;
280 width: 100vw;
281 top: 50vh;
282 left: 50vw;
283 transform: translate(-50%, -50%);
284
285 font-size: 5rem;
286
287 z-index: 10;
288 }
289
290 &:hover {
291 .circleLarge {
292 transform: scale(1.1);
293 opacity: 1;
294 }
295
296 h3 {
297 opacity: 1;
298 }
299 }
300 }
301
302 &:hover {
303 .gameCircle {
304 .circleLarge {
305 opacity: 1 !important;
306 }
307 }
308 }
309}
310
311/**
312 * Full Screen Overlay
313 */
314.fullscreen {
315 position: fixed;
316 top: 0;
317 left: 0;
318
319 width: 100vw;
320 height: 100vh;
321
322 background: linear-gradient(to right, #0B932E, #097625);
323 color: #ead24d;
324}
325
326.fs-centered {
327 &>div {
328 position: fixed;
329 top: 50vh;
330 left: 50vw;
331 transform: translate(-50%, -50%);
332 }
333}
334
335.fs-inputs-container {
336 &>div {
337 margin: auto;
338 margin-top: 2.4rem;
339 width: fit-content;
340
341 display: flex;
342 flex-direction: column;
343 justify-content: center;
344 align-items: center;
345
346 &>span {
347 margin-bottom: .5rem;
348
349 font-size: 1.5rem;
350 }
351
352 &>input {
353 margin-bottom: 2rem;
354
355 padding-left: 4px;
356 padding-right: 4px;
357
358 font-size: 2rem;
359 }
360 }
361}
362
363.statsScreen {
364 svg {
365 cursor: pointer;
366 font-size: 2.5rem;
367 color: white;
368 }
369
370 &>div {
371 h1 {
372 font-size: 2.5rem;
373 margin-bottom: 5rem;
374 }
375
376 p {
377 display: flex;
378 justify-content: space-between;
379
380 font-size: 1.5rem;
381 margin-bottom: 1rem;
382
383 &:nth-child(2n) {
384 color: white;
385 }
386
387 span {
388 margin-left: 5rem;
389 }
390 }
391 }
392}
393
394.manageCreditsScreen {
395 svg {
396 cursor: pointer;
397 font-size: 2.5rem;
398 color: white;
399 }
400
401 &>div {
402 h1 {
403 font-size: 1.5rem;
404 margin-bottom: 1rem;
405 }
406
407 p {
408 margin-bottom: 5rem;
409 color: white;
410 }
411
412 button {
413 width: 100%;
414 }
415 }
416}
417
418.inlineAlert {
419 cursor: pointer;
420
421 background-color: #ffdddd;
422 padding: .8rem 2.4rem;
423 border-radius: 15px;
424
425 color: #ff0000;
426 font-size: 1.8rem !important;
427 font-weight: 100;
428 letter-spacing: -.030em;
429}
430
431/**
432 * Component <- Loading
433 */
434.loadingScreen {
435 h1 {
436 font-size: 5rem;
437 }
438}
439
440/**
441 * Component <- RegisterScreen
442 */
443
444/**
445 * Primary Thingies
446 */
447.primaryButton {
448 background: linear-gradient(to right, #0B932E, #097625);
449 color: #ead24d;
450
451 outline: none;
452 border: none;
453 border-radius: 10px;
454
455 font-size: 1.5rem;
456 font-weight: bold;
457 padding: 5px 20px;
458
459 box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
460
461 cursor: pointer;
462 transition: all .2s linear;
463
464 &:hover {
465 transform: scale(1.1) rotateZ(-1deg);
466 // padding: 10px 20px;
467 }
468
469 &:active {
470 transition: .05s linear;
471 transform: scale(1) rotateZ(-1deg);
472 }
473}
474
475.secondaryButton {
476 background: linear-gradient(to right, #4d99ea, #4d99ea);
477 color: white;
478
479 outline: none;
480 border: none;
481 border-radius: 10px;
482
483 font-size: 1.5rem;
484 font-weight: bold;
485 padding: 5px 20px;
486
487 box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
488
489 cursor: pointer;
490 transition: all .2s linear;
491
492 &:hover {
493 transform: scale(1.1) rotateZ(-1deg);
494 // padding: 10px 20px;
495 }
496
497 &:active {
498 transition: .05s linear;
499 transform: scale(1) rotateZ(-1deg);
500 }
501}
502
503.tertiaryButton {
504 background: linear-gradient(to right, #484848, #6a6a6a);
505 color: white;
506
507 outline: none;
508 border: none;
509 border-radius: 10px;
510
511 font-size: 1.5rem;
512 font-weight: bold;
513 padding: 5px 20px;
514
515 box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
516
517 cursor: pointer;
518 transition: all .2s linear;
519
520 &:hover {
521 background: linear-gradient(to right, #6e6e6e, #a0a0a0);
522 }
523
524 &:active {
525 transition: .05s linear;
526 background: linear-gradient(to right, #484848, #6a6a6a);
527 }
528}
529
530/**
531 * Input Sliders
532 */
533.primarySlider {
534 -webkit-appearance: none;
535 width: 250px;
536 height: 10px;
537 background: #0B932E;
538 outline: none;
539 border-radius: 10px;
540 -webkit-transition: .2s;
541 transition: opacity .2s;
542
543 box-shadow: 0 5px 25px rgba(234, 210, 77, 0.25);
544}
545
546.primarySlider:hover {
547 opacity: 1;
548}
549
550.primarySlider::-webkit-slider-thumb {
551 -webkit-appearance: none;
552 appearance: none;
553 outline: none;
554 border: none;
555 width: 35px;
556 height: 35px;
557 border-radius: 50%;
558 background: url("/images/gold-coin.png");
559 background-size: contain;
560 background-color: #ead24d;
561 cursor: pointer;
562}
563
564.primarySlider::-moz-range-thumb {
565 appearance: none;
566 outline: none;
567 border: none;
568 width: 35px;
569 height: 35px;
570 border-radius: 50%;
571 background: url("/images/gold-coin.png");
572 background-size: contain;
573 background-color: #ead24d;
574 cursor: pointer;
575}
576
577/**
578 * Scrollbar
579 */
580
581/* width */
582::-webkit-scrollbar {
583 width: 15px;
584}
585
586/* Track */
587::-webkit-scrollbar-track {
588 background: #0B932E;
589}
590
591/* Handle */
592::-webkit-scrollbar-thumb {
593 background: #ead24d;
594}
595
596/* Handle on hover */
597::-webkit-scrollbar-thumb:hover {
598 background: #efcb00;
599}
600
601/**
602 * File <- Blackjack Main
603 */
604.blackjackButtons {
605 position: absolute;
606
607 left: 0;
608 top: 90vh;
609
610 width: 100vw;
611 height: 10vh;
612
613 overflow: hidden;
614
615 &>div {
616 display: flex;
617 flex-direction: row;
618 justify-content: center;
619 align-items: center;
620
621 transition: .5s ease-in-out;
622
623 &>button {
624 width: 300px;
625 }
626
627 &>button:nth-child(2) {
628 margin-left: 30px;
629 }
630 }
631}
632
633.blackjackCards {
634 .card {
635 aspect-ratio: 400/560;
636 height: 150px;
637
638 background-size: contain;
639
640 position: absolute;
641
642 transition: .5s ease-in-out;
643
644 border-radius: 10px;
645
646 border: 1px solid black;
647 }
648}
649
650.blackjackDisplayBet {
651 position: absolute;
652
653 transform: translate(-50%, -50%);
654
655 left: 51vw;
656 top: 63.5vh;
657}
658
659.blackjackSideBetsModal {
660 z-index: 20;
661
662 flex-direction: column !important;
663
664 position: fixed;
665 left: 50vw;
666 top: 45vh;
667
668 width: 41vw;
669 height: 80vh;
670
671 padding: 10px;
672
673 transform: translate(-50%, -50%);
674
675 background: linear-gradient(to right, #0B932Ec0, #097625e0);
676
677 box-shadow: 0 5px 50px rgba(0, 0, 0, 0.25);
678
679 border-radius: 20px;
680
681 overflow-y: scroll;
682
683 .blackjackSideBetSelect {
684 &:first-child {
685 margin-top: 10rem;
686 }
687
688 display: flex;
689 flex-direction: column;
690 width: 100%;
691
692 h1 {
693 margin-bottom: 1rem;
694
695 color: #ead24d;
696 }
697
698 &>div {
699 text-align: left;
700
701 p {
702 margin-bottom: 1rem;
703
704 padding: 10px 20px;
705 border-radius: 5px;
706
707 cursor: pointer;
708
709 transition: all .25s linear;
710
711 span {
712 font-size: 1.2rem;
713 color: #ead24d;
714 }
715
716 &:hover {
717 color: #ead24d;
718 box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
719 }
720 }
721 }
722 }
723}
724
725.blackjackSideBetsChooseCreditsModal {
726 z-index: 20;
727
728 flex-direction: column !important;
729
730 position: fixed;
731 left: 50vw;
732 top: 45vh;
733
734 width: 41vw;
735 height: 80vh;
736
737 padding: 10px;
738
739 transform: translate(-50%, -50%);
740
741 background: linear-gradient(to right, #00000080, #00000080);
742
743 box-shadow: 0 5px 50px rgba(0, 0, 0, 0.25);
744
745 border-radius: 20px;
746
747 p {
748 margin-bottom: 1rem;
749
750 padding: 10px 20px;
751 border-radius: 5px;
752
753 transition: all .25s linear;
754
755 span {
756 font-size: 1.2rem;
757 color: white;
758 }
759 }
760}
761
762/**
763 * File <- Roulette Main
764 */
765.rouletteMainContainer {
766 background-color: #006600;
767}
768
769#rouletteBetsImg {
770 position: absolute;
771 top: 65%;
772 left: 59%;
773
774 transform: translate(-50%, -50%);
775
776 width: 50vw;
777 height: auto;
778
779 cursor: url(/gold-coin.cur), auto;
780}
781
782#rouletteWheelImg {
783 position: absolute;
784 top: 60%;
785 left: 18%;
786
787 transition: all .5s ease-in-out;
788
789 width: 450px;
790 height: auto;
791}
792
793.rouletteInfoText {
794 position: absolute;
795 top: 15%;
796
797 width: 100vw;
798
799 text-align: center;
800
801 font-size: 1.1rem;
802}
803
804.roulettePlayersContainer {
805 position: absolute;
806 top: 15%;
807 right: 4%;
808
809 width: 10vw;
810 height: 80vh;
811
812 box-shadow: 0 0 10px rgba(10, 148, 45, .25);
813
814 padding: 1rem;
815
816 display: grid;
817 grid-template-rows: repeat(2, minmax(0, 1fr));
818
819 overflow-x: hidden;
820 overflow-y: scroll;
821
822 p {
823 word-wrap: break-word;
824 margin-top: .5rem;
825 }
826}
827
828.rouletteTimer {
829 position: absolute;
830 top: calc((60% + 450px) / 2);
831 left: calc(18.5%);
832
833 transform: translate(-50%, -50%);
834
835 display: flex;
836 flex-direction: column;
837 justify-content: center;
838 align-items: center;
839 gap: 5px;
840
841 font-size: 2.5rem;
842
843 color: black;
844}
845
846.rouletteBetModal {
847 z-index: 20;
848
849 flex-direction: column;
850 justify-content: center;
851 align-items: center;
852
853 position: fixed;
854 left: 0;
855 top: 0;
856
857 width: 100vw;
858 height: 100vh;
859
860 background: #000000c0;
861
862 p {
863 margin-bottom: 1rem;
864
865 padding: 10px 20px;
866 border-radius: 5px;
867
868 transition: all .25s linear;
869
870 span {
871 font-size: 1.2rem;
872 color: #ead24d;
873 }
874 }
875}
876
877/**
878 * Spin effect on the roulette wheel
879 */
880.spin {
881 animation: spinner 4s infinite;
882 animation-timing-function: ease-in-out;
883}
884
885@keyframes spinner {
886 0% {
887 transform: translate(-50%, -50%) rotateZ(0deg);
888 }
889 10% {
890 transform: translate(-50%, -50%) rotateZ(calc(20 * 360deg));
891 }
892 20% {
893 transform: translate(-50%, -50%) rotateZ(calc(38 * 360deg));
894 }
895 30% {
896 transform: translate(-50%, -50%) rotateZ(calc(54 * 360deg));
897 }
898 40% {
899 transform: translate(-50%, -50%) rotateZ(calc(78 * 360deg));
900 }
901 50% {
902 transform: translate(-50%, -50%) rotateZ(calc(90 * 360deg));
903 }
904 60% {
905 transform: translate(-50%, -50%) rotateZ(calc(100 * 360deg));
906 }
907 70% {
908 transform: translate(-50%, -50%) rotateZ(calc(108 * 360deg));
909 }
910 80% {
911 transform: translate(-50%, -50%) rotateZ(calc(116 * 360deg));
912 }
913 90% {
914 transform: translate(-50%, -50%) rotateZ(calc(120 * 360deg));
915 }
916 100% {
917 transform: translate(-50%, -50%) rotateZ(calc(122 * 360deg));
918 }
919}
920
921/**
922 * File <- Poker Main
923 */
924.pokerMainContainer {
925
926}
Note: See TracBrowser for help on using the repository browser.