-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
144 lines (129 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
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
body {
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(to right, #a2c2e4, #f5f5f5);
color: #333;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
text-align: center;
}
h1 {
color: #2c3e50;
font-size: 2.5em;
margin-bottom: 20px;
font-weight: 700;
animation: fadeIn 1s ease-out;
}
form {
background: #ffffff;
padding: 30px;
border-radius: 15px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
max-width: 500px;
width: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
height: 400px;
animation: slideIn 1s ease-out;
}
form:hover {
transform: scale(1.02);
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}
.form-title {
margin-bottom: 20px;
}
label {
display: block;
margin: 15px 15px;
font-weight: 630;
font-size: 1.1em;
}
select,
input[type="number"] {
width: calc(100% - 24px);
padding: 12px;
margin: 5px 0 15px;
border: 2px solid #ddd;
border-radius: 8px;
font-size: 16px;
transition: border-color 0.3s ease;
}
select:focus,
input[type="number"]:focus {
border-color: #4a90e2;
outline: none;
}
button {
background: #4a90e2;
color: #fff;
border: none;
border-radius: 8px;
padding: 12px 25px;
font-size: 18px;
cursor: pointer;
transition: background 0.3s ease, transform 0.3s ease;
animation: bounceIn 1s ease-out;
}
button:hover {
background: #357abd;
transform: scale(1.05);
}
.result {
font-style: bold;
font-size: 1.2em;
font-weight: 700;
color: #333;
margin-top: 20px;
animation: fadeInUp 1s ease-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(-30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes bounceIn {
from {
opacity: 0;
transform: scale(0.9);
}
50% {
opacity: 1;
transform: scale(1.05);
}
to {
opacity: 1;
transform: scale(1);
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}