-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
98 lines (87 loc) · 1.55 KB
/
index.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
text-align: center;
background-color:#FF4E88;
background-attachment: fixed;
font-family: 'Montserrat', sans-serif;
color: #333;
margin: 0;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
h1 {
font-family: 'Montserrat', sans-serif;
font-size: 4rem;
margin: 20px 0;
color: #FFDA76;
}
h5 {
font-family: 'Playfair', serif;
font-size: 1.5rem;
margin: 20px 0;
color: #1f316f;
}
button {
background-color: transparent;
color: #EECAD5;
border: 2px solid #F1D3CE;
padding: 15px 25px;
font-size: 1.2rem;
cursor: pointer;
border-radius: 8px;
margin: 10px;
transition: background-color 0.3s, color 0.3s, transform 0.3s;
position: relative;
}
button:hover {
background-color: #B4D6CD;
color: white;
transform: translateY(-2px);
}
button:active {
background-color: #0d1b4d;
color: white;
transform: translateY(0);
}
p {
display: none;
font-size: 1rem;
margin: 10px 0;
line-height: 1.6;
color: #555;
position: absolute;
top: 10%;
left: 50%;
transition: 1.0s ease;
transform: translateX(-50%);
background: rgba(255, 255, 255, 0.9);
padding: 10px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
width: 80%;
}
button:hover + p {
display: block;
}
@media (max-width: 768px) {
h1 {
font-size: 3rem;
}
h5 {
font-size: 1.2rem;
}
button {
padding: 12px 20px;
font-size: 1rem;
}
p {
font-size: 0.9rem;
}
}