-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
149 lines (127 loc) · 2 KB
/
style.css
File metadata and controls
149 lines (127 loc) · 2 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
/* Reset & Basic Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
max-width: 600px;
margin: 50px auto;
padding: 20px;
background: #f5f5f5;
}
.container {
background: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
color: #333;
margin-bottom: 30px;
}
/* Input Styles */
textarea {
width: 100%;
height: 80px;
padding: 10px;
border: 2px solid #ddd;
border-radius: 5px;
font-size: 16px;
margin-bottom: 15px;
resize: vertical;
}
textarea:focus {
outline: none;
border-color: #4caf50;
}
.btn {
background: #4caf50;
color: white;
padding: 12px 24px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
transition: background 0.3s;
}
.btn:hover {
background: #45a049;
}
/* Result Styles */
.result {
margin: 20px 0;
padding: 15px;
border-radius: 5px;
text-align: center;
display: none;
}
.sopan {
background: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.tidak-sopan {
background: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
/* Feedback Styles */
.feedback {
margin-top: 15px;
}
.feedback button {
margin: 0 5px;
padding: 8px 16px;
border: none;
border-radius: 4px;
cursor: pointer;
transition: opacity 0.3s;
}
.feedback button:hover {
opacity: 0.8;
}
.correct {
background: #28a745;
color: white;
}
.wrong {
background: #dc3545;
color: white;
}
/* Statistics Styles */
.stats {
display: flex;
justify-content: space-around;
margin-top: 20px;
text-align: center;
}
.stat {
padding: 10px;
}
.stat-number {
font-size: 24px;
font-weight: bold;
color: #333;
}
/* Responsive Design */
@media (max-width: 768px) {
body {
margin: 20px auto;
padding: 15px;
}
.container {
padding: 20px;
}
.feedback button {
display: block;
margin: 5px auto;
width: 100px;
}
.stats {
flex-direction: column;
gap: 10px;
}
}