-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
114 lines (106 loc) · 2.62 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
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body {
background-color: black;
color: white;
font-family: "Poppins", sans-serif;
font-weight: 400;
font-style: normal;
background-image: url("img/planet-in-space-side-black-white.jpg");
background-repeat: no-repeat;
background-size: cover;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
perspective: 1000px; /* Added perspective */
}
.glass{
/* From https://css.glass */
background: rgba(255, 255, 255, 0.22);
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(4.5px);
-webkit-backdrop-filter: blur(4.5px);
border: 2px solid rgb(255, 255, 255);
transition: transform 0.1s ease;
transform-style: preserve-3d; /* Added for 3D effect */
position: relative;
overflow: hidden;
}
.glass::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(transparent, rgba(255, 255, 255, 0.2), transparent);
transform: rotate(45deg);
animation: shimmer 4s linear infinite; /* Adjusted animation duration and timing function */
}
@keyframes shimmer {
0% {
transform: translate(-50%, -50%) rotate(45deg);
}
100% {
transform: translate(50%, 50%) rotate(45deg);
}
}
button.glass {
background: rgba(255, 255, 255, 0.22);
border-radius: 8px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(4.5px);
-webkit-backdrop-filter: blur(4.5px);
border: 2px solid rgb(255, 255, 255);
padding: 10px 5px;
color: white;
font-size: 16px;
cursor: pointer;
transition: background 0.3s ease, transform 0.3s ease;
flex: 1;
margin: 5px;
max-width: 90%;
}
button.glass:hover {
background: rgba(255, 255, 255, 0.3);
transform: scale(1.05);
}
button.glass a {
color: white;
text-decoration: none;
}
.center {
display: grid;
place-items: center;
}
.box {
width: 40vw;
}
.kast1 {
margin-top: 10vh;
}
.kast2 {
margin-top: 1vh;
}
.profielbild {
border-radius: 50%;
width: 100px;
height: 100px;
}
.flex {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
}
.flex-child {
-webkit-box-flex: 1 1 auto;
-moz-box-flex: 1 1 auto;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
}