-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
95 lines (84 loc) · 2.16 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
body {
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
margin: 0;
background-image: url("Images/22327195_memphis_geometric_pattern1_grey.svg"); /* Path to your seamless pattern image */
background-repeat: repeat; /* Ensures the pattern repeats both horizontally and vertically */
background-size: auto; /* Keeps the original size of the image */
background-position: top left; /* Aligns the pattern to the top-left corner */
}
h1 {
text-align: center;
font-size: 3rem;
font-weight: 800;
font-family: "Roboto";
}
.container {
display: flex;
flex-direction: column;
align-items: center; /* Center vertically */
justify-content: center;
}
.generated-image {
width: 100%;
max-width: 440px;
display: inline-block;
}
.input-group {
display: flex;
margin-top: 55px;
margin-bottom: 55px;
font-family: "Roboto";
gap: 5px;
}
#keyword {
width: 100%;
padding: 12px 15px;
font-size: 16px;
border: 2px solid #ccc; /* Default border */
border-radius: 10px; /* Rounded corners */
outline: none;
transition: border-color 0.3s, box-shadow 0.3s; /* Smooth transition for border and shadow */
}
/* Change border color and add shadow on focus */
#keyword:focus {
border-color: #007bff; /* Blue color when focused */
box-shadow: 0 0 8px rgba(0, 123, 255, 0.3); /* Subtle blue shadow */
}
/* Placeholder styling */
#keyword::placeholder {
color: #999; /* Light gray color for placeholder text */
font-style: italic; /* Italic style for placeholder text */
}
button {
border: none;
border-radius: 10px;
padding: 15px;
font-weight: 700;
font-size: 20px;
}
button:hover {
cursor: pointer;
}
.previous-images {
display: flex;
justify-content: center;
gap: 20px;
}
#previous-images {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
padding: 0 2em 2em 2em;
}
#previous-images img {
flex: 1 1 calc(25% - 10px); /* 4 images in a row with spacing */
max-width: 300px; /* Ensure they don't grow too large */
min-width: 300px; /* Minimum width before wrapping happens */
height: auto; /* Maintain aspect ratio */
}