-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
87 lines (73 loc) · 1.58 KB
/
style.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
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-image: url('background.jpg');
background-size: cover;
background-attachment: fixed;
transition: background-position 0.3s ease;
}
header {
background-color: rgba(0, 0, 0, 0.7);
color: #fff;
text-align: center;
padding: 20px;
}
header h1 {
margin: 0;
}
main {
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
}
.profiles,
.poems {
margin-bottom: 20px;
}
.poems {
display: flex;
flex-wrap: wrap;
justify-content: flex-start; /* Align poems to the left */
}
.poem {
background-color: #00000086;
padding: 10px;
text-align: center;
margin: 8px;
word-wrap: break-word;
flex: 0 1 calc(33.33% - 16px); /* Each poem occupies one-third of the available width */
}
.poem div {
border: 1px solid #000000;
}
.poem h2 {
color: #fff;
}
.poem pre {
color: #fff;
}
.poem:hover {
transition: background-color 1.0s ease, background-image 1.0s ease;
background-image: linear-gradient(to top, rgba(110, 110, 110, 0.459), rgba(180, 180, 180, 0.513));
}
.poem button.download-button {
margin-top: 10px;
}
/* Adjust styles for mobile devices */
@media only screen and (max-width: 768px) {
header {
padding: 10px;
}
.poems {
display: flex;
flex-direction: column;
align-items: center;
}
.poem {
margin: 5px;
padding: 8px;
flex: 0 1 calc(100% - 10px); /* Each poem occupies the full width with a 5px margin */
}
}