34
34
align-items : center;
35
35
justify-content : center;
36
36
margin-bottom : 10px ;
37
+ margin-top : -5px ;
37
38
}
38
39
39
40
body {
@@ -70,7 +71,19 @@ body, html {
70
71
opacity : 0.6 ;
71
72
color : white;
72
73
border-radius : 10px ; /* Rounded corners */
73
- transition : background 3s ease-in-out; /* Smooth transition */
74
+ transition : background 3s ease; /* Smooth transition */
75
+ transition : transform 2s ease;
76
+ }
77
+
78
+ .box ::before {
79
+ transition : 2s ;
80
+ transform : scale (.9 );
81
+ z-index : -1 ;
82
+ }
83
+
84
+ .box : hover ::before {
85
+ transform : scale (1.1 );
86
+ box-shadow : 0 0 30px # e13c62 ;
74
87
}
75
88
76
89
.box-content {
@@ -80,56 +93,54 @@ body, html {
80
93
}
81
94
82
95
.box : nth-child (1 ) {
83
- background : linear-gradient (to right, # ff7e5f, # feb47b );
96
+ background : linear-gradient (to right, # ca35db, # d99dfd );
97
+ opacity : 0.5 ;
84
98
}
85
99
86
100
.box : nth-child (1 ): hover {
87
- background : linear-gradient (to right , # feb47b , # ff7e5f ) ;
88
- }
89
-
90
- . box : nth-child ( 2 ) {
91
- background : linear-gradient (to right , # 6a3093 , # a044ff ) ;
92
- }
101
+ background : # b94ff7 ;
102
+ color : # 66bcde ;
103
+ box-shadow : 0 0 30 px # e13c62 ;
104
+ text-shadow : 0 0 15 px # e13c62 ;
105
+ opacity : 1 ;
106
+ transform : scale ( 1.1 ); /* This scales up the box to 110% of its original size when you hover over it. Adjust the scale factor (1.1) as needed. */
93
107
94
- .box : nth-child (2 ): hover {
95
- background : linear-gradient (to right, # a044ff, # 6a3093 );
96
108
}
97
-
109
+
98
110
.box : nth-child (3 ) {
99
- background : linear-gradient (to right, # 3494e6, # ec6ead );
111
+ background : linear-gradient (to right, # 8cb5f5, # e2c4f6 );
112
+ opacity : 0.5 ;
100
113
}
101
114
102
115
.box : nth-child (3 ): hover {
103
- background : linear-gradient (to right, # ec6ead, # 3494e6 );
104
- }
105
-
106
- .box : nth-child (4 ) {
107
- background : linear-gradient (to right, # ee9ca7, # ffdde1 );
108
- }
109
-
110
- .box : nth-child (4 ): hover {
111
- background : linear-gradient (to right, # dd4557, # 73484e );
112
- }
113
-
114
- .box : nth-child (5 ) {
115
- background : linear-gradient (to right, # 7f4fe7, # 9772e7 );
116
+ background : # 8b6dc3 ;
117
+ color : # 66bcde ;
118
+ box-shadow : 0 0 30px # e13c62 ;
119
+ text-shadow : 0 0 30px # e13c62 ;
120
+ opacity : 1 ;
121
+ transform : scale (1.1 ); /* This scales up the box to 110% of its original size when you hover over it. Adjust the scale factor (1.1) as needed. */
116
122
117
123
}
118
124
119
- .box : nth-child (5 ): hover {
120
- background : linear-gradient (to right, # 5eb88e, # 851087 );
121
- }
122
-
123
125
.main-box {
124
126
grid-row : span 2 ;
125
127
grid-column : 2 ;
126
128
position : relative;
127
129
padding : 20px ;
128
- background : linear-gradient (to right, # 6a3093, # a044ff ); /* Different variant */
130
+ background : linear-gradient (to right, # c1bafd, # 330867 ); /* Different variant */
131
+ opacity : 0.5 ;
132
+ padding-left : 5px ;
133
+ transition : transform 2s ease; z-index : 0s ;
129
134
}
130
135
131
136
.main-box : hover {
132
- background : linear-gradient (to right, # 30065a, # c296e1 );
137
+ background : # 460b8f ; /* Different variant */
138
+ color : # 66bcde ;
139
+ box-shadow : 0 0 30px # e13c62 ;
140
+ text-shadow : 0 0 30px # e13c62 ;
141
+ opacity : 1 ;
142
+ transform : scale (1.05 ); /* This scales up the box to 110% of its original size when you hover over it. Adjust the scale factor (1.1) as needed. */
143
+ z-index : 1 ;
133
144
}
134
145
135
146
.grid {
@@ -140,7 +151,8 @@ body, html {
140
151
grid-template-rows : repeat (2 , 1fr );
141
152
gap : 15px ;
142
153
height : 100% ;
143
- padding : 20px ;
154
+ padding : 30px ;
155
+ margin-top : 10px ;
144
156
margin-bottom : 10px ;
145
157
box-sizing : border-box;
146
158
}
0 commit comments