-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
103 lines (103 loc) · 1.75 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
@import url("https://fonts.googleapis.com/css2?family=IM+Fell+DW+Pica+SC&display=swap");
* {
box-sizing: border-box;
}
body {
font-family: "IM Fell DW Pica SC", serif;
background-color: pink;
display: flex;
justify-content: center;
align-items: center;
margin: 0;
min-height: 100vh;
}
button {
cursor: pointer;
font-size: 14px;
border-radius: 4px;
padding: 5px 15px;
}
select {
width: 200px;
padding: 5px;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
border-radius: 0;
background-color: #e6d5b8;
}
select:focus,
button:focus {
outline: none;
}
.setting-btn {
position: absolute;
bottom: 30px;
left: 30px;
}
.setting {
position: absolute;
top: 0;
left: 0;
width: 100%;
color: #e6d5b8;
background-color: #1f6f8b;
height: 70px;
display: flex;
align-items: center;
justify-content: center;
transform: translateY(0);
transition: transform 0.3s ease-in-out;
}
.setting.hide {
transform: translateY(-100%);
}
.container {
background-color: #e6d5b8;
padding: 20px;
border-radius: 15px;
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.4);
position: relative;
text-align: center;
width: 500px;
}
h2 {
background-color: #99a8b2;
padding: 8px;
border-radius: 5px;
margin: 0 0 40px;
}
h1 {
margin: 0;
}
input {
border: 0;
border-radius: 5px;
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;
display: none;
flex-direction: column;
justify-content: center;
align-items: center;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}