forked from solygambas/html-css-javascript-projects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
146 lines (128 loc) · 2.51 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
@import url('https://fonts.googleapis.com/css2?family=Syne+Mono&display=swap');
:root {
--primary-color: #BBE0EF;
--secondary-color: #06599F;
--overlay-color: #1A1314;
--gradient-color: #F2F3F4;
--text-color: #F0F0ED;
--border-radius: 0.5rem;
}
* {
box-sizing: border-box;
}
body {
background-color: var(--primary-color);
background-image: linear-gradient(315deg, var(--primary-color) 0%, var(--gradient-color) 100%)
;
font-family: "Syne Mono", monospace;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
overflow: hidden;
margin: 0;
}
button {
cursor: pointer;
font-size: 14px;
font-family: inherit;
border-radius: var(--border-radius);
padding: 10px 15px;
border: none;
}
button:hover {
color: var(--text-color);
background-color: var(--overlay-color);
}
button:active {
transform: scale(0.98);
}
select {
width: 200px;
padding: 5px;
font-family: inherit;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
border-radius: var(--border-radius);
background-color: var(--gradient-color);
}
select:focus,
button:focus, input:focus {
outline: 0;
}
.settings-btn {
position: absolute;
bottom: 30px;
right: 30px;
}
.settings {
position: absolute;
top: 0;
left: 0;
width: 100%;
background-color: var(--overlay-color);
color: var(--text-color);
height: 70px;
display: flex;
align-items: center;
justify-content: center;
transform: translateY(0);
transition: transform 0.3s ease-in-out;
}
.settings.hide {
transform: translateY(-100%)
}
.container {
background-color: var(--secondary-color);
padding: 20px;
border-radius: var(--border-radius);
box-shadow: 0 3px 5px var(--overlay-color);
color: var(--text-color);
position: relative;
text-align: center;
width: 500px;
max-width: 90vw;
}
h1 {
margin: 0;
}
h2 {
background-color: var(--overlay-color);
padding: 8px;
border-radius: var(--border-radius);
margin: 0 0 40px;
}
input {
border: 0;
border-radius: var(--border-radius);
font-size: 14px;
width: 300px;
padding: 12px 20px;
margin-top: 10px;
}
.score-container {
position: absolute;
top: 60px;
right: 20px;
}
.time-container {
position: absolute;
top: 60px;
left: 20px;
}
.end-game-container {
background-color: inherit;
border-radius: inherit;
display: none;
align-items: center;
justify-content: center;
flex-direction: column;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}