-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.css
More file actions
152 lines (132 loc) · 2.5 KB
/
index.css
File metadata and controls
152 lines (132 loc) · 2.5 KB
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
@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');
img {
width: 100%;
height: auto;
}
body {
background-image: url("BgImage.jpg");
background-position: center;
background-size: 100% 100%;
background-position-y: 195px;
font-family: 'Luckiest Guy', cursive;
background-color: #E6E6EA;
}
footer {
width: 100%;
height: 50px;
text-align: center;
background-position-y: 10px;
padding: 1px;
background-color: DarkSalmon;
color: white;
position: fixed;
bottom: 0;
}
#start {
color: #000000;
font-size: 40px;
padding: 20px;
border: 0px;
border-radius: 46px;
background: #e0e0e0;
box-shadow: 7px 7px 14px #676767,
-7px -7px 14px #ffffff;
}
#start:hover {
cursor: pointer;
color: rgb(51, 51, 51);
font-size: 35px;
}
.nano1 {
display: flex;
align-items: center;
justify-content: center;
width: 220px;
border: 0px;
font-size: 30px;
padding: 10px;
border-radius: 46px;
background: #fab85b;
position: relative;
overflow: hidden;
box-shadow: 7px 7px 14px #676767,
-7px -7px 14px #ffffff;
transition: all 0.3s ease;
}
.nano1:hover {
height: 50px; /* Adjust the height to maintain button shape */
}
.nano1 img {
width: 25%;
height: auto;
position: absolute;
left: 50%; /* Center the image horizontally */
transform: translateX(-50%); /* Adjust to center the image */
transition: all 0.3s ease;
}
.nano1 span {
opacity: 0;
transition: all 0.3s ease;
}
.nano1:hover img {
left: calc(100% - 35px); /* Move the image to the right edge */
}
.nano1:hover span {
opacity: 1;
position: absolute;
left: 50%;
transform: translateX(-50%);
}
a {
text-decoration: none;
color: black;
}
* {
padding: 0;
margin: 0;
}
/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
#start {
font-size: 35px;
padding: 18px;
}
.nano1 {
font-size: 25px;
height: 35px;
padding: 8px;
}
.nano1 img {
width: 20%;
height: auto;
}
}
@media (max-width: 768px) {
#start {
font-size: 30px;
padding: 15px;
}
.nano1 {
font-size: 20px;
height: 30px;
padding: 6px;
}
.nano1 img {
width: 18%;
height: auto;
}
}
@media (max-width: 480px) {
#start {
font-size: 25px;
padding: 12px;
}
.nano1 {
font-size: 18px;
padding: 5px;
}
.nano1 img {
width: 15%;
height: auto;
}
}