-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.css
115 lines (101 loc) · 2.48 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
@layer base {
body {
font-family: Josefin Sans, sans-serif;
}
.font-pacifico {
font-family: "Pacifico", cursive;
}
.font-urdu {
font-family: "Noto Nastaliq Urdu", serif;
}
.font-arabic{
font-family: "Amiri", serif;
}
}
html {
scroll-behavior: smooth;
}
body {
overflow-y: scroll;
}
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: #76a8a9;
}
::-webkit-scrollbar-thumb:hover {
background: #6e9d9e;
}
@layer components {
.menu__link::before {
content: "";
width: 0;
height: 2px;
border-radius: 2px;
background-color: #004d40;
position: absolute;
bottom: -0.25rem;
right: 0;
transition: right 0.4s, width 0.4s, left 0.4s;
}
.menu__link:hover::before {
width: 100%;
left: 0;
}
}
.scene {
width: 100px; /* Reduced from 200px */
height: 100px; /* Reduced from 200px */
perspective: 300px; /* Reduced from 600px to maintain proportion */
margin: 50px auto;
}
.cube {
width: 100%;
height: 100%;
position: relative;
transform-style: preserve-3d;
transform: translateZ(-50px); /* Reduced from -100px */
animation: rotate 10s infinite linear;
}
.cube__face {
position: absolute;
width: 103px; /* Reduced from 200px */
height: 100px; /* Reduced from 200px */
background: url('/images/intro.png') center/cover no-repeat; /* Adjusted placeholder size */
}
.cube__face--front { transform: rotateY( 0deg) translateZ(50px); }
.cube__face--right { transform: rotateY( 90deg) translateZ(50px); }
.cube__face--back { transform: rotateY(180deg) translateZ(50px); }
.cube__face--left { transform: rotateY(-90deg) translateZ(50px); }
.cube__face--top { transform: rotateX( 90deg) translateZ(50px); }
.cube__face--bottom { transform: rotateX(-90deg) translateZ(50px); }
@keyframes rotate {
0% { transform: translateZ(-50px) rotateX(0deg) rotateY(0deg); }
100% { transform: translateZ(-50px) rotateX(360deg) rotateY(360deg); }
}
#intro {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: white;
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
overflow: hidden;
opacity: 1;
transition: opacity 2s ease-in-out;
}
/*
#intro.fade-out {
opacity: 0;
}
.hidden-content {
display: none;
} */