-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
155 lines (155 loc) · 3.07 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
@import url("https://fonts.googleapis.com/css2?family=Nunito&display=swap");
:root {
--primaryBackgroundColor: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
--primaryFontColor: #c7365f;
--primaryFontFamily: "Nunito", sans-serif;
--primaryTransparentColor: rgba(255, 255, 255, 0.4);
--diceBoxShadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
--primaryTransition: all 0.4s linear;
--primaryBoxShadow: 0px 0px 15px #222;
}
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: var(--primaryFontFamily);
background: var(--primaryBackgroundColor);
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
}
section {
min-height: 100vh;
text-transform: uppercase;
letter-spacing: 0.25rem;
}
.modal__1,.modal__2{
z-index: 12;
text-align: center;
left: 31.5%;
top: 30%;
background-image: linear-gradient(315deg, #ffffb5 0%, #247ba0 74%);
color: #222;
border-radius: 10px;
padding: 60px 30px;
box-shadow: var(--primaryBoxShadow);
}
.modal__2{
left: 27%;
width: 45%;
top: 25%;
}
.hidden{
display: none;
}
.btn{
box-shadow: var(--primaryBoxShadow);
transition: var(--primaryTransition);
font-size: 18px;
letter-spacing: 1px;
}
.btn:hover{
letter-spacing: 2px;
}
.overlay{
filter: blur(50px);
width: 100%;
height: 100%;
background: linear-gradient(315deg, #0cbabab1 0%, #380036ab 74%);
z-index: 10;
}
.player {
display: flex;
min-height: calc(100vh - 20vh);
align-items: center;
justify-content: space-evenly;
flex-direction: column;
text-align: center;
transition: var(--primaryTransition);
box-shadow: 0px 1px 1px 3.5px;
}
.player__0{
background: linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%);
}
.player__1{
background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
}
.playerActive{
background: #fff;
}
.playerWinner{
background: #000;
color: var(--primaryFontColor) !important;
}
.colorChange{
color: var(--primaryFontColor) !important;
}
.boldFont{
font-weight: bold;
}
.displayDice {
box-shadow: var(--diceBoxShadow);
width: 130px;
margin: auto;
border: 3px solid var(--primaryFontColor);
border-radius: 1rem;
}
img {
border-radius: 10px;
max-width: 100%;
}
.playerPoint h1 {
font-weight: bold;
font-size: 4rem;
}
.playerCurrentScore {
background: var(--primaryFontColor);
}
.gameConfig {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
min-height: 60vh;
}
.modalTitle{
top: 7%;
right: 4%;
cursor: pointer;
}
@media screen and (max-width: 279.98px){
.playerCurrentScore{
padding: 1rem 2rem !important;
}
.btn{
font-size: 12px !important;
}
}
@media screen and (min-width: 279.98px) and (max-width: 767.98px){
.gameConfig{
flex-direction: row;
align-items: center;
justify-content: space-evenly;
}
.btn{
font-size: 15px;
}
section{
margin: 50px 0px;
}
.playerOne{
border-bottom-left-radius: 0 !important;
border-top-right-radius: 0.5rem;
}
.playerTwo{
border-top-right-radius: 0 !important;
border-bottom-left-radius: 0.5rem;
}
.diceRollBtn {
margin-bottom: 0rem !important;
}
}