-
Notifications
You must be signed in to change notification settings - Fork 55
/
style.css
69 lines (49 loc) · 1.42 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
@import url('https://fonts.googleapis.com/css?family=Muli&display=swap'); /* import font */
*{
box-sizing: border-box /* padding & border are in width & height */
}
body {
background-color: mediumturquoise;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
display: flex; /* it will center allign the items */
align-items: center; /* it will also center allign the elements */
justify-content: center; /* it will center allign, otherwise it will be in left side */
height: 100vh; /* what will be the height */
margin: 0;
}
.container {
background-color: azure;
border-radius: 10px; /* the curve in the corners */
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0,0, 0, 0, 0.1);
padding: 50px 20px; /* what will be the size of the white box */
max-width: 100%;
width: 700px;
text-align: center;
}
h3 {
margin: 5;
letter-spacing: 4px;
opacity: 5;
}
.joke {
font-size: 30px;
line-height: 40px;
margin: 50px auto;
max-width: 600px;
}
.btn {
background-color: #9f68e0;
border: 0;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0,0, 0, 0, 0.1);
color: #fff;
cursor: pointer; /* cursor will change */
font-size: 16px;
padding: 14px 40px;
}
.btn:active{
transform: scale(0.98); /* it will shrink while we click the button */
}
.btn:focus {
outline: 0;
}