-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
97 lines (84 loc) · 1.64 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
/* Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
*, ::after, ::before {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Roboto', sans-serif;
background: #e5e5e5;
color: #222;
line-height: 1.5;
}
main {
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.title {
text-align: center;
margin-bottom: 4rem;
}
.title h2 {
font-size: 2rem;
}
.underline {
height: 0.25rem;
width: 5rem;
background: #fca311;
margin-left: auto;
margin-right: auto;
}
.review {
width: 80vh;
max-width: 620px;
background: #fff;
padding: 1.5rem 2rem;
border-radius: 0.5rem;
box-shadow: 0 5px 15px #fca311
transition: all 0.3s linear;
text-align: center;
}
#img {
height: 20rem;
width: 30rem;
object-fit: cover;
border-radius: 0.5rem;
position: relative;
}
#animal {
margin-bottom: 0.25rem;
text-transform: capitalize;
}
#type {
margin-bottom: 0.5rem;
text-transform: uppercase;
color: #fca311;
font-size: 0.85rem;
}
#fact {
margin-bottom: 1rem;
}
.prev-btn, .next-btn {
color: #fca311;
font-size: 1.25rem;
background: transparent;
border-color: transparent;
margin: 0 0.5rem;
transition: all 0.3s linear;
cursor: pointer;
}
.random-btn {
margin-top: 0.5rem;
background: #fefae0;
color: #fca311;
padding: 0.25rem 0.5rem;
text-transform: capitalize;
border-radius: 0.5rem;
transition: all 0.3s linear;
border-color: #fca311;
cursor: pointer;
}