-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
105 lines (96 loc) · 2 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
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #2c1b1b;
}
.welcome-message {
text-align: center;
padding: 20px;
background-color: #333;
color: bisque;
}
.message {
text-align: center;
padding: 20px;
background-color: #333;
color: bisque;
}
.gallery {
display: flex;
flex-wrap: wrap;
justify-content: center;
max-width: 100%;
}
.image-container {
margin: 10px;
overflow: hidden;
position: relative; /* Added position:relative for absolute positioning within it */
}
.image-container img {
width: 100%;
height: auto;
max-width: 300px; /* Adjust the maximum width as needed */
transition: opacity 0.3s ease-in-out;
}
.image-description {
position: absolute;
bottom: 0; /* Positioned at the bottom of the container */
left: 0;
width: 100%;
padding: 10px;
background-color: rgba(0, 0, 0, 0.5);
color: #fff;
text-align: center;
display: none;
word-wrap: break-word; /* Allow the description to wrap within the container */
}
.image-container:hover .image-description {
display: block;
}
.prev, .next {
position: absolute;
top: 50%;
width: auto;
padding: 16px;
margin-top: -22px;
color: white;
font-weight: bold;
font-size: 18px;
cursor: pointer;
transition: 0.6s ease;
border-radius: 0 3px 3px 0;
user-select: none;
}
.prev {
left: 0; /* Move to the far left */
border-radius: 3px 0 0 3px;
background-color: black;
}
.next {
right: 0;
border-radius: 3px 0 0 3px;
background-color: black;
}
.container{
max-width: 1200px;
margin: auto;
background-color: rgb(119, 87, 49);
overflow: auto;
}
.gallery-nature{
margin: 5px;
border: 1 solid #6d4141;
float: left;
width: 390px;
}
.gallery-nature img{
width: 100%;
height: auto;
}
.nature-description{
padding: 15px;
text-align: center;
font-size: 20px;
font-family: Arial, sans-serif;
}