-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
119 lines (101 loc) · 2.37 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;600;700&family=Prompt:wght@300;700&display=swap");
:root {
/* Colors */
--background-color: hsl(0, 0%, 0%);
--text-color: hsl(0, 0%, 100%);
--text-box-color: hsl(0, 0%, 20%);
/* Font */
--body-font: "Prompt", sans-serif;
--font-regular: 300;
--font-bold: 700;
--h1-font-size: 2.5rem;
--p-font-size: 1.25rem;
}
html {
scroll-behavior: smooth;
}
body {
width: 100%;
min-height: 100vh;
background-color: var(--background-color);
color: var(--text-color);
font-family: var(--body-font);
margin: 0;
display: flex; /* Use flex layout */
flex-direction: column; /* Stack children vertically */
align-items: center; /* Center content horizontally */
box-sizing: border-box; /* Include padding and border in element's total width and height */
}
p {
font-size: var(--p-font-size);
}
form {
width: 60vw;
max-width: 500px;
min-width: 300px;
margin: 0 auto;
box-sizing: border-box; /* Include padding and border in the element's total width and height */
}
fieldset {
border: none;
padding: 0;
margin: 0;
}
label {
display: block;
}
input,
select {
margin: 10px 0 20px 0;
width: 100%;
height: 2.5rem;
font-size: var(--p-font-size);
box-sizing: border-box; /* Include padding and border in the element's total width and height */
}
textarea {
width: 100% !important;
max-width: 800px !important;
height: 150px;
font-size: var(--p-font-size);
padding: 10px;
box-sizing: border-box; /* Include padding and border in the width and height */
}
input[type="submit"] {
display: block;
width: 60%;
margin: 1em auto;
height: 2em;
font-size: 1.1rem;
color: var(--text-color);
background-color: var(--background-color);
border-color: var(--text-color);
}
.text-area-align {
text-align: center;
}
.inline {
width: unset;
margin: 0 0.5em 0 0;
vertical-align: middle;
display: inline;
}
#title {
font-size: var(--h1-font-size);
text-align: center;
}
#description-text {
text-align: center;
padding: 0 25px;
}
/* Mobile specific */
@media screen and (max-width: 600px) {
body {
justify-content: center;
}
form {
width: 80vw;
}
input[type="submit"] {
width: 70%;
}
}