Skip to content

Commit d14d3fe

Browse files
Create style.css
1 parent e210b41 commit d14d3fe

File tree

1 file changed

+117
-0
lines changed
  • basic-projects/LOKESH-PRASAD-TYPING-GAME

1 file changed

+117
-0
lines changed
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
* {
2+
box-sizing: border-box;
3+
}
4+
5+
body {
6+
background-color: #2c3e50;
7+
display: flex;
8+
align-items: center;
9+
justify-content: center;
10+
min-height: 100vh;
11+
margin: 0;
12+
font-family: Verdana, Geneva, Tahoma, sans-serif;
13+
}
14+
15+
button {
16+
cursor: pointer;
17+
font-size: 14px;
18+
border-radius: 4px;
19+
padding: 5px 15px;
20+
}
21+
22+
select {
23+
width: 200px;
24+
padding: 5px;
25+
appearance: none;
26+
-webkit-appearance: none;
27+
-moz-appearance: none;
28+
border-radius: 0;
29+
background-color: #a7c5e3;
30+
}
31+
32+
select:focus,
33+
button:focus {
34+
outline: 0;
35+
}
36+
37+
.settings-btn {
38+
position: absolute;
39+
bottom: 30px;
40+
left: 30px;
41+
}
42+
43+
.settings {
44+
position: absolute;
45+
top: 0;
46+
left: 0;
47+
width: 100%;
48+
background-color: rgba(0, 0, 0, 0.3);
49+
height: 70px;
50+
color: #fff;
51+
display: flex;
52+
align-items: center;
53+
justify-content: center;
54+
transform: translateY(0);
55+
transition: transform 0.3s ease-in-out;
56+
}
57+
58+
.settings.hide {
59+
transform: translateY(-100%);
60+
}
61+
62+
.container {
63+
background-color: #34495e;
64+
padding: 20px;
65+
border-radius: 4px;
66+
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
67+
color: #fff;
68+
position: relative;
69+
text-align: center;
70+
width: 500px;
71+
}
72+
73+
h2 {
74+
background-color: rgba(0, 0, 0, 0.3);
75+
padding: 8px;
76+
border-radius: 4px;
77+
margin: 0 0 40px;
78+
}
79+
80+
h1 {
81+
margin: 0;
82+
}
83+
84+
input {
85+
border: 0;
86+
border-radius: 4px;
87+
font-size: 14px;
88+
width: 300px;
89+
padding: 12px 20px;
90+
margin-top: 10px;
91+
}
92+
93+
.score-container {
94+
position: absolute;
95+
top: 60px;
96+
right: 20px;
97+
}
98+
99+
.time-container {
100+
position: absolute;
101+
top: 60px;
102+
left: 20px;
103+
}
104+
105+
.end-game-container {
106+
background-color: inherit;
107+
display: none;
108+
align-items: center;
109+
justify-content: center;
110+
flex-direction: column;
111+
position: absolute;
112+
top: 0;
113+
left: 0;
114+
width: 100%;
115+
height: 100%;
116+
z-index: 1;
117+
}

0 commit comments

Comments
 (0)