/
styles.css
49 lines (42 loc) · 982 Bytes
/
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
/* style.css */
/* Base styles */
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
}
#array-container {
width: 90%;
max-width: 600px;
height: 50vh;
max-height: 400px;
display: flex;
align-items: flex-end;
margin: 20px auto;
border: 1px solid black;
}
#array-container div {
background-color: dodgerblue;
margin: 2px;
width: calc((100% - 60px) / 30); /* Calculate width dynamically */
}
button {
margin: 10px;
padding: 10px 20px;
font-size: 16px;
}
/* Responsive design for smaller devices */
@media (max-width: 600px) {
#array-container {
height: 40vh; /* Slightly smaller container for smaller screens */
}
#array-container div {
width: calc((100% - 30px) / 30); /* Slightly smaller bars to fit more */
}
button {
font-size: 14px; /* Smaller font size for buttons */
}
}