-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
182 lines (169 loc) · 4 KB
/
style.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
body {
font-family: Arial, sans-serif;
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: #f0f0f0;
transition: background-color 0.5s ease;
}
h1, p {
text-align: center;
}
.currency-select {
display: flex;
align-items: center;
justify-content: center;
}
.currency-select label {
margin-right: 10px; /* Adjust the spacing as needed */
}
.currency-select select {
width: 150px; /* Set the width of the dropdown as needed */
padding: 8px; /* Adjust padding for better appearance */
box-sizing: border-box; /* Ensure padding doesn't affect the width */
display: inline-block;
vertical-align: middle;
margin-top: 0; /* Ensure no extra top margin */
margin-bottom: 0; /* Ensure no extra bottom margin */
}
.name-section {
display: flex;
justify-content: center;
align-items: center;
margin-top: 30px;
margin-bottom: 20px;
}
.name-section input {
width: calc(100% - 70px);
margin-right: 10px;
max-width: 300px; /* Adjust the max-width as needed */
}
.name-section span {
white-space: nowrap;
}
.card {
background-color: white;
border-radius: 10px;
padding: 20px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
display: flex;
flex-direction: column;
align-items: center;
}
.form-section, .chart-section {
flex: 1;
padding: 10px;
width: 100%;
}
input, select {
padding: 12px;
margin-bottom: 10px;
border: 1px solid #ddd;
border-radius: 4px;
width: 100%;
box-sizing: border-box; /* Ensures padding is included in width */
}
.item-row {
display: flex;
gap: 10px;
margin-bottom: 10px;
}
.item-row input[type="text"],
.item-row input[type="number"] {
flex: 1;
padding: 12px; /* Larger padding for easier input */
}
button {
width: 100%;
padding: 12px;
border: none;
border-radius: 4px;
cursor: pointer;
background-color: #4CAF50;
color: white;
}
.moment-of-truth {
background-color: #007BFF; /* Light blue background */
color: white; /* White text for contrast */
border: none; /* No border for a cleaner look */
margin-top: 20px;
padding: 12px 20px;
font-size: 1.3em;
cursor: pointer;
border-radius: 4px;
transition: background-color 0.3s, transform 0.2s;
text-align: center;
display: block;
}
.moment-of-truth:hover {
background-color: #0056b3; /* Darker shade of blue on hover */
transform: translateY(-2px); /* Gentle lift effect */
box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}
.result {
text-align: center;
margin-top: 20px;
font-size: 1.5em;
font-weight: bold;
display: none;
}
/* Media Query for Mobile Devices */
@media (max-width: 600px) {
.name-section input {
width: 100%;
margin-right: 0;
margin-bottom: 10px;
}
.item-row {
flex-direction: column;
}
.item-row input[type="text"],
.item-row input[type="number"] {
width: 100%;
padding: 12px; /* Ensure padding is larger for mobile */
}
.chart-section {
width: 100%;
overflow: hidden;
}
canvas {
width: 100% !important;
height: auto !important;
}
}
/* Media Query for Desktop Devices */
@media (min-width: 601px) {
.card {
flex-direction: row;
justify-content: space-between;
}
.item-row input[type="text"],
.item-row input[type="number"] {
padding: 8px; /* Smaller padding for desktop */
}
.form-section {
max-width: 50%;
}
.chart-section {
max-width: 50%;
}
canvas {
width: 100% !important;
height: auto !important;
}
}
/* Safari Specific Fixes */
@media not all and (min-resolution: 0.001dpcm) {
@supports (-webkit-appearance: none) {
.item-row {
display: -webkit-flex;
display: flex;
}
.item-row input[type="text"],
.item-row input[type="number"] {
-webkit-flex: 1;
flex: 1;
}
}
}
/*Trying Squared up effect and sound */