-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
98 lines (97 loc) · 1.59 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
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: inherit;
}
html {
box-sizing: border-box;
font-size: 2rem;
}
body {
color: whitesmoke;
background-color: #222;
font-family: "Playfair Display", serif;
}
/*layout*/
header {
position: relative;
height: 35vh;
border-bottom: 7px solid white;
}
main {
height: 65vh;
justify-content: space-around;
display: flex;
align-items: center;
}
.left {
width: 52rem;
align-items: center;
display: flex;
flex-direction: column;
}
.right {
width: 52rem;
display: flex;
flex-direction: column;
}
/*elements Style*/
h1 {
text-align: center;
position: absolute;
width: 100%;
top: 35%;
left: 50%;
transform: translate(-50%, -50%);
}
.number {
color: black;
background-color: white;
font-size: 3rem;
width: 4rem;
padding: 1rem, 0rem;
text-align: center;
position: absolute;
left: 50%;
top: 100%;
transform: translate(-50%, -50%);
}
.from-one {
font-size: 20px;
padding-right: 25;
padding-top: 20;
text-align: right;
}
.again {
position: absolute;
top: 2rem;
left: 2rem;
}
.guess {
background: none;
border: 4px solid white;
font-family: inherit;
font-size: 1.5rem;
color: white;
padding: 0.5rem;
width: 6rem;
text-align: center;
display: block;
margin-bottom: 1rem;
}
.btn {
border: none;
background-color: white;
font-size: 1rem;
font-family: inherit;
padding: 0.5rem 0.7rem;
cursor: pointer;
}
.btn:hover {
background-color: #ccc;
}
.message {
margin-bottom: 0.5rem;
height: 3rem;
}