-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
151 lines (122 loc) · 2.33 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
@import url('https://fonts.googleapis.com/css2?family=Amaranth&display=swap');
/*
Backgroung color:
* https://youtu.be/f3mwKLXpOLk?feature=shared
* https://www.makeuseof.com/css-background-gradients/
*/
:root {
--gradient: linear-gradient(45deg,
#5e75c2,
#718dff,
#5fcfff,
#3c92be);
}
html {
box-sizing: border-box
}
body {
margin: 0;
min-height: 100vh;
color: #333;
background: #ddd;
background-size: 400%;
background-image: var(--gradient);
/* background-image: linear-gradient(to right, #b6fbff, #83a4d4); */
animation: bg-animation 160s infinite;
font-family: 'Amaranth', sans-serif;
font-weight: 300;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
@keyframes bg-animation {
0% {
background-position: left
}
50% {
background-position: right
}
100% {
background-position: left
}
}
.quote-container {
width: auto;
max-width: 900px;
padding: 20px 30px;
border-radius: 10px;
background-color: rgba(131, 164, 212, 0.1);
box-shadow: 0px 10px 20px 5px rgba(0, 0, 0, 0.2);
}
.quote-text {
font-size: 2.75rem;
}
.long-quote {
font-size: 2rem;
}
.fa-quote-left {
font-size: 4rem;
}
.quote-author {
margin-top: 15px;
font-size: 2rem;
font-weight: 400;
font-style: italic;
}
.button-container {
margin-top: 15px;
display: flex;
justify-content: space-between;
}
button {
cursor: pointer;
font-size: 1.2rem;
height: 2.5 rem;
border: none;
border-radius: 10px;
color: #fff;
background: #333;
outline: none;
padding: 0.5rem 1.8rem;
box-shadow: 0 0.3rem rgba(121, 121, 121, 0.65);
}
button:hover {
filter: brightness(120%)
}
button:active {
transform: translate(0, 0.3rem);
box-shadow: 0 0.1rem rgba(255, 255, 255, 0.65);
}
.translate-button:hover {
color: #38f35d;
}
.fa-envelope {
font-size: 1.5rem;
}
.loader {
border: 16px solid #f3f3f3;
border-top: 16px solid #333;
border-radius: 50%;
width: 120px;
height: 120px;
animation: spin-animation 2s linear infinite;
}
@keyframes spin-animation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* Media Query: Tablet or smaller */
@media screen and (max-width: 1000px) {
.quote-container {
margin: auto 10px;
}
.quote-text {
font-size: 2.5rem;
}
}