Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
193 lines (171 loc) · 4 KB
/
Copy pathstyles.css
File metadata and controls
193 lines (171 loc) · 4 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
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
/* Global Styles */
body {
margin: 0;
font-family: 'Tajawal', sans-serif;
background-color: #ffffff;
color: #333333;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
min-height: 100vh;
padding: 20px;
box-sizing: border-box;
overflow: auto;
}
/* Resentment Container (Title and Textarea together) */
.resentment-container {
position: sticky; /* Makes the container sticky on scroll */
top: 0; /* Sticks to the top when scrolled to */
width: 100%; /* Full width */
background-color: #ffffff; /* Prevents content underneath from showing through */
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
border-bottom: 1px solid #ccc; /* Optional border for clarity */
z-index: 1000; /* Ensures it stays above other elements */
padding: 5px;
margin-bottom:10px;
text-align: center;
}
/* Resentment Text Box */
textarea#resentment {
width: 90%; /* Adjusts width to fit within the container */
max-width: 500px; /* Maximum width for larger screens */
height: 100px;
padding: 10px;
font-size: 0.8rem;
border: 1px solid #ccc;
border-radius: 5px;
resize: none;
margin-top: 10px; /* Adds space between the title and the text box */
}
textarea#resentment-person {
width:30%;
font-size: 0.7rem;
}
/* Container Styles */
.container, .slide-container {
text-align: center;
width: 90%;
max-width: 700px;
margin: 120px auto 20px; /* Adds space for the fixed resentment box */
padding: 20px;
background-color: #f9f9f9;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* Text Styles */
h1 {
font-size: 2.3rem;
margin-bottom: 5px;
margin-top: 5px;
color: #1a141a;
font-weight: 500px;
line-height: 1.2;
}
p {
font-size: 1.1rem;
color: #555555;
margin-bottom: 20px;
line-height: 1.6;
}
/* Slide Styles */
.slide {
display: none; /* Hidden by default */
flex-direction: column;
justify-content: center; /* Centers the slide content */
align-items: center;
}
.slide.active {
display: flex; /* Shown when active */
}
/* Input Styles */
textarea, .selfishness-input {
width: 100%;
max-width: 500px;
margin-bottom: 20px;
padding: 10px;
font-size: 1rem;
border: 1px solid #ccc;
border-radius: 6px;
resize: none;
transition: border-color 0.3s ease;
}
.selfishness-input {
height: 50px;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.selfishness-input:focus {
border-color: #0066cc;
outline: none;
}
/* Button Styles */
.buttons {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
align-items: center;
}
.button {
text-decoration: none;
background-color: #0066cc;
color: #ffffff;
font-size: 1rem;
padding: 15px;
border-radius: 8px;
transition: all 0.3s ease-in-out;
text-align: center;
box-shadow: 0 4px 6px rgba(0, 102, 204, 0.3);
}
.button:hover {
background-color: #0056b3;
transform: translateY(-2px);
}
button {
background-color: #3498db;
color: white;
font-size: 0.8rem;
padding: 10px;
border-radius: 15px;
border: none;
cursor: pointer;
transition: background-color 0.3s;
}
button:hover {
background-color: #2980b9;
}
/* Utility Classes */
.hidden {
display: none;
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* Media Queries */
@media (min-width: 768px) {
.buttons {
gap: 20px;
}
}
/* Adjusting label positioning for horizontal alignment */
.label-textbox-wrapper {
display: flex;
align-items: center;
margin-bottom: 20px; /* Adds space between label-textbox pairs */
margin-right: 10px
}
.label-textbox-wrapper label {
margin-right: 10px;
margin-left:10px;
white-space: nowrap; /* Prevents label from breaking into multiple lines */
}
.hidden {
display: none;
}