-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDreamSong.css
More file actions
91 lines (79 loc) · 1.59 KB
/
DreamSong.css
File metadata and controls
91 lines (79 loc) · 1.59 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
/* styles.css */
/* Existing styles */
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #000000;
}
#canvas-container {
width: 100%; /* Adjust this percentage as needed */
max-width: 2600px; /* Set a max width for very large screens */
padding: 20px;
background-color: #000000;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
box-sizing: border-box;
}
.container {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 75px;
flex-direction: row;
max-width: 95%;
margin-left: auto;
margin-right: auto;
}
.media {
flex: 2;
max-width: 60%;
object-fit: contain;
margin: 0 20px;
}
.text {
flex: 1;
max-width: 30%;
padding: 10px;
color: white;
text-align: left;
font-size: 30px !important; /* Reduced by 50% */
}
@media (max-width: 1200px) {
.container {
flex-direction: column !important;
margin-bottom: 0px;
}
.media {
flex: 1;
max-width: 90%;
margin: 0px 0;
order: 1;
}
.text {
flex: 1;
max-width: 90%;
margin: 0px 0;
order: 2;
}
}
/* New styles for fixing image height and text container */
.standalone-media {
display: block;
max-width: 1000px;
margin: auto; /* Center the image */
height: auto; /* Ensure image height matches its natural height */
}
.text-container {
display: flex;
margin: auto; /* Center the text container */
justify-content: center;
align-items: center;
margin-bottom: 20px;
flex-direction: column;
}
.text-container .text {
margin: 0; /* Remove any default margin */
}