-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
100 lines (85 loc) · 2.02 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
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300&display=swap');
:root {
background-color: rgba(7, 31, 75, 0.884);
background-position: center;
}
*{
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: "Roboto", sans-serif;
font-size: 60%;
}
h1{
color: white;
margin-bottom: 5rem;
font-size: 5rem;
}
h2{
font-size: 4.4rem;
margin-bottom: 4rem;
}
.container{
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
max-width: 80rem;
margin: 0 auto;
padding: 2rem;
}
.flex-center {
justify-content: center;
align-items: center;
text-shadow: 0 0 10px #043f4e, 0 0 5px #7bb5cc;
}
.flex-column{
display: flex;
flex-direction: column;
}
.text-center{
text-align: center;
}
.hidden{
display: none;
}
.justify-center{
justify-content: center;
}
/* Now, Time for Making The Buttons Larger and beautiful */
.btn{
font-size: 2.5rem;
padding: 2rem 0;
width: 30rem;
text-align: center;
margin-bottom: 1rem;
text-decoration: none;
color: whitesmoke;
background: linear-gradient(90deg, rgb(85, 160, 204) 0%, rgb(62, 159, 172) 100%);
border-radius: 4px;
}
/* Now they look cool, time for adding a hover effect */
.btn:hover{
cursor: pointer;
box-shadow: 0 0.4rem 1.4rem 0 rgba(169, 237, 240, 0.6);
transition: transform 150ms;
transform: scale(1.03);
}
.btn[disabled]:hover{
cursor: not-allowed;
box-shadow: none;
transform: none;
}
#highscore-btn {
background: linear-gradient(90deg, rgb(174, 218, 116) 0% , rgb(131, 214, 53) 100%);
color: black;
}
#highscore-btn:hover {
box-shadow: 0 0.4rem 1.4rem 0 rgba(190, 235, 118, 0,966);
}
.fa-crown {
font-size: 2.5rem;
margin-left: 1rem;
}
/* The code of the files will be attached to the description box below. You can download or view the code if you want */