-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainstyle.css
197 lines (175 loc) · 5.24 KB
/
mainstyle.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
html, body {
font-family: 'lato';
font-size: 16px;
background: #000;
padding: 0;
margin: 0;
height: 100%;
overflow: hidden;
display: flex; /* Add display: flex; to make vertical centering easier */
align-items: center; /* Center vertically */
justify-content: center; /* Center horizontally */
}
.center {
display: flex;
flex-direction: column;
background: rgba(255, 255, 255, 0.8);
border-radius: 15px;
padding: 20px;
box-shadow: 0 4px 6px white;
/* Remove height and width properties to allow it to size based on content */
max-width: 80%; /* Add max-width to limit its width */
text-align: center; /* Center the content within the box */
}
/* Rest of your CSS remains the same */
.button-anon-pen {
width: 300px;
background-image: linear-gradient(115deg, #4fcf70, #fad648, #a767e5, #12bcfe, #44ce7b);
text-align: center;
margin: 20px auto;
position: relative;
color: #ffffff;
text-decoration: none;
font-weight: normal;
border-radius: 6px;
overflow: hidden;
transition: background-position 1.6s ease-in, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.button-anon-pen:hover {
background-position: -390px; /* Adjust as needed */
transform: scale(1.05); /* Slight zoom on hover */
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* Add a subtle shadow on hover */
}
.button-anon-pen span {
padding: 14px 0;
font-size: 22px;
display: block;
margin: 3px;
background: #000;
border-radius: 3px;
}
h1 {
margin: 0; /* Remove margin */
padding: 0; /* Remove padding */
color: #f87800;
font-size: 100px;
text-align: center;
}
.created {
position: absolute;
bottom: 10px;
left: 10px;
color: orange;
font-size: 30px;
font-family: 'Merriweather', serif;
font-family: 'Oswald', sans-serif;
}
/* Keyframes for fade-in animation */
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
/* Existing CSS styles remain the same */
.button-anon-pen {
width: 300px;
background-image: linear-gradient(115deg, #4fcf70, #fad648, #a767e5, #12bcfe, #44ce7b);
text-align: center;
margin: 20px auto;
position: relative;
color: #ffffff;
text-decoration: none;
font-weight: normal;
border-radius: 6px;
overflow: hidden;
transition: background-position 1.6s ease-in, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* Target only the second button for specific styling */
.button-anon-pen:nth-child(2) {
margin-top: 10px; /* Add some space between buttons */
}
.scrollable-content {
max-height: 300px; /* Set a maximum height for scrollable content */
overflow-y: auto; /* Enable vertical scrolling */
padding-right: 15px; /* Add a bit of right padding to prevent content from overlapping the scrollbar */
}
.scrollable-content li {
color: #070707; /* Green color */
font-size: 20px; /* Increased font size */
float: left; /* Float the side headings to the left */
margin-right: 10px; /* Add some right margin for spacing */
clear: left; /* Clear the float to prevent text wrapping */
}
/* Style for sub-points like "Normal Mode and Random Mode" */
.scrollable-content ul li {
font-size: 18px; /* Increased font size for sub-points */
margin-left: 30px; /* Add left margin to sub-points for indentation */
}
.horizontal-scroll-container {
overflow-x: auto;
white-space: nowrap; /* Prevent line breaks */
}
.scrollable-content {
display: inline-block; /* Display horizontally */
vertical-align: top; /* Align to the top */
max-width: 100%; /* Ensure it doesn't exceed the container width */
}
.popup-content {
background: #fff;
border-radius: 6px;
padding: 20px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
max-height: 80%; /* Set a maximum height for the popup */
overflow: auto; /* Enable scrolling within the popup */
font-family: 'Merriweather', serif;
font-family: 'Oswald', sans-serif;
}
#rules-popup {
display: none;
}
span
{
color: teal;
}
/* Media query for smaller screens */
/* Increase font size for 'h1' on smaller screens */
@media screen and (max-width: 768px) {
h1 {
font-size: 40px;
}
/* Adjust 'button-anon-pen' styles for smaller screens */
.button-anon-pen {
width: 100%;
font-size: 18px; /* Reduce font size for the button text */
}
.center {
max-width: 90%;
padding: 10px;
}
/* Adjust 'popup-content' styles for smaller screens */
#rules-popup .popup-content {
font-size: 2rem;
max-height: 80%;
}
/* Center the entire content on one line */
.center {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.created {
font-size: 26px;
text-align: center;
margin-left: 10px;
}
}