-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
75 lines (67 loc) · 1.22 KB
/
styles.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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
scroll-behavior: smooth;
width: 100%;
height: 100vh;
font-family: Arial, Helvetica, sans-serif;
}
main {
width: 100%;
height: 100%;
position: relative;
background-image: url(pexels-moose-photos-1037992.jpg);
background-size: cover;
display: grid;
place-items: center;
}
main::after {
content: " ";
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, 0.842);
top: 0px;
left: 0px;
z-index: 0;
position: absolute;
}
section.keys {
display: grid;
grid-template-columns: repeat(auto-fit, 7ch);
z-index: 2;
place-content: center;
width: 100%;
gap: 0.8rem;
}
.key {
width: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
gap: 12px;
text-transform: uppercase;
border: 3px solid rgb(19, 17, 17);
cursor: pointer;
border-radius: 5px;
padding: 5px;
transition: all 0.1s;
& kbd {
font-size: 1.5rem;
color: white;
font-family: "Times New Roman", Times, serif;
}
& span {
font-size: 8px;
font-weight: bold;
color: #d7a900;
}
}
.playing {
transform: scale(1.1);
border-color: #ffc600;
box-shadow: 0 3px 5px #ffc600;
}