-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
84 lines (77 loc) · 2.69 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
/* Fonts and colors */
body {
font-family: 'Roboto', sans-serif; /* Set the font for the entire site */
background-color: #78d3c4; /* Eucalyptus green background color */
}
h1 {
color: #0b422e; /* Dark green color for the title */
}
#monthlyInvestmentInput.hidden.hidden {
display: none;
}
/* Base styles for mobile-first approach */
.container {
width: 100%; /* Full width */
margin: 0 auto; /* Center the container */
display: flex; /* Enable Flexbox layout */
flex-direction: column; /* Stack children vertically on small screens */
justify-content: center; /* Center children vertically */
align-items: center; /* Center children horizontally */
}
.input-wrapper {
display: flex; /* Enable Flexbox layout */
flex-direction: column; /* Stack elements vertically */
align-items: center; /* Center elements horizontally */
width: 100%; /* Take full width to center the children */
margin-bottom: 10px; /* Space between each input-wrapper */
}
#simulationResult {
width: 100%;
}
.content {
width: 100%;
display: flex; /* Enable Flexbox layout */
flex-direction: column; /* Stack children vertically */
align-items: center; /* Center children horizontally */
}
.content > div { /* New wrapper div for inputs and buttons */
width: 100%; /* Take full width to center the children */
display: flex; /* Enable Flexbox layout */
justify-content: center; /* Center children horizontally */
}
.content input[type="number"],
.content input[type="range"],
.content button {
margin-bottom: 30px; /* Increase vertical separation */
}
.content select {
width: 45%; /* Custom width for dropdown menu */
padding: 5px 5px; /* Increase padding to make the dropdown menu lager*/
font-size: 1.2em; /* Larger font size for the number inside the input */
}
.content input[type="number"] {
width: 35%; /* Custom width for number inputs */
font-size: 1.3em; /* Larger font size for the number inside the input */
}
.content input[type="range"],
.content button {
width: 40%; /* Custom width for range inputs and buttons */
}
#runSimulations {
padding: 15px 30px; /* Increase padding to make the button larger */
font-size: 20px; /* Increase font size for better visibility */
cursor: pointer; /* Change cursor to pointer to indicate it's clickable */
}
/* Styles for desktop devices */
@media (min-width: 768px) {
.container {
flex-direction: row; /* Stack children horizontally on larger screens */
justify-content: center; /* Center children horizontally */
align-items: center; /* Center children vertically */
}
.content,
#simulationResult {
width: 45%;
padding: 20px;
}
}