-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
170 lines (143 loc) · 3.04 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
/**********************************
General
**********************************/
*,
*::after,
*::before {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 62.5%; /*1rem = 10px*/
}
body {
background-image: url(../Pig_Game/img/Back.jpg);
background-position: center;
background-size: cover;
font-family: 'Titillium Web', sans-serif;
font-weight: 300;
}
.game-area {
background-color: #fff;
width: 100rem;
max-width: 120rem;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
box-shadow: 0 10px 50px rgba(51, 51, 51, 0.5);
}
.wrapper {
display: flex;
}
.player-0-panel,
.player-1-panel {
width: 50%;
height: 600px;
display: flex;
flex-direction: column;
align-items: center;
padding: 100px;
}
.player-name {
font-size: 4rem;
text-transform: uppercase;
letter-spacing: 3px;
position: relative;
margin-bottom: 2rem;
}
.player-score {
font-size: 7rem;
font-weight: 200;
color: rgba(86, 219, 9);
}
.active { background-color: #ebe9e9; }
.active .player-name {font-weight: 600;}
.active .player-name::after {
content: "\2024";
color: rgba(86, 219, 9);
font-size: 10rem;
position: absolute;
top: -73px;
}
.player-current-box {
background-color: rgba(86, 219, 9);
margin-top: 10rem;
padding: 2rem 4rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
}
.player-current-label {
text-transform: uppercase;
margin-bottom: 1rem;
font-size: 1.2rem;
letter-spacing: 2px;
}
.player-current-score {
font-size: 3rem;
color: #fff;
}
button {
position: absolute;
left: 50%;
transform: translateX(-50%);
background: none;
outline: none;
border: none;
text-transform: uppercase;
font-size: 1.8rem;
font-weight: 200;
cursor: pointer;
}
i {
display: inline-block;
font-size: 2.2rem;
font-weight: 200;
margin-right: 1.5rem;
color: rgba(86, 219, 9);
transition: margin 0.2s;
}
button:hover {font-weight: 600;}
button:hover i {margin-right: 2rem;}
.btn-new {top: 5rem;}
.btn-roll {bottom: 17rem;}
.btn-hold {bottom: 12rem;}
.dice {
width: 70px;
position: absolute;
left: 50%;
transform: translateX(-50%);
box-shadow: 0px 4px 10px rgba(51, 51, 51, 0.5);
}
.dice-0 {
top: 30rem;
}
.dice-1 {
top: 20rem;
}
.winner {background-color: #ebe9e9;}
.winner .player-name {
color:rgba(86, 219, 9);
font-weight: 600;
}
.input-field {
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 3rem;
}
input {
padding: 0.5rem 1rem;
text-transform: uppercase;
border: 1px solid rgba(86, 219, 9);
text-align: center;
}
input:focus {outline: none;}
.paragraph {
text-align: center;
font-size: 1.2rem;
margin-bottom: 0.5rem;
}