File size: 2,156 Bytes
c3ff69a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* style.css */

:root {
  --primary-color: #2563eb;
  --secondary-color: #6b7280;
  --bg-color: #f9fafb;
  --text-color: #111827;
  --border-radius: 0.375rem;
  --spacing: 1rem;
  --font-family: 'Inter', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  line-height: 1.5;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing);
}

h1 {
  font-size: 2rem;
  margin-bottom: calc(var(--spacing) * 1.5);
  text-align: center;
  color: var(--primary-color);
}

form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing);
  margin-bottom: var(--spacing);
}

label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

select,
input[type="text"],
textarea,
button {
  font-size: 1rem;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: var(--border-radius);
  width: 100%;
}

select:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
  border-color: var(--primary-color);
}

button {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button:hover:not(:disabled) {
  background-color: #1e40af;
}

#result {
  margin-top: var(--spacing);
  padding: var(--spacing);
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius);
  min-height: 3rem;
}

@media (min-width: 640px) {
  form {
    flex-direction: row;
    align-items: flex-end;
  }
  form > div {
    flex: 1;
  }
  form > button {
    width: auto;
    flex-shrink: 0;
  }
}

/* Accessibility: High contrast for code labels */
#result[role="alert"] {
  border-left: 4px solid var(--primary-color);
}

/* Visually hidden for screen reader announcements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}