-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunfact.css
140 lines (127 loc) · 2.56 KB
/
funfact.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
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@1&family=Playfair+Display:wght@900&family=Poppins:wght@300&display=swap');
body {
font-family: 'DM Serif Display', serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f7f7f7;
}
body{
overflow-x: hidden;
animation: fadeIn 1s ease-in-out forwards;
opacity: 0;
}
@keyframes fadeIn {
to {
opacity: 1;
}
}
.button-container {
position: absolute;
top: 20px;
left: 20px;
z-index: 9999;
}
.buttoni {
width: 200px;
padding: 11px 0;
text-align: center;
left: 50px;
top: 3px;
border-radius: 25px;
background-color: transparent;
font-weight: bold;
border: 2px solid aqua;
color: aqua;
cursor: pointer;
text-decoration: none;
position: absolute;
}
.buttoni:hover {
background-color: rgba(0, 255, 255, 0);
color: white;
}
.buttoni:hover span {
padding-left: 20px;
}
.buttoni:hover span:after {
opacity: 1;
left: 0;
}
.buttoni span {
cursor: pointer;
display: inline-block;
position: relative;
transition: 0.5s;
}
.buttoni span:after {
content: '\00ab';
position: absolute;
opacity: 0;
top: 0;
left: -30px;
transition: 0.5s;
}
.video-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
#video-background {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
}
.content {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
display: flex;
justify-content: center;
align-items: center;
background-color: rgba(0, 0, 0, 0.5);
}
.container {
text-align: center;
}
h1 {
color: rgb(60, 187, 230)
}
.fact {
margin-top: 30px;
}
#factText {
font-size: 1.5em;
margin-bottom: 20px;
}
#factButton {
padding: 10px 20px;
font-size: 1em;
background-color: #9ccbeb;
color: rgb(19, 109, 157);
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
#factButton:hover {
background-color: rgba(239, 145, 156, 0.65);
color: black;
}
#factText {
font-size: 1.3rem;
margin-bottom: 20px;
color: #ffffff;
}