-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
172 lines (150 loc) · 3.89 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 100%;
height: 100vh;
background: url('assets/space.jpg') no-repeat center center fixed;
background-size: cover;
margin: 0;
}
.container {
width: 600px;
height: 600px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
justify-content: center;
align-items: center;
perspective: 2000px;
}
.border-radius {
border-radius: 10px;
-moz-border-radius: 10px; /* firefox */
-webkit-border-radius: 10px; /* safari, chrome */
}
/* The rubiks cube container */
.rubiks-cube {
width: 300px;
height: 300px;
position: relative;
transform-style: preserve-3d;
transition: all 0.1s ease-out;
perspective: 2000;
background-color: transparent;
overflow: visible;
}
/* Faces styling and grid layout for each face */
.face {
position: absolute;
width: 300px;
height: 300px;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
gap: 20px;
padding: 20px;
border-radius: 10px;
background-color: transparent;
}
.top {
transform: rotateX(90deg) translateZ(150px);
/* background-color: #98FF98; */
}
.bottom {
transform: rotateX(-90deg) translateZ(150px);
/* background-color: #D8B6FF; Lilac */
}
.left {
transform: rotateY(90deg) translateZ(150px);
/* background-color: #FFB6C1; Baby Pink */
}
.right {
transform: rotateY(-90deg) translateZ(150px);
/* background-color: #FFCC99; Pastel Orange */
}
.front {
transform: translateZ(150px);
/* background-color: #ADD8E6; */
}
.back {
transform: translateZ(-150px);
/* background-color: #FFFFE0; Light Yellow */
}
/* Mini-cube and its faces */
.mini-cube {
position: relative;
width: 100px;
height: 100px;
transform-style: preserve-3d;
transition: all 0.1s ease-out;
}
/* Each face of the mini-cube */
.mini-cube-face {
position: absolute;
width: 100px;
height: 100px;
background-color: transparent; /* Example color, can change based on position */
border: 10px solid #000;
padding: 5px;
transform: translateZ(0px);
}
/* Reset any default margins/paddings for consistent rendering */
body, html {
margin: 0;
padding: 0;
box-sizing: border-box;
width: 100%;
height: 100%;
}
/* Button Container Styling */
.button-container {
position: fixed; /* Sticks the container to the viewport */
bottom: 30px; /* Position 30px above the bottom edge */
width: 100%; /* Spans the full width of the page */
display: flex; /* Use Flexbox for layout */
justify-content: space-between; /* Distribute buttons: left, center, right */
align-items: center; /* Align buttons vertically within the container */
padding: 0 300px; /* Add spacing to left and right edges */
box-sizing: border-box; /* Include padding in width calculations */
border-radius: 50px;
}
/* Pixel Button Styling */
.pixel-button {
font-family: 'Press Start 2P', sans-serif; /* Pixel-style font */
font-size: 1.5rem;
color: black;
background-color: white;
border: 4px solid black;
padding: 15px 30px;
box-shadow: 0 8px black;
text-transform: uppercase;
cursor: pointer;
transition: all 0.2s ease;
user-select: none; /* Disable text selection */
text-align: center;
border-radius: 20px;
}
/* Pixelated edges when active */
.pixel-button:active {
box-shadow: 0 4px black;
transform: translateY(4px); /* Button presses down */
}
/* Pixelated hover effect */
.pixel-button:hover {
background-color: #f2f2f2; /* Light gray */
}
/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
.pixel-button {
font-size: 1rem;
padding: 10px 20px;
}
.button-container {
padding: 0 10px; /* Adjust padding for smaller screens */
}
}