-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
131 lines (115 loc) · 3.56 KB
/
styles.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
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@1,500&family=Unbounded:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
font-family: 'Poppins', Arial, sans-serif;
background: url('https://cdn.sanity.io/images/tlr8oxjg/production/c277918894f2a79f6a029ffaecdcf3f22c7281b2-1456x816.png') no-repeat center center fixed;
background-color: wheat;
background-size: cover;
color: aqua;
text-align: center;
position: relative;
overflow: hidden; /* Prevents scrollbar due to animations */
}
header {
position: absolute;
top: 20px;
}
h1 {
font-size: 48px;
margin-bottom: 50px;
font-family: 'Unbounded', Arial, sans-serif;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
padding: 20px 40px;
background-color: rgba(0, 0, 0, 0.7);
border-radius: 10px;
box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
animation: glow 5s infinite alternate;
}
@keyframes glow {
from {
box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}
to {
box-shadow: 0 0 30px rgba(255, 255, 255, 1);
}
}
.button-container {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for better readability */
padding: 20px;
border-radius: 10px;
transition: transform 0.3s ease-in-out;
}
.sorting-container {
left: 20%;
animation: moveUp 5s infinite alternate ease-in-out;
}
.searching-container {
right: 20%;
animation: moveDown 5s infinite alternate ease-in-out;
}
button {
width: 250px; /* Increased size */
height: 150px; /* Increased size */
display: flex;
justify-content: center;
align-items: center;
font-size: 20px;
color: #fff;
background-size: cover;
background-position: center;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Improves text readability on image */
font-family: 'Fira Sans', Arial, sans-serif;
}
.button.sorting {
color: rgb(244, 6, 6);
font-size: 210%;
background-image: url('../sorting.png'); /* Replace with actual image path */
text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.7), -1px -1px 2px rgba(255, 255, 255, 0.7); /* Enhanced text shadow for better readability */
}
.button.searching {
color: rgb(244, 6, 6);
;
font-size: 210%;
background-image: url('../searching.png'); /* Replace with actual image path */
text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.7), -1px -1px 2px rgba(255, 255, 255, 0.7); /* Enhanced text shadow for better readability */
}
.button:hover {
background-color: rgba(0, 0, 0, 0.7);
box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.8);
transform: scale(1.05);
}
.button:active {
transform: scale(0.95);
}
@keyframes moveUp {
0% {
transform: translateY(25px);
}
100% {
transform: translateY(0);
}
}
@keyframes moveDown {
0% {
transform: translateY(-25px);
}
100% {
transform: translateY(0);
}
}