-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
107 lines (94 loc) · 1.74 KB
/
style.css
File metadata and controls
107 lines (94 loc) · 1.74 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
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
font-family: Arial, sans-serif;
background-color: #f0fff0;
margin: 0;
padding: 0;
}
h1 {
text-align: center;
color: #3d3;
font-size: 24px;
margin-bottom: 20px;
}
#p-hasil {
text-align: center;
color: #666;
font-size: 16px;
}
#p-penjelasan {
text-align: justify;
text-indent: 1cm;
color: #343;
font-size: 16px;
padding: 0.8cm;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: #f5fdf5;
padding: 20px;
border-radius: 10px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
animation: slide-in 0.5s ease-in-out;
max-width: 400px; /* Added max-width to limit the container size on larger screens */
margin: 0 auto; /* Center the container horizontally */
}
input[type="number"],
button {
margin: 10px 2px;
}
#p-hasil {
text-align: center;
font-size: 18px;
margin-top: 20px;
color: #343;
}
footer {
text-align: center;
font-size: 14px;
margin-top: 20px;
color: #777;
}
span {
color: red;
font-size: 30px;
}
@keyframes slide-in {
0% {
transform: translateY(-50px);
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}
input {
width: 50px;
}
button {
color: #020;
background-color: #6c6;
border: none;
border-radius: 5px;
height: 24px;
font-weight: bold;
font-size: 15px;
transition: opacity 0.2s;
cursor: pointer;
}
button:hover {
opacity: 0.8;
}
button:active {
color: #6c6;
background-color: #fff;
opacity: 0.6;
}