-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
143 lines (123 loc) · 2.48 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
@import url("https://fonts.googleapis.com/css2?family=Nunito&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Nunito", "Rubik", sans-serif;
background-image: linear-gradient(to top left, #753682 0%, #bf2e34 100%);
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
main {
display: flex;
max-height: 90%;
max-width: 65rem;
border-radius: 7px;
overflow: hidden;
box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.25);
background-color: rgba(255, 255, 255, 0.35);
backdrop-filter: blur(200px);
position: relative;
}
.player {
display: flex;
flex: 50%;
flex-direction: column;
align-items: center;
padding: 6rem 7rem 7rem 7rem;
transition: all 0.7s;
}
.name {
font-size: 2.5rem;
text-transform: uppercase;
margin-bottom: 1rem;
font-weight: 300;
}
.score {
font-size: 5rem;
font-weight: 300;
color: #c7365f;
margin-bottom: 7rem;
}
.player--active {
background-color: rgba(255, 255, 255, 0.4);
}
.player--active .name {
font-weight: 500;
}
.player--active .score {
font-weight: 400;
}
.current {
padding: 1.5rem 4rem;
border-radius: 10px;
background-color: #c7365f;
display: flex;
flex-direction: column;
align-items: center;
color: white;
text-transform: uppercase;
row-gap: 0.5rem;
font-weight: 300;
}
.current-score {
font-size: 2rem;
font-weight: 400;
}
.btn {
padding: 0.7rem 2.5rem;
border-radius: 50px;
position: absolute;
left: 50%;
transform: translate(-50%, 0px);
font-family: inherit;
font-size: 1rem;
border: none;
background-color: #fff;
background-color: rgba(255, 255, 255, 0.6);
backdrop-filter: blur(10px);
box-shadow: 0 1.75rem 3.5rem rgba(0, 0, 0, 0.1);
cursor: pointer;
text-transform: uppercase;
transition: all 0.2s;
}
.btn--new {
top: 4rem;
}
.btn--win {
color: white;
background-color: #02dd02;
border: 3px solid white;
}
.btn--roll {
top: 24rem;
}
.btn--hold {
top: 28rem;
}
.btn:active {
transform: translate(-50%, 3px);
box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}
.dice {
position: absolute;
left: 50%;
top: 10rem;
height: 8rem;
transform: translate(-50%);
box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}
.player--winner {
background-color: #2f2f2f;
}
.player--winner .name {
font-weight: 700;
color: #c7365f;
}
.hidden {
display: none;
}