-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
111 lines (103 loc) · 3.26 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Treasure Hunt</title>
<style>
/* General body styling with background image */
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
position: relative;
overflow: hidden;
font-family: 'Arial', sans-serif;
padding: 20px;
background-color: #f2f2f2;
}
/* Background image with reduced opacity */
body::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('https://cdn.pixabay.com/photo/2016/12/13/16/42/treasure-map-1904546_1280.jpg'); /* Replace with your image path */
background-size: cover;
background-position: center;
background-repeat: no-repeat;
opacity: 0.4;
z-index: -1;
}
/* Container for the boxes */
.container {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
z-index: 1;
}
/* Stylish Box */
.box {
width: 300px;
max-width: 90vw;
padding: 20px;
border-radius: 15px;
background: linear-gradient(145deg, #ffffff, #e6e6e6);
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
align-items: center;
transition: all 0.3s ease;
font-size: 16px;
text-align: center;
color: #333;
}
/* Hover effect with subtle scale and shadow */
.box:hover {
transform: translateY(-5px) scale(1.03);
box-shadow: 0 15px 20px rgba(0, 0, 0, 0.15), 0 8px 10px rgba(0, 0, 0, 0.1);
}
/* Icon styling within the box */
.box .icon {
font-size: 30px;
margin-bottom: 10px;
color: #4a90e2; /* Icon color */
}
/* Paragraph text styling */
.box p {
font-weight: 500;
margin: 10px 0 0;
line-height: 1.5;
font-size: 1rem;
}
/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
.box {
font-size: 14px;
padding: 15px;
max-width: 100%;
}
.box p {
font-size: 0.9rem;
}
}
</style>
</head>
<body>
<div class="container">
<div class="box">
<div class="icon">🏫</div> <!-- Example icon -->
<p>I am a large thing that is made up of brick where you all gather around. What am I?</p>
</div>
<div class="box">
<div class="icon">⛰️</div> <!-- Example icon -->
<p>If you stand on me you can see everything. Only a few people don't fear me and use me. I only get dressed on occasions. What am I?</p>
</div>
</div>
</body>
</html>